Search by

phramecms / proposal

TLyngeJ

AI-first Change Proposal Queue and Human Approval Workflow module for PhrameCMS.

Package info

github.com/PhrameCMS/proposal

pkg:composer/phramecms/proposal

Statistics

Installs: 18

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-12-04 21:10 UTC

This package is auto-updated.

Last update: 2026-12-04 21:35:38 UTC


README

AI-first Change Proposal Queue and Human Approval Workflow module for PhrameCMS.

What It Provides

phramecms/proposal turns PhrameCMS's deterministic OperationBus (dryRun: true, JSON Schema validation, beforeHash optimistic locking, canonical diffs) into a universal staging & human-review workflow across content, schemas, and site configuration:

  • Propose-Only Agent Workflows: Grant AI Agent Tokens explicit propose.<permission> scopes (e.g. proposal.create, proposal.read, propose.schema.modify, propose.config.admin.settings.write, propose.entity.content.article.update) so agents can validate and submit rich diffs without direct live-write privileges.
  • Zero-Drift Optimistic Concurrency: Proposals capture beforeHash and canonical diff via dry-run simulation at submission time; proposal.approve re-checks beforeHash before applying live so stale proposals fail safely (409 / ProposalConflictException) unless explicitly forced after re-review.
  • Full OperationBus & Audit Trail: proposal.create, proposal.list, proposal.get, proposal.approve, proposal.reject, and proposal.cancel are standard OperationInterface operations — automatically available over MCP, CLI, REST, and the Admin UI (/admin/proposals), and immutably audited.

Architecture

  • Namespace: PhrameCms\Proposal\ (src/), tests: PhrameCms\Proposal\Tests\ (tests/)
  • Runtime dependencies: phramecms/core, phramecms/database
  • Database table: phrame_proposals (managed via ProposalSchemaInstaller)
  • License: MIT