Repository navigation
fix: guard, script and migration follow-ups of the geectl switch; require geectl 0.3.1 - #180
Conversation
sr-status.py, incoming-requests.py and forward-check.py refused to run without GEECTL_OBS_USERNAME, although geectl can name the account it authenticates as. They now ask `geectl remote whois` when the variable is unset and refuse, naming both sources, only when neither answers. With API-key-only auth geectl carries no login and whois cannot name one, so the variable (or --user) is still needed there.
The guard resolves a _link by hand because no geectl read returns a package's expanded sources at a revision. It read every file from the link target, so a branch's own .changes (where the fix entry lives) was ignored, and an unpinned link read the target at the branch's revision number, which names nothing there; both turned a proven hand-back into an ask. The branch's own files now take precedence over the target's, an unpinned target is read at its latest, a link that patches its target is not expanded by hand at all, and a missing target file is geectl's not_found error, not any exit 3. The OBS account also falls back to `geectl remote whois` when neither BUG_GUARD_OBS_USER nor GEECTL_OBS_USERNAME is set.
A submission is gated on every judged repo/arch (Tumbleweed and Leap 16, x86_64 and aarch64, every flavor) being green, as the previous release held it. obs-wait.py exited 0 and gate.sh --obs-build recorded the build on one green build while naming the rest as still building, so a request could be filed with a Leap or aarch64 build still pending or about to fail. A judged build still building, scheduled, dirty or of older sources now keeps both pending (the wait's repeat exit, the gate's 4), naming what is already green; reds the link origin has too stay pre-existing and not judged, and QUEUED-STUCK and BLOCKED-UPSTREAM now apply whether or not something is green. obs-wait.py also wakes on the source-service-finished event instead of sleeping out the recheck interval, and names a failed geectl call's error code and context instead of echoing its raw JSON.
geectl changelog validate reads every header of the .changes (V5), and has no option to limit that to the newest entries, so an old foreign header without a time, which Factory's own check accepts, turned the gate red, and the only fix would have been rewriting an old entry, which the rules forbid. The gate now drops a V5 finding that lies in an entry older than the --entries newest and prints it as not judged; any other rule, a finding in a new entry, or a descending-order finding that points into a new entry stays red, and findings it cannot all read keep geectl's verdict.
Both swallowed geectl's stderr, so a missing geectl or a failed lookup read as an answer: rdeps.sh printed "no _builddepinfo" with exit 1 and cone-status.sh "no repository in <project> meta". They now print "UNKNOWN: geectl ... failed (exit N)" with geectl's error code and context and exit 3, which rdeps.sh gains as its no-answer code and cone-status.sh already documents as no answer. test-cone-status.sh calls its setups directly instead of through eval, and rdeps.sh gets a suite.
build-summary.sh takes its build roots from geectl's build_cache_dir (geectl config show) and reads no osc configuration or .osc/ directory any more; a grep case keeps it that way. Closes #155
CI installs a released geectl with `cargo install geectl --version`, it no longer builds one from a pinned source commit, so the error a missing binary prints pointed at a step that does not exist.
…rrors
The digits-only Source bump exemption lets a host-macro line stand as
it is in the target's spec while the change touches the bumped
archive. A numeric upload id (.../uploads/1000 -> 1001) is digits-only
too, yet can name any file at all, and so could a file the host macro
itself reads; the exemption now covers only an archive with a name.
A line reaching %{sources} or %{patches}, which name every Source and
Patch, counts as naming the bumped archive.
A failed geectl lookup now names its JSON error's code and context
instead of echoing the raw JSON.
The three fixture loops built each checkout change as a string and ran it through eval, which makes the harness guard ask whenever an agent runs the suite. Each change is now a named function the loop calls.
scripts/README.md still carried gate.sh's old usage block and prose for osc checkouts (.osc/sources baselines, osc add, osc ci); the block is now gate.sh's own header and the prose names geectl working copies. It also gains what changed in the scripts: obs-wait.py green only when every judged build is, its service-finished wake-up, the geectl error lines of cone-status.sh and rdeps.sh, the whois fallback for the OBS account, and how bug-guard.py resolves a linked source. README.md names the v3-osc branch (v3.28.x) for hosts without geectl.
gate.sh --obs-build and obs-wait.py now stay pending until every judged repo/arch is green, so the docs no longer make that the agent's own check. script-usage.md follows the scripts' new verdicts (obs-wait and --obs-build exit codes, rdeps exit 3, the whois fallback for the OBS account), changelog-rules.md says the gate ignores V5 findings in old entries, scripts/README.md names the real refile form for a fixed MINE-DECLINED, and README.md orders the ways to get geectl.
On one line with the `-x|--long` description, the note's `geectl remote whois` made check-geectl.py read that line as a geectl citation and refuse `-x|--long` as a geectl flag.
Leap's Rust is older than geectl needs, so the prebuilt release binary is the route there; cargo install stays last for hosts with a current rustc.
geectl 0.3.0 files every submit request with cleanup unless told otherwise, and OBS deletes the source package when such a request is accepted. That is what a home: branch wants, but a devel-to-Factory forward filed that way deleted the devel package itself. Until a geectl that refuses cleanup from a non-home source is the minimum, every filing, refile and forward from any source but a home: branch carries --without-cleanup, and the reasons for accepting with --no-forward now include that the default forward carries cleanup too. Maintenance incident filings need nothing: their cleanup is opt-in.
That suite no longer builds its commands with eval, and the allow-list fails on an entry nothing needs.
The skill is geectl-only now, so a host that still has only osc would stall at its first geectl call. The script does what an agent may do safely and names the rest: it checks the geectl version the usage page requires, imports the instance mapping (one run per URL when the osc config holds several logins) without ever opening that file, prints the exact login variables per instance instead of asking for secrets, and reports the changelog identity. geectl cannot adopt an osc checkout, so --checkout DIR compares one with osc's own pristine copies offline: a clean one is moved aside, never deleted, and checked out afresh; a changed one is shown and left for the user, since only they can say how its edits travel.
An agent on a host set up for osc needs to know the migration script exists before its first geectl call fails, and a package directory that still holds an osc checkout must be migrated before any edit lands in it. Hosts that cannot move yet are pointed at the last osc-based release line.
cargo install geectl needs a newer rustc than a stable distribution such as Leap ships, so offering cargo first sent those hosts into a failing build. Step (a) now lists a distribution package, then the release tarball for the host's arch, then cargo, and says when cargo cannot work here because rustc is missing or below the floor. The geectl minimum and the rustc floor are both read from the usage page's Install paragraph, so the page and the script cannot drift. Prose naming the old client as a bare word is reworded: the guard reads such text as a command and would refuse the script.
The tarball needs no Rust and the cargo build needs rustc 1.99.1, which stable distributions do not ship yet; stating the floor and the order keeps agents on such hosts off a build that cannot succeed.
A pointer to the crates.io page left the user to find the release assets themselves; the releases live at a fixed location under the project's organisation, so the script and the Install paragraph now give the download URL for the minimum version and the host's arch.
geectl 0.3.0 asks for cleanup on every submit request it files, and OBS deletes the source package when such a request is accepted: a forward filed from a devel project therefore deleted that devel package on accept. 0.3.1 refuses cleanup from any source outside home:, so the skill, CI and the container image now require it. The container pins the 0.3.1 release tarballs by their SHA-256 sums, and the migration suite's fake geectl reports the minimum the usage page names instead of a fixed version.
geectl 0.3.1 files the devel to Factory forward and refuses cleanup from a source outside home:, so preflight no longer says the forward cannot be filed, and the texts name the version that still deleted a devel package.
…r decline Accepting or declining a review with --live moves a request just as request accept and request decline do (osc review accept|decline asked on the osc side), yet the leaf was missing from the guard's tables and ran silently. With --live, accepted now goes through the same ownership check as request accept, declined asks as a decline, and new as a reopen of someone else's request; a dry run is still not judged.
Leaves missing from the option table were parsed with the global options only and passed every rule, and any leaf the guard did not know ran with --live unjudged. The table now lists every leaf geectl 0.3.0 ships (with the meta, person and prjconf groups); gitea build-comment posts a public comment and asks as one, gitea cleanup-forks --live deletes forks and test projects and asks, branch create, meta set and remote delete-file/lock/unlock are placed for the maintenance-project rule, and config import-oscrc reads osc's credential file and is refused like any other credential read. A --live run of a leaf still unknown asks, while its dry run passes.
geectl takes its logins only from the environment (GEECTL_OBS_PASSWORD, GEECTL_OBS_APIKEY, GEECTL_GITEA_TOKEN, GEECTL_SCM_TOKEN, each with _FILE and per-alias variants, and GEECTL_GITEA_SSH_KEY), so a dump of the environment or an echo of one of those variables shows a secret the credential-file rules were written to keep out of transcripts. An environment dump (env or printenv with no command or name, export -p, declare -x/-p, a bare set), printenv/echo/printf of a login variable, a read of /proc/<pid>/environ, and a read of the file a *_FILE variable names (by the variable, or by the literal path the environment maps it to) are now refused under credential-read. env running a command, set with options and plain assignments stay allowed.
…ripts The program-text and Write/Edit rules searched for tea and git-obs PR merges only, so a python3 -c subprocess, a perl -e system() or a written script running geectl pull-request merge (or approve, on which the bot merges a Gitea PR) passed. The line parse cannot tell the reference or --live there, and agents never merge, so either form is refused on any reference, as the tea form is.
Builds are native only, and the osc-era guard refused an emulated build (emulated-build); the geectl switch dropped the rule on the grounds that geectl refuses a foreign arch itself, while the docstring still promised the refusal. A local-build build or chroot whose --arch the host does not run natively is refused again, with the route to a server build, so the agent learns the rule from the guard rather than from a failed run.
…tself geectl request accept --live forwards the accepted package to its link parent unless --no-forward is given, and pull-request merge obs:ID --live always forwards. The skill's rule is that an accept never forwards: the forward is a request of its own, filed after forward-check, where an accepted FIXABLE review can hold it. The option tables did not list --no-forward and the guard never saw the implicit forward, so a live accept without --no-forward, and a live merge of an OBS request, now ask (accept-forwards) on top of the accept's own judgement; an accept with --no-forward keeps the previous behaviour. The incoming-approve message and the pull-request docstring now say what the code does: geectl's approve of a gitea: reference is refused with or without --commit, git-obs at the reviewed head is the route.
The skill gains a self-migration step that runs it. geectl reads osc's config itself, keeps only the alias to apiurl mapping, never reads the password into a value and prints no secret, so the command leaks nothing the credential rules protect. An agent's own direct read of osc's config (cat, grep and the rest) stays refused.
A redirection that duplicates a descriptor held in a variable
(exec {diefd}>&2, then >&"$diefd" or >&$diefd) writes no file, but the
guard counted its target as an unplaced write and, in a call naming the
harness files, refused the container launcher as a harness write. >&N
and >&- were already exempt; >&$var is now too. A script's redirection
into the hooks directory is still refused.
geectl's own Factory check lets a filing through when the target package does not exist yet or Factory records no devel project for it, and the guard skipped every home: source in its forward judgement, so request file or refile from a home branch straight to Factory ran unasked. A package goes to its devel project first, and the static harness deny that covered Factory targets is going away, so a live request file/refile from home: to openSUSE:Factory (or a project below it) is now refused as devel-first. A dry run, and a filing to a devel project, pass; a devel-project source keeps the forward judgement.
geectl 0.3.0 files a submit request with cleanup by default, and OBS deletes the source package on accept: filed from a devel project to Factory, that wiped the devel package itself. The fix is upstream but unreleased, so until the skill's minimum geectl refuses it, a live request file, request refile or OBS pull-request submit from a source outside home: without --without-cleanup is refused (cleanup-devel-source); a source read from neither the command nor the working copy asks. home: sources keep cleanup as sr-cleanup requires, and dry runs pass. The accept-coupled forward of request accept and pull-request merge already files without cleanup in 0.3.0.
…p rule The devel-source Factory filing that proves the build-evidence ask now trips cleanup-devel-source first; it passes --without-cleanup, as a devel source must, so it still tests what it was written for.
printenv, export -p, declare -x and a bare set match no prefilter word, so a call made only of them skipped the rules and the environment-secret refusals never ran (the earlier cases all began with a cd, which did match). The prefilter, and the opencode plugins' verbatim copies, now match printenv, a GEECTL_ name and a bare or -p/-x listing of set/export/declare/typeset; set -e, export FOO=bar and printenv PATH still pass the rules.
In bash >&WORD writes the file WORD names unless it is a number or -,
so exempting every >&$var let f=~/.claude/settings.json; echo x >&$f
through. The exemption now holds only when the call's value of the
variable is digits or -, or when the text allocates it with a {name}>
redirection, as the container launcher does with exec {diefd}>&2.
…akes geectl pull-request submit is the documented filing leaf for OBS too: with --target-project it files a submit request from the working copy, yet the devel-first, devel-meta, message, cleanup and gate-stamp rules only knew request file and refile, so a home checkout could submit straight to Factory unjudged. Its OBS arm is now judged as a request file with the working copy's project and package as the source and --title/--body as the description; the Gitea arm is unchanged.
push, remote group-members, gitea repo-tree, team-list, team-list-members and team-member-get were missing from the leaf table, so their --live runs asked as unknown leaves. The reads are listed as reads. geectl push --live force-pushes the working copy's branch to its origin with a lease, so it is judged as that git push and meets the pool, PR-head and HTTPS push rules.
A local-build --arch whose value the guard cannot read passed, as the
emulated-build check dropped it; it now asks (build-arch). An echo of
${GEECTL_OBS_PASSWORD:+yes} prints the word, not the secret, and is no
longer refused. The accept-forwards message says what geectl does:
pull-request merge refuses --no-forward on an obs: reference, so the
route is request accept --no-forward. Known limits gain the here-string
and ps forms and the Write refusal of files that quote a merge line.
The image is built on OBS, where a build has no network, so the geectl stage's curl download could never succeed there. The two release tarballs now come with the build context: on OBS from download_url services of the package, locally downloaded next to the Dockerfile. The stage copies them, picks the one for its arch, and checks it against the SHA-256 pinned in the Dockerfile before unpacking; a missing tarball, an unknown arch or a mismatch stops the build. The README gives the service blocks and the local build steps, and that a version bump changes the ARGs and the service paths together.
geectl writes the name and address of a .changes entry from its config file's [identity], else VC_REALNAME/VC_MAILADDR, else the OBS account or git. The container has no geectl config and no VC variables, so entries got the OBS account's or git's address, which for many packagers is not the one their changelogs carry. install now reads the identity on the host, from VC_REALNAME and VC_MAILADDR when both are set, else from `geectl config show` when it comes from the config file, and writes it into the instance's drop-in as VC_REALNAME and VC_MAILADDR. It never falls back to git or the OBS account, says so when it finds none, and refuses one that is not a single line of a name and one address, or that a unit file would read itself, without echoing it. A later install takes the current identity.
scarabeusiv
left a comment
There was a problem hiding this comment.
Reviewed head ee51c94 (38 commits, +2702/-341, 51 files) live on the Mac against geectl 0.3.1, with the pr-guard test suite run locally and CI read on the head. Verdict: changes requested — five blockers stand, four of them carried from #179 and unfixed, one new.
Blockers
B0 — CI red on the head: check-flags still reports the same 3 findings
The tests job fails on all three Pythons (3.11 job 142961369840, 3.13 job 142961369574, 3.15 job 142961369653); the only check-flags failures are the same five cases (clean, doc-negated-help, doc-no-need-to, doc-described-check, doc-foreign-command-help), each with the same 3 findings:
script-usage.md:63: pr-guard.py: synopsis lacks --arch / --live / --no-forward (in --help)
Reproduced locally: tests/repo/check-flags.py run on this tree reports the same 3 findings. FOREIGN["pr-guard.py"] (tests/repo/check-flags.py:59) still exempts only --changes-entry / --description; the three flags the new docstring prose adds are not in it. The fix from #179 — add the three flags to FOREIGN["pr-guard.py"] — is not in this diff.
B1 — --arch aarch64 still refused on the host's own arch
geectl local-build build --arch aarch64 with PR_GUARD_ARCH unset on the arm64 Mac is still BLOCKED [emulated-build]. NATIVE (skills/opensuse-packaging/scripts/_pr_guard.py:1482) still has only an x86_64 key; platform.machine() is arm64 on macOS, so the native set is {"arm64"} and aarch64 — the spelling geectl itself requires — is refused as emulated. Head commit ee51c94 ("ask on an unknown build arch") only adds the ask on an unresolvable --arch; it does not normalize arm64 → aarch64. The suite still cannot catch it: tests/test-pr-guard.sh:31 still exports PR_GUARD_ARCH=aarch64 globally, so the platform.machine() path is untested.
B2 — env_secrets still bypassed by wrappers
env_secrets(argv) (skills/opensuse-packaging/scripts/_pr_guard.py:8157) is still called before unwrap(argv, ...) and is the only call site; the unwrapped run is never re-checked. Probed live against this tree (rc 0 = passed unjudged, rc 2 = blocked):
sudo env,command printenv,env -i printenv,sudo printenv GEECTL_OBS_PASSWORD,env -u FOO printenv,sudo -E printenv— all rc 0- bare
env, bareprintenv GEECTL_OBS_PASSWORD— rc 2
So the baseline works and only the wrapper path bypasses. (env -S printenv is blocked, rc 2 — unwrap does handle -S, so the hole is exactly the missing re-check after unwrap.)
B3 — declare / typeset / readonly still print a named login unjudged
env_secrets (skills/opensuse-packaging/scripts/_pr_guard.py:8780) still only handles the bare dump in the declare / typeset / export branches — dump = not ops and ... — and never checks operands against SECRET_VAR; readonly has no branch at all. Probed live:
declare -p GEECTL_OBS_PASSWORD,typeset -p GEECTL_GITEA_TOKEN,readonly -p GEECTL_OBS_PASSWORD,export -p GEECTL_OBS_PASSWORD— all rc 0- bare
declare -p— rc 2
B4 — NEW: the new cleanup-devel-source rule breaks the gate.sh scmsync-forward flow
CI is red on two more cases on all three Pythons, both in tests/test-gate.sh:
scmsync forward: rc=2scmsync forward unstamped
both blocked with [cleanup-devel-source] geectl request file from devel:example: cleanup would delete the source package on accept. Reproduced live: geectl request file --source-project devel:example --source-package scmpkg --target-project openSUSE:Factory --description ... --changes-entry ... --live is rc 2 BLOCKED on this tree's guard and rc 0 (asks only) on main's guard — the block is new in this PR.
The rule itself is right — SR 1401757 proved a devel→Factory filing with default cleanup deletes the devel package on accept — but the flow it breaks is the PR's own: the forward command in tests/test-gate.sh:1395 files live from a devel source without --without-cleanup, and preflight.sh:496 / :498 print the same filing command (geectl request file / refile --source-project $devel ... --live, no --without-cleanup) for a stranded devel update. The skill now prints a filing command its own guard refuses, and geectl 0.3.1 itself would refuse it too. The test command and the printed commands need --without-cleanup; the rule should stay.
Partially fixed
M1 — program-text rule: merge/approve fixed, the rest still pass unjudged
GEETL_PR_ACT (_pr_guard.py:155) still matches only pull-request merge|approve in program text. Probed live: merge and approve in program text are now BLOCKED (fixed), but pull-request decline / reopen and request change-state / change-review-state … accepted --live in program text (python3 -c, bash -c) still pass unjudged (rc 0), while the same verbs on a command line are judged (decline asks [accept-forward]; change-review-state 123 accepted --live blocks [incoming-accept]). Note request-changes and change-review-state in program text are refused only via the pre-existing glob crash (G1 below), not by any rule — a latent bypass if that crash is ever fixed.
M3 — maintenance rule still does not judge the new leaves
geectl build wipe-binaries --all openSUSE:Maintenance:12345 --live, geectl prjconf clean openSUSE:Maintenance:12345 --live and geectl service trigger openSUSE:Maintenance:12345 somepkg --live are all still rc 0 (unjudged). The leaves are in the spec table now, but the maintenance rule does not judge them.
Fixed (verified live)
- M2 —
geectl config import-oscrc --oscrc <path>(and--oscrc=<path>) now passes (rc 0). geectl_archfailing open on an unresolvable--arch— fixed byee51c94, now asks [build-arch].accept-forwardswording — the message now states an accept never forwards, and thatpull-request mergerefuses--no-forwardon anobs:reference.
New finding
G1 — pre-existing glob crash turns a judgement into BLOCKED [undecided] (medium)
Program text containing a bracketed list whose hyphenated words form a descending character range crashes the guard instead of reaching its rules. Traceback (via a debug copy printing it): judge → shell_pass → one_command → state_touch → state_target → state_word → locate (_pr_guard.py:6258) → glob.glob → fnmatch → re.compile → re.error: bad character range. Even benign python3 -c "print(['foo-bar', 'baz-qux'])" is rc 2 [undecided]. Verified identical on this tree and on the main base (ecff8dd), so it is pre-existing, not introduced here — but it is what masks the M1 program-text gaps above. Fail-closed, so a follow-up, not a blocker for this PR.
Nits
GEETL_OPTSstill misses 4 of the 10 leaves from #179 (build check-sonames,build verdict,check install-conflicts,request forward-check); those hit the unknown-leaf ASK path on--live— safe but unjudged. The other 6 are now present.meta setspec (_pr_guard.py:441) still lacks--from-file, which geectl 0.3.1'smeta set --helphas.pull-request mergespec (_pr_guard.py:467) still carries a stalemessageentry; 0.3.1 has--commentand-m/--forward-message, no--message.CRED_WORD'sGEECTL_FILE_VARalternative (_pr_guard.py:8624) still lacks the closing\}}?.- The
pr-guard.pydocstring still cites "geectl 0.3.0's default cleanup", and the comment at_pr_guard.py:2108("Stands until the skill's minimum geectl refuses cleanup from a non-home: source itself") is now stale — the minimum is 0.3.1, which does refuse it. migrate-from-osc.sh(read, not probed end to end): the added-file scan looks at top-level entries only, so a new file inside an existing subdirectory is missed; the multi-login import loop parses geectl's human-readable "pass --apiurl to pick one: " error by splitting on commas;for alias in $(jq …)word-splits on unusual aliases. All fail-closed; notes only.
Verified working on this tree
home:→ Factory live is BLOCKED [devel-first];change-review-state 123 accepted --liveBLOCKED [incoming-accept];pull-request merge obs:123 --liveBLOCKED [incoming-accept];echo/printfof$GEECTL_OBS_PASSWORD/$GEECTL_GITEA_TOKENBLOCKED [credential-read]; bareset/printenvBLOCKED;${GEECTL_OBS_PASSWORD:+set}allowed; unknown leaf with--liveasks [geectl-unknown-live];geectl push --liveis judged asgit push --force-with-lease origin HEAD;geectl_submit_as_filereturns None without--target-project.gate.sh --obs-buildstays pending while any judged build is building/scheduled/older;obs-wait.pyis GREEN only when every judged build is green from current sources;migrate-from-osc.shis dry-run by default, moves a clean checkout aside withmv -n, refuses when the destination exists, never deletes.tests/test-pr-guard.sh: ALL PASS locally (2067 PASS, rc 0) on the Mac.- CI on the head:
lintandquiltgreen;testsred on all three Pythons with exactly the 7 cases above (5 check-flags + 2 test-gate) and nothing else.
The server refused every automation route because experimental.automations
was off. opencode 2.3 loads the user's settings file below the managed
/etc/opencode files, reads the whole experimental object from the highest
layer that sets one, and applies compaction keys in layer order, so a
value set in /etc/opencode would also be one the user cannot change, and
the harness's own experimental object would hide any other. The image
therefore takes experimental out of its copy of the harness snippet, and
`up` gives the user's settings file experimental {subagent_depth: 2,
automations: true} and compaction {auto: true, background: true} where it
has none, keeping what the user set. image-check and the suite hold
/etc/opencode free of both keys; the README says what an automation may
do here and how to switch either off.
scarabeusiv
left a comment
There was a problem hiding this comment.
Reviewed head aec4347 (41 commits, +2951/−366) against the round-1 review. Verdict: changes requested — the five blockers stand, and the new container ground adds one medium.
The three new commits (7e2fbf3, 50e1c39, aec4347) touch only the six container files, none of the guard files, so B0–B4 stand exactly as probed on ee51c94 — re-checked against the new head's tree. The new ground below is reviewed by reading the diff against the tree at aec4347; the container test suite was not re-run here, and CI is still in progress (see below).
Blockers (unchanged)
B0 — CI red: check-flags still reports the same 3 findings
FOREIGN["pr-guard.py"] (tests/repo/check-flags.py:59) still exempts only --changes-entry / --description. Same five cases, same 3 findings (script-usage.md:63: pr-guard.py: synopsis lacks --arch / --live / --no-forward). Fix unchanged: add the three flags to FOREIGN["pr-guard.py"].
B1 — --arch aarch64 still refused on the host's own arch
NATIVE (skills/opensuse-packaging/scripts/_pr_guard.py:1482) still has only an x86_64 key; platform.machine() is arm64 on macOS. Fix unchanged: normalize arm64 → aarch64.
B2 — env_secrets still bypassed by wrappers
env_secrets(argv) (_pr_guard.py:8157) is still the only call site, before unwrap(); the unwrapped run is never re-checked. Fix unchanged: re-check after unwrap.
B3 — declare / typeset / readonly still print a named login unjudged
env_secrets (_pr_guard.py:8780) still never checks operands against SECRET_VAR, and readonly still has no branch. Fix unchanged.
B4 — the cleanup-devel-source rule still breaks the gate.sh scmsync-forward flow
tests/test-gate.sh:1395 and preflight.sh:496 / :498 still file/print the forward without --without-cleanup. Fix unchanged: add --without-cleanup to those commands; the rule stays.
M1 (decline/reopen/change-state in program text still unjudged) and M3 (the new maintenance leaves still unjudged) are likewise unchanged, as is G1 (pre-existing glob crash, fail-closed).
New ground: the three container commits
M5 (medium) — automations on by default, but the README's safety claim does not hold while M1 stands
up now seeds "experimental": {"subagent_depth": 2, "automations": true} and background compaction, and the README says "The container's rules refuse every command that would ask, so an automation can read and report, but it cannot accept, decline or file anything that needs your go." An automation runs unattended with the container's stored logins — and M1 shows the guard lets pull-request decline / reopen and request change-state / change-review-state … accepted --live through in program text (python3 -c, bash -c): exactly the accept/decline verbs the claim names. Prescription: seed "automations": false by default until M1's program-text verbs are judged, or qualify the claim to what the guard actually enforces.
Nits
upfills only absent top-level keys: a settings file with"experimental"but no"automations"keeps automations unset (off), while a file with no"experimental"gets them on. Fill missing sub-keys too, or say the README's "adds what the file lacks" means top-level keys only.- The Dockerfile's
sedstripping"experimental"fromopencode.jsoncis key-presence-only: if the harness file ever makesexperimentalmulti-line, the sed leaves orphaned inner lines and nothing — the Dockerfile's grep,image-check, or the test — checks the file still parses. Add a parse check after the sed. - The hostile-identity test loop pins newline, bell, two-@, quote and
%n, but not$or\— the two characters that matter most inside a systemdEnvironment="..."line. Add one case each.
Checked on the new ground
- The geectl stage fetches nothing:
COPY geectl-*-unknown-linux-gnu.tar.gzfrom the build context, the arch's tarball checked against the pinned SHA-256 before unpacking, a missing tarball or a mismatch stops the build; a stale_serviceis caught by the same sum check. vc_identity: the config identity wins over git's,VC_*win over config, a later install takes the changed identity, no identity warns and falls back to the OBS account, and hostile identities (newline, bell, two-@, quote,%n) are refused with the drop-in untouched. The validator rejects%,$,\and"as well as control characters, and the mail check allows exactly one@.upkeeps the user's ownexperimental/compactionand fills in only what is missing; the settings file afterupcarries the defaults.image-checknow refuses an/etc/opencodethat setsexperimentalorcompaction.
CI
lint and quilt green on aec4347; tests still in progress on all three Pythons at posting time.
…names out of the guard help The forward case files from a devel project, which the cleanup rule now refuses without the flag. The flag citation check reads an option named in a script help text as one the script takes, so the guard describes the geectl options it judges in words.
The flag check and the gate forward case are fixed in 1c8d2b9 and CI is green. The arm64 arch name, a login printed through a wrapper or declare, the forward command preflight prints, the program-text verbs and the automation wording go into a follow-up for 4.0.1.
Closes the gaps the geectl switch left in the guard and the scripts, adds a migration step for hosts that still have only the previous client, and raises the minimum geectl to 0.3.1, which no longer deletes a devel package through a submit's cleanup. Replaces #179.
request change-review-state, an accept that forwards,pull-request submitto an OBS target, ahome:source filed straight to Factory, cleanup from a source outsidehome:, environment logins and a merge inside program text; an unknown leaf with--liveasks.gate.sh --obs-buildandobs-wait.pystay pending until every judged build is green, the gate judges only the new entries' headers, and a failed geectl lookup is reported as a failure, not as an answer.migrate-from-osc.shcarries the instance mapping over, names the logins left to set, and moves a clean old checkout aside on first touch.