Repository navigation
Add a requirements spec-approval page - #33
Conversation
The existing packet walk moves to ui/spec-approvals-full. ui/spec-approvals now signs each of R1–R6 and D1–D17, with the properties that discharge it, and counts requests from agent1 rather than spec-agent.
Summary of ChangesHello @gabehamilton, I'm the pr-review agent. I've reviewed this pull request — Adds a requirements-level spec approval page while moving the existing full review packet into a separate page, with shared browser code and updated filing documentation. Highlights
Changelog
Automated review by the pr-review agent (Codex CLI + GPT-5.6 Terra). |
gabehamilton
left a comment
There was a problem hiding this comment.
Code Review
The PR splits the existing full-packet review from a new requirement-by-requirement approval flow and updates its shared UI, manifests, builder, and submission guidance. The packet format and browser/CLI hash checks pass, but the new pages' default filing account no longer matches the submission script's default, so the documented default flow presents successfully filed requests as unfiled.
| <link rel="stylesheet" href="../shared/spec.css"> | ||
| </head> | ||
| <body> | ||
| <body data-packet="requirements" data-group="prefix" data-agent="agent1" data-packet-file="ui/spec-approvals/packets/requirements.json"> |
There was a problem hiding this comment.
With no APPROVAL_AGENT_ACCOUNT_ID or --agent, the documented submit-spec-packet.sh --packet ui/spec-approvals/packets/requirements.json command still files as spec-agent.<parent> (submit-spec-packet.sh:92). This page (and the full-packet page) only scan agent1.<parent>, so every request from that default invocation is shown as unfiled and cannot be approved until the reviewer manually adds ?agent=spec-agent.<parent>. Use one common default (or have the submitter emit/configure the UI default) so the normal filing command produces reviewable items.
There was a problem hiding this comment.
Fixed in cbb1ea8. With no --agent and no APPROVAL_AGENT_ACCOUNT_ID, submit-spec-packet.sh now files as agent1., the same account both review pages scan.
The review pages expect approver1 to sign. If the connected account has a registered approver key, that is enough to enable approve, because browser wallets often omit the public key.
That matches the account both review pages scan, so the documented submit command no longer files requests the page treats as unfiled.
The full packet review moves to
ui/spec-approvals-fullwithout changing thenear-approvalpacket, so requests already filed for it still match.ui/spec-approvalsnow signs each of the 23 requirements (R1–R6, D1–D17) fromapproval_req.pl, and lists the propertiestraceability.plsays discharge that sentence. Both pages shareui/shared/spec-app.jsand count requests fromagent1.<parent>instead ofspec-agent.File the requirements packet with
scripts/near/submit-spec-packet.sh --packet ui/spec-approvals/packets/requirements.json. The script default remains the full packet.