Repository navigation
chore(runner-policy): move historical contracts to a fixture and retire them - #705
Conversation
…re them Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 4m 16s —— View job Code review complete
SummaryNo correctness findings. I verified the core claim mechanically rather than trusting the PR description: using The test adaptations in The One thing I could not verify myself: the author's claimed |
|
Claude finished @kyle-sexton's task in 1m 57s —— View job Security review
No security issues found. This PR is a data/test refactor against
GitHub Actions workflow hardening (triggers, permissions, pin provenance) is zizmor's lane and out of scope here; nothing in this diff touches |
|
claude-security-review has reviewed this pull request through 3727879; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through 3727879; a later push is reviewed from there. |
…tup (#706) No related issue: part of the rendered-views hosted-medium rollout across provisioning (#705), standards, claude-code-plugins and dotfiles. ## Summary Adds `pages-publish`, a generic client that uploads a rendered HTML page to an operator-configured publishing endpoint, and wires it into the cloud environment setup and the shared permissions floor. Standards stays org-agnostic: every operator value comes from a setup-written config file. ## Fix - `components/cloud-environment/pages-publish`: `pages-publish <file> --visibility public|private [--id <id>]` and `--delete <id>`. Bearer PUT to the configured endpoint; tokens resolved through `vault-exec` and handed to curl on stdin, never argv. Scans the bytes first (credential shapes refuse, machine paths and hostnames force private), accepts only builder-stamped pages under the temp dir, retries once on the private host on `409 private-required`, drops `--id` when visibility changes. - Config is read only from `<passwd home>/.config/pages-publish/config` (mode 0600, owned by the user), never from run-time env, so a repository's settings `env` cannot redirect the token. - `setup.sh`: installs `pages-publish` beside `vault-exec` (fails loudly on a foreign binary), writes its config and `~/.claude/rendered-views.md` from cloud environment variables after the repo bootstrap step. - `claude-permissions.json`: `Bash(pages-publish *)`. - CI registers the new test. ## Verification - Worker-reported: `bash harness/shell/run-tests.sh components/cloud-environment/pages-publish.test.sh components/cloud-environment/setup.test.sh` exit 0; `bash components/claude-permissions/claude-permissions.test.sh` exit 0; `distribution/sync-manifest.test.sh` and `sync-manifest.sh validate` pass. Tests cover a hostile HOME/XDG_CONFIG_HOME config and assert no token value reaches curl's argv. CI on this PR is the independent run. ## Related - melodic-software/provisioning#705 (the Worker route this client calls). - Follow-up candidate: reconcile the scan's path shapes with `components/path-detection/machine-path-patterns.sh`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
#730) No related issue: retires superseded contracts after the v0.38.2 fleet repin ## Summary Every consumer outside claude-code-plugins now pins ci-workflows v0.38.2 (`cf316d1`), so the live runner policy drops the contracts of the three releases before it. Under the approved policy (standards#704, #705), `policy.json` holds only the current release's contracts; the historical entries the tests read already live in `components/runner-policy/fixtures/historical-contracts.json`. ## Fix - `components/runner-policy/policy.json`: removed the 9 reusable-workflow keys at each of `fb56986` (v0.36.0), `95732fd` (v0.38.0) and `2531d56` (v0.38.1). The keys were spliced out as text, so every other entry is byte-identical (diff is 363 deletions, no additions). - `components/runner-policy/runner-policy.test.mjs`: `LIVE_CI_WORKFLOWS_SHA` now names `cf316d12b4a14fbdb96a339b7ad00ce935a8cad4`. - `components/runner-policy/README.md`: records the retirement and drops the "stays until every consumer repins" clause from the v0.38.0 note. The v0.38.1/v0.38.2 review notes citing `2531d56` stay as history. - `components/managed-files-guard/README.md`: the "today" action pin now names `cf316d1` (v0.38.2), which both guard callers already carry. The `2531d56` mention in `components/pr-convention-policy/README.md` is admission evidence and stays. ## Verification Key counts in `approvedReusableWorkflowContracts`, before → after: `fb56986` 9 → 0, `95732fd` 9 → 0, `2531d56` 9 → 0, `cf316d1` 9 → 9 (36 → 9 total). - `npm run test:runner-policy`: 47 pass, 0 fail - `npm run lint:runner-policy`: Runner policy passed - `npm run lint:dependabot-automerge-lockstep`: PUBLISHER_ALLOWLIST at cf316d1 matches policy.json - `npm run test:dependabot-policy`: 297 pass, 0 fail - `npx --yes @biomejs/biome check components/runner-policy/policy.json`: clean - `npm run lint:md`: 0 issues in 126 files - `gh search code --owner melodic-software <sha>` for each retired SHA, with each workflow hit re-read from its default branch: every `2531d56` workflow hit is a stale index entry (0 live occurrences). Remaining hits are `.github/standards/**` synced policy copies, this component, and claude-code-plugins, which still pins `fb56986` on main until claude-code-plugins#6447 merges. ## Related - standards#704, standards#705 (live policy holds only the current release; historical contracts move to the fixture) - standards#716 - claude-code-plugins#6447 must merge first: claude-code-plugins main still pins `fb56986` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: Phase 8 step 4 of the org GitHub Actions conventions migration (finish retiring superseded runner-policy contracts).
Summary
After #704, 73 older
melodic-software/ci-workflows/*contracts stayed in the livepolicy.jsononly because tests read them as historical evidence. This moves them tocomponents/runner-policy/fixtures/historical-contracts.jsonand points those tests at the fixture, so the live policy admits only the nine v0.36.0 (fb56986) contracts consumers can pin.Fix
policy.json: 73 entries removed by text splice; nothing else changes. Live entries plus the fixture equal the previouspolicy.jsonkey for key and value for value.runner-policy.test.mjsandrepin-policy-lockstep.test.mjs: tests that read those entries now read the fixture (or the live policy merged with it); assertions are unchanged, and tests that state "the policy contains X" also assert the renamed successor is live atfb56986. A new test checks the live policy admits none of the historical contracts.managed-files-guard/README.mdnow names thefb56986pin the guard actually uses.Verification
npm run test:runner-policy297 pass (was 296);test:dependabot-policy47;repin-policy-lockstep23;lint:runner-policyandlint:dependabot-automerge-locksteppass; biome and markdownlint clean.Related
🤖 Generated with Claude Code