Repository navigation
Sync SPDD spec guidance, safeguards, and evidence maps - #75453
Conversation
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one documentation evidence-provenance issue: the outcomes README presents TLC counts as verified while this PR reports that TLC could not run. The inline comment requests explicit original-run provenance and a note that this change did not rerun TLC. No other changed-line issue met the bar for an actionable review comment.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| **420 generated states, 360 distinct states, zero queued states**. Equal projected | ||
| records collapse into the same initial state, explaining the smaller state count. | ||
| These results are reproducible bounds, not a proof over arbitrary inputs. | ||
| TLC 2.19 (official v1.7.4 distribution) exhaustively checked the following finite |
There was a problem hiding this comment.
The README presents the TLC state counts and all-ten-negative-controls result as verified bounds even though this PR explicitly says the TLC check was unavailable because TLA2TOOLS_JAR was not configured; that makes the current evidence status ambiguous and can cause readers to treat stale results as newly validated.
💡 Make the provenance of the formal results explicit
Retain the counts only with their original run date/tool-output provenance, and add an explicit note that this change did not rerun TLC (or update the counts after a successful run). This keeps the implementation sync update separate from formal verification evidence.
There was a problem hiding this comment.
Updated the bounds and controls section to identify the counts and ten-control verdicts as last recorded results, state that TLC was not rerun without TLA2TOOLS_JAR, and mark verification of the current 95-case corpus pending. Commit b06dabf.
There was a problem hiding this comment.
What this change does: This PR updates the SPDD documentation with explicit model boundaries, verification instructions, implementation sync maps, safeguards, and formal-requirement links. It also adds a section index and per-row test-file references.
Should fix:
-
The Section 6 tables duplicate one test path (
specs/compiler-threat-detection-compliance/README.md:82)- What this is: Both tables repeat the same test path in every row, while the existing sentence below already maps the whole section to that file.
- Problem: A test-file move requires updating 16 identical cells plus the sentence, and the column adds no per-norm distinction.
- Fix: Remove the repeated column and keep the single section-level link, or make it one shared note.
- If we skip it: The documentation can drift while carrying 16 copies of the same fact.
Verdict: fix 1 first.
Lean: -16 lines possible.
Generated by ✂️ Ponytail Reviewer for #75453 · codex · routed: gpt56 max · ~3 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail to run again
| | T-CTR-027 | SLA breaches include `rule`, `reason`, `age_business_days`, `owner`, and `expires`. | | ||
| | T-CTR-028 | MUST-level suppressions older than 20 business days create a follow-up sync action. | | ||
| | T-CTR-029 | Expired suppressions are re-evaluated and treated as absent. | | ||
| | Test ID | Norm | Test file | |
There was a problem hiding this comment.
What this is: Both Section 6 tables repeat the same test path in every row, even though the existing sentence below already maps the whole section to that file. Problem: A test-file move now requires updating 16 identical cells plus the sentence, and the column provides no per-norm distinction. Fix: Remove the repeated column and keep the single section-level link (or make it one shared note). If we skip it: The documentation can drift while carrying 16 copies of the same fact.
There was a problem hiding this comment.
Removed the repeated test-file column from both Section 6 tables and retained one section-level test-file mapping. Commit b06dabf.
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs and /codebase-design. Requesting changes because one claim is false and one coverage statement overstates what the table covers.
📋 Key Themes & Highlights
Key Themes
- Incorrect factual claim:
specs/ledger/README.mdsays there is no Go ledger package, butpkg/workflow/ledger*.goexists. - Lost bounded-model limits: the ledger abstraction rewrite dropped several limits the TLC model depends on.
- Overstated coverage: the security summary says every numbered requirement is linked, but BP, SP, TP, and TT families are missing. SP and TT are normative.
- Lock/embedded pin drift: the
docker/login-action@v4.8.0removal leaves the embedded pin files out of sync.
Positive Highlights
- ✅ Compliance README test-name table is verified against the test functions, and the sync test still parses it.
- ✅ Work-queue Analysis Index covers all level-2 sections.
- ✅ All anchor links in the touched READMEs resolve.
- ✅ Targeted Go tests pass:
TestFormal_ComplianceReadmeNormTestNamesStaySyncedandTestActionsLockJSONFieldsAreSorted.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~11 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
|
|
||
| ## Last synced with implementation (2026-11-06) | ||
|
|
||
| - **Go:** None; this repository has no Go ledger package. |
There was a problem hiding this comment.
[/grill-with-docs] This claim is false. The repo has Go ledger code, for example pkg/workflow/ledger.go, pkg/workflow/ledger_job.go, and pkg/workflow/ledger_test.go. There is no pkg/ledger/ package, so the accurate statement is that no dedicated Go package exists and the implementation lives in pkg/workflow/. Line 34 repeats the same claim ("there is no Go ledger package to test") and needs the same correction.
@copilot please address this.
There was a problem hiding this comment.
Corrected the text: Go ledger compiler wiring and tests live under pkg/workflow/; there is no dedicated Go ledger package. The sync map now lists the relevant Go files. Commit b06dabf.
| @@ -98,18 +98,34 @@ | |||
|
|
|||
| ## Abstraction boundary | |||
There was a problem hiding this comment.
[/codebase-design] The rewritten abstraction list drops bounded-model limits that the old text stated: the primary key with one non-key field, the counter amount of one, the valid-citation requirement for notes, and the one-operation-at-a-time limit. These limits define what the TLC results cover, so removing them makes the model look broader than it is. Restore them in the list.
@copilot please address this.
There was a problem hiding this comment.
Restored the bounded details: one non-key table field, unit counter changes, valid note citations, single-operation artifacts and serialized agent requests, non-hash IDs, and unmodeled duplicate-ID collision/retry behavior. Commit b06dabf.
| ### Formal Requirements | ||
|
|
||
| The following links point to the normative requirement entries in the full | ||
| specification. Identifier ranges include every numbered requirement and suffix |
There was a problem hiding this comment.
[/grill-with-docs] The text says identifier ranges include every numbered requirement, but the table omits the BP-01 to BP-06, SP-01 to SP-06, TP-01 to TP-03, and TT-01 to TT-04 families. SP-01 to SP-06 use SHALL and TT-01 to TT-04 use MUST in security-architecture-spec.md, so readers will assume they are mapped. Add rows for these IDs, or narrow the sentence to the families that are actually listed.
@copilot please address this.
There was a problem hiding this comment.
Added requirement-map links for BP-01–BP-06, SP-01–SP-06, TP-01–TP-03, and TT-01–TT-04. Commit b06dabf.
| "version": "v4.8.0", | ||
| "sha": "8aa5831fb8d48d8f76594c7ddde61ae58019f550" | ||
| }, | ||
| "docker/metadata-action@v6.2.0": { |
There was a problem hiding this comment.
[/grill-with-docs] The PR removes the docker/login-action@v4.8.0 pin here, but the same pin remains in pkg/workflow/data/action_pins.json and pkg/actionpins/data/action_pins.json. The two embedded copies and the lock file can now disagree. Confirm the removal is intended, and if so, prune or regenerate the embedded copies in the same change so they stay in sync.
@copilot please address this.
There was a problem hiding this comment.
Confirmed the pin removal is intended and removed docker/login-action@v4.8.0 from both embedded action-pin copies to match the lock file. Commit 2338c74.
| Existing historical verification counts elsewhere in this guide are not results | ||
| for this new refinement. | ||
|
|
||
| **Safeguards:** Recovery MUST use exact authenticated terminal evidence and checked |
There was a problem hiding this comment.
[/codebase-design] This MUST paragraph sits under a section the header (lines 8–33) labels as historical. A reader cannot tell whether the safeguard applies to the current protocol or only to the old model. Add a sentence stating whether it is normative for the current design.
@copilot please address this.
There was a problem hiding this comment.
Clarified that the recovery safeguards are normative for the current Claim delivery recovery protocol, not only the historical WorkQueue.tla model. Commit b06dabf.
There was a problem hiding this comment.
🟡 Changes recommended
The documentation contains incomplete requirement and implementation maps, presents outdated verification results as current, and omits concrete limitations of the bounded model.
5 open issues
Restore concrete limits on what the bounded model establishes · New Sync map omits Go, JavaScript, and conformance boundaries · New Coverage claim is stale and 95-case verification is pending · New Sync map omits outcome evaluators and shared conformance inputs · New Requirement map omits three normative requirement groups · New
What changed in this PR
Updates gh-aw’s specification guidance and verification references to address the SPDD documentation gaps in #75452.
Changes:
- Add work-queue navigation and normative recovery and termination safeguards.
- Clarify ledger and outcome model limits, verification steps, and implementation sync maps.
- Map threat-compliance norms to tests and refresh security-summary metadata and requirement links.
| File | Description |
|---|---|
specs/work-queue/README.md |
Adds a goal/risk index and explicit recovery and termination safeguards. |
specs/security-architecture-spec-summary.md |
Updates v1.1.9 metadata and adds formal-requirement links. |
specs/outcomes/README.md |
Orders verification steps and adds bounds, control mappings, and implementation references. |
specs/ledger/README.md |
Restructures abstraction limits into requirements and safeguards; adds implementation references. |
specs/compiler-threat-detection-compliance/README.md |
Links Section 6.4 and 6.6 norms to their test file. |
.github/aw/actions-lock.json |
Removes the cached docker/login-action@v4.8.0 pin. |
Review effort: Max (auto)
| - A value MUST be understood as a canonical-JSON equality class; table rows, | ||
| counters, notes, transaction IDs, and artifacts remain bounded abstractions. |
| - **Go:** None; this repository has no Go ledger package. | ||
| - **TLA+:** `LedgerProtocol.tla`, `LedgerProtocolWitness.tla`, and the `*.cfg` | ||
| model configurations in this directory. | ||
| - **JavaScript implementation and tests:** `actions/setup/js/ledger_append.cjs`, | ||
| `ledger_replay.cjs`, `ledger_builtin.cjs`, `ledger_transactions.cjs`, | ||
| `push_ledger_changes.cjs`, `ledger_compaction.cjs`, | ||
| `ledger_protocol_model.test.cjs`, and `ledger_protocol_generated.test.cjs`. |
| | Model | Exhaustive bound | Controls | | ||
| |---|---|---| | ||
| | Baseline | 18,984 generated states, 16,272 distinct states, depth 5, zero queued states | Ten deliberate defects below check acceptance evidence, delivery/deletion, attribution, publication, and summary invariants. | | ||
| | Shared fixtures | All 77 cases; 420 generated states, 360 distinct states, zero queued states | `FixtureAgreement` checks each case's expected typed result. Equal projected records collapse into the same initial state. | |
| - **Go:** `pkg/cli/outcome_evaluation.go`, `pkg/cli/outcome_eval.go`, | ||
| `pkg/cli/outcome_eval_evidence.go`, `pkg/cli/outcome_conformance_test.go`, | ||
| and `pkg/cli/outcome_eval_formal_test.go`. |
| | RS-09–RS-11 | [§11.5 Token Validation](security-architecture-spec.md#115-token-validation) | | ||
| | RS-12–RS-13 | [§11.6 Network Enforcement](security-architecture-spec.md#116-network-enforcement) | | ||
| | RS-14–RS-15 | [§11.7 Output Validation](security-architecture-spec.md#117-output-validation) | | ||
| | RS-16–RS-22 | [§11.8 Concurrency Control](security-architecture-spec.md#118-concurrency-control) | |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 681b4d4
|
Sous-chef requested-head: 681b4d4 |
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…ec-work-plan Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |

This update addresses the SPDD gaps across work-queue, ledger, outcomes, threat-compliance, and security-architecture documentation.
TLA2TOOLS_JARwas not configured.