Skip to content

feat(bin): add PR provenance instructions and sanitized plan bundles - #7333

Closed
Andrew-Pynch wants to merge 10 commits into
kunchenguid:mainfrom
Andrew-Pynch:fm/fm-pr-provenance-and-plan-bundle
Closed

Andrew-Pynch wants to merge 10 commits into
kunchenguid:mainfrom
Andrew-Pynch:fm/fm-pr-provenance-and-plan-bundle

Conversation

@Andrew-Pynch

@Andrew-Pynch Andrew-Pynch commented Oct 15, 2026 •

Copy link
Copy Markdown

Summary

fm_dod_block
  direct-PR / no-mistakes -> informational StarCube Provenance
  local-only / Gerrit    -> unchanged

fm-plan-bundle.sh <task-id>
  brief.md + report.md + plan.html
    -> scrub -> reject remaining leaks -> SHA-256 + private local bundle

The StarCube condition is evaluated by the worker from .claude/skills/starcube-pr/SKILL.md presence.
No shared StarCube skill changes, bucket writes, or upload machinery.

Fork: Andrew-Pynch/firstmate.
This PR targets the shared upstream; Main applies a farm patch after merge.

Evidence

Terminal capture from the final reviewed CLI smoke:

c194e186d345ed0701038f1743e1ba7886428b7f2d3b190fb5a3668fb08f044e  brief.md
ee30d0d7a9585170b25b496997b3ba90b306dcd0a93fedb8c2028b7932238835  report.md
b3bd7adfc29a479f57d9f6f510709296ceb205a3742322ca1121575ece75dd6f  plan.html
Home: ~/project
Tailnet: <tailnet-host>
Address: <tailnet-ip>
Token: <redacted>
brief.md: OK
report.md: OK
plan.html: OK

Focused suites passed serially against the reviewed head:

bash bin/fm-test-run.sh --jobs 1 tests/fm-plan-bundle.test.sh tests/fm-dod-lib.test.sh
FM_TEST_SUMMARY total=2 failed=0 skipped_gate=0 duration_ms=7619

Fixtures cover each requested leak class, unchanged sources, digest accuracy, optional inputs, traversal/missing/empty input refusal, PEM file-and-line refusal, escaped or compound assignments, and encoded HTML quoting.
Review, documentation, and canonical changed-file lint passed.
The full local regression suite was deferred; focused acceptance evidence was approved, and broad CI has not run until the fork workflows are approved.
The temporary machine-resource pause was lifted before canonical lint ran.

The review caught and fixed partial credential redaction, ordinary-word corruption by the sk- matcher, unsupported shell/HTML credential forms, and accepting private-key-bearing inputs.
PEM private keys now refuse the bundle before copying, with only artifact name and line number in the diagnostic.

Exact rendered instruction

If this repo has `.claude/skills/starcube-pr/SKILL.md`, end the PR body with a `## Provenance` section of four bullets: `**Skills:**` names of skills whose body you loaded this run (`none recorded` if your transcript shows none), `**Worker:**` harness and model plus `Sol: reviewed` or `Sol: not run`, `**Plan:**` and `**Report:**` paths or `none`. It is informational, never a readiness gate; invent nothing and omit home paths, hosts, and secrets.

Merge Danger

Door: two-way.

Blast Radius: instructions and local artifact export.

The helper does no network I/O.
It is a bounded pattern scrubber, not a general secret-discovery service; unsupported credential forms refuse rather than publishing partial values.
Main must inspect the scrubbed artifacts before the separate Linear publication step.

Pipeline

Updates from git push no-mistakes

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @Andrew-Pynch — I read the full tip 3b3f084e against main.

Diff review: (1) PR-mode DoD blocks gain a self-contained StarCube Provenance instruction gated on .claude/skills/starcube-pr/SKILL.md in the worker repo — informational, never a readiness gate; local-only/Gerrit unchanged. (2) New fm-plan-bundle.sh scrubber — local-only, no network I/O, refuses PEM/private-key and unsupported credential forms before publishing digests. No workflow changes. I approved the fork CI and no-mistakes runs (CI 38682029364, Require no-mistakes 38682029356 / 38682492434).

Contract-class (my own read): new-default. Even though Provenance writing is skill-conditional and the plan-bundle CLI is invoke-only, the DoD text change lands in every PR-mode ship brief on every unconfigured home — that is a default guidance-posture change (same posture as docs-only new-default). Not eligible for auto-merge. VISION.md: rules 1–6 align; Scope is noted only because the always-on DoD paragraph grows the command-layer delivery contract.

Live / attestation: CLI smoke + scrub fixtures look solid; attestation matches 3b3f084e.

Nothing else needed from you right now. Once CI is green this goes to Kun as a merge-or-leave decision.

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.

2 participants