Skip to content

fix(release): preflight candidate provenance - #180230

Merged
RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-60-unsigned-candidate-gate
Oct 29, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-60-unsigned-candidate-gate

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • validate publication-candidate provenance before qualification dispatch
  • reject missing or invalid candidate signatures
  • accept personal signatures only while the signer has maintain/admin access
  • accept GitHub web-flow only for one exact associated merge of that SHA into a canonical release branch
  • reject open same-repository PR heads and share the policy with Telegram release validation

Why

Qualification should not fan out for a candidate that cannot prove how it entered the release line. Main ancestors remain trusted by exact ancestry. Non-main candidates must prove either an authorized personal signature or GitHub's exact canonical release-branch merge; there is no unsigned fallback.

Testing

  • focused FRV and Telegram provenance suites: 145 passed
  • scripts lint
  • shell syntax and git diff --check

Closes RRI-60.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 22, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR checks publication-candidate provenance before qualification and shares the signing policy with Telegram release validation.

Example: An unsigned, non-main candidate on release/2026.10.6 is submitted for publication qualification.

  • Before: FRV can start admission and qualification without an early candidate-signature rejection.
  • After: The helper rejects the candidate before dispatch because it lacks a valid maintainer signature.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is coherent and has focused regression coverage, but synthetic transport evidence does not clear the authority-chain proof gate; retained request formats are unchanged.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators can spend qualification work on a publication candidate whose provenance should have been rejected before dispatch.
Reason: The maintainer-authored direction moves rejection to the existing dispatch boundary and keeps FRV and Telegram signing decisions consistent.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: it adds a useful, maintainer-directed release preflight that current main lacks; no discrete introduced defect was found.

Priority: P2
Reviewed head: 67f35f5ad0dc92f3f1ee078501cf485227616153

Before merge

  • Add real behavior proof - Authority-chain proof required: supplied tests run production owners with synthetic GitHub metadata and responses. Provide redacted terminal output or logs through the real helper and GitHub transport showing an authorized signed candidate proceeds while insufficient or revoked signer permission prevents qualification-ref creation and dispatch after delayed admission and retained-request resume; include changed-context rejection and Telegram admission/revalidation. The prior signer-authority rank-up remains applicable. Redact credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete authority bypass was found, but the changed release trust boundary still requires final-effect behavior proof.

Findings

None.

Tests

  • Missing end-to-end proof: Supply real GitHub transport traces for allowed and revoked authority through fresh dispatch, delayed admission, retained-request resume, changed-context rejection, and Telegram admission/revalidation; red-on-base regression results are not supplied.
Agent review details

How this fits together

Release tooling takes an exact candidate SHA and release context, checks GitHub provenance and current signer permissions, then creates a qualification ref and dispatches FRV; Telegram consumes the same provenance policy.

flowchart TD
  A[Candidate SHA and release context] --> B[FRV dispatch helper]
  B --> C[Shared provenance policy]
  D[Telegram release validation] --> C
  C --> E[GitHub signatures and permissions]
  B --> F[Qualification admission]
  F --> G[Qualification ref and FRV dispatch]
Loading

Technical review

Best possible solution:

Keep one shared provenance owner and verify its allowed and revoked-authority paths through real GitHub transport before merging.

Do we have a high-confidence way to reproduce the issue?

Current-main source shows publication qualification proceeding without this candidate-provenance preflight; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The shared policy and existing dispatch owner form a coherent fix, and the simplification review found no unnecessary parallel implementation or distinct low-value test group.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 05bc4bf5c9fc.

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authority bypass was found, but the changed release trust boundary still requires final-effect behavior proof.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit f8703ed adds scripts/release-telegram-provenance.sh:127 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8703ed51262; files: scripts/release-telegram-provenance.sh)
  • Peter Steinberger: Raw commit 66fe424 adds scripts/release-telegram-provenance.sh:130 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 66fe42459090; files: scripts/release-telegram-provenance.sh)
  • Vincent Koc: Raw commit 9324843 adds scripts/release-telegram-provenance.sh:182 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9324843d428c; files: scripts/release-telegram-provenance.sh)

PR surface

Tests +361, Other +222. Total +583 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 475 114 +361
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 332 110 +222
Total 8 807 224 +583

Review metrics

Metric Value Why it matters
Production versus test growth Production +332/-110; tests and fixtures +475/-114 Growth adds the missing FRV preflight and recovery checks while removing Telegram's separate signing policy; the added cases cover distinct signature, provenance, context, and revocation failures.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves release-operator admission with limited direct impact on deployed user runtimes.
  • merge-risk: 🚨 compatibility: The maintainer-selected policy intentionally rejects formerly accepted unsigned candidates and web-flow candidates whose exact merge association is absent.
  • merge-risk: 🚨 security-boundary: The shared policy determines which candidate code reaches qualification and credentialed Telegram validation.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Prove allowed and revoked signer authority through real GitHub transport at qualification-ref creation and dispatch, including delayed admission and retained recovery.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-22T06:33:59.916Z sha 72b950d :: needs real behavior proof before merge. :: [P1] Decode retained publication intent before deciding whether to revalidate
  • reviewed 2026-10-22T06:50:00.570Z sha d1ae4ee :: needs real behavior proof before merge. :: [P2] Check candidate permission before recording an uncertain ref write
  • reviewed 2026-10-22T07:09:37.853Z sha edce0c3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T07:17:58.288Z sha 3010971 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T03:10:10.289Z sha fa79ce145310f839f40d7141faf2c25dc0f94020 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T05:10:00.066Z sha 5f4ee8a7c4a755d7164956a37401754432416f00 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T05:45:21.842Z sha 23f6d71 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-23T06:09:32.342Z sha 67f35f5 :: needs real behavior proof before merge. :: none

Reviewed October 23, 2026, 9:51 PM ET / October 24, 2026, 01:51 UTC (Revision 17).

@RomneyDa RomneyDa changed the title fix(release): preflight candidate commit signatures fix(release): preflight candidate provenance Oct 22, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants