Repository navigation
refactor(source-control): make the linkage-gate scope and babysit routing targets configurable - #17437
Conversation
…ting targets configurable The PR-body linkage hooks keyed their scope on a built-in workflow path, and the babysit-prs routing text named this organization's repositories. Both now come from settings with neutral defaults; this repository sets its own values in docs/conventions/source-control.yaml, so behavior here is unchanged. - linkage_gate_uses_pattern (team YAML, else userConfig; unset gates no repo), resolved by the shared hooks/pr-linkage-scope.sh through lib/yaml-subset.awk. - runner_policy_paths, org_settings_repo, review_lane_producer_repo (team YAML) for stuck-checks.md and safety.md routing. - The watch hand-off's switch-accounts option drops the org tool link. Refs: #17208 Co-authored-by: Claude Opus 5.5 <[email protected]>
…ol-org-agnostic-settings
…ithin 300 characters Refs: #17208 Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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-security-review reviewed Security review: PR #17437 (blocking only)This lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. I read the whole diff: 17 of 17 changed files. The PR moves the workflow-scope regex for the PR-linkage hooks out of the hook scripts. The regex now comes from the Finding (1, IMPORTANT, already posted): the new
Checked, no new finding:
No spend or billing change. Manifest lines (1)
critical-findings: 0 |
|
claude-review reviewed Code review: PR #17437 (blocking only)I already reviewed an earlier head of this PR, so this pass reports only blocking findings and manifest flags. I read every hunk of all 17 changed files in the full diff. Three of the four findings from the last round are fixed at this head:
Blocking
Notes
Advisory and manifest lines (3)
Verifier dropped 0 of 1 candidates. |
|
Held: claude-review flags a loosened check (with |
…he scan-loop comments With linkage_gate_uses_pattern unset the linkage hooks gate no repository, which removes a default consumers relied on, so the fragment is a major bump. The workflow-scan loop's comments on the unmatched glob, the fork-free reads, the ignored read status and the cleared buffer return above the loop in pr-linkage-scope.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ct, in hook text The gated step is whatever linkage_gate_uses_pattern matches, so the block message, the hook status messages, the hooks.json description and the README name the repository's PR-body contract step instead of one composite action. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ol-org-agnostic-settings
|
Hold lifted: the owner decided the off-when-unset default for |
Refs: #17208
Summary
The source-control plugin carried this organization's values in shipped code and skill text: the PR-body linkage hooks only ran where a workflow used one built-in composite-action path, the babysit-prs routing named this organization's runner-policy files and settings repository, its lane pointer named one reusable-workflow repository, and the watch hand-off linked an organization tool for switching accounts. Each is now a setting with a neutral default, and this repository sets its current values in
docs/conventions/source-control.yaml, so behavior here does not change.Fix
linkage_gate_uses_pattern: a POSIX ERE matched against.github/workflows/*.yml|*.yaml. The value comes from the team YAML, else the userConfig option of the same name (the existing YAML-over-userConfig rule the schema states). Unset, neither hook gates any repository. A YAML the shared parser rejects, or a pattern bash cannot compile, turns the hooks off with a note on stderr. Both hooks resolve it through one new sourced file,hooks/pr-linkage-scope.sh, which reads the YAML with builtins and runslib/yaml-subset.awkonly when the text names the key.runner_policy_paths,org_settings_repo,review_lane_producer_repo: team-YAML keys (no userConfig, per ADR 0039 for repository keys) thatstuck-checks.mdandsafety.mdroute through. Unset falls back to the repository's own CI docs and caller workflows.watch-handoff.md: the switch-accounts option on the route-start prompt drops the organization tool link. The two inlined rate-limits floor copies keep it, becausecheck-loop-lane-floor-drift.shrequires them to matchplugins/rate-limits/reference/reader-contract.mdbyte for byte; they change with the rate-limits PR.plugin.jsonuserConfig, README option rows and details, andreference/config-resolution.mddocument the four keys. This repository sets all four indocs/conventions/source-control.yaml.source-controlmajor changelog fragment: a consumer that never setslinkage_gate_uses_patternloses the linkage hooks on upgrade.pr-linkage-scope.shkeeps the workflow-scan loop's comments from the hooks it replaced: the unmatched glob, the fork-free reads, the ignoredread -d ''status and the cleared buffer.hooks.jsondescription and the README name the repository's PR-body contract step, notcheck-contract, since the gated step is whatever the pattern matches.Left out: the legacy
melodic.worktreerootread. It is generated from onelib/source thatrepo-fleet-hygienealso ships, and the file says it is deleted after 2026-12-31, so it ships with that plugin's PR. The security, trust and cost rows (merge owner gate, review venue, lane check names, owner-decisions record, free-runner regex, model-leg detection, verify-legacy-fails) are a separate PR.Verification
pr-body-linkage-gate.test.sh: 192 passed, 0 failed. New cases: the gate is off with no key anywhere and with a YAML that lacks the key, the userConfig value alone turns it on, the YAML wins over userConfig, a consumer's own pattern gates its own step, and an invalid pattern and an unparsable YAML each turn the gate off and say so.pr-linkage-mcp-gate.test.sh: 61 passed, 0 failed, including the unset, YAML-only and YAML-over-userConfig cases.pr-linkage-spawn-budget.test.sh: 21 passed, with the fixture's pattern coming from the team YAML.gh pr createbody withdoes not close #5is still blocked (exit 2), resolved from the committed YAML.check-convention-yaml.sh(20 files valid),check-loop-lane-floor-drift.sh(6 consumers match),sync-plugin-options-docs.py --check,check-changelog-fragments.sh --check,validate-plugins.sh --only source-control, and the pre-pushcheck-affectedall pass.Remaining
This pull request delivers the source-control plugin's configurable settings for #17208, apart from the rows the Left out line names. Still open under that issue:
melodic.worktreerootread, which ships withrepo-fleet-hygiene's part.Related
linkage_gate_uses_patternin their owndocs/conventions/source-control.yaml, or a user sets the userConfig value. The owner approved this off-when-unset default as a workflow gate: https://github.com/melodic-software/architecture/blob/2960e72b86b7608a4c109d8b51de31b34ff20e5c/docs/owner-decisions.md#L229🤖 Generated with Claude Code