Skip to content

Add a requirements spec-approval page - #33

Merged
gabehamilton merged 3 commits into
mainfrom
gabehamilton/spec-approval-ui-properties-build
Nov 2, 2026
Merged

gabehamilton merged 3 commits into
mainfrom
gabehamilton/spec-approval-ui-properties-build

Conversation

@gabehamilton

Copy link
Copy Markdown
Contributor

The full packet review moves to ui/spec-approvals-full without changing the near-approval packet, so requests already filed for it still match.

ui/spec-approvals now signs each of the 23 requirements (R1–R6, D1–D17) from approval_req.pl, and lists the properties traceability.pl says discharge that sentence. Both pages share ui/shared/spec-app.js and count requests from agent1.<parent> instead of spec-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.

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.
@gabehamilton

Copy link
Copy Markdown
Contributor Author

Summary of Changes

Hello @gabehamilton, I'm the pr-review agent. I've reviewed this pull request —
here's a summary to help you and other reviewers get up to speed, with the
full code review to follow.

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

  • Requirements review: Adds a 23-item requirements packet and UI configuration for individual requirement approvals.
  • Shared review UI: Moves common packet review scripts and styles into ui/shared and introduces a full-packet page.
Changelog
  • README.md
    • Documents the split review pages.
  • scripts/near/README.md
    • Documents the new packet default and requirements packet.
  • scripts/near/spec_packet.py
    • Updates packet-location documentation.
  • scripts/near/submit-spec-packet.sh
    • Defaults submission to the relocated full packet.
  • ui/approvals/ARCHITECTURE.md
    • Notes the additional shared UI consumer.
  • ui/approvals/README.md
    • Documents shared assets.
  • ui/approvals/index.html
    • Updates shared-code comment.
  • ui/shared/approval-kit.js
    • Updates shared-consumer documentation.
  • ui/shared/base.css
    • Updates shared-consumer documentation.
  • ui/shared/spec-app.js
    • Extracts and generalizes the packet review application.
  • ui/shared/spec-kit.js
    • Extracts shared packet hashing helpers.
  • ui/shared/spec.css
    • Extracts and extends shared review styling.
  • ui/spec-approvals-full/README.md
    • Adds full-packet review documentation.
  • ui/spec-approvals-full/index.html
    • Adds the full-packet review page.
  • ui/spec-approvals-full/packets/near-approval.json
    • Relocates the full packet manifest.
  • ui/spec-approvals-full/packets/near-approval.src.json
    • Relocates the full packet source manifest.
  • ui/spec-approvals-full/tools/build-packet.py
    • Adds the full-packet builder at its new location.
  • ui/spec-approvals-full/tools/check-hashes.sh
    • Adds the full-packet hash consistency check.
  • ui/spec-approvals/README.md
    • Reorients documentation to requirement-level review.
  • ui/spec-approvals/index.html
    • Configures the page for the requirements packet.
  • ui/spec-approvals/packets/requirements.json
    • Adds the generated requirements packet manifest.
  • ui/spec-approvals/packets/requirements.src.json
    • Adds the requirements packet source manifest.
  • ui/spec-approvals/tools/build-packet.py
    • Adds the requirements packet builder.

Automated review by the pr-review agent (Codex CLI + GPT-5.6 Terra).
Reply on any review thread to discuss a finding.

@gabehamilton gabehamilton left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ui/spec-approvals/index.html Outdated
<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">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@gabehamilton
gabehamilton merged commit 249f932 into main Nov 2, 2026
6 checks passed
@gabehamilton
gabehamilton deleted the gabehamilton/spec-approval-ui-properties-build branch November 2, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant