Skip to content

feat(distribution): sync the filing guide to every target - #1092

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/filing-guide-all-targets
Nov 22, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/filing-guide-all-targets

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: implements owner-confirmed decision Q1628 (workshop 04 alignment pass).

Summary

Q1628 requires one harness-neutral filing guide for PRs and issues to reach every agent in every org repo. #1091 put the guide (docs/standards/filing-prs-and-issues.md) in engineering-standards. That component reaches only the 10 pr-body-contract-rule targets. Nine sync targets where agents open PRs never got the guide.

Fix

  • New filing-guide component that owns only the guide destination. The manifest validator requires every destination to have exactly one owning component, so the guide moves out of engineering-standards instead of being copied.
  • engineering-standards now requires: [filing-guide], so its index row for the guide always resolves.
  • All 19 targets manage filing-guide. For the 10 engineering-standards targets nothing changes: same source file, same destination, no byte change on their next sync. The other nine get one file each.
  • Option chosen: (b), a guide-only component, not (a), widening engineering-standards. Basis:
    • knowledge-corpus, songwriting: the manifest records "takes dependabot-policy and the fleet-routed guard only (owner decision 2026-11-15)". songwriting is content-only per github-iac ADR-0006. Shipping the code-design files and the index there would override those decisions beyond what Q1628 covers. Q1628 is newer and widens them by this one file, which the manifest comment now says.
    • architecture: a decision-record repo whose roster is limited to the Dependabot copy, the guard and typos, and whose markdown lane is off.
    • pr-pipeline-sandbox: the manifest says "it has no product code or authored docs to lint".
    • agent-plugins, cursor-plugins, claude-code-proxy, agent-automations, azure-iac: code repos, where the full set would fit. Their absence comes from the roster rule ("every pr-body-contract-rule target"), not from a recorded misfit. Option (a) would still leave the four repos above without the guide, and a destination can have only one owner, so (a) plus (b) together reduces to (b). Widening engineering-standards there is a separate roster decision.
    • Dependabot-only targets (architecture, knowledge-corpus, songwriting): included. Agents open PRs in all three: architecture feat(runner-policy): close environment, secret-caller, and write-token admission gaps #168-feat(runner-policy): register the ci-workflows v0.6.0 revision #175 and songwriting feat: establish component catalog and exact distribution #83 are agent sessions, and knowledge-corpus fix: CRLF-safe typos directive, non-silent analyzer hook, accurate config pointers #77 is too (they post as kyle-sexton).
  • managed-files-guard: no new destination. Both callers' paths already list docs/standards/filing-prs-and-issues.md (feat(pr-convention-policy): generate PR template, rule and filing guide from the records #1091), so the lists are unchanged.
  • Records reconciled:
    • admission evidence for filing-guide in the pr-convention-policy README, following the pr-template precedent;
    • engineering-standards README file counts and scope;
    • the issue-body-contract README row;
    • the ADR-0008 2026-11-22 note;
    • the contract-docs.mjs header comment;
    • the target roster comments in the manifest.
  • ADR-0007 (whole-file, byte-exact) is kept: one source file, one destination, one owner.

Verification

  • distribution/sync-manifest.sh validate: "Manifest valid: 56 components, 19 targets".
  • sync-manifest.sh dest-paths:
    • --target melodic-software/songwriting lists the guide beside its three existing destinations;
    • --target melodic-software/ci-runner lists the same 12 docs/standards/ paths as before.
  • bash distribution/sync-manifest.test.sh: exit 0, 372 PASS.
  • bash harness/shell/run-tests.sh components/managed-files-guard/managed-files-guard.test.sh: 1 passed.
  • node components/pr-convention-policy/contract-docs.mjs check: committed copies match.
  • markdownlint on the four changed docs: 0 issues. biome check on contract-docs.mjs: clean.
  • None of the nine new targets has docs/standards/ (gh api .../contents/docs/standards: 404 for each), so the first sync overwrites nothing.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U

Move docs/standards/filing-prs-and-issues.md out of engineering-standards
into a new filing-guide component that every sync target manages, so the
harness-neutral guide reaches every repository where agents file pull
requests or issues. engineering-standards requires filing-guide because its
index lists the guide; existing targets see no byte change.

Implements owner-confirmed decision Q1628 (workshop 04 alignment pass).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 22, 2026 19:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T19:47:57.341530Z 1f4a77c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

