Migrate pjson to requirements-strict policy#23
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: netkeep80#19
Solution summaryImplemented and pushed PR #23: #23 The PR is ready for review, working tree is clean, and latest CI is green:
What changed:
Verification run:
One implementation note: current repo-guard schema Next useful follow-ups:
This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (174.2K + 7.2M cached) input tokens, 31.2K output tokens, $5.150211 cost 🤖 Models used:
📎 Log file uploaded as Repository (36052KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
Fixes #19
Summary
repo-policy.jsonas the expanded pjsonrequirements-strictdownstream profile while repo-guard0.3.0has no schema-supported top-levelprofilefield.requirement_json_req_refplusrequirement-json-req-refs-must-resolve, so repo-guard now owns requirement JSON ID resolution.anchors.affectstoanchors.implementsandanchors.verifies.scripts/validate-requirements.js; graph-only checks remain there until repo-guard has first-class graph rules.docs/requirements-strict-profile.md.Reproduction
Before this change, a requirement JSON file could contain a valid-looking but nonexistent trace reference such as
FR-999, and repo-guard would not enforce that JSON trace reference resolution. The newexperiments/test-requirements-strict-profile.shcreates that case in a temp repo and verifies repo-guard fails it throughrequirement-json-req-refs-must-resolve.The same experiment verifies that declared
anchors.implementsandanchors.verifiesfail without configured evidence surfaces and pass once script or experiment evidence is present.Change Contract
Verification
node scripts/validate-requirements.jsnode scripts/validate-repo-guard-workflow.jsnode /tmp/repo-guard/src/repo-guard.mjs --repo-root .node /tmp/repo-guard/src/repo-guard.mjs --repo-root . --enforcement blocking check-diff --base upstream/main --head HEAD --format summarybash experiments/test-validation.shbash experiments/test-docs-headings-validation.shbash experiments/test-requirements-strict-profile.shgit diff --check upstream/main...HEAD