@kontourai/flow-agents 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +8 -0
- package/CHANGELOG.md +27 -0
- package/CONTEXT.md +5 -0
- package/agents/tool-security-reviewer.json +1 -1
- package/build/src/cli/init.js +35 -3
- package/build/src/cli/kit.js +95 -2
- package/build/src/cli/pull-work-provider.js +7 -1
- package/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/build/src/cli/workflow.js +5 -1
- package/build/src/flow-kit/provision.d.ts +23 -0
- package/build/src/flow-kit/provision.js +99 -0
- package/build/src/flow-kit/validate.d.ts +52 -0
- package/build/src/flow-kit/validate.js +214 -9
- package/build/src/runtime-adapters.js +1 -1
- package/context/contracts/execution-contract.md +30 -1
- package/context/contracts/review-contract.md +4 -0
- package/context/contracts/trigger-guards.md +73 -0
- package/context/settings/backlog-provider-settings.json +1 -1
- package/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/base/build/package.json +1 -1
- package/dist/base/build/src/cli/init.js +35 -3
- package/dist/base/build/src/cli/kit.js +95 -2
- package/dist/base/build/src/cli/pull-work-provider.js +7 -1
- package/dist/base/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/base/build/src/cli/workflow.js +5 -1
- package/dist/base/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/base/build/src/flow-kit/provision.js +99 -0
- package/dist/base/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/base/build/src/flow-kit/validate.js +214 -9
- package/dist/base/build/src/runtime-adapters.js +1 -1
- package/dist/base/context/contracts/execution-contract.md +30 -1
- package/dist/base/context/contracts/review-contract.md +4 -0
- package/dist/base/context/contracts/trigger-guards.md +73 -0
- package/dist/base/context/settings/backlog-provider-settings.json +1 -1
- package/dist/base/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/base/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/base/docs/adr/index.md +1 -0
- package/dist/base/docs/architecture-engine-and-kits.md +17 -0
- package/dist/base/docs/context-map.md +3 -0
- package/dist/base/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/base/docs/decisions/index.md +1 -0
- package/dist/base/docs/developer-architecture.md +3 -3
- package/dist/base/docs/flow-kit-repository-contract.md +34 -3
- package/dist/base/docs/kit-authoring-guide.md +1 -1
- package/dist/base/docs/veritas-integration.md +12 -0
- package/dist/base/evals/ci/run-baseline.sh +4 -0
- package/dist/base/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/base/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/base/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/base/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/base/evals/static/test_package.sh +6 -0
- package/dist/base/evals/static/test_workflow_skills.sh +16 -0
- package/dist/base/install.sh +1 -1
- package/dist/base/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/base/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/base/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/base/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/base/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/base/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/base/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/base/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/base/kits/veritas-governance/docs/README.md +141 -10
- package/dist/base/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/base/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/base/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/base/kits/veritas-governance/kit.json +65 -0
- package/dist/base/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/base/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/base/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/base/schemas/workflow-waves.schema.json +347 -0
- package/dist/base/scripts/check-layer-boundary.mjs +98 -0
- package/dist/catalog.json +2 -0
- package/dist/claude-code/.claude/agents/tool-security-reviewer.md +2 -1
- package/dist/claude-code/.claude/skills/consult-standards/SKILL.md +73 -0
- package/dist/claude-code/.claude/skills/execute-plan/SKILL.md +4 -3
- package/dist/claude-code/.claude/skills/pull-work/SKILL.md +12 -0
- package/dist/claude-code/.claude/skills/review-work/SKILL.md +11 -0
- package/dist/claude-code/.claude/skills/standards-authoring/SKILL.md +87 -0
- package/dist/claude-code/build/package.json +1 -1
- package/dist/claude-code/build/src/cli/init.js +35 -3
- package/dist/claude-code/build/src/cli/kit.js +95 -2
- package/dist/claude-code/build/src/cli/pull-work-provider.js +7 -1
- package/dist/claude-code/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/claude-code/build/src/cli/workflow.js +5 -1
- package/dist/claude-code/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/claude-code/build/src/flow-kit/provision.js +99 -0
- package/dist/claude-code/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/claude-code/build/src/flow-kit/validate.js +214 -9
- package/dist/claude-code/build/src/runtime-adapters.js +1 -1
- package/dist/claude-code/context/contracts/execution-contract.md +30 -1
- package/dist/claude-code/context/contracts/review-contract.md +4 -0
- package/dist/claude-code/context/contracts/trigger-guards.md +73 -0
- package/dist/claude-code/context/settings/backlog-provider-settings.json +1 -1
- package/dist/claude-code/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/claude-code/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/claude-code/docs/adr/index.md +1 -0
- package/dist/claude-code/docs/architecture-engine-and-kits.md +17 -0
- package/dist/claude-code/docs/context-map.md +3 -0
- package/dist/claude-code/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/claude-code/docs/decisions/index.md +1 -0
- package/dist/claude-code/docs/developer-architecture.md +3 -3
- package/dist/claude-code/docs/flow-kit-repository-contract.md +34 -3
- package/dist/claude-code/docs/kit-authoring-guide.md +1 -1
- package/dist/claude-code/docs/veritas-integration.md +12 -0
- package/dist/claude-code/evals/ci/run-baseline.sh +4 -0
- package/dist/claude-code/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/claude-code/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/claude-code/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/claude-code/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/claude-code/evals/static/test_package.sh +6 -0
- package/dist/claude-code/evals/static/test_workflow_skills.sh +16 -0
- package/dist/claude-code/install.sh +1 -1
- package/dist/claude-code/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/claude-code/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/claude-code/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/claude-code/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/claude-code/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/claude-code/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/claude-code/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/claude-code/kits/veritas-governance/docs/README.md +141 -10
- package/dist/claude-code/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/claude-code/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/claude-code/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/claude-code/kits/veritas-governance/kit.json +65 -0
- package/dist/claude-code/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/claude-code/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/claude-code/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/claude-code/schemas/workflow-waves.schema.json +347 -0
- package/dist/claude-code/scripts/check-layer-boundary.mjs +98 -0
- package/dist/codex/.agents/skills/builder-shape/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/consult-standards/SKILL.md +73 -0
- package/dist/codex/.agents/skills/deliver/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/design-probe/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/execute-plan/SKILL.md +4 -3
- package/dist/codex/.agents/skills/execute-plan/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/fix-bug/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/idea-to-backlog/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/plan-work/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/pull-work/SKILL.md +12 -0
- package/dist/codex/.agents/skills/pull-work/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/review-work/SKILL.md +11 -0
- package/dist/codex/.agents/skills/review-work/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/standards-authoring/SKILL.md +87 -0
- package/dist/codex/.agents/skills/tdd-workflow/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.agents/skills/verify-work/context/contracts/execution-contract.md +30 -1
- package/dist/codex/.codex/agents/tool-security-reviewer.toml +1 -1
- package/dist/codex/build/package.json +1 -1
- package/dist/codex/build/src/cli/init.js +35 -3
- package/dist/codex/build/src/cli/kit.js +95 -2
- package/dist/codex/build/src/cli/pull-work-provider.js +7 -1
- package/dist/codex/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/codex/build/src/cli/workflow.js +5 -1
- package/dist/codex/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/codex/build/src/flow-kit/provision.js +99 -0
- package/dist/codex/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/codex/build/src/flow-kit/validate.js +214 -9
- package/dist/codex/build/src/runtime-adapters.js +1 -1
- package/dist/codex/context/contracts/execution-contract.md +30 -1
- package/dist/codex/context/contracts/review-contract.md +4 -0
- package/dist/codex/context/contracts/trigger-guards.md +73 -0
- package/dist/codex/context/settings/backlog-provider-settings.json +1 -1
- package/dist/codex/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/codex/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/codex/docs/adr/index.md +1 -0
- package/dist/codex/docs/architecture-engine-and-kits.md +17 -0
- package/dist/codex/docs/context-map.md +3 -0
- package/dist/codex/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/codex/docs/decisions/index.md +1 -0
- package/dist/codex/docs/developer-architecture.md +3 -3
- package/dist/codex/docs/flow-kit-repository-contract.md +34 -3
- package/dist/codex/docs/kit-authoring-guide.md +1 -1
- package/dist/codex/docs/veritas-integration.md +12 -0
- package/dist/codex/evals/ci/run-baseline.sh +4 -0
- package/dist/codex/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/codex/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/codex/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/codex/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/codex/evals/static/test_package.sh +6 -0
- package/dist/codex/evals/static/test_workflow_skills.sh +16 -0
- package/dist/codex/install.sh +1 -1
- package/dist/codex/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/codex/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/codex/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/codex/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/codex/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/codex/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/codex/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/codex/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/codex/kits/veritas-governance/docs/README.md +141 -10
- package/dist/codex/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/codex/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/codex/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/codex/kits/veritas-governance/kit.json +65 -0
- package/dist/codex/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/codex/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/codex/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/codex/schemas/workflow-waves.schema.json +347 -0
- package/dist/codex/scripts/check-layer-boundary.mjs +98 -0
- package/dist/kiro/agents/tool-security-reviewer.json +1 -1
- package/dist/kiro/build/package.json +1 -1
- package/dist/kiro/build/src/cli/init.js +35 -3
- package/dist/kiro/build/src/cli/kit.js +95 -2
- package/dist/kiro/build/src/cli/pull-work-provider.js +7 -1
- package/dist/kiro/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/kiro/build/src/cli/workflow.js +5 -1
- package/dist/kiro/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/kiro/build/src/flow-kit/provision.js +99 -0
- package/dist/kiro/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/kiro/build/src/flow-kit/validate.js +214 -9
- package/dist/kiro/build/src/runtime-adapters.js +1 -1
- package/dist/kiro/context/contracts/execution-contract.md +30 -1
- package/dist/kiro/context/contracts/review-contract.md +4 -0
- package/dist/kiro/context/contracts/trigger-guards.md +73 -0
- package/dist/kiro/context/settings/backlog-provider-settings.json +1 -1
- package/dist/kiro/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/kiro/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/kiro/docs/adr/index.md +1 -0
- package/dist/kiro/docs/architecture-engine-and-kits.md +17 -0
- package/dist/kiro/docs/context-map.md +3 -0
- package/dist/kiro/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/kiro/docs/decisions/index.md +1 -0
- package/dist/kiro/docs/developer-architecture.md +3 -3
- package/dist/kiro/docs/flow-kit-repository-contract.md +34 -3
- package/dist/kiro/docs/kit-authoring-guide.md +1 -1
- package/dist/kiro/docs/veritas-integration.md +12 -0
- package/dist/kiro/evals/ci/run-baseline.sh +4 -0
- package/dist/kiro/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/kiro/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/kiro/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/kiro/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/kiro/evals/static/test_package.sh +6 -0
- package/dist/kiro/evals/static/test_workflow_skills.sh +16 -0
- package/dist/kiro/install.sh +1 -1
- package/dist/kiro/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/kiro/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/kiro/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/kiro/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/kiro/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/kiro/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/kiro/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/kiro/kits/veritas-governance/docs/README.md +141 -10
- package/dist/kiro/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/kiro/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/kiro/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/kiro/kits/veritas-governance/kit.json +65 -0
- package/dist/kiro/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/kiro/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/kiro/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/kiro/schemas/workflow-waves.schema.json +347 -0
- package/dist/kiro/scripts/check-layer-boundary.mjs +98 -0
- package/dist/opencode/.opencode/agents/tool-security-reviewer.md +2 -1
- package/dist/opencode/.opencode/skills/consult-standards/SKILL.md +73 -0
- package/dist/opencode/.opencode/skills/execute-plan/SKILL.md +4 -3
- package/dist/opencode/.opencode/skills/pull-work/SKILL.md +12 -0
- package/dist/opencode/.opencode/skills/review-work/SKILL.md +11 -0
- package/dist/opencode/.opencode/skills/standards-authoring/SKILL.md +87 -0
- package/dist/opencode/build/package.json +1 -1
- package/dist/opencode/build/src/cli/init.js +35 -3
- package/dist/opencode/build/src/cli/kit.js +95 -2
- package/dist/opencode/build/src/cli/pull-work-provider.js +7 -1
- package/dist/opencode/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/opencode/build/src/cli/workflow.js +5 -1
- package/dist/opencode/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/opencode/build/src/flow-kit/provision.js +99 -0
- package/dist/opencode/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/opencode/build/src/flow-kit/validate.js +214 -9
- package/dist/opencode/build/src/runtime-adapters.js +1 -1
- package/dist/opencode/context/contracts/execution-contract.md +30 -1
- package/dist/opencode/context/contracts/review-contract.md +4 -0
- package/dist/opencode/context/contracts/trigger-guards.md +73 -0
- package/dist/opencode/context/settings/backlog-provider-settings.json +1 -1
- package/dist/opencode/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/opencode/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/opencode/docs/adr/index.md +1 -0
- package/dist/opencode/docs/architecture-engine-and-kits.md +17 -0
- package/dist/opencode/docs/context-map.md +3 -0
- package/dist/opencode/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/opencode/docs/decisions/index.md +1 -0
- package/dist/opencode/docs/developer-architecture.md +3 -3
- package/dist/opencode/docs/flow-kit-repository-contract.md +34 -3
- package/dist/opencode/docs/kit-authoring-guide.md +1 -1
- package/dist/opencode/docs/veritas-integration.md +12 -0
- package/dist/opencode/evals/ci/run-baseline.sh +4 -0
- package/dist/opencode/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/opencode/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/opencode/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/opencode/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/opencode/evals/static/test_package.sh +6 -0
- package/dist/opencode/evals/static/test_workflow_skills.sh +16 -0
- package/dist/opencode/install.sh +1 -1
- package/dist/opencode/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/opencode/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/opencode/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/opencode/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/opencode/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/opencode/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/opencode/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/opencode/kits/veritas-governance/docs/README.md +141 -10
- package/dist/opencode/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/opencode/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/opencode/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/opencode/kits/veritas-governance/kit.json +65 -0
- package/dist/opencode/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/opencode/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/opencode/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/opencode/schemas/workflow-waves.schema.json +347 -0
- package/dist/opencode/scripts/check-layer-boundary.mjs +98 -0
- package/dist/pi/.pi/skills/consult-standards/SKILL.md +73 -0
- package/dist/pi/.pi/skills/execute-plan/SKILL.md +4 -3
- package/dist/pi/.pi/skills/pull-work/SKILL.md +12 -0
- package/dist/pi/.pi/skills/review-work/SKILL.md +11 -0
- package/dist/pi/.pi/skills/standards-authoring/SKILL.md +87 -0
- package/dist/pi/build/package.json +1 -1
- package/dist/pi/build/src/cli/init.js +35 -3
- package/dist/pi/build/src/cli/kit.js +95 -2
- package/dist/pi/build/src/cli/pull-work-provider.js +7 -1
- package/dist/pi/build/src/cli/validate-workflow-artifacts.js +53 -0
- package/dist/pi/build/src/cli/workflow.js +5 -1
- package/dist/pi/build/src/flow-kit/provision.d.ts +23 -0
- package/dist/pi/build/src/flow-kit/provision.js +99 -0
- package/dist/pi/build/src/flow-kit/validate.d.ts +52 -0
- package/dist/pi/build/src/flow-kit/validate.js +214 -9
- package/dist/pi/build/src/runtime-adapters.js +1 -1
- package/dist/pi/context/contracts/execution-contract.md +30 -1
- package/dist/pi/context/contracts/review-contract.md +4 -0
- package/dist/pi/context/contracts/trigger-guards.md +73 -0
- package/dist/pi/context/settings/backlog-provider-settings.json +1 -1
- package/dist/pi/context/settings/workspace-backlog-provider-settings.example.json +1 -1
- package/dist/pi/docs/adr/0023-kit-provisioning.md +47 -0
- package/dist/pi/docs/adr/index.md +1 -0
- package/dist/pi/docs/architecture-engine-and-kits.md +17 -0
- package/dist/pi/docs/context-map.md +3 -0
- package/dist/pi/docs/decisions/backlog-readiness-source.md +89 -0
- package/dist/pi/docs/decisions/index.md +1 -0
- package/dist/pi/docs/developer-architecture.md +3 -3
- package/dist/pi/docs/flow-kit-repository-contract.md +34 -3
- package/dist/pi/docs/kit-authoring-guide.md +1 -1
- package/dist/pi/docs/veritas-integration.md +12 -0
- package/dist/pi/evals/ci/run-baseline.sh +4 -0
- package/dist/pi/evals/integration/test_kit_provisioning.sh +112 -0
- package/dist/pi/evals/integration/test_pull_work_provider.sh +18 -0
- package/dist/pi/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/dist/pi/evals/integration/test_workflow_artifacts.sh +257 -0
- package/dist/pi/evals/static/test_package.sh +6 -0
- package/dist/pi/evals/static/test_workflow_skills.sh +16 -0
- package/dist/pi/install.sh +1 -1
- package/dist/pi/kits/builder/flows/publish-learn.flow.json +9 -1
- package/dist/pi/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/dist/pi/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/dist/pi/kits/builder/skills/review-work/SKILL.md +11 -0
- package/dist/pi/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/dist/pi/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/dist/pi/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/dist/pi/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/dist/pi/kits/veritas-governance/docs/README.md +141 -10
- package/dist/pi/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/dist/pi/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/dist/pi/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/dist/pi/kits/veritas-governance/kit.json +65 -0
- package/dist/pi/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/dist/pi/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/dist/pi/schemas/backlog-provider-settings.schema.json +1 -1
- package/dist/pi/schemas/workflow-waves.schema.json +347 -0
- package/dist/pi/scripts/check-layer-boundary.mjs +98 -0
- package/docs/adr/0023-kit-provisioning.md +47 -0
- package/docs/adr/index.md +1 -0
- package/docs/architecture-engine-and-kits.md +17 -0
- package/docs/context-map.md +3 -0
- package/docs/decisions/backlog-readiness-source.md +89 -0
- package/docs/decisions/index.md +1 -0
- package/docs/developer-architecture.md +3 -3
- package/docs/flow-kit-repository-contract.md +34 -3
- package/docs/kit-authoring-guide.md +1 -1
- package/docs/veritas-integration.md +12 -0
- package/evals/ci/run-baseline.sh +4 -0
- package/evals/integration/test_kit_provisioning.sh +112 -0
- package/evals/integration/test_pull_work_provider.sh +18 -0
- package/evals/integration/test_veritas_governance_kit.sh +256 -0
- package/evals/integration/test_workflow_artifacts.sh +257 -0
- package/evals/static/test_package.sh +6 -0
- package/evals/static/test_workflow_skills.sh +16 -0
- package/kits/builder/flows/publish-learn.flow.json +9 -1
- package/kits/builder/skills/execute-plan/SKILL.md +4 -3
- package/kits/builder/skills/pull-work/SKILL.md +12 -0
- package/kits/builder/skills/review-work/SKILL.md +11 -0
- package/kits/veritas-governance/adapter/readiness-to-trust-bundle.mjs +19 -20
- package/kits/veritas-governance/assets/starter-hooks/githooks/post-commit +13 -0
- package/kits/veritas-governance/assets/starter-hooks/githooks/pre-push +13 -0
- package/kits/veritas-governance/assets/starter-standards/veritas/GOVERNANCE.md +23 -0
- package/kits/veritas-governance/assets/starter-standards/veritas/README.md +58 -0
- package/kits/veritas-governance/assets/starter-standards/veritas/authority/default.authority-settings.json +30 -0
- package/kits/veritas-governance/assets/starter-standards/veritas/repo-map.json +115 -0
- package/kits/veritas-governance/assets/starter-standards/veritas/repo-standards/default.repo-standards.json +54 -0
- package/kits/veritas-governance/assets/starter-standards/veritas.claims.json +179 -0
- package/kits/veritas-governance/docs/README.md +141 -10
- package/kits/veritas-governance/fixtures/standards-authoring/approved.trust-bundle.json +74 -0
- package/kits/veritas-governance/fixtures/standards-authoring/not-approved.trust-bundle.json +74 -0
- package/kits/veritas-governance/flows/standards-authoring.flow.json +35 -0
- package/kits/veritas-governance/kit.json +65 -0
- package/kits/veritas-governance/skills/consult-standards/SKILL.md +73 -0
- package/kits/veritas-governance/skills/standards-authoring/SKILL.md +87 -0
- package/package.json +2 -1
- package/schemas/backlog-provider-settings.schema.json +1 -1
- package/schemas/workflow-waves.schema.json +347 -0
- package/scripts/check-layer-boundary.mjs +98 -0
- package/src/cli/builder-flow-runtime.test.mjs +86 -0
- package/src/cli/flow-resolver-composition.test.mjs +20 -1
- package/src/cli/init.ts +31 -3
- package/src/cli/kit-metadata-security.test.mjs +163 -1
- package/src/cli/kit-provisioning.test.mjs +122 -0
- package/src/cli/kit.ts +83 -2
- package/src/cli/pull-work-provider.ts +7 -1
- package/src/cli/validate-waves.test.mjs +134 -0
- package/src/cli/validate-workflow-artifacts.ts +47 -0
- package/src/cli/workflow.ts +7 -1
- package/src/flow-kit/provision.ts +118 -0
- package/src/flow-kit/validate.ts +233 -10
- package/src/runtime-adapters.ts +1 -1
|
@@ -11,6 +11,12 @@ CLI invocation plus a small kit-local trust.bundle adapter. It does **not** fork
|
|
|
11
11
|
reimplement Veritas's Repo Standards / evidence-check evaluation — Veritas evaluates; the kit
|
|
12
12
|
only projects Veritas's own recorded verdict into the Flow trust.bundle vocabulary.
|
|
13
13
|
|
|
14
|
+
The engine/surface line this kit builds on — which veritas capabilities stay an importable
|
|
15
|
+
evaluation-engine library and which product surface moves into this kit (the thick-kit
|
|
16
|
+
migration, [#646](https://github.com/kontourai/flow-agents/issues/646)–652) — is ratified in
|
|
17
|
+
veritas's [Engine / Surface Seam](https://github.com/kontourai/veritas/blob/main/docs/architecture/engine-surface-seam.md)
|
|
18
|
+
doc, which also freezes the CLI + artifact + claim-shape contract this kit's adapter consumes.
|
|
19
|
+
|
|
14
20
|
## What it contains
|
|
15
21
|
|
|
16
22
|
| Asset | Path | Purpose |
|
|
@@ -20,6 +26,11 @@ only projects Veritas's own recorded verdict into the Flow trust.bundle vocabula
|
|
|
20
26
|
| Fixtures | `fixtures/readiness/*.readiness-report.json` | Captured **real** Veritas readiness reports (a ready clean tree, and a not-ready tree with a required CLI artifact deleted) used by the eval. |
|
|
21
27
|
| Flow | `flows/exemption-issuance.flow.json` | Single-gate agentless flow `request -> human-approval-gate -> issue`. The gate requires a **verified** `no-agent-delivery-exemption-approval` trust.bundle claim (`subjectType: "delivery-scope"`) before the `issue` step's write is flow-sanctioned. Issues a `delivery/DECLARED` exemption entry per ADR 0022 §2/§3. |
|
|
22
28
|
| Skill | `skills/exemption-usage-review/SKILL.md` | Periodic audit skill (ADR 0022 §3): walks `delivery/DECLARED` + its `git log --follow` history and reports every standing exemption (scope, reason, approver, age since `declared_at`), flagging entries overdue for owner re-confirmation against a configurable staleness threshold. Process visibility, not enforcement — read-only, never mutates `delivery/DECLARED` or the reconciler. |
|
|
29
|
+
| Provisions | `assets/starter-standards/**` → `provisions[]` | Starter `.veritas/` Repo Standards a consumer repo needs to run `veritas readiness` — a faithful snapshot of `veritas init`'s Day-0 output (Repo Map, Repo Standards, authority settings, `GOVERNANCE.md`, `README.md`, claim store), shipped as data and copied verbatim by `flow-agents kit provision`. See "Scaffolding starter standards" below. |
|
|
30
|
+
| Provisions | `assets/starter-hooks/githooks/**` → `provisions[]` | The two governance git hooks (`veritas setup repo-hooks`'s static output): `.githooks/pre-push` (`npm run --if-present prepush`) and `.githooks/post-commit` (`veritas readiness`). Shipped verbatim; landed non-executable — activation (`chmod +x` + `git config core.hooksPath`) is a documented operator step a copy cannot perform. See "Provisioning the governance hooks". |
|
|
31
|
+
| Flow | `flows/standards-authoring.flow.json` | Single-gate agentless flow `propose -> human-approval-gate -> apply`. The gate requires a **verified** `standards-authoring-approval` trust.bundle claim (`subjectType: "repo-governance-change"`) before `veritas init --apply` writes the derived standards. Veritas derives and writes; the kit gates the human sign-off. See "How to author standards for a repo". |
|
|
32
|
+
| Skill | `skills/standards-authoring/SKILL.md` | Runbook for the standards-authoring flow: runs `veritas init --explore`/`--guided` to derive a recommendation (project name, adaptive Repo Map nodes, evidence-check inference, governance-block splice), surfaces it for human approval, then `veritas init --apply`. Wraps the veritas CLI; reimplements nothing. |
|
|
33
|
+
| Skill | `skills/consult-standards/SKILL.md` | Just-in-time governance guidance before editing: tells an agent to run `veritas explain --file <path>` (or `--work-area <id>`) to see the governance excerpt, applicable Repo Standards rules (do/don't/examples), and latest surface status, then edit within them. Pull-based advisory — does not block (the PreToolUse hook is enforcement). No MCP server. See "Consulting standards just in time". |
|
|
23
34
|
|
|
24
35
|
The gate uses provider-neutral Flow vocabulary (`kind: "trust.bundle"`, `bundle_claim`) — the
|
|
25
36
|
same vocabulary `kits/builder/flows/build.flow.json` uses. Veritas is simply the producer that
|
|
@@ -46,6 +57,118 @@ flow evaluate readiness --gate gate-check-gate --exit-code
|
|
|
46
57
|
# exit 0 when readiness is ready (claim verified); exit 1 (block) otherwise.
|
|
47
58
|
```
|
|
48
59
|
|
|
60
|
+
## Scaffolding starter standards
|
|
61
|
+
|
|
62
|
+
A repo needs a `.veritas/` Repo Standards set before `veritas readiness` can evaluate it. For kit
|
|
63
|
+
users this replaces standalone `veritas init`: the kit declares that starter set as `provisions[]`
|
|
64
|
+
in `kit.json`, and the engine copies it into the repo.
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Copy the starter .veritas/ standards into the current repo (create-only; never overwrites).
|
|
68
|
+
flow-agents kit provision veritas-governance
|
|
69
|
+
# -> .veritas/repo-map.json, .veritas/repo-standards/default.repo-standards.json,
|
|
70
|
+
# .veritas/authority/default.authority-settings.json, .veritas/GOVERNANCE.md,
|
|
71
|
+
# .veritas/README.md, veritas.claims.json
|
|
72
|
+
# (flow-agents init --activate-kit veritas-governance provisions the same set at adoption time.)
|
|
73
|
+
|
|
74
|
+
# Then run readiness against the scaffolded repo.
|
|
75
|
+
veritas readiness --working-tree # 0 failures on the fresh starter
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The provisioned files are a **faithful snapshot of `veritas init`'s Day-0 output** — data the kit
|
|
79
|
+
copies verbatim, not evaluation logic it reimplements. The project name is a `your-project`
|
|
80
|
+
placeholder; edit the Repo Map's work-area graph and `evidence.evidenceChecks[0].command` for your
|
|
81
|
+
repo, then regenerate the claim store with `veritas claim init`.
|
|
82
|
+
|
|
83
|
+
**Beyond the static starter:** the per-repo *derivation* `veritas init` performs (project-name
|
|
84
|
+
slug, repo-shape-adaptive Repo Map nodes, evidence-check inference) and the *splice* of the
|
|
85
|
+
governance block into an existing `AGENTS.md`/`CLAUDE.md` (a create-only copy cannot edit files in
|
|
86
|
+
place — the starter's `ai-instruction-files-synced` standard reports advisory until those blocks
|
|
87
|
+
are wired) are handled by the **standards-authoring flow** below; repo-hook setup remains #648.
|
|
88
|
+
|
|
89
|
+
## How to author standards for a repo
|
|
90
|
+
|
|
91
|
+
Beyond the static starter set, the kit's `standards-authoring` flow drives Veritas's *adaptive*
|
|
92
|
+
authoring — deriving the project name, repo-shape Repo Map nodes, and evidence-check command from
|
|
93
|
+
the actual repo, and splicing the governance block into existing `AGENTS.md`/`CLAUDE.md` (the
|
|
94
|
+
per-repo work a verbatim provision copy cannot do). The `standards-authoring` **skill**
|
|
95
|
+
(`skills/standards-authoring/SKILL.md`) is the operator's runbook; **Veritas does the derivation
|
|
96
|
+
and the write — the kit only gates the human sign-off.**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# 1. PROPOSE — derive a recommendation (writes nothing under .veritas/ yet).
|
|
100
|
+
veritas init --explore # or: veritas init --guided --answers <answers.json>
|
|
101
|
+
|
|
102
|
+
# 2. APPROVE — a human reviews the recommendation, then authors a Hachure trust.bundle asserting
|
|
103
|
+
# a standards-authoring-approval / repo-governance-change claim with status verified.
|
|
104
|
+
flow init
|
|
105
|
+
flow start kits/veritas-governance/flows/standards-authoring.flow.json --run-id authoring
|
|
106
|
+
flow attach-evidence authoring --gate human-approval-gate --file approval.bundle --bundle
|
|
107
|
+
flow evaluate authoring --gate human-approval-gate --exit-code
|
|
108
|
+
# exit 0 once the approval claim is verified; exit 1 (block) otherwise.
|
|
109
|
+
|
|
110
|
+
# 3. APPLY — only after the gate passes, write the approved standards (hash-verified;
|
|
111
|
+
# refuses to overwrite existing standards without --force).
|
|
112
|
+
veritas init --apply --plan <path-to-recommendation-artifact>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Like `exemption-issuance`'s gate, "human-approved" here is an **operating convention** the claim
|
|
116
|
+
encodes, not a structural human-only guarantee — see "Human-approval evidence: what is and is not
|
|
117
|
+
enforced" below. This flow is **agentless** (the kit declares no `flow_step_actions`; the approval
|
|
118
|
+
bundle is human-authored out of band, and the skill is the runbook, not a step-bound action). The
|
|
119
|
+
kit **wraps** the `veritas` CLI and reimplements no derivation or evaluation.
|
|
120
|
+
|
|
121
|
+
## Provisioning the governance hooks
|
|
122
|
+
|
|
123
|
+
The kit ships the two governance git hooks (`veritas setup repo-hooks`'s static output) as
|
|
124
|
+
`provisions[]`, so kit adoption drops them into the repo alongside the starter standards:
|
|
125
|
+
|
|
126
|
+
- `.githooks/pre-push` — runs `npm run --if-present prepush` before a push.
|
|
127
|
+
- `.githooks/post-commit` — runs `veritas readiness --changed-from HEAD~1 --changed-to HEAD` after each commit.
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# 1. Land the hook files (part of `kit provision` / `init --activate-kit`).
|
|
131
|
+
flow-agents kit provision veritas-governance
|
|
132
|
+
|
|
133
|
+
# 2. ACTIVATE — the two steps a create-only file copy cannot perform:
|
|
134
|
+
chmod +x .githooks/pre-push .githooks/post-commit
|
|
135
|
+
git config core.hooksPath .githooks
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Activation is required and is not a copy.** A provision lands the hook files **non-executable**
|
|
139
|
+
and does not touch git config — so until you `chmod +x` them and point `core.hooksPath` at
|
|
140
|
+
`.githooks`, git will not run them. This is the same class of limitation as the governance-block
|
|
141
|
+
splice above: the engine's file copy is deliberately agent-blind (it never sets an executable bit
|
|
142
|
+
or mutates git config), so making the hooks *active* is an explicit operator step. The hooks
|
|
143
|
+
themselves only **invoke** the `veritas` CLI (`npm run prepush`, `veritas readiness`); the kit
|
|
144
|
+
reimplements no evaluation, and the live per-edit PreToolUse *evaluation* entry point stays in the
|
|
145
|
+
engine (`evaluatePreToolUse` → `evaluateRepoStandards`), reached by the installed hook shelling
|
|
146
|
+
into `veritas` — hook wiring is the kit's; per-edit evaluation is the engine's.
|
|
147
|
+
|
|
148
|
+
## Consulting standards just in time
|
|
149
|
+
|
|
150
|
+
The `consult-standards` skill (`skills/consult-standards/SKILL.md`) gives an agent just-in-time
|
|
151
|
+
governance guidance **before** it edits a file, so it shapes the change to pass rather than
|
|
152
|
+
learning about a violation only when the PreToolUse hook blocks the write:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
veritas explain --file src/path/to/file.ts # rules that apply to this file
|
|
156
|
+
veritas explain --work-area <work-area-id> # rules for a whole Repo Map work area
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
`veritas explain` prints a **`Veritas JIT Context`** briefing — the `.veritas/GOVERNANCE.md`
|
|
160
|
+
excerpt, one block per matching Repo Standard (`Rule`/`Kind`/`Enforcement Level`/`Summary`/
|
|
161
|
+
`Do`/`Do not`/`Good`/`Bad`/`Context`), and the latest recorded surface status for each. The skill
|
|
162
|
+
is **pull-based advisory**: it never blocks (enforcement stays the engine-side PreToolUse hook)
|
|
163
|
+
and reimplements no rule evaluation — `veritas explain` does the matching and projection.
|
|
164
|
+
|
|
165
|
+
**No MCP server.** Just-in-time guidance here is an agent invoking `veritas explain`, not a
|
|
166
|
+
standing MCP service. Per the flow-agents MCP posture (ADR 0011), MCP never carries the gate and
|
|
167
|
+
enforcement stays hooks; this skill is the deliberate agent-pull replacement for a guidance
|
|
168
|
+
server — the veritas-owned MCP guidance server the migration once imagined was never actually
|
|
169
|
+
built (the `@modelcontextprotocol/sdk` dependency in veritas is only the evidence-check *client*),
|
|
170
|
+
so this slice builds the guidance path new in the kit rather than moving one.
|
|
171
|
+
|
|
49
172
|
## How to issue a no-agent-delivery exemption
|
|
50
173
|
|
|
51
174
|
`flows/exemption-issuance.flow.json` (ADR 0022 §3, "the kit issues, the anchor enforces") gives
|
|
@@ -156,13 +279,17 @@ verdict derives `verified` → the gate **passes**.
|
|
|
156
279
|
|
|
157
280
|
This matches Veritas's own `readinessHasBlockingFailure` helper (`veritas/src/surface/readiness.mjs`)
|
|
158
281
|
and Surface's weakest-link claim derivation (`buildTrustReport` downgrades a readiness claim to
|
|
159
|
-
`rejected` on any rejected Require). The adapter
|
|
160
|
-
|
|
161
|
-
file-pattern lane resolution in `src/repo/routing.mjs`)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
282
|
+
`rejected` on any rejected Require). The adapter does **not** apply Veritas's `promotion_allowed`
|
|
283
|
+
short-circuit as a safety signal — `promotion_allowed` is a workstream-routing hint (set by
|
|
284
|
+
file-pattern lane resolution in `src/repo/routing.mjs`) and cannot account for blocking failures.
|
|
285
|
+
The historical divergence this guarded against,
|
|
286
|
+
[kontourai/veritas#106](https://github.com/kontourai/veritas/issues/106) (Veritas's exported
|
|
287
|
+
verdict functions honored `promotion_allowed` before checking blocking failures), is **fixed**:
|
|
288
|
+
`readinessVerdict`/`readinessSurfaceStatus` now check `readinessHasBlockingFailure()` first
|
|
289
|
+
(regression-tested in veritas `tests/surface/readiness-verdict.test.mjs`), so the adapter's
|
|
290
|
+
derivation and Veritas's exported functions agree. The adapter keeps its own derivation because
|
|
291
|
+
kit code consumes Veritas's recorded artifact, not Veritas's library exports — that
|
|
292
|
+
blocking-failure semantics is now frozen in veritas's Engine / Surface Seam doc (see above).
|
|
166
293
|
|
|
167
294
|
## Trust status
|
|
168
295
|
|
|
@@ -172,9 +299,13 @@ to a later slice (see the WS5 shaping's open decisions).
|
|
|
172
299
|
|
|
173
300
|
## Not in slice 1
|
|
174
301
|
|
|
175
|
-
Skills `consult-standards` and `governance-evidence`, the fuller `merge-readiness` flow, the
|
|
176
|
-
`
|
|
177
|
-
|
|
302
|
+
Skills `consult-standards` and `governance-evidence`, the fuller `merge-readiness` flow, and the
|
|
303
|
+
`knowledge` dependency are later slices — see the WS5 backlog. The **starter-standards scaffold**
|
|
304
|
+
(`veritas init`'s Day-0 `.veritas/` set) **has now shipped** as `provisions[]` (see "Scaffolding
|
|
305
|
+
starter standards"), and the **`standards-authoring` flow** that covers the per-repo derivation
|
|
306
|
+
and governance-block splice a static copy cannot **has now shipped** too (see "How to author
|
|
307
|
+
standards for a repo") — both #647 Slice 2; repo-hook setup remains #648.
|
|
308
|
+
`exemption-usage-review` (ADR 0022 §3's periodic audit skill, walking
|
|
178
309
|
`delivery/DECLARED` history and surfacing standing exemptions for owner re-confirmation —
|
|
179
310
|
process visibility, not enforcement) **has now shipped** — see "What it contains" above and
|
|
180
311
|
"How to run the review". Nothing schedules it automatically; an operator runs it periodically
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 5,
|
|
3
|
+
"source": "veritas-governance-kit/standards-authoring-fixture",
|
|
4
|
+
"claims": [
|
|
5
|
+
{
|
|
6
|
+
"id": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
7
|
+
"subjectType": "repo-governance-change",
|
|
8
|
+
"subjectId": "repo:your-project",
|
|
9
|
+
"facet": "veritas-governance.standards-authoring",
|
|
10
|
+
"claimType": "standards-authoring-approval",
|
|
11
|
+
"fieldOrBehavior": "standardsAuthoringApproval",
|
|
12
|
+
"value": {
|
|
13
|
+
"recommendation": "veritas init --explore recommendation for your-project",
|
|
14
|
+
"reason": "human maintainer reviewed the derived starter standards and approved writing them",
|
|
15
|
+
"approved_by": "eval-fixture-approver"
|
|
16
|
+
},
|
|
17
|
+
"createdAt": "2026-07-01T00:00:00Z",
|
|
18
|
+
"updatedAt": "2026-07-01T00:00:00Z",
|
|
19
|
+
"impactLevel": "high",
|
|
20
|
+
"verificationPolicyId": "policy:standards-authoring-approval",
|
|
21
|
+
"metadata": {
|
|
22
|
+
"producer": "human-approver",
|
|
23
|
+
"source": "standards-authoring-fixture"
|
|
24
|
+
},
|
|
25
|
+
"status": "verified"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"evidence": [
|
|
29
|
+
{
|
|
30
|
+
"id": "ev:standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
31
|
+
"claimId": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
32
|
+
"evidenceType": "policy_rule",
|
|
33
|
+
"method": "auditability",
|
|
34
|
+
"sourceRef": "human-approver:standards-authoring-fixture",
|
|
35
|
+
"excerptOrSummary": "A human maintainer reviewed the veritas init recommendation and approved authoring the Repo Standards for your-project.",
|
|
36
|
+
"observedAt": "2026-07-01T00:00:00Z",
|
|
37
|
+
"collectedBy": "veritas-governance-kit/standards-authoring-fixture",
|
|
38
|
+
"passing": true
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"events": [
|
|
42
|
+
{
|
|
43
|
+
"id": "evt:standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
44
|
+
"claimId": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
45
|
+
"status": "verified",
|
|
46
|
+
"actor": "veritas-governance-kit/standards-authoring-fixture",
|
|
47
|
+
"method": "auditability",
|
|
48
|
+
"evidenceIds": [
|
|
49
|
+
"ev:standards-authoring-fixture.standards-authoring-approval.your-project"
|
|
50
|
+
],
|
|
51
|
+
"createdAt": "2026-07-01T00:00:00Z",
|
|
52
|
+
"verifiedAt": "2026-07-01T00:00:00Z"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"policies": [
|
|
56
|
+
{
|
|
57
|
+
"id": "policy:standards-authoring-approval",
|
|
58
|
+
"claimType": "standards-authoring-approval",
|
|
59
|
+
"requiredEvidence": [
|
|
60
|
+
"policy_rule"
|
|
61
|
+
],
|
|
62
|
+
"acceptanceCriteria": [
|
|
63
|
+
"A human maintainer has reviewed the veritas init recommendation and approved authoring the Repo Standards."
|
|
64
|
+
],
|
|
65
|
+
"reviewAuthority": "human",
|
|
66
|
+
"validityRule": {
|
|
67
|
+
"kind": "manual"
|
|
68
|
+
},
|
|
69
|
+
"stalenessTriggers": [],
|
|
70
|
+
"conflictRules": [],
|
|
71
|
+
"impactLevel": "high"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 5,
|
|
3
|
+
"source": "veritas-governance-kit/standards-authoring-fixture",
|
|
4
|
+
"claims": [
|
|
5
|
+
{
|
|
6
|
+
"id": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
7
|
+
"subjectType": "repo-governance-change",
|
|
8
|
+
"subjectId": "repo:your-project",
|
|
9
|
+
"facet": "veritas-governance.standards-authoring",
|
|
10
|
+
"claimType": "standards-authoring-approval",
|
|
11
|
+
"fieldOrBehavior": "standardsAuthoringApproval",
|
|
12
|
+
"value": {
|
|
13
|
+
"recommendation": "veritas init --explore recommendation for your-project",
|
|
14
|
+
"reason": "human maintainer reviewed the recommendation and did NOT approve authoring",
|
|
15
|
+
"approved_by": "eval-fixture-approver"
|
|
16
|
+
},
|
|
17
|
+
"createdAt": "2026-07-01T00:00:00Z",
|
|
18
|
+
"updatedAt": "2026-07-01T00:00:00Z",
|
|
19
|
+
"impactLevel": "high",
|
|
20
|
+
"verificationPolicyId": "policy:standards-authoring-approval",
|
|
21
|
+
"metadata": {
|
|
22
|
+
"producer": "human-approver",
|
|
23
|
+
"source": "standards-authoring-fixture"
|
|
24
|
+
},
|
|
25
|
+
"status": "disputed"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"evidence": [
|
|
29
|
+
{
|
|
30
|
+
"id": "ev:standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
31
|
+
"claimId": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
32
|
+
"evidenceType": "policy_rule",
|
|
33
|
+
"method": "auditability",
|
|
34
|
+
"sourceRef": "human-approver:standards-authoring-fixture",
|
|
35
|
+
"excerptOrSummary": "A human maintainer reviewed the veritas init recommendation and approved authoring the Repo Standards for your-project.",
|
|
36
|
+
"observedAt": "2026-07-01T00:00:00Z",
|
|
37
|
+
"collectedBy": "veritas-governance-kit/standards-authoring-fixture",
|
|
38
|
+
"passing": false
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"events": [
|
|
42
|
+
{
|
|
43
|
+
"id": "evt:standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
44
|
+
"claimId": "standards-authoring-fixture.standards-authoring-approval.your-project",
|
|
45
|
+
"status": "disputed",
|
|
46
|
+
"actor": "veritas-governance-kit/standards-authoring-fixture",
|
|
47
|
+
"method": "auditability",
|
|
48
|
+
"evidenceIds": [
|
|
49
|
+
"ev:standards-authoring-fixture.standards-authoring-approval.your-project"
|
|
50
|
+
],
|
|
51
|
+
"createdAt": "2026-07-01T00:00:00Z",
|
|
52
|
+
"verifiedAt": "2026-07-01T00:00:00Z"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"policies": [
|
|
56
|
+
{
|
|
57
|
+
"id": "policy:standards-authoring-approval",
|
|
58
|
+
"claimType": "standards-authoring-approval",
|
|
59
|
+
"requiredEvidence": [
|
|
60
|
+
"policy_rule"
|
|
61
|
+
],
|
|
62
|
+
"acceptanceCriteria": [
|
|
63
|
+
"A human maintainer has reviewed the veritas init recommendation and approved authoring the Repo Standards."
|
|
64
|
+
],
|
|
65
|
+
"reviewAuthority": "human",
|
|
66
|
+
"validityRule": {
|
|
67
|
+
"kind": "manual"
|
|
68
|
+
},
|
|
69
|
+
"stalenessTriggers": [],
|
|
70
|
+
"conflictRules": [],
|
|
71
|
+
"impactLevel": "high"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "veritas-governance.standards-authoring",
|
|
3
|
+
"version": "1.0",
|
|
4
|
+
"steps": [
|
|
5
|
+
{ "id": "propose", "next": "apply" },
|
|
6
|
+
{ "id": "apply", "next": null }
|
|
7
|
+
],
|
|
8
|
+
"gates": {
|
|
9
|
+
"human-approval-gate": {
|
|
10
|
+
"step": "apply",
|
|
11
|
+
"expects": [
|
|
12
|
+
{
|
|
13
|
+
"id": "standards-authoring-approval",
|
|
14
|
+
"kind": "trust.bundle",
|
|
15
|
+
"required": true,
|
|
16
|
+
"description": "A human maintainer has reviewed the proposed starter Repo Standards (the `veritas init --explore` recommendation: derived project name, adaptive Repo Map nodes, evidence-check inference, and any AGENTS.md/CLAUDE.md governance-block splice) and approved writing them, recorded as a verified standards-authoring-approval trust.bundle claim. Veritas does the derivation; the kit only gates the human sign-off before `veritas init --apply` writes.",
|
|
17
|
+
"explore_hint": "Run the standards-authoring skill (`veritas init --explore` / `--guided`) to produce a recommendation artifact, have a human approver author a Hachure trust.bundle carrying a standards-authoring-approval / repo-governance-change claim with status verified, then `flow attach-evidence <run> --gate human-approval-gate --file <bundle> --bundle`.",
|
|
18
|
+
"bundle_claim": {
|
|
19
|
+
"claimType": "standards-authoring-approval",
|
|
20
|
+
"subjectType": "repo-governance-change",
|
|
21
|
+
"accepted_statuses": ["verified"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"on_route_back": {
|
|
26
|
+
"missing_evidence": "apply",
|
|
27
|
+
"default": "apply"
|
|
28
|
+
},
|
|
29
|
+
"route_back_policy": {
|
|
30
|
+
"max_attempts": 3,
|
|
31
|
+
"on_exceeded": "block"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"id": "veritas-governance.exemption-issuance",
|
|
14
14
|
"path": "flows/exemption-issuance.flow.json",
|
|
15
15
|
"description": "Agentless K0 flow issuing a delivery/DECLARED no-agent-delivery exemption (ADR 0022 §2/§3): step request -> gate human-approval-gate (requires a verified no-agent-delivery-exemption-approval trust.bundle claim, satisfiable only by a human-authored approval bundle by convention -- see docs/README.md) -> step issue, which appends the approved entry to delivery/DECLARED. CI-callable."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "veritas-governance.standards-authoring",
|
|
19
|
+
"path": "flows/standards-authoring.flow.json",
|
|
20
|
+
"description": "Agentless-gate flow authoring a repo's Veritas Repo Standards: step propose (the standards-authoring skill runs `veritas init --explore`/`--guided` to derive a recommendation) -> gate human-approval-gate (requires a verified standards-authoring-approval / repo-governance-change trust.bundle claim, human-authored by convention) -> step apply (`veritas init --apply` writes the approved standards and splices the governance block). Veritas derives and writes; the kit gates the human sign-off. No evaluation reimplemented."
|
|
16
21
|
}
|
|
17
22
|
],
|
|
18
23
|
"skills": [
|
|
@@ -20,6 +25,16 @@
|
|
|
20
25
|
"id": "veritas-governance.exemption-usage-review",
|
|
21
26
|
"path": "skills/exemption-usage-review/SKILL.md",
|
|
22
27
|
"description": "Periodic audit skill (ADR 0022 §3): walks delivery/DECLARED + its git log --follow history and reports every standing no-agent-delivery exemption (scope, reason, approver, age since declared_at), flagging entries overdue for owner re-confirmation against a configurable staleness threshold. Process visibility, not enforcement -- read-only, never mutates delivery/DECLARED or scripts/ci/trust-reconcile.js's behavior."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "veritas-governance.standards-authoring",
|
|
31
|
+
"path": "skills/standards-authoring/SKILL.md",
|
|
32
|
+
"description": "Author or re-derive a repo's Veritas Repo Standards by running `veritas init --explore`/`--guided` (adaptive derivation + governance-block splice), surfacing the recommendation for human approval, then `veritas init --apply` once the standards-authoring flow's human-approval gate is satisfied. Wraps the veritas CLI; reimplements no evaluation or derivation. The agent action for both steps of the standards-authoring flow."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "veritas-governance.consult-standards",
|
|
36
|
+
"path": "skills/consult-standards/SKILL.md",
|
|
37
|
+
"description": "Just-in-time governance guidance before editing: run `veritas explain --file <path>` (or `--work-area <id>`) to see the governance excerpt, the Repo Standards rules that apply, their do/don't/examples, and the latest surface status, then edit within those rules. Pull-based advisory (does not block; the PreToolUse hook is enforcement). No MCP server -- the agent-pull replacement for a guidance server (ADR 0011). Wraps the veritas CLI; reimplements no evaluation."
|
|
23
38
|
}
|
|
24
39
|
],
|
|
25
40
|
"assets": [
|
|
@@ -31,5 +46,55 @@
|
|
|
31
46
|
],
|
|
32
47
|
"docs": [
|
|
33
48
|
{ "id": "veritas-governance.readme", "path": "docs/README.md" }
|
|
49
|
+
],
|
|
50
|
+
"provisions": [
|
|
51
|
+
{
|
|
52
|
+
"id": "veritas-governance.starter-repo-map",
|
|
53
|
+
"path": "assets/starter-standards/veritas/repo-map.json",
|
|
54
|
+
"target": ".veritas/repo-map.json",
|
|
55
|
+
"description": "Starter Repo Map (from `veritas init`): work-area graph plus the `evidence.evidenceChecks` entry `veritas readiness` requires. Placeholder project name `your-project`; adopters edit for their repo shape and evidence-check command."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "veritas-governance.starter-repo-standards",
|
|
59
|
+
"path": "assets/starter-standards/veritas/repo-standards/default.repo-standards.json",
|
|
60
|
+
"target": ".veritas/repo-standards/default.repo-standards.json",
|
|
61
|
+
"description": "Starter Repo Standards (from `veritas init`): the baseline required-artifacts / instruction-files-synced / routed-delivery rules the engine evaluates. Additive Standards Growth is expected on top."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "veritas-governance.starter-authority-settings",
|
|
65
|
+
"path": "assets/starter-standards/veritas/authority/default.authority-settings.json",
|
|
66
|
+
"target": ".veritas/authority/default.authority-settings.json",
|
|
67
|
+
"description": "Starter authority settings (from `veritas init`): promotion preferences and attestation thresholds; keeps the readiness attestation-gate section clean before a bootstrap attestation is recorded."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "veritas-governance.starter-governance",
|
|
71
|
+
"path": "assets/starter-standards/veritas/GOVERNANCE.md",
|
|
72
|
+
"target": ".veritas/GOVERNANCE.md",
|
|
73
|
+
"description": "Terse agent-facing governance instructions (from `veritas init`): names the Protected Standards and the attestation requirement. Static; no per-repo derivation."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "veritas-governance.starter-readme",
|
|
77
|
+
"path": "assets/starter-standards/veritas/README.md",
|
|
78
|
+
"target": ".veritas/README.md",
|
|
79
|
+
"description": "Human-facing `.veritas/` orientation doc (from `veritas init`)."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "veritas-governance.starter-claims",
|
|
83
|
+
"path": "assets/starter-standards/veritas.claims.json",
|
|
84
|
+
"target": "veritas.claims.json",
|
|
85
|
+
"description": "Starter Veritas claim store (from `veritas init`): the baseline surface claims the starter Repo Standards require to be present. A snapshot starting point; regenerate with `veritas claim init` once the Repo Map is customized."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "veritas-governance.githook-pre-push",
|
|
89
|
+
"path": "assets/starter-hooks/githooks/pre-push",
|
|
90
|
+
"target": ".githooks/pre-push",
|
|
91
|
+
"description": "Governance pre-push git hook (from `veritas setup repo-hooks`): runs `npm run --if-present prepush` before a push. Static template. Landed non-executable — see \"Provisioning the governance hooks\" for the chmod + core.hooksPath activation a file copy cannot perform."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "veritas-governance.githook-post-commit",
|
|
95
|
+
"path": "assets/starter-hooks/githooks/post-commit",
|
|
96
|
+
"target": ".githooks/post-commit",
|
|
97
|
+
"description": "Governance post-commit git hook (from `veritas setup repo-hooks`): runs `veritas readiness --changed-from HEAD~1 --changed-to HEAD` after each commit. Static template. Landed non-executable — see \"Provisioning the governance hooks\" for activation."
|
|
98
|
+
}
|
|
34
99
|
]
|
|
35
100
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "consult-standards"
|
|
3
|
+
description: "Get just-in-time Veritas governance guidance for a file or work area before editing it: run `veritas explain --file <path>` (or `--work-area <id>`) to see the governance excerpt, the Repo Standards rules that apply, their do/don't/examples, and the latest recorded surface status — then edit within those rules. Use before changing a governed repo's files, or when you want to know what standards apply to a path. Pull-based guidance; it does not block (the PreToolUse hook is the enforcement gate)."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Consult Standards
|
|
7
|
+
|
|
8
|
+
Before you edit a file in a Veritas-governed repo, ask Veritas what applies to it. `veritas
|
|
9
|
+
explain` projects the repo's governance excerpt + the Repo Standards rules matching that file (or
|
|
10
|
+
work area) + their latest surface status into one just-in-time briefing — so you edit *within* the
|
|
11
|
+
rules instead of discovering a violation only when the PreToolUse hook blocks the write.
|
|
12
|
+
|
|
13
|
+
**This skill wraps the `veritas` CLI. It reimplements no rule evaluation** — `veritas explain`
|
|
14
|
+
does the matching and projection; the skill only tells you when and how to ask.
|
|
15
|
+
|
|
16
|
+
## When to use this
|
|
17
|
+
|
|
18
|
+
- **Before editing** a file in a repo that has a `.veritas/` governance config — especially a
|
|
19
|
+
file under a governed work area, or one you haven't touched before.
|
|
20
|
+
- **When you want to know what standards apply** to a path or area without reading every rule in
|
|
21
|
+
`.veritas/repo-standards/` yourself.
|
|
22
|
+
- Not a gate: this is **pull-based** guidance you invoke. Enforcement is separate and automatic —
|
|
23
|
+
the Veritas PreToolUse hook (engine-side; installed via the kit's governance hooks) evaluates
|
|
24
|
+
and can *block* a non-conforming write whether or not you consulted first. Consulting first
|
|
25
|
+
means you shape the edit to pass, rather than getting blocked and retrying.
|
|
26
|
+
|
|
27
|
+
## How to consult
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# For a specific file you're about to change:
|
|
31
|
+
veritas explain --file src/path/to/file.ts
|
|
32
|
+
|
|
33
|
+
# For a whole work area (a Repo Map graph node id):
|
|
34
|
+
veritas explain --work-area <work-area-id>
|
|
35
|
+
|
|
36
|
+
# Or pass a bare selector (auto-classified as a rule id, a file path if it contains '/', or a work-area token):
|
|
37
|
+
veritas explain src/path/to/file.ts
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`veritas explain` prints a **`Veritas JIT Context`** briefing:
|
|
41
|
+
|
|
42
|
+
- **`Governance:`** — the leading lines of `.veritas/GOVERNANCE.md` (the repo's terse governance rules).
|
|
43
|
+
- One block per **matching rule**: `Rule` / `Kind` / `Enforcement Level` (`Require` / `Guide` / …) /
|
|
44
|
+
`Summary` / `Do` / `Do not` / `Good` / `Bad` / `Context`.
|
|
45
|
+
- **`Surface status:`** — the latest recorded status for that rule from the evidence artifacts
|
|
46
|
+
(e.g. `verified`), plus any `Surface fault:` transparency-gap lines.
|
|
47
|
+
|
|
48
|
+
Read the matching rules, honor their `Do`/`Do not`, and keep the change inside the work area's
|
|
49
|
+
guidance. `No matching requirement found.` means no additional Repo Standard applies to that path
|
|
50
|
+
— proceed normally, it is not an error.
|
|
51
|
+
|
|
52
|
+
## Source of truth
|
|
53
|
+
|
|
54
|
+
`veritas explain` is a *projection* of the repo's own governance config. When you want the raw
|
|
55
|
+
standards rather than the filtered view, read them directly — they are the source `explain` reads:
|
|
56
|
+
|
|
57
|
+
- `.veritas/GOVERNANCE.md` — the terse agent-facing governance rules.
|
|
58
|
+
- `.veritas/repo-standards/*.json` — the Repo Standards (each rule's `summary` / `mustDo` /
|
|
59
|
+
`mustNotDo` / `exampleGood` / `exampleBad` / `contextLinks`).
|
|
60
|
+
- `.veritas/repo-map.json` — the work-area graph `--work-area` selects against.
|
|
61
|
+
|
|
62
|
+
## Contract
|
|
63
|
+
|
|
64
|
+
- **Read-only advisory.** This skill runs `veritas explain`, which reads config and evidence and
|
|
65
|
+
writes nothing. It never gates, never blocks, never attaches evidence, and has no pass/fail
|
|
66
|
+
verdict — it surfaces guidance, full stop. Enforcement stays the PreToolUse hook (engine-side).
|
|
67
|
+
- **No MCP server.** Just-in-time guidance here is agent-invoked CLI (`veritas explain`), not a
|
|
68
|
+
standing MCP service. Per the flow-agents MCP posture (ADR 0011), MCP never carries the gate and
|
|
69
|
+
enforcement stays hooks; this skill is the deliberate agent-pull replacement for a guidance
|
|
70
|
+
server, not a new server.
|
|
71
|
+
- **Wraps the engine; reimplements nothing.** All rule matching, governance projection, and
|
|
72
|
+
surface-status lookup live in `@kontourai/veritas` (`veritas explain` / `src/explain.mjs`). The
|
|
73
|
+
skill adds no evaluation logic.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "standards-authoring"
|
|
3
|
+
description: "Author or update a repo's Veritas Repo Standards through the kit's standards-authoring flow: run `veritas init --explore`/`--guided` to derive a proposed starter set (project name, repo-shape-adaptive Repo Map nodes, evidence-check inference, and the AGENTS.md/CLAUDE.md governance-block splice), surface it for human approval, then `veritas init --apply` once a human-approved standards-authoring-approval trust.bundle claim satisfies the flow's human-approval gate. Use when adopting Veritas governance in a repo or re-deriving standards after its shape changes — beyond the static starter set `kit provision` scaffolds."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Standards Authoring
|
|
7
|
+
|
|
8
|
+
Derive a repo's Veritas Repo Standards, get a human to approve them, then write them — the
|
|
9
|
+
authoring UX `veritas init` provides, driven through the kit's `standards-authoring` flow so
|
|
10
|
+
the write is human-gated.
|
|
11
|
+
|
|
12
|
+
**Veritas does the derivation and the write; this skill only invokes the `veritas` CLI and
|
|
13
|
+
surfaces its recommendation for approval.** No standards evaluation, derivation, or splice
|
|
14
|
+
logic is reimplemented here (kit non-goal: never fork or reimplement Veritas).
|
|
15
|
+
|
|
16
|
+
## When to use this vs. `kit provision`
|
|
17
|
+
|
|
18
|
+
- **`flow-agents kit provision veritas-governance`** copies a *static* starter `.veritas/` set
|
|
19
|
+
(placeholder project name, generic nodes) — fastest path to a repo that runs
|
|
20
|
+
`veritas readiness`. See the kit README's "Scaffolding starter standards".
|
|
21
|
+
- **This skill** runs Veritas's *adaptive* authoring: it derives the project name, Repo Map
|
|
22
|
+
work-area nodes, and evidence-check command from the actual repo, and splices the governance
|
|
23
|
+
block into existing `AGENTS.md`/`CLAUDE.md` — the per-repo work a verbatim file copy cannot
|
|
24
|
+
do. Use it to author standards for real, or to re-derive after the repo's shape changes.
|
|
25
|
+
|
|
26
|
+
## Flow binding
|
|
27
|
+
|
|
28
|
+
This skill documents how to drive `flows/standards-authoring.flow.json` — a two-step
|
|
29
|
+
**agentless-gate** flow `propose -> apply` with one gate (the kit declares no
|
|
30
|
+
`flow_step_actions`; like `exemption-issuance`, the human produces the gate's approval bundle
|
|
31
|
+
out of band, and this skill is the operator's runbook, not a step-bound action):
|
|
32
|
+
|
|
33
|
+
- `human-approval-gate` (on `apply`) requires a **verified** `standards-authoring-approval`
|
|
34
|
+
trust.bundle claim (`subjectType: "repo-governance-change"`) before the apply write is
|
|
35
|
+
flow-sanctioned.
|
|
36
|
+
|
|
37
|
+
As with `exemption-issuance`'s `human-approval-gate`, "human-approved" is an **operating
|
|
38
|
+
convention** the gate's claim encodes, not a structural human-only guarantee — Flow's schema
|
|
39
|
+
does not distinguish a human-authored bundle from an agent-authored one (see the kit README's
|
|
40
|
+
"Human-approval evidence: what is and is not enforced"). The gate adds a named claim, a
|
|
41
|
+
documented sequence, and an audit trail on top of the same mitigation `veritas init --apply`
|
|
42
|
+
already carries (it refuses to overwrite existing standards without `--force`).
|
|
43
|
+
|
|
44
|
+
## Sequence
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# 1. PROPOSE — derive a recommendation without writing anything.
|
|
48
|
+
veritas init --explore
|
|
49
|
+
# (or `veritas init --guided --answers <answers.json>` for owner Q&A)
|
|
50
|
+
# -> writes a hash-pinned recommendation artifact (schema_version, project_name,
|
|
51
|
+
# repo_insights, artifact_payloads incl. AGENTS.md/CLAUDE.md governance blocks,
|
|
52
|
+
# artifact_hashes, recommended_repo_map/standards/authority, owner_questions,
|
|
53
|
+
# reasoning_summary, apply_command). Nothing under .veritas/ is written yet.
|
|
54
|
+
|
|
55
|
+
# 2. APPROVE — a human reviews the recommendation (its reasoning_summary and owner_questions),
|
|
56
|
+
# then authors a Hachure trust.bundle asserting the approval:
|
|
57
|
+
# claimType: "standards-authoring-approval", subjectType: "repo-governance-change",
|
|
58
|
+
# status: "verified".
|
|
59
|
+
flow init
|
|
60
|
+
flow start kits/veritas-governance/flows/standards-authoring.flow.json --run-id authoring
|
|
61
|
+
flow attach-evidence authoring --gate human-approval-gate --file approval.bundle --bundle
|
|
62
|
+
flow evaluate authoring --gate human-approval-gate --exit-code
|
|
63
|
+
# exit 0 once the approval claim is verified; exit 1 (block) otherwise.
|
|
64
|
+
|
|
65
|
+
# 3. APPLY — only after the gate passes, write the approved recommendation.
|
|
66
|
+
veritas init --apply --plan <path-to-recommendation-artifact>
|
|
67
|
+
# -> validates each artifact_hashes[path] === sha256(payload) (tamper/staleness check
|
|
68
|
+
# between propose and apply), refuses to overwrite existing starter files without
|
|
69
|
+
# --force, then writes .veritas/* and splices the governance block into the selected
|
|
70
|
+
# instruction files.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Contract
|
|
74
|
+
|
|
75
|
+
- **Wraps the `veritas` CLI; reimplements nothing.** Project-name derivation, adaptive Repo Map
|
|
76
|
+
nodes, evidence-check inference, and the governance-block splice all live inside `veritas`
|
|
77
|
+
(`veritas init` / `src/bootstrap/*` / `src/governance.mjs`). This skill invokes and surfaces;
|
|
78
|
+
it does not compute standards.
|
|
79
|
+
- **The write is human-gated by convention, not structurally.** The flow's
|
|
80
|
+
`standards-authoring-approval` claim is the sign-off record; anyone who can
|
|
81
|
+
`flow attach-evidence --bundle` a conforming claim satisfies it. Read a passing gate as "a
|
|
82
|
+
verified approval claim of the right shape was attached," not as proof a human attached it.
|
|
83
|
+
- **`veritas init --apply` is create-safe by default:** it refuses to overwrite existing
|
|
84
|
+
`.veritas/` standards without `--force`. Re-authoring an already-governed repo is therefore an
|
|
85
|
+
explicit, opt-in action — the skill never silently replaces standards.
|
|
86
|
+
- **No engine dependency, no evaluation.** Nothing here runs or reimplements `veritas readiness`;
|
|
87
|
+
that stays the `readiness-check` flow's concern.
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"ready_statuses": { "type": "array", "items": { "enum": ["todo", "ready"] } },
|
|
104
104
|
"exclude_statuses": {
|
|
105
105
|
"type": "array",
|
|
106
|
-
"items": { "enum": ["in_progress", "blocked", "review", "verification", "done"] }
|
|
106
|
+
"items": { "enum": ["triage", "in_progress", "blocked", "review", "verification", "done"] }
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|