@attalabs/vinaya 0.4.3 → 0.4.5
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/aeg-root/enforcement.md +1 -1
- package/aeg-root/state-machine.md +1 -1
- package/dist/checks/bin/check-branch-topology.js +55 -33
- package/dist/checks/bin/check-brief-shape.js +61 -34
- package/dist/checks/bin/check-closes-n.js +55 -33
- package/dist/checks/bin/check-coherence.js +55 -33
- package/dist/checks/bin/check-dead-branch-push.js +55 -33
- package/dist/checks/bin/check-dispatch-readiness.js +55 -33
- package/dist/checks/bin/check-doc-coverage-push.js +232 -36
- package/dist/checks/bin/check-doc-coverage.js +232 -36
- package/dist/checks/bin/check-first-push-dispatch.js +55 -33
- package/dist/checks/bin/check-issue-assignment.js +55 -33
- package/dist/checks/bin/check-no-disk-state.js +55 -33
- package/dist/checks/bin/check-reader-resolvable-prose.js +55 -33
- package/dist/checks/bin/check-registry-gates.js +55 -33
- package/dist/checks/bin/check-review-gate.js +233 -38
- package/dist/checks/bin/check-single-plan-pr.js +55 -33
- package/dist/checks/bin/check-test-plan.js +55 -33
- package/dist/index.js +138 -42
- package/package.json +1 -1
- package/studio-standalone/.worktrees/fix/bump-0.4.4/.vinaya/projects.md +63 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/aeg-manual-flow.md +216 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/archivist-tranche-archivist.md +92 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/brief-developer.md +140 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/developer-reviewer.md +106 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/planner-brief.md +130 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/reviewer-archivist.md +96 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/contracts/tranche-archivist-planner.md +116 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/coordination.md +293 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/documentation-coherence.md +65 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/enforcement.md +161 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/glossary.md +36 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/process.md +371 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/reviewer-prompt.md +68 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/archivist.md +167 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/brief-author.md +108 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/developer.md +429 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/planner.md +285 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/principal.md +107 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/reviewer.md +130 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/security.md +121 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/roles/tranche-archivist.md +257 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/skills/aeg/SKILL.md +90 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/skills/aeg-roles/SKILL.md +58 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/skills/brief-authoring/SKILL.md +497 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/state-machine.md +656 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/templates/brief-template.md +103 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/templates/issue-rationale-template.md +35 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/templates/pr-report-template.md +68 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranche-model.md +306 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-coherence-v1.md +55 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-coherence-v1.tokens.md +13 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-consolidation.md +28 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-governance-hardening.md +80 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-governance-ui-v2.md +168 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-governance-ui-v2.tokens.md +18 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-studio-cleanup.md +37 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-ui-v1.md +176 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/aeg-ui-v1.tokens.md +17 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/herald-agents-v2.md +35 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/herald-agents-v2.tokens.md +11 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/herald-onto-engine.md +99 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/aeg-root/tranches/completed/vada-agents-v2.md +220 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/apps/vinaya/cli/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/node_modules/@attalabs/vinaya/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/bump-0.4.4/vinaya.config.json +36 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/.vinaya/projects.md +63 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/aeg-manual-flow.md +216 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/archivist-tranche-archivist.md +92 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/brief-developer.md +140 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/developer-reviewer.md +106 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/planner-brief.md +130 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/reviewer-archivist.md +96 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/contracts/tranche-archivist-planner.md +116 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/coordination.md +293 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/documentation-coherence.md +65 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/enforcement.md +161 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/glossary.md +36 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/process.md +371 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/reviewer-prompt.md +68 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/archivist.md +167 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/brief-author.md +108 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/developer.md +429 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/planner.md +285 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/principal.md +107 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/reviewer.md +130 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/security.md +121 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/roles/tranche-archivist.md +257 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/skills/aeg/SKILL.md +90 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/skills/aeg-roles/SKILL.md +58 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/skills/brief-authoring/SKILL.md +497 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/state-machine.md +656 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/templates/brief-template.md +103 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/templates/issue-rationale-template.md +35 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/templates/pr-report-template.md +68 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranche-model.md +306 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-coherence-v1.md +55 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-coherence-v1.tokens.md +13 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-consolidation.md +28 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-governance-hardening.md +80 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-governance-ui-v2.md +168 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-governance-ui-v2.tokens.md +18 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-studio-cleanup.md +37 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-ui-v1.md +176 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/aeg-ui-v1.tokens.md +17 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/herald-agents-v2.md +35 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/herald-agents-v2.tokens.md +11 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/herald-onto-engine.md +99 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/aeg-root/tranches/completed/vada-agents-v2.md +220 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/apps/vinaya/cli/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/node_modules/@attalabs/vinaya/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/check-lifecycle-phase/vinaya.config.json +36 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/.vinaya/projects.md +63 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/aeg-manual-flow.md +216 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/archivist-tranche-archivist.md +92 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/brief-developer.md +140 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/developer-reviewer.md +106 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/planner-brief.md +130 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/reviewer-archivist.md +96 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/contracts/tranche-archivist-planner.md +116 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/coordination.md +293 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/documentation-coherence.md +65 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/enforcement.md +161 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/glossary.md +36 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/process.md +371 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/reviewer-prompt.md +68 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/archivist.md +167 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/brief-author.md +108 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/developer.md +429 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/planner.md +285 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/principal.md +107 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/reviewer.md +130 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/security.md +121 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/roles/tranche-archivist.md +257 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/skills/aeg/SKILL.md +90 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/skills/aeg-roles/SKILL.md +58 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/skills/brief-authoring/SKILL.md +497 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/state-machine.md +656 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/templates/brief-template.md +103 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/templates/issue-rationale-template.md +35 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/templates/pr-report-template.md +68 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranche-model.md +306 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-coherence-v1.md +55 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-coherence-v1.tokens.md +13 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-consolidation.md +28 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-governance-hardening.md +80 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-governance-ui-v2.md +168 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-governance-ui-v2.tokens.md +18 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-studio-cleanup.md +37 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-ui-v1.md +176 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/aeg-ui-v1.tokens.md +17 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/herald-agents-v2.md +35 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/herald-agents-v2.tokens.md +11 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/herald-onto-engine.md +99 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/aeg-root/tranches/completed/vada-agents-v2.md +220 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/apps/vinaya/cli/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/node_modules/@attalabs/vinaya/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/fix/vinaya-cli-noconsole/vinaya.config.json +36 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/.vinaya/projects.md +63 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/aeg-manual-flow.md +216 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/archivist-tranche-archivist.md +92 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/brief-developer.md +140 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/developer-reviewer.md +106 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/planner-brief.md +130 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/reviewer-archivist.md +96 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/contracts/tranche-archivist-planner.md +116 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/coordination.md +293 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/documentation-coherence.md +65 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/enforcement.md +161 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/glossary.md +36 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/process.md +371 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/reviewer-prompt.md +68 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/archivist.md +167 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/brief-author.md +108 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/developer.md +429 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/planner.md +285 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/principal.md +107 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/reviewer.md +130 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/security.md +121 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/roles/tranche-archivist.md +257 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/skills/aeg/SKILL.md +90 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/skills/aeg-roles/SKILL.md +58 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/skills/brief-authoring/SKILL.md +497 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/state-machine.md +656 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/templates/brief-template.md +103 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/templates/issue-rationale-template.md +35 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/templates/pr-report-template.md +68 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranche-model.md +306 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-coherence-v1.md +55 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-coherence-v1.tokens.md +13 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-consolidation.md +28 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-governance-hardening.md +80 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-governance-ui-v2.md +168 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-governance-ui-v2.tokens.md +18 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-studio-cleanup.md +37 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-ui-v1.md +176 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/aeg-ui-v1.tokens.md +17 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/herald-agents-v2.md +35 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/herald-agents-v2.tokens.md +11 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/herald-onto-engine.md +99 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/aeg-root/tranches/completed/vada-agents-v2.md +220 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/apps/vinaya/cli/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/node_modules/@attalabs/vinaya/tests/fixtures/checks/vinaya.config.json +9 -0
- package/studio-standalone/.worktrees/task/vinaya-adopter-ci-hotfix-v1/1/vinaya.config.json +36 -0
- package/studio-standalone/_node_modules/@atta/vinaya-cli/aeg-root/enforcement.md +1 -1
- package/studio-standalone/_node_modules/@atta/vinaya-cli/aeg-root/state-machine.md +1 -1
- package/studio-standalone/_node_modules/@attalabs/vinaya/aeg-root/enforcement.md +1 -1
- package/studio-standalone/_node_modules/@attalabs/vinaya/aeg-root/state-machine.md +1 -1
- package/studio-standalone/apps/vinaya/cli/aeg-root/enforcement.md +1 -1
- package/studio-standalone/apps/vinaya/cli/aeg-root/state-machine.md +1 -1
- package/studio-standalone/apps/vinaya/web/.next/BUILD_ID +1 -1
- package/studio-standalone/apps/vinaya/web/.next/build-manifest.json +3 -3
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/cli/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/config/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/(standalone)/cli/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/(standalone)/harness/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/(standalone)/state-machine/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/(with-sidebar)/[...slug]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/(with-sidebar)/reference/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/docs/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/install/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/roadmap/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/archive/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/brief/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/develop/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/overview/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/plan/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/quick/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/review/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/security/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/start/wrap-up/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/state-machine/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/the-harness/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/(site)/the-studio/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.html +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/api/coherence/route.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/backlog/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/docs/[...slug]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/docs/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/projects/[name]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/projects/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/app/studio/tranches/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/chunks/ssr/[root-of-the-server]__0kqmrho._.js +1 -1
- package/studio-standalone/apps/vinaya/web/.next/server/chunks/ssr/[root-of-the-server]__1dxaovd._.js +2 -2
- package/studio-standalone/apps/vinaya/web/.next/server/middleware-build-manifest.js +3 -3
- package/studio-standalone/apps/vinaya/web/.next/server/pages/500.html +1 -1
- /package/studio-standalone/apps/vinaya/web/.next/static/{Afs41Lu9uNQ-T6uC-tm4_ → LixrFgIixvAYndTclqOnR}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya/web/.next/static/{Afs41Lu9uNQ-T6uC-tm4_ → LixrFgIixvAYndTclqOnR}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya/web/.next/static/{Afs41Lu9uNQ-T6uC-tm4_ → LixrFgIixvAYndTclqOnR}/_ssgManifest.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
|
|
4
4
|
// src/checks/bin/check-doc-coverage.ts
|
|
5
|
-
import { execFileSync as
|
|
5
|
+
import { execFileSync as execFileSync3 } from "child_process";
|
|
6
6
|
import { existsSync, readFileSync } from "fs";
|
|
7
7
|
// ../../../packages/aeg-core/src/anchored-region.ts
|
|
8
8
|
function maskCode(body) {
|
|
@@ -1453,12 +1453,16 @@ function isCodeFile(p) {
|
|
|
1453
1453
|
var WAIVER_LABEL = label("waiver-docs");
|
|
1454
1454
|
var WAIVER_LABEL_REVIEW = label("waiver-review");
|
|
1455
1455
|
var PRINCIPAL_ALLOWLIST = ["daniboomerang"];
|
|
1456
|
+
function isPrincipal(login, principalAllowlist) {
|
|
1457
|
+
if (login === null)
|
|
1458
|
+
return false;
|
|
1459
|
+
const normalized = login.toLowerCase();
|
|
1460
|
+
return principalAllowlist.some((p) => p.toLowerCase() === normalized);
|
|
1461
|
+
}
|
|
1456
1462
|
function isWaiverLabelActorVerified(opts) {
|
|
1457
1463
|
if (!opts.labels.includes(opts.label))
|
|
1458
1464
|
return false;
|
|
1459
|
-
|
|
1460
|
-
return false;
|
|
1461
|
-
return opts.principalAllowlist.includes(opts.labelActor);
|
|
1465
|
+
return isPrincipal(opts.labelActor, opts.principalAllowlist);
|
|
1462
1466
|
}
|
|
1463
1467
|
|
|
1464
1468
|
// ../../../packages/aeg-core/src/doc-owners.ts
|
|
@@ -1646,6 +1650,27 @@ function overrideActive(opts) {
|
|
|
1646
1650
|
// ../../../packages/aeg-core/src/premise-check.ts
|
|
1647
1651
|
var ASSERTION_KINDS = new Set(["contains", "absent", "sha256"]);
|
|
1648
1652
|
|
|
1653
|
+
// ../../../packages/aeg-core/src/test-plan-section.ts
|
|
1654
|
+
var HEADING_FORM_RE = /^#{1,4}[ \t]*(?:\d+[a-z]?\.[ \t]*)?\*{0,2}Test Plan\*{0,2}[ \t]*$/im;
|
|
1655
|
+
var INLINE_FORM_RE = /^[ \t]*\*{0,2}Test Plan:?\*{0,2}/im;
|
|
1656
|
+
var NEXT_SECTION_RE = /\n(?:#{1,3}[ \t]|\*\*[A-Z][^*\n]*:\*\*)/;
|
|
1657
|
+
function locateTestPlanSection(body) {
|
|
1658
|
+
const region = anchoredRegion(body, "TEST-PLAN");
|
|
1659
|
+
if (region !== null)
|
|
1660
|
+
return { found: true, section: region };
|
|
1661
|
+
const headingMatch = HEADING_FORM_RE.exec(body);
|
|
1662
|
+
const match = headingMatch ?? INLINE_FORM_RE.exec(body);
|
|
1663
|
+
if (!match || match.index === undefined)
|
|
1664
|
+
return { found: false };
|
|
1665
|
+
const sectionBody = body.slice(match.index);
|
|
1666
|
+
const firstLineEnd = sectionBody.indexOf(`
|
|
1667
|
+
`);
|
|
1668
|
+
const searchFrom = firstLineEnd === -1 ? sectionBody.length : firstLineEnd + 1;
|
|
1669
|
+
const nextMatch = sectionBody.slice(searchFrom).match(NEXT_SECTION_RE);
|
|
1670
|
+
const sectionEnd = nextMatch ? searchFrom + (nextMatch.index ?? 0) : sectionBody.length;
|
|
1671
|
+
return { found: true, section: sectionBody.slice(0, sectionEnd) };
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1649
1674
|
// ../../../packages/aeg-core/src/brief-validation.ts
|
|
1650
1675
|
function headerRegion(prBody) {
|
|
1651
1676
|
const m = prBody.match(/^##\s/m);
|
|
@@ -1684,10 +1709,15 @@ function checkTierField(prBody, readTier) {
|
|
|
1684
1709
|
};
|
|
1685
1710
|
}
|
|
1686
1711
|
var TEST_PLAN_UNIT_TESTS_ONLY_RE = /(?:\*\*)?Test Plan(?:\*\*)?\s*:\s*(?:\*\*)?\s*unit-tests-only/i;
|
|
1712
|
+
function testPlanRegion(prBody) {
|
|
1713
|
+
const located = locateTestPlanSection(prBody);
|
|
1714
|
+
return located.found ? located.section : prBody;
|
|
1715
|
+
}
|
|
1687
1716
|
function checkTestPlan(prBody) {
|
|
1688
|
-
|
|
1717
|
+
const region = testPlanRegion(prBody);
|
|
1718
|
+
if (TEST_PLAN_UNIT_TESTS_ONLY_RE.test(region))
|
|
1689
1719
|
return { status: "pass", errors: [] };
|
|
1690
|
-
if (/\*\*\[(?:agent|principal)\]\*\*/.test(
|
|
1720
|
+
if (/\*\*\[(?:agent|principal)\]\*\*/.test(region))
|
|
1691
1721
|
return { status: "pass", errors: [] };
|
|
1692
1722
|
return {
|
|
1693
1723
|
status: "fail",
|
|
@@ -1697,9 +1727,10 @@ function checkTestPlan(prBody) {
|
|
|
1697
1727
|
};
|
|
1698
1728
|
}
|
|
1699
1729
|
function checkTestPlanExclusivity(prBody) {
|
|
1700
|
-
|
|
1730
|
+
const region = testPlanRegion(prBody);
|
|
1731
|
+
if (!TEST_PLAN_UNIT_TESTS_ONLY_RE.test(region))
|
|
1701
1732
|
return { status: "pass", errors: [] };
|
|
1702
|
-
if (/^-\s*\[[ xX]\]\s*\*{2}\[(?:agent|principal)\]\*{2}/im.test(
|
|
1733
|
+
if (/^-\s*\[[ xX]\]\s*\*{2}\[(?:agent|principal)\]\*{2}/im.test(region)) {
|
|
1703
1734
|
return {
|
|
1704
1735
|
status: "fail",
|
|
1705
1736
|
errors: [
|
|
@@ -1710,8 +1741,9 @@ function checkTestPlanExclusivity(prBody) {
|
|
|
1710
1741
|
return { status: "pass", errors: [] };
|
|
1711
1742
|
}
|
|
1712
1743
|
function checkPrincipalPlaceholder(prBody) {
|
|
1744
|
+
const region = testPlanRegion(prBody);
|
|
1713
1745
|
const lineRe = /^-\s*\[[ xX]\]\s*\*{2}\[principal\]\*{2}(.*)$/gim;
|
|
1714
|
-
for (const m of
|
|
1746
|
+
for (const m of region.matchAll(lineRe)) {
|
|
1715
1747
|
const content = m[1] ?? "";
|
|
1716
1748
|
if (/^\s*None\b/i.test(content)) {
|
|
1717
1749
|
return {
|
|
@@ -1790,6 +1822,15 @@ function checkClosesN(prBody) {
|
|
|
1790
1822
|
errors: ["brief-validation Closes #N: no `Closes #<N>` (or Fixes/Resolves) reference found in the PR body."]
|
|
1791
1823
|
};
|
|
1792
1824
|
}
|
|
1825
|
+
var BRIEF_SHAPE_MARKERS = [checkSurfaceMap, checkDocUpdateList, checkStopConditions, checkAutonomyClause];
|
|
1826
|
+
var TASK_BRANCH_PATTERN = /^task\/[^/]+\/[^/]+$/;
|
|
1827
|
+
function isTaskBranch(branch) {
|
|
1828
|
+
return TASK_BRANCH_PATTERN.test(branch);
|
|
1829
|
+
}
|
|
1830
|
+
function isBriefShaped(prBody) {
|
|
1831
|
+
const stripped = stripCode(prBody);
|
|
1832
|
+
return BRIEF_SHAPE_MARKERS.filter((check) => check(stripped).status === "pass").length >= 2;
|
|
1833
|
+
}
|
|
1793
1834
|
function checkBriefSections(prBody, readTier, options = {}) {
|
|
1794
1835
|
const { requireClosesN = true } = options;
|
|
1795
1836
|
const results = [
|
|
@@ -2159,11 +2200,12 @@ function isReviewGateExemptBranch(branch) {
|
|
|
2159
2200
|
return branch.startsWith("plan/");
|
|
2160
2201
|
}
|
|
2161
2202
|
function checkReviewGate(input) {
|
|
2203
|
+
const principalAllowlist = input.principalAllowlist ?? PRINCIPAL_ALLOWLIST;
|
|
2162
2204
|
const waived = isWaiverLabelActorVerified({
|
|
2163
2205
|
label: WAIVER_LABEL_REVIEW,
|
|
2164
2206
|
labels: input.labels,
|
|
2165
2207
|
labelActor: input.waiverLabelActor,
|
|
2166
|
-
principalAllowlist
|
|
2208
|
+
principalAllowlist
|
|
2167
2209
|
});
|
|
2168
2210
|
if (waived) {
|
|
2169
2211
|
return {
|
|
@@ -2172,8 +2214,8 @@ function checkReviewGate(input) {
|
|
|
2172
2214
|
waived: true
|
|
2173
2215
|
};
|
|
2174
2216
|
}
|
|
2175
|
-
const verified = input.comments.filter((c) => c.author
|
|
2176
|
-
const ignoredCount = input.comments.filter((c) => (c.author
|
|
2217
|
+
const verified = input.comments.filter((c) => isPrincipal(c.author, principalAllowlist));
|
|
2218
|
+
const ignoredCount = input.comments.filter((c) => !isPrincipal(c.author, principalAllowlist) && c.body.includes("VERDICT")).length;
|
|
2177
2219
|
const verifiedBodies = verified.map((c) => c.body);
|
|
2178
2220
|
const codeReview = extractCodeReviewVerdict(verifiedBodies);
|
|
2179
2221
|
const security = extractSecurityReviewVerdict(verifiedBodies);
|
|
@@ -2726,28 +2768,8 @@ function decideIssueAssignment(input) {
|
|
|
2726
2768
|
reason: `First push of \`${branch}\` — assigning Issue #${issue} to @${login} (the authenticated pusher).`
|
|
2727
2769
|
};
|
|
2728
2770
|
}
|
|
2729
|
-
// ../../../packages/aeg-core/src/test-plan-section.ts
|
|
2730
|
-
var HEADING_FORM_RE = /^#{1,4}[ \t]*(?:\d+[a-z]?\.[ \t]*)?\*{0,2}Test Plan\*{0,2}[ \t]*$/im;
|
|
2731
|
-
var INLINE_FORM_RE = /^[ \t]*\*{0,2}Test Plan:?\*{0,2}/im;
|
|
2732
|
-
var NEXT_SECTION_RE = /\n(?:#{1,3}[ \t]|\*\*[A-Z][^*\n]*:\*\*)/;
|
|
2733
|
-
function locateTestPlanSection(body) {
|
|
2734
|
-
const region = anchoredRegion(body, "TEST-PLAN");
|
|
2735
|
-
if (region !== null)
|
|
2736
|
-
return { found: true, section: region };
|
|
2737
|
-
const headingMatch = HEADING_FORM_RE.exec(body);
|
|
2738
|
-
const match = headingMatch ?? INLINE_FORM_RE.exec(body);
|
|
2739
|
-
if (!match || match.index === undefined)
|
|
2740
|
-
return { found: false };
|
|
2741
|
-
const sectionBody = body.slice(match.index);
|
|
2742
|
-
const firstLineEnd = sectionBody.indexOf(`
|
|
2743
|
-
`);
|
|
2744
|
-
const searchFrom = firstLineEnd === -1 ? sectionBody.length : firstLineEnd + 1;
|
|
2745
|
-
const nextMatch = sectionBody.slice(searchFrom).match(NEXT_SECTION_RE);
|
|
2746
|
-
const sectionEnd = nextMatch ? searchFrom + (nextMatch.index ?? 0) : sectionBody.length;
|
|
2747
|
-
return { found: true, section: sectionBody.slice(0, sectionEnd) };
|
|
2748
|
-
}
|
|
2749
2771
|
// ../../../packages/aeg-core/src/test-plan-gate.ts
|
|
2750
|
-
var
|
|
2772
|
+
var TASK_BRANCH_PATTERN2 = /^task\/[^/]+\/[^/]+$/;
|
|
2751
2773
|
function evaluateTestPlanGate(body, branch) {
|
|
2752
2774
|
if (!body) {
|
|
2753
2775
|
return {
|
|
@@ -2760,7 +2782,7 @@ function evaluateTestPlanGate(body, branch) {
|
|
|
2760
2782
|
}
|
|
2761
2783
|
const located = locateTestPlanSection(body);
|
|
2762
2784
|
if (!located.found) {
|
|
2763
|
-
if (
|
|
2785
|
+
if (TASK_BRANCH_PATTERN2.test(branch)) {
|
|
2764
2786
|
return {
|
|
2765
2787
|
verdict: "fail",
|
|
2766
2788
|
messages: [
|
|
@@ -2817,11 +2839,183 @@ function emitCheckError(error) {
|
|
|
2817
2839
|
`);
|
|
2818
2840
|
}
|
|
2819
2841
|
|
|
2842
|
+
// src/lib/config.ts
|
|
2843
|
+
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
2844
|
+
import { homedir } from "node:os";
|
|
2845
|
+
import { dirname, join } from "node:path";
|
|
2846
|
+
import { z } from "zod";
|
|
2847
|
+
var EnvEntrySchema = z.union([
|
|
2848
|
+
z.literal(true),
|
|
2849
|
+
z.object({ optional: z.literal(true) }),
|
|
2850
|
+
z.object({ anyOf: z.array(z.string()).min(2) }),
|
|
2851
|
+
z.string()
|
|
2852
|
+
]);
|
|
2853
|
+
var CheckEntrySchema = z.object({
|
|
2854
|
+
run: z.string(),
|
|
2855
|
+
scope: z.enum(["diff", "full"]),
|
|
2856
|
+
include: z.array(z.string()).optional(),
|
|
2857
|
+
args: z.array(z.string()).optional(),
|
|
2858
|
+
timeoutMs: z.number().optional(),
|
|
2859
|
+
env: z.record(z.string(), EnvEntrySchema).optional(),
|
|
2860
|
+
requiresOpenPr: z.boolean().optional()
|
|
2861
|
+
}).superRefine((entry2, ctx) => {
|
|
2862
|
+
if (!entry2.env)
|
|
2863
|
+
return;
|
|
2864
|
+
for (const [key, value] of Object.entries(entry2.env)) {
|
|
2865
|
+
if (typeof value !== "object" || value === null || !("anyOf" in value))
|
|
2866
|
+
continue;
|
|
2867
|
+
const members = value.anyOf;
|
|
2868
|
+
if (new Set(members).size !== members.length) {
|
|
2869
|
+
ctx.addIssue({
|
|
2870
|
+
code: z.ZodIssueCode.custom,
|
|
2871
|
+
message: `env.${key}.anyOf has duplicate members`,
|
|
2872
|
+
path: ["env", key, "anyOf"]
|
|
2873
|
+
});
|
|
2874
|
+
}
|
|
2875
|
+
if (!members.includes(key)) {
|
|
2876
|
+
ctx.addIssue({
|
|
2877
|
+
code: z.ZodIssueCode.custom,
|
|
2878
|
+
message: `env.${key}.anyOf must include "${key}" itself as a member`,
|
|
2879
|
+
path: ["env", key, "anyOf"]
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
});
|
|
2884
|
+
var BRIEF_BUILTINS = [
|
|
2885
|
+
"tier",
|
|
2886
|
+
"testPlan",
|
|
2887
|
+
"testPlanExclusivity",
|
|
2888
|
+
"principalPlaceholder",
|
|
2889
|
+
"surfaceMap",
|
|
2890
|
+
"docUpdateList",
|
|
2891
|
+
"worktreeStep0",
|
|
2892
|
+
"stopConditions",
|
|
2893
|
+
"autonomyClause",
|
|
2894
|
+
"project",
|
|
2895
|
+
"for",
|
|
2896
|
+
"closesN",
|
|
2897
|
+
"premiseCoverage",
|
|
2898
|
+
"issueRationale"
|
|
2899
|
+
];
|
|
2900
|
+
var BriefSectionSchema = z.union([
|
|
2901
|
+
z.object({ builtin: z.enum(BRIEF_BUILTINS) }),
|
|
2902
|
+
z.object({ heading: z.string().min(1), name: z.string().optional() }),
|
|
2903
|
+
z.object({ field: z.string().min(1), name: z.string().optional() }),
|
|
2904
|
+
z.object({ phrase: z.string().min(1), name: z.string().optional() })
|
|
2905
|
+
]);
|
|
2906
|
+
var BriefSchemaSchema = z.object({
|
|
2907
|
+
pr: z.object({ sections: z.array(BriefSectionSchema) }).optional(),
|
|
2908
|
+
issue: z.object({ sections: z.array(BriefSectionSchema) }).optional()
|
|
2909
|
+
});
|
|
2910
|
+
function isSafeRepoRelPath(p) {
|
|
2911
|
+
if (p.length === 0)
|
|
2912
|
+
return false;
|
|
2913
|
+
if (p.startsWith("/") || /^[a-zA-Z]:[\\/]/.test(p))
|
|
2914
|
+
return false;
|
|
2915
|
+
return p.split(/[\\/]/).every((seg) => seg !== ".." && seg !== "");
|
|
2916
|
+
}
|
|
2917
|
+
var SafeRepoRelPath = z.string().refine(isSafeRepoRelPath, {
|
|
2918
|
+
message: "must be a repo-root-relative path with no `..` segment or absolute root"
|
|
2919
|
+
});
|
|
2920
|
+
var ManagedBlockRecordSchema = z.object({
|
|
2921
|
+
path: SafeRepoRelPath,
|
|
2922
|
+
marker: z.string(),
|
|
2923
|
+
comment: z.enum(["hash", "html"])
|
|
2924
|
+
});
|
|
2925
|
+
var ManagedManifestSchema = z.object({
|
|
2926
|
+
version: z.number().int().positive(),
|
|
2927
|
+
files: z.array(SafeRepoRelPath),
|
|
2928
|
+
blocks: z.array(ManagedBlockRecordSchema),
|
|
2929
|
+
labels: z.array(z.string())
|
|
2930
|
+
});
|
|
2931
|
+
var VinayaConfigSchema = z.object({
|
|
2932
|
+
rings: z.object({
|
|
2933
|
+
ring1_forgeWriteInterception: z.boolean(),
|
|
2934
|
+
ring2_asyncAudits: z.boolean()
|
|
2935
|
+
}).optional(),
|
|
2936
|
+
checks: z.record(z.string(), CheckEntrySchema).optional(),
|
|
2937
|
+
briefSchema: BriefSchemaSchema.optional(),
|
|
2938
|
+
managed: ManagedManifestSchema.optional(),
|
|
2939
|
+
principals: z.array(z.string()).min(1).optional()
|
|
2940
|
+
});
|
|
2941
|
+
var GLOBAL_VINAYA_HOME = join(homedir(), ".vinaya");
|
|
2942
|
+
var GLOBAL_CONFIG_PATH = join(GLOBAL_VINAYA_HOME, "config.json");
|
|
2943
|
+
var LOCAL_CONFIG_FILENAME = "vinaya.config.json";
|
|
2944
|
+
function resolvePrincipalAllowlist(config) {
|
|
2945
|
+
return config?.principals ?? PRINCIPAL_ALLOWLIST;
|
|
2946
|
+
}
|
|
2947
|
+
function trustAnchorRepo() {
|
|
2948
|
+
const wellFormed = (slug) => /^[^/\s]+\/[^/\s]+$/.test(slug) ? slug : null;
|
|
2949
|
+
const fromRunner = process.env.GITHUB_REPOSITORY?.trim();
|
|
2950
|
+
if (fromRunner) {
|
|
2951
|
+
const validated = wellFormed(fromRunner);
|
|
2952
|
+
if (validated)
|
|
2953
|
+
return validated;
|
|
2954
|
+
}
|
|
2955
|
+
try {
|
|
2956
|
+
const url = execFileSync2("git", ["remote", "get-url", "origin"], {
|
|
2957
|
+
encoding: "utf-8",
|
|
2958
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
2959
|
+
}).trim();
|
|
2960
|
+
const m = url.match(/github\.com[:/]([^/]+)\/(.+?)(?:\.git)?\/?$/);
|
|
2961
|
+
return m?.[1] && m[2] ? wellFormed(`${m[1]}/${m[2]}`) : null;
|
|
2962
|
+
} catch {
|
|
2963
|
+
return null;
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
function ghFetchTrustAnchorConfig() {
|
|
2967
|
+
const repo = trustAnchorRepo();
|
|
2968
|
+
if (!repo)
|
|
2969
|
+
throw new Error("could not resolve repo identity for the trust-anchor read");
|
|
2970
|
+
return execFileSync2("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], {
|
|
2971
|
+
encoding: "utf-8",
|
|
2972
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
function firstLine(err) {
|
|
2976
|
+
return err?.message?.split(`
|
|
2977
|
+
`)[0] ?? "unknown error";
|
|
2978
|
+
}
|
|
2979
|
+
function isMissingFileError(err) {
|
|
2980
|
+
const stderr = err?.stderr;
|
|
2981
|
+
const haystack = [
|
|
2982
|
+
err?.message ?? "",
|
|
2983
|
+
typeof stderr === "string" ? stderr : stderr?.toString() ?? ""
|
|
2984
|
+
].join(`
|
|
2985
|
+
`);
|
|
2986
|
+
return /\b404\b|not found/i.test(haystack);
|
|
2987
|
+
}
|
|
2988
|
+
function loadTrustAnchorConfig(fetcher = ghFetchTrustAnchorConfig) {
|
|
2989
|
+
const warn = (why) => process.stdout.write(`⚠ could not read \`principals\` from the default branch (${why}) — falling back to vinaya's built-in principal allowlist.
|
|
2990
|
+
`);
|
|
2991
|
+
let base64;
|
|
2992
|
+
try {
|
|
2993
|
+
base64 = fetcher().trim();
|
|
2994
|
+
} catch (err) {
|
|
2995
|
+
if (!isMissingFileError(err))
|
|
2996
|
+
warn(firstLine(err));
|
|
2997
|
+
return null;
|
|
2998
|
+
}
|
|
2999
|
+
if (!base64)
|
|
3000
|
+
return null;
|
|
3001
|
+
try {
|
|
3002
|
+
const raw = Buffer.from(base64, "base64").toString("utf-8");
|
|
3003
|
+
const parsed = VinayaConfigSchema.safeParse(JSON.parse(raw));
|
|
3004
|
+
if (parsed.success)
|
|
3005
|
+
return parsed.data;
|
|
3006
|
+
warn("it did not satisfy the config schema");
|
|
3007
|
+
return null;
|
|
3008
|
+
} catch {
|
|
3009
|
+
warn("it was not readable as JSON");
|
|
3010
|
+
return null;
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
|
|
2820
3014
|
// src/checks/bin/check-doc-coverage.ts
|
|
2821
3015
|
var CHECK_NAME = "doc-coverage";
|
|
2822
3016
|
function git(args) {
|
|
2823
3017
|
try {
|
|
2824
|
-
return
|
|
3018
|
+
return execFileSync3("git", args, { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim();
|
|
2825
3019
|
} catch {
|
|
2826
3020
|
return "";
|
|
2827
3021
|
}
|
|
@@ -2844,11 +3038,13 @@ function resolvePrBody() {
|
|
|
2844
3038
|
}
|
|
2845
3039
|
function waiverActiveFromEnv() {
|
|
2846
3040
|
const labels = (process.env.PR_LABELS || "").split(",").map((s) => s.trim()).filter(Boolean);
|
|
3041
|
+
if (!labels.includes(WAIVER_LABEL))
|
|
3042
|
+
return false;
|
|
2847
3043
|
return isWaiverLabelActorVerified({
|
|
2848
3044
|
label: WAIVER_LABEL,
|
|
2849
3045
|
labels,
|
|
2850
3046
|
labelActor: process.env.WAIVER_LABEL_ACTOR || null,
|
|
2851
|
-
principalAllowlist:
|
|
3047
|
+
principalAllowlist: resolvePrincipalAllowlist(loadTrustAnchorConfig())
|
|
2852
3048
|
});
|
|
2853
3049
|
}
|
|
2854
3050
|
function main() {
|
|
@@ -1451,12 +1451,16 @@ function isCodeFile(p) {
|
|
|
1451
1451
|
var WAIVER_LABEL = label("waiver-docs");
|
|
1452
1452
|
var WAIVER_LABEL_REVIEW = label("waiver-review");
|
|
1453
1453
|
var PRINCIPAL_ALLOWLIST = ["daniboomerang"];
|
|
1454
|
+
function isPrincipal(login, principalAllowlist) {
|
|
1455
|
+
if (login === null)
|
|
1456
|
+
return false;
|
|
1457
|
+
const normalized = login.toLowerCase();
|
|
1458
|
+
return principalAllowlist.some((p) => p.toLowerCase() === normalized);
|
|
1459
|
+
}
|
|
1454
1460
|
function isWaiverLabelActorVerified(opts) {
|
|
1455
1461
|
if (!opts.labels.includes(opts.label))
|
|
1456
1462
|
return false;
|
|
1457
|
-
|
|
1458
|
-
return false;
|
|
1459
|
-
return opts.principalAllowlist.includes(opts.labelActor);
|
|
1463
|
+
return isPrincipal(opts.labelActor, opts.principalAllowlist);
|
|
1460
1464
|
}
|
|
1461
1465
|
|
|
1462
1466
|
// ../../../packages/aeg-core/src/doc-owners.ts
|
|
@@ -1644,6 +1648,27 @@ function overrideActive(opts) {
|
|
|
1644
1648
|
// ../../../packages/aeg-core/src/premise-check.ts
|
|
1645
1649
|
var ASSERTION_KINDS = new Set(["contains", "absent", "sha256"]);
|
|
1646
1650
|
|
|
1651
|
+
// ../../../packages/aeg-core/src/test-plan-section.ts
|
|
1652
|
+
var HEADING_FORM_RE = /^#{1,4}[ \t]*(?:\d+[a-z]?\.[ \t]*)?\*{0,2}Test Plan\*{0,2}[ \t]*$/im;
|
|
1653
|
+
var INLINE_FORM_RE = /^[ \t]*\*{0,2}Test Plan:?\*{0,2}/im;
|
|
1654
|
+
var NEXT_SECTION_RE = /\n(?:#{1,3}[ \t]|\*\*[A-Z][^*\n]*:\*\*)/;
|
|
1655
|
+
function locateTestPlanSection(body) {
|
|
1656
|
+
const region = anchoredRegion(body, "TEST-PLAN");
|
|
1657
|
+
if (region !== null)
|
|
1658
|
+
return { found: true, section: region };
|
|
1659
|
+
const headingMatch = HEADING_FORM_RE.exec(body);
|
|
1660
|
+
const match = headingMatch ?? INLINE_FORM_RE.exec(body);
|
|
1661
|
+
if (!match || match.index === undefined)
|
|
1662
|
+
return { found: false };
|
|
1663
|
+
const sectionBody = body.slice(match.index);
|
|
1664
|
+
const firstLineEnd = sectionBody.indexOf(`
|
|
1665
|
+
`);
|
|
1666
|
+
const searchFrom = firstLineEnd === -1 ? sectionBody.length : firstLineEnd + 1;
|
|
1667
|
+
const nextMatch = sectionBody.slice(searchFrom).match(NEXT_SECTION_RE);
|
|
1668
|
+
const sectionEnd = nextMatch ? searchFrom + (nextMatch.index ?? 0) : sectionBody.length;
|
|
1669
|
+
return { found: true, section: sectionBody.slice(0, sectionEnd) };
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1647
1672
|
// ../../../packages/aeg-core/src/brief-validation.ts
|
|
1648
1673
|
function headerRegion(prBody) {
|
|
1649
1674
|
const m = prBody.match(/^##\s/m);
|
|
@@ -1682,10 +1707,15 @@ function checkTierField(prBody, readTier) {
|
|
|
1682
1707
|
};
|
|
1683
1708
|
}
|
|
1684
1709
|
var TEST_PLAN_UNIT_TESTS_ONLY_RE = /(?:\*\*)?Test Plan(?:\*\*)?\s*:\s*(?:\*\*)?\s*unit-tests-only/i;
|
|
1710
|
+
function testPlanRegion(prBody) {
|
|
1711
|
+
const located = locateTestPlanSection(prBody);
|
|
1712
|
+
return located.found ? located.section : prBody;
|
|
1713
|
+
}
|
|
1685
1714
|
function checkTestPlan(prBody) {
|
|
1686
|
-
|
|
1715
|
+
const region = testPlanRegion(prBody);
|
|
1716
|
+
if (TEST_PLAN_UNIT_TESTS_ONLY_RE.test(region))
|
|
1687
1717
|
return { status: "pass", errors: [] };
|
|
1688
|
-
if (/\*\*\[(?:agent|principal)\]\*\*/.test(
|
|
1718
|
+
if (/\*\*\[(?:agent|principal)\]\*\*/.test(region))
|
|
1689
1719
|
return { status: "pass", errors: [] };
|
|
1690
1720
|
return {
|
|
1691
1721
|
status: "fail",
|
|
@@ -1695,9 +1725,10 @@ function checkTestPlan(prBody) {
|
|
|
1695
1725
|
};
|
|
1696
1726
|
}
|
|
1697
1727
|
function checkTestPlanExclusivity(prBody) {
|
|
1698
|
-
|
|
1728
|
+
const region = testPlanRegion(prBody);
|
|
1729
|
+
if (!TEST_PLAN_UNIT_TESTS_ONLY_RE.test(region))
|
|
1699
1730
|
return { status: "pass", errors: [] };
|
|
1700
|
-
if (/^-\s*\[[ xX]\]\s*\*{2}\[(?:agent|principal)\]\*{2}/im.test(
|
|
1731
|
+
if (/^-\s*\[[ xX]\]\s*\*{2}\[(?:agent|principal)\]\*{2}/im.test(region)) {
|
|
1701
1732
|
return {
|
|
1702
1733
|
status: "fail",
|
|
1703
1734
|
errors: [
|
|
@@ -1708,8 +1739,9 @@ function checkTestPlanExclusivity(prBody) {
|
|
|
1708
1739
|
return { status: "pass", errors: [] };
|
|
1709
1740
|
}
|
|
1710
1741
|
function checkPrincipalPlaceholder(prBody) {
|
|
1742
|
+
const region = testPlanRegion(prBody);
|
|
1711
1743
|
const lineRe = /^-\s*\[[ xX]\]\s*\*{2}\[principal\]\*{2}(.*)$/gim;
|
|
1712
|
-
for (const m of
|
|
1744
|
+
for (const m of region.matchAll(lineRe)) {
|
|
1713
1745
|
const content = m[1] ?? "";
|
|
1714
1746
|
if (/^\s*None\b/i.test(content)) {
|
|
1715
1747
|
return {
|
|
@@ -1788,6 +1820,15 @@ function checkClosesN(prBody) {
|
|
|
1788
1820
|
errors: ["brief-validation Closes #N: no `Closes #<N>` (or Fixes/Resolves) reference found in the PR body."]
|
|
1789
1821
|
};
|
|
1790
1822
|
}
|
|
1823
|
+
var BRIEF_SHAPE_MARKERS = [checkSurfaceMap, checkDocUpdateList, checkStopConditions, checkAutonomyClause];
|
|
1824
|
+
var TASK_BRANCH_PATTERN = /^task\/[^/]+\/[^/]+$/;
|
|
1825
|
+
function isTaskBranch(branch) {
|
|
1826
|
+
return TASK_BRANCH_PATTERN.test(branch);
|
|
1827
|
+
}
|
|
1828
|
+
function isBriefShaped(prBody) {
|
|
1829
|
+
const stripped = stripCode(prBody);
|
|
1830
|
+
return BRIEF_SHAPE_MARKERS.filter((check) => check(stripped).status === "pass").length >= 2;
|
|
1831
|
+
}
|
|
1791
1832
|
function checkBriefSections(prBody, readTier, options = {}) {
|
|
1792
1833
|
const { requireClosesN = true } = options;
|
|
1793
1834
|
const results = [
|
|
@@ -2157,11 +2198,12 @@ function isReviewGateExemptBranch(branch) {
|
|
|
2157
2198
|
return branch.startsWith("plan/");
|
|
2158
2199
|
}
|
|
2159
2200
|
function checkReviewGate(input) {
|
|
2201
|
+
const principalAllowlist = input.principalAllowlist ?? PRINCIPAL_ALLOWLIST;
|
|
2160
2202
|
const waived = isWaiverLabelActorVerified({
|
|
2161
2203
|
label: WAIVER_LABEL_REVIEW,
|
|
2162
2204
|
labels: input.labels,
|
|
2163
2205
|
labelActor: input.waiverLabelActor,
|
|
2164
|
-
principalAllowlist
|
|
2206
|
+
principalAllowlist
|
|
2165
2207
|
});
|
|
2166
2208
|
if (waived) {
|
|
2167
2209
|
return {
|
|
@@ -2170,8 +2212,8 @@ function checkReviewGate(input) {
|
|
|
2170
2212
|
waived: true
|
|
2171
2213
|
};
|
|
2172
2214
|
}
|
|
2173
|
-
const verified = input.comments.filter((c) => c.author
|
|
2174
|
-
const ignoredCount = input.comments.filter((c) => (c.author
|
|
2215
|
+
const verified = input.comments.filter((c) => isPrincipal(c.author, principalAllowlist));
|
|
2216
|
+
const ignoredCount = input.comments.filter((c) => !isPrincipal(c.author, principalAllowlist) && c.body.includes("VERDICT")).length;
|
|
2175
2217
|
const verifiedBodies = verified.map((c) => c.body);
|
|
2176
2218
|
const codeReview = extractCodeReviewVerdict(verifiedBodies);
|
|
2177
2219
|
const security = extractSecurityReviewVerdict(verifiedBodies);
|
|
@@ -2724,28 +2766,8 @@ function decideIssueAssignment(input) {
|
|
|
2724
2766
|
reason: `First push of \`${branch}\` — assigning Issue #${issue} to @${login} (the authenticated pusher).`
|
|
2725
2767
|
};
|
|
2726
2768
|
}
|
|
2727
|
-
// ../../../packages/aeg-core/src/test-plan-section.ts
|
|
2728
|
-
var HEADING_FORM_RE = /^#{1,4}[ \t]*(?:\d+[a-z]?\.[ \t]*)?\*{0,2}Test Plan\*{0,2}[ \t]*$/im;
|
|
2729
|
-
var INLINE_FORM_RE = /^[ \t]*\*{0,2}Test Plan:?\*{0,2}/im;
|
|
2730
|
-
var NEXT_SECTION_RE = /\n(?:#{1,3}[ \t]|\*\*[A-Z][^*\n]*:\*\*)/;
|
|
2731
|
-
function locateTestPlanSection(body) {
|
|
2732
|
-
const region = anchoredRegion(body, "TEST-PLAN");
|
|
2733
|
-
if (region !== null)
|
|
2734
|
-
return { found: true, section: region };
|
|
2735
|
-
const headingMatch = HEADING_FORM_RE.exec(body);
|
|
2736
|
-
const match = headingMatch ?? INLINE_FORM_RE.exec(body);
|
|
2737
|
-
if (!match || match.index === undefined)
|
|
2738
|
-
return { found: false };
|
|
2739
|
-
const sectionBody = body.slice(match.index);
|
|
2740
|
-
const firstLineEnd = sectionBody.indexOf(`
|
|
2741
|
-
`);
|
|
2742
|
-
const searchFrom = firstLineEnd === -1 ? sectionBody.length : firstLineEnd + 1;
|
|
2743
|
-
const nextMatch = sectionBody.slice(searchFrom).match(NEXT_SECTION_RE);
|
|
2744
|
-
const sectionEnd = nextMatch ? searchFrom + (nextMatch.index ?? 0) : sectionBody.length;
|
|
2745
|
-
return { found: true, section: sectionBody.slice(0, sectionEnd) };
|
|
2746
|
-
}
|
|
2747
2769
|
// ../../../packages/aeg-core/src/test-plan-gate.ts
|
|
2748
|
-
var
|
|
2770
|
+
var TASK_BRANCH_PATTERN2 = /^task\/[^/]+\/[^/]+$/;
|
|
2749
2771
|
function evaluateTestPlanGate(body, branch) {
|
|
2750
2772
|
if (!body) {
|
|
2751
2773
|
return {
|
|
@@ -2758,7 +2780,7 @@ function evaluateTestPlanGate(body, branch) {
|
|
|
2758
2780
|
}
|
|
2759
2781
|
const located = locateTestPlanSection(body);
|
|
2760
2782
|
if (!located.found) {
|
|
2761
|
-
if (
|
|
2783
|
+
if (TASK_BRANCH_PATTERN2.test(branch)) {
|
|
2762
2784
|
return {
|
|
2763
2785
|
verdict: "fail",
|
|
2764
2786
|
messages: [
|