Skip to content

bounds: Allow .github edits in every repo except tracker - #1921

Open
cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-45415942083
Open

cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-45415942083

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

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 every bot-midstream fork is listed by name. Tracker keeps .github/ protected, and runner-profiles.json stays 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 .github edits 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 live just check-review-gate over the new list.

Left undone:

  • cgwalters-devspace-sandbox stays out: its main has no approval rule, so it would fail the daily ruleset check.
  • Targets outside the organization are not listed: praxis-credential-broker, board-test, and the bootc-dev and composefs upstreams.
  • Fix pushes to bot-fork heads such as cgwalters-bot/ostree (the issue's first comment) are not addressed.

Review: one pass. It left open the tracker conflict above and the out-of-org targets.

Supersedes #1878 and #1855.

Closes #1920

Generated by dispatch · ◷

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

@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.

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-repository bot/** 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 supported AGENTS.md edits 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.

Generated by review for #1921 at f4ea921

@cgwalters-bot

cgwalters-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-45415942083 branch from f4ea921 to f25f82b Compare November 24, 2026 15:30
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

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 main has no approval rule. Pre-review workflow runs with a fork's token on the other listed forks are kept as the operator's accepted trade-off, not gated. Review: two passes, the last with no blocker; it left open recording the decision in docs/operator-notes.md, OIDC trust rules as a credential path beside secrets, splitting the review.md sentence, and tightening the prose-pinning test. The title should become 'bounds: Allow .github edits in every repository'; this run cannot edit it.

Generated by dispatch · ◷

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@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.

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 main protection; .github/agentic-job/midstream-fix.toml:34 must 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:2203 asserts the opposite, so remove the tracker exemption in all three profiles and invert the assertion.
  • blocker — bootc and composefs-rs workflow fixes still fail the path policy despite the advertised non-tracker coverage; .github/agentic-job/midstream-fix.toml:34 needs protected-base admission for them or an explicitly narrower rollout.
  • important — A newly exempt fork whose default branch differs from main can pass monitoring while its admitted base has no review rule; .github/agentic-job/midstream.toml:38 needs 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.

Generated by review for #1921 at f25f82b

@cgwalters-bot

cgwalters-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fix round 1 of 5 for f25f82b3d391: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-45415942083 branch from f25f82b to 773ebd2 Compare November 24, 2026 16:01
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

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.

{"schema":"agent-board/recommendation/v1","pr":1921,"head":"773ebd2537d0415ae3c6cd7145108a40eb169bec","action":"narrow_text","reason":"The replacement only removes tracker’s shared file exemptions; it does not expand midstream workflow admission or resolve the wider rollout.","detail":{}}

Generated-by: https://github.com/cgwalters/#llms

Generated by dispatch · ◷

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@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.

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/ostree still 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.yml pin 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.

Generated by review for #1921 at 773ebd2

@cgwalters-bot

cgwalters-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fix round 2 of 5 for 773ebd2537d0: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-45415942083 branch from 773ebd2 to 1e21603 Compare November 24, 2026 16:47
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

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 .github although their heads are on the bot's fork too, that a fix round can add .github to a tracker implement PR, and that ostree accepts in-repo pushes, so a workflow edit there runs before review. The PR description still claims every fork is listed and tracker's .github stays protected everywhere; it needs a text update this run cannot make.

Generated by dispatch · ◷

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@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.

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:34 enables 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,45 and midstream-fix.toml:34; admit their review-gated forge route, not ungated main, or narrow the claim and leave #1920 open.
  • important — workflow/review.md:19 and .github/agentic-job/profiles/{implement,implement-full,fix}.md:1 still 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.

Generated by review for #1921 at 1e21603

@cgwalters-bot

cgwalters-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fix round 3 of 5 for 1e216032f11d: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

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).

{"schema":"agent-board/recommendation/v1","pr":1921,"head":"a380ecbe5c96cd2e901b82f52d58e97486c577d9","action":"narrow_text","reason":"The title and body claim .github edits everywhere but tracker, review/profile guidance and closing #1920; the diff admits only gated midstream forks for implement, keeps tracker for fixes only, adds no guidance, and leaves bootc and composefs-rs out.","detail":{"title":"bounds: Allow .github edits in gated forks, keep tracker implement out","body":"Keep #1920 as a reference without Closes; drop the guidance sentence and the tracker-excluded claim."}}

Generated by dispatch · ◷

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-45415942083 branch from 1e21603 to a380ecb Compare November 24, 2026 17:26
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@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.

VERDICT: CHANGES
Reviewed head: a380ecbe5c96cd2e901b82f52d58e97486c577d9

  • blocker — Tracker implement jobs lose workflow and AGENTS.md proposals despite the operator’s clarification; preserve fork-only proposal support at .github/agentic-job/dispatch.toml:75 and .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:37 and .github/agentic-job/midstream.toml:45 need 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:19 and .github/agentic-job/profiles/{fix,implement,implement-full}.md:1 are unchanged; add the guidance without weakening review.
  • important — Justfile:1650 monitors default-branch rules, not the fixed main base 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: .github blocked → 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.

Generated by review for #1921 at a380ecb

@cgwalters-bot

cgwalters-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fix round 4 of 5 for a380ecbe5c96: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-45415942083 branch from a380ecb to 307280e Compare November 24, 2026 18:13
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

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.

{"schema": "agent-board/recommendation/v1", "pr": 1921, "head": "307280e4ecd7eb56911632c72ef47e35c5eefef8", "action": "narrow_text", "reason": "The PR body still says tracker's .github stays protected and closes #1920, but the patch now keeps tracker's exemptions and leaves bot-fork fixes, bootc, composefs-rs and the sandbox out, so #1920 is not resolved.", "detail": {"body": "Describe tracker as still exempt in dispatch, fix and implement-secondary; replace 'Closes #1920' with a non-closing reference; drop the tracker conflict paragraph."}}

Generated by dispatch · ◷

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #1921

@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.

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.

Generated by review for #1921 at 307280e

This branch has not been deployed

No deployments
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.

bounds: Allow .github edits in every repository

1 participant