Contract-driven AI workflow protocol specifications.
Defines 5 contract types for AI agent orchestration:
IntentContract- Intent request with capability requirementsTaskSeed- Executable work unitAcceptance- Execution verification resultPublishGate- Approval gate for publish decisionsEvidence- Immutable execution record
schemas/ # JSON Schema definitions
examples/ # Sample JSON files
src/validation/ # Semantic validator
tests/ # Test files
scripts/ # Utility scripts
docs/ # Documentation
IntentContract -> TaskSeed -> Acceptance -> PublishGate -> Evidence
IC-xxx -> TS-xxx -> AC-xxx -> PG-xxx -> EV-xxx
| Kind | Prefix | Pattern |
|---|---|---|
| IntentContract | IC | ^IC-[0-9]{3,}$ |
| TaskSeed | TS | ^TS-[0-9]{3,}$ |
| Acceptance | AC | ^AC-[0-9]{3,}$ |
| PublishGate | PG | ^PG-[0-9]{3,}$ |
| Evidence | EV | ^EV-[0-9]{3,}$ |
Draft -> Active -> Frozen -> Published -> Superseded -> Revoked -> Archived
| riskLevel | requiredApprovals | autoApproved |
|---|---|---|
| low | [] | true |
| medium | [] | true |
| high | [project_lead, security_reviewer] | false |
| critical | [project_lead, security_reviewer, release_manager] | false |
read_repo, write_repo, install_deps, network_access, read_secrets, publish_release
IF capabilities IN [read_repo] OR [read_repo, write_repo]:
auto_activate = true
requiredActivationApprovals = []
ELSE IF install_deps OR network_access OR read_secrets IN capabilities:
auto_activate = false
requiredActivationApprovals = [project_lead, security_reviewer]
ELSE IF publish_release IN capabilities:
auto_activate = false
requiredActivationApprovals = [project_lead, release_manager]
IF productionDataAccess OR externalSecretTransmission OR legalConcern OR rollbackImpossible:
riskLevel = critical
ELSE IF install_deps OR network_access OR read_secrets OR publish_release IN capabilities:
riskLevel = high
ELSE IF write_repo IN capabilities:
riskLevel = medium
ELSE:
riskLevel = low
npm install # Install dependencies
npm test # Run all tests (83 tests)
npx tsx scripts/demo.ts # Run demo scriptdocs/requirements.md is the authoritative specification.
| Path | Purpose |
|---|---|
| schemas/ | JSON Schema definitions |
| src/validation/ | Semantic validation logic |
| docs/requirements.md | Authoritative requirements |
| docs/protocol.md | Protocol specification |
| docs/operations.md | Operations policy |
| docs/RUNBOOK.md | Runbook |
| docs/BLUEPRINT.md | Blueprint |