Repository navigation
bounds: Allow .github edits in every repo except tracker - #1921
cgwalters-bot wants to merge 1 commit into
Conversation
Only tracker holds secrets, so the midstream forks whose main requires an approving review (checked by check-review-gate) may take `.github` edits in implement runs, as the first-party repositories, tracker included, already do. bootc and composefs-rs gate only their `forge` branch and cgwalters-devspace-sandbox gates nothing, so they stay out. Fix runs on the new forks stay out too: bounds cannot exempt by push destination, and apply refuses any push with `.github` exempted to a head outside the bot's fork, which would break their source-only fixes. The review task and the implement and fix profiles now say in one sentence that only tracker holds secrets. Verified with `just test` (agentic-job 0.6.16). Generated-by: https://github.com/cgwalters/#llms
There was a problem hiding this comment.
VERDICT: CHANGES — main-branch approval does not gate workflow execution on bot branches.
Reviewed head: f4ea921c8fff5412ef33ab13b1939a4f3b81e0aa
- blocker
.github/agentic-job/midstream-fix.toml:34: A fix to an in-repositorybot/**PR in bootc can now publish a push-triggered workflow to Actions-enabled CI and run with repository write permissions before review, even without stored secrets; gate execution before publishing workflow edits to those heads. - blocker
.github/agentic-job/dispatch.toml:74,fix.toml:92,implement-secondary.toml:39: Excluding tracker from the shared table also blocks previously supportedAGENTS.mdedits even in patches with no workflow changes; separate filename exemptions from.github/admission. - important
workflow/review.md:22: The blanket exception and secret claim extend beyond the named, checked targets (the inventory in README.md:191–205 checks references, not installed secrets); qualify the review/profile guidance and reconcile the contradictory ostree gate description in docs/bring-up.md:290. - important
.github/agentic-job/config-test/tests/config.rs:2190: The two lists can omit the same implement-only fork and still pass; assert intended implement coverage and an explicit denied case.
Decision diff:
- Named midstream targets:
.github/blocked → allowed (existing gh-agentic-workflows exception unchanged). - Tracker:
.github/and protected filenames exempt → blocked.
Tried: agentic-job policy --help and offline policy --allow ... on base/head with synthetic PR metadata: bootc/ostree gained .github/; tracker lost .github/ and AGENTS.md; runner-map protection remained. The README's hosted dispatch would start a real run, so no live push or workflow was tried.
f4ea921 to
f25f82b
Compare
|
Fix run report: Replaced the series with one commit that keeps tracker listed, rewords the prompt sentence as the operator asked, and leaves bootc, composefs-rs and cgwalters-devspace-sandbox out because their |
There was a problem hiding this comment.
VERDICT: CHANGES — The bounds do not implement the stated tracker exception or contain pre-review workflow writes.
Admitted head: f25f82b3d391a71950de292e378a7760faa247ed
- blocker — An admitted same-repository fix push can now run a changed workflow with a repository write token before review, allowing release writes outside
mainprotection;.github/agentic-job/midstream-fix.toml:34must restrict workflow changes to heads without that authority. - blocker — Tracker implement and fix runs still admit workflow edits in the one repository this PR promises to protect;
.github/agentic-job/config-test/tests/config.rs:2203asserts the opposite, so remove the tracker exemption in all three profiles and invert the assertion. - blocker —
bootcandcomposefs-rsworkflow fixes still fail the path policy despite the advertised non-tracker coverage;.github/agentic-job/midstream-fix.toml:34needs protected-base admission for them or an explicitly narrower rollout. - important — A newly exempt fork whose default branch differs from
maincan pass monitoring while its admitted base has no review rule;.github/agentic-job/midstream.toml:38needs a check of the actual admitted base (Justfile:1650).
Decision diff:
- Workflow edits in 14 additional named forks: denied → allowed when the run is otherwise admitted.
Tried: gh workflow run --help documents JSON input; no dispatch or live ruleset lookup. Offline agentic-job policy returned .github for tracker before and after, added it for ostree and bot-authored infra fixes, and left bootc blocked.
|
Fix round 1 of 5 for Generated-by: https://github.com/cgwalters/#llms |
f25f82b to
773ebd2
Compare
|
Fix run report: One independent review pass found no blocker in the replacement; the PR title and body still describe a wider rollout and should be narrowed before merge. Generated-by: https://github.com/cgwalters/#llms |
There was a problem hiding this comment.
VERDICT: CHANGES — the fork allowance is missing and tracker pin repairs regress
Reviewed head: 773ebd2537d0415ae3c6cd7145108a40eb169bec
- blocker — Implement and fix runs for admitted forks such as
cgwalters-forge/ostreestill cannot submit.github/edits (.github/agentic-job/midstream.toml:41,.github/agentic-job/midstream-fix.toml:34); add the intended vetted fork exceptions to both profiles. - blocker — A tracker release-train fix to the
review.ymlpin is now refused (.github/agentic-job/fix.toml:92,.github/release-train/config.json:38); provide a protected pin-repair path without reopening general workflow writes. - important — Tracker drops out of daily review-gate drift reporting (
Justfile:1666); monitor its default-branch gate independently of path exemptions.
Decision diff:
- Tracker workflow and default-protected filename edits: allowed → refused in implement and fix, including secondary-enabled implement’s primary patch.
- Tracker ruleset drift: reported → no longer checked by the daily job.
A direct edit to a secret-bearing tracker workflow could execute before merge review; the patch gate now rejects tracker .github/ edits, and no other exception widens.
Tried: agentic-job policy --help and offline base/head agentic-job policy for a synthetic tracker release-train fix; 0.6.16 dropped the .github exception and added AGENTS.md to the blocked list, but not README.md. Credential-free organization-policy trials could not confirm metadata; no live dispatch or apply was tried.
|
Fix round 2 of 5 for Generated-by: https://github.com/cgwalters/#llms |
773ebd2 to
1e21603
Compare
|
Fix run report: This round lists the 15 bot-midstream forks whose main passes review-gate in midstream.toml (and the five of them midstream-fix.toml targets), and keeps tracker in fix.toml's exceptions so release-train pin repairs work, which also keeps it in the daily ruleset check. Review: one pass; it left open that tracker implement runs still lose |
There was a problem hiding this comment.
VERDICT: CHANGES — the exemptions break existing midstream fixes.
Reviewed head: 1e216032f11da052e466f5bd4345752e1209d172
- blocker — Source-only fixes on existing same-repository heads (
bcvk#14,rpm-ostree#6,ostree#7) now fail before push because.github/agentic-job/midstream-fix.toml:34enables an exemption pinned apply refuses on non-bot-fork heads; scope it to verified bot-fork heads and test both routes. - blocker — Workflow edits for bootc and composefs-rs still fail under
.github/agentic-job/midstream.toml:19,45andmidstream-fix.toml:34; admit their review-gatedforgeroute, not ungatedmain, or narrow the claim and leave #1920 open. - important —
workflow/review.md:19and.github/agentic-job/profiles/{implement,implement-full,fix}.md:1still lack the requested guidance; document the actual exceptions and pre-merge CI boundary instead of promising unrestricted edits.
Decision diff:
- Tracker implement (both profiles): workflow and protected-filename exemptions → none.
- 14 added implement targets: workflow blocked → bot-fork draft allowed.
- Four added fix targets: bot-fork workflow blocked → allowed; eligible non-bot-fork fixes allowed → refused.
Worst case: edited PR CI runs before review; pinned apply disables Actions on the pushed fork, normal fork-PR jobs lack secrets and write tokens, and required current-head approval gates persistence on main, not CI; runner-map protection stays.
Tried: gh workflow run --help exposed dispatch flags and JSON input; no live dispatch because it starts a run. Local agentic-job policy confirmed all four fix flags flipped; public PR/branch reads confirmed the affected heads and forge versus main gates.
|
Fix round 3 of 5 for Generated-by: https://github.com/cgwalters/#llms |
|
Fix run report: I narrowed midstream-fix.toml back to gh-agentic-workflows so source-only fixes on bcvk, rpm-ostree, anaconda and ostree keep working; one review pass found no blocker, but the title and body still claim more than the diff (every repo but tracker, review/profile guidance, closing #1920 although bootc and composefs-rs stay out). |
1e21603 to
a380ecb
Compare
There was a problem hiding this comment.
VERDICT: CHANGES
Reviewed head: a380ecbe5c96cd2e901b82f52d58e97486c577d9
- blocker — Tracker implement jobs lose workflow and
AGENTS.mdproposals despite the operator’s clarification; preserve fork-only proposal support at.github/agentic-job/dispatch.toml:75and.github/agentic-job/implement-secondary.toml:39. - blocker — Ostree bot-fork fixes still reject workflows, and bootc, composefs-rs and the sandbox cannot propose them either;
.github/agentic-job/midstream-fix.toml:37and.github/agentic-job/midstream.toml:45need destination-aware exemptions and gated bases, or narrow the PR and leave #1920 open. - blocker — Agents never receive the promised secrets guidance because
workflow/review.md:19and.github/agentic-job/profiles/{fix,implement,implement-full}.md:1are unchanged; add the guidance without weakening review. - important —
Justfile:1650monitors default-branch rules, not the fixedmainbase newly exempted in.github/agentic-job/midstream.toml:45; monitor the admitted ref so changing the default cannot hide gate drift.
Decision diff:
- Tracker implement/secondary: workflow and filename exemptions → neither.
- 14 named midstream implement targets:
.githubblocked → draft proposals allowed.
Worst case: an edited workflow runs before review with fork-PR CI privileges; apply pushes only to Actions-disabled bot forks, and active main rules require fresh approval for landing. Runner-map protection remains.
Tried: agentic-job policy --help and local fix-policy comparisons confirmed unchanged tracker/ostree exemptions; organization-policy trials require authenticated HTTPS metadata. Public API reads confirmed approval rules on all 15 listed main refs. gh workflow run --help worked; documented dispatch would start hosted work and was not run.
|
Fix round 4 of 5 for Generated-by: https://github.com/cgwalters/#llms |
a380ecb to
307280e
Compare
|
Fix run report: This round restores tracker's implement exemptions, adds the secrets sentence to the review task and the profiles, and narrows the midstream change to implement runs on gated forks; one review pass found no blocker and left open the fork-head and fix-round effects on the new forks, the bring-up docs, policy coverage for ten forks, and the Justfile default-branch finding, and the description still needs narrowing. |
There was a problem hiding this comment.
VERDICT: CHANGES — the admitted diff does not deliver the stated bounds policy
Head: 307280e4ecd7eb56911632c72ef47e35c5eefef8
- blocker — Tracker still accepts workflow edits in dispatch and fix, while Ostree and the other newly exempt forks can propose but cannot fix workflow edits (
.github/agentic-job/dispatch.toml:72,fix.toml,midstream-fix.toml:37); deliver #1920 with fix admission scoped to safe heads, or retitle this as implement-only and stop closing #1920. - important — Drafts can run changed workflows in target PR CI before approval (
workflow/review.md:19); tell reviewers to check runner and token exposure rather than treating tracker-only secrets as the safety boundary. - important — The policy test iterates the fix target list, so ten newly exempt implement targets never reach the real checker (
.github/agentic-job/config-test/tests/config.rs:2242); test implement exemptions independently of fix admission.
Decision diff:
- Midstream implement permits
.github/on gh-agentic-workflows only.
- Midstream implement also permits
.github/on 14 named forks.
Worst case: a merged workflow controls that fork’s CI; apply disables Actions on the publishing fork, drafts cannot auto-merge through the pass, and effective target main rules require fresh approval.
Tried: agentic-job policy --help and a credential-free Ostree fix policy compilation: JSON showed no workflow exemption. Public metadata/rules reads confirmed all listed targets match and require fresh approval; just was unavailable. No apply or CI runs.
Only cgwalters-forge/tracker holds secrets, so a
.github/change in any other organization repository is ordinary code under the org ruleset's review (tracker#1920). The pinned agentic-job takes only names in[unprotected_files].repos, so every first-party repository but tracker and everybot-midstreamfork is listed by name. Tracker keeps.github/protected, andrunner-profiles.jsonstays protected everywhere. The review task and the fix and implement profiles now say this in one sentence.Conflict to check: cgwalters' comment on #1878 (7134748871) says to allow
.githubedits for ALL repositories. This run's brief says to exclude tracker, and I followed the brief. Because[unprotected_files]is a single table, leaving tracker out also drops its filename exemptions (AGENTS.md, README.md, ...). It also means runs can no longer edit tracker's own bounds or workflows. If tracker should stay admitted, put it back in the lists in dispatch.toml, fix.toml and implement-secondary.toml, and flip its case in the tests.Verified with
just test(agentic-job 0.6.16 on PATH, so the policy and patch-check tests ran) and the livejust check-review-gateover the new list.Left undone:
Review: one pass. It left open the tracker conflict above and the out-of-org targets.
Supersedes #1878 and #1855.
Closes #1920