claude-security-review reviewed e180ae0b65b7bb4ab0a32a8d73eac6912aeeaeb3: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #1092, incremental (1f4a77c → e180ae0)

No security issues found. This lane already reviewed an earlier head, so this review was blocking only: it reports only CRITICAL and IMPORTANT findings.

What changed since the last review

I read all four files in the incremental diff, every hunk:

  • standards/process/filing-prs-and-issues.md and the template in components/pr-convention-policy/contract-docs.mjs. Both add the same paragraph before the first section. It says the guide is the organization default, and that a repository's own PR template, issue forms or AGENTS.md win where they differ from it. The .mjs change only edits a template-literal string, so no other code behaves differently.
  • components/pr-convention-policy/contract-docs.test.mjs. Adds a test that the precedence paragraph renders before the first ## heading.
  • components/pr-convention-policy/README.md. Spells out the rollback steps for the filing-guide admission record. Prose only.

What I checked

  • Instruction surface. The new paragraph lowers the guide's precedence below each repository's own template, forms and AGENTS.md. I judged this by what happens without the old precedence:

    • The guide covers filing conventions only: PR titles, body sections, issue fields and labels. It carries no rule in a protected class, such as secrets, destructive actions, or trust or permission boundaries.
    • The sources that now win are written by the repository's maintainers, who are already trusted. None of them is text from a PR author or an outside account.
    • Nothing that enforces conventions changes. The PR body contract rule, the issue-body contract and the managed-files guard are untouched.

    So no untrusted request reaches anything it couldn't reach before. I didn't consult the protected-class list in docs/contracts/instruction-exception-register/README.md for this run; I recognized the classes by what each rule prevents.

  • Trust controls. No change to .github/actions/, the trusted-actor list, the token broker, the kill switch, merge holds, CODEOWNERS or .gitmodules.

  • Plugin manifests. None changed.

  • PR context. It contains no embedded instructions aimed at this lane.

Spend: none beyond the sync pull requests the earlier head already introduced. That draws on routine lane and Actions runs, which is not a paid charge.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 1f4a77c1fd8c0739c9701af31fa2427245df6c5f; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

claude-review reviewed e180ae0b65b7bb4ab0a32a8d73eac6912aeeaeb3: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #1092, incremental from 1f4a77c to e180ae0 (blocking only)

This lane already reviewed an earlier head of this PR, so this pass reports only blocking findings. I read every hunk of the 4 files in the incremental diff. I found nothing blocking.

What changed since the last review

  • Rollback text, components/pr-convention-policy/README.md: this resolves my earlier advisory finding. The filing-guide rollback now says to revert the admitting PR. That revert removes the component, the requires entry on engineering-standards and the 19 target entries. The text also says the nine guide-only targets keep the delivered file, because deselecting a component never deletes its files. Both guard callers already listed the guide's path before this PR (feat(pr-convention-policy): generate PR template, rule and filing guide from the records #1091), so the claim that they keep listing it holds.
  • Precedence paragraph: the generator contract-docs.mjs and its committed output standards/process/filing-prs-and-issues.md gain the same paragraph. The backticks are escaped correctly inside the template literal. The rendered text matches the committed copy byte for byte in the hunk. A repository search finds no other committed copy of the guide.
  • New test, contract-docs.test.mjs: it checks that the paragraph comes before the first ## heading, and it matches the wrapped text. It would fail if the paragraph were dropped or moved below a section.

Not verified: the author's commands (contract-docs.mjs check, the test runs) are their claims. I had no shell in this run, so I could not run them.

Closing issue: none. The PR implements owner decision Q1628 and closes no issue, so there were no acceptance criteria to check.

Other checks

  • Loosened checks: none in this diff. The prompt has no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines, so I used fail with no consumer entries and did not check the citation requirement. Loosened checks would be marked: fail (bundled default); patterns: 0.
  • Security: left to the separate security lane.
  • Plugin manifests: this diff changes none.
  • Spend: nothing in this change starts a charge.

Verifier dropped 0 of 0 candidates.

…ide rollback

The generated filing guide now says near its top that it is the
organization default and that a repository's own PR template, issue forms
or AGENTS.md win where they differ (owner decisions Q1632, Q1633). The
filing-guide admission record states the full rollback, including the
copies the nine guide-only targets keep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U
@kyle-sexton
kyle-sexton merged commit ae88883 into main Nov 22, 2026
34 checks passed
@kyle-sexton
kyle-sexton deleted the feat/filing-guide-all-targets branch November 22, 2026 21:06
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