Repository navigation
docs: restore the rules the geectl rewrite weakened - #175
Conversation
A request filed while a judged repo/arch is still building goes out with an arch nobody has seen build, and Factory's staging finds the failure instead. SKILL.md still demanded every judged repo/arch; remote-builds, update-build and the update-build agent had dropped to one green build. gate.sh --obs-build and obs-wait.py name the still-building remainder, so the SR now waits until they name none.
geectl request accept files the Factory forward itself unless --no-forward is given, and pull-request merge on an OBS request always does. That forward skips everything the skill requires before one: forward-check.py's already-forwarded, in-Factory and stale checks, the hold an accepted FIXABLE review puts on the forward, and a new package's maintainer role in the devel project. Accepts now pass --no-forward, and the forward is a request filed from the devel project once forward-check.py says DUE. geectl's supersede sweep takes only the filer's own requests, so a duplicate forward no longer 403s: it just competes in staging.
The directive named geectl pull-request merge as the accept form, but on a gitea: reference that merges a src.opensuse.org PR, which the same directive forbids, and on an OBS request it cannot skip the forward. The OBS accept is geectl request accept --no-forward; a devel PR is approved with the pinned form incoming-review.md gives.
git-workflow.md documented geectl pull-request approve on a gitea: reference after a separate pull-request show, which leaves a window for the head to move between the check and the approve. geectl's --commit pin is best-effort, and pr-guard refuses a geectl approve of a gitea: reference outright, so the one approve an agent can run is git-obs pr review approve --commit <head-sha>, now named in all three places.
untrusted-content.md said geectl local-build service-run runs _service on the host, SKILL.md said in the container. geectl runs the services in an ephemeral podman container with the network, the user's uid and the checkout bind-mounted writable at /work. Both now say that, and why the ban on running services over someone else's submission still holds: the container shields the host, not the checkout the services rewrite.
The directive only said --mode runall is refused, which reads as a missing geectl feature to route around. A run-all is mode-blind: it fires the buildtime tar/compress services too and leaves a tarball that must not be committed beside the .obscpio.
The entry told agents which spelling of geectl remote create-token gets past the harness prefix rules. An agent never runs that leaf at all, so the entry now says only that, in any spelling.
geectl pull-request submit is dry-run by default and files only with --live, but the skill cited it bare where it meant the real filing, so an agent following the text would report a PR that was never opened.
untrusted-content.md said geectl strips ANSI, bidi and zero-width characters. Its terminal filter (is_terminal_safe) removes C0/C1 controls and the bidi and format marks U+061C, U+200E-U+200F, U+202A-U+202E, U+2066-U+2069 and U+FEFF, but not the zero-width U+200B-U+200D and U+2060 nor the Tags block U+E0000-U+E007F, so geectl output can still hide text. The list of what _sanitize.py strips is back, since that filter is the one to route foreign prose through.
The pointer at geectl changelog validate V5 implied fixing whatever it flags, but V5 wants a time and UTC on every header, stricter than factory-auto's check_dates_in_changes. Old entries are not ours to rewrite: only what that Factory check rejects is repaired, and V5 findings on an old header are not acted on.
geectl's check_trust skips the project being built for, the checkout's or the --alternative-project, so a checkout of someone else's home: project, not only an --alternative-project, installs its binaries without a warning. The enumeration is the only warning in both cases.
"Console scripts" and shlib-alternatives "Alternatives" pointed at each other, so neither held the recipe: BuildRequires/Requires: alts, %python_clone -a, the per-subpackage %pre <sub> reset that a single %pre misses, and the rpmspec -P check that the singlespec macros emitted it where meant.
The trimmed rule cited freshcrab's collectors as the enforcer, a tool the skill names nowhere else and an agent cannot run from it. The full rule is back: why search engines and memory are wrong, and which forge and registry endpoints to ask and how.
rpmcrab reports rpmlintrc-uses-setbadness as a warning, not an error, which is why the devel build stays green and factory-auto's decline comes as a surprise. The convert-on-sight rule for update-alternatives rested on an I:-level hint that is easy to miss; it names the spec tells again.
request file supersedes the filer's open requests for the same hop; request refile --supersede ID supersedes ID plus every other open request of the filer's for the package, whatever its source or target. The skill said refile touched only the named request, so a refile meant to replace one declined request could silently take another open one. Both sweeps take only the filer's own requests: others' requests are never touched.
changes-patches.sh knew only .osc/ checkouts, so a geectl working copy fell into the plain git path and exited 2 for want of an upstream branch, turning every gate.sh run on one RED. An OBS-native working copy (geectl.project/geectl.package in git config, backend not git) now resolves the target like an osc checkout: --target, else its link origin, else Factory, with the base revision as the committed copy and the files git tracks as the new side. A scmsync working copy, or an explicit --git-base, still compares against a git ref.
c7d909a to
3d01b93
Compare
scarabeusiv
left a comment
There was a problem hiding this comment.
Standards
Blocker — request refile supersedes same-hop only, not the whole package. Four statements in this PR say a refile supersedes the named request plus every other open request of yours for the package, whatever its source or target:
references/geectl-usage.md:22("request refile --supersede IDID and every other open request of yours for the package")references/geectl-usage.md:85("file, then supersede the named request and every other open request of yours for the package with it")references/submit-watch.md:168(HARD RULE: "supersedes<id>and every other open request of yours for the package, whatever its source or target"; "A refile meant to replace one declined request also supersedes your other open one")references/submit-watch.md:220("the same hop forrequest file, the whole package forrequest refile")
That is not what geectl does. In 0.3.0 both file and refile sweep the same hop only (same source and target); refile additionally supersedes the named id, which must name the same target but may come from a different source (geectl request refile --help: "plus every other open submit request for the same hop from the same user"). An agent refiling to replace a declined devel SR while believing the refile also swept its open Factory forward (a different hop) leaves the stale forward live and files a duplicate; the reverse fear — avoiding a needed refile — costs a supersede. The file half of the new text (same hop) is right; the refile half needs the same wording, with the named id as the only cross-source exception. The same paragraph's "the form that touches exactly one request" (request file, then request supersede OLD_ID NEW_ID) overstates too: the filing itself sweeps any other open same-hop request.
The line directly above the HARD RULE (references/submit-watch.md:166, unchanged by this PR) now contradicts it and is wrong on both halves: "request file has no supersede mechanism, and refile --supersede names exactly one request" — file does silently supersede same-hop, and refile supersedes the named one plus every other open same-hop request. Rewrite or delete it as part of this fix. submit-watch.md:172 ("Filing supersedes your own open requests on the package") is loose in the same way.
Blocker — -s <id> does not exist. SKILL.md:53 and references/submit-watch.md:40 still say a fixed MINE-DECLINED is "filed with -s <id>", and scripts/README.md:70 says the same as forward-check.py -s <id>. request file takes no supersede option at all; request refile takes long-only --supersede, no -s short form. The correct form is geectl request refile … --supersede <id>.
CI — the one failure at the previous head is fixed in this head. At c7d909a the tests job failed on exactly one test (test-pr-guard.sh: changes-patches.sh refused [retired-osc] — the new code's bare word osc in elif osc or gwc: and the header comment "like an osc checkout" reads as an osc invocation to the guard's program-text scan). This head renames the variable to oscwc and the comment to .osc/; no osc-followed-by-a-word remains. The re-run was still in progress when reviewed; merge waits for it to go green.
Note — this PR conflicts with open #178. The trim (branch skill/cut-tool-enforced-prose) touches the same files; a merge-tree of the two heads shows 14 conflicting hunks across 14 files (including SKILL.md, agents/submit-watch.md, agents/update-build.md, references/submit-watch.md, references/geectl-usage.md, evals/opensuse-packaging/evals.json). Whichever lands second needs a rebase and manual resolution — and the resolution of SKILL.md:53 must keep #178's geectl request refile … --supersede <id>, not this PR's -s <id>.
Spec
Verified against geectl 0.3.0, rpmcrab, and live Factory state at this head:
request acceptforwards by default;--no-forwardis the right form.pull-request merge --no-forwardis refused on OBS refs. pr-guard refusesgeectl pull-request approveon agitea:reference,--commitor not (approve takes no--commit).- No
--mode runall; service modes are run/manualrun/precommit/localrun/disabledrun, andrunexcludesbuildtimeservices. - V5 requires
Day Mon DD HH:MM:SS UTC YYYYon every header, strictly descending; the realcheck_dates_in_changesis more lenient (a dateless header parses there), as the new text says. - rpmcrab severities as corrected:
rpmlintrc-uses-setbadnessis a warning;package-supports-update-alternativesis informational and fires only when the package registers an alternative. - The output-filter set is exact (strips C0/C1 except newline plus the named bidi/isolate/FEFF set, one
…per run; does not strip U+200B–U+200D, U+2060, or the Tags block). - The trust check skips the build project itself by exact match, including a foreign
home:. - The libalternatives console-script recipe matches the live Factory
python-uvspec verbatim. - crates.io: default curl UA gets 403, a custom UA 200.
obs-wait.pyhas--repo/--arch; exit 0 is one judged build green, remainder named. changes-patches.shresolves a geectl working copy's target (link origin, else Factory) with the root commit as the base; the new tests pass on this head.- Service-run runs in a podman container (
--userns=keep-id, source dir bind-mounted writable, network open).
Should fix — the whole-branch gate is prose, not a gate. The new text (references/update-build.md, SKILL.md, agents/update-build.md) says the SR waits until gate.sh --obs-build names neither a still-building remainder nor an older-source log. gate.sh still records GREEN (exit 0) with those as notes, and pr-guard accepts a stamp whose build is GREEN, treating one green build as covering. Nothing in this PR enforces the wait. Either teach pr-guard to compare the stamp's recorded repos/builds against the judged set, or soften the claim to a stated agent rule with the enforcement gap named (plus a follow-up issue for the enforcement). As written, the title's "restores the whole-branch build gate" overstates what lands.
Should fix — gwc test gaps. The new changes-patches.sh tests cover the happy path only: no test for geectl.backend=git taking the git-ref path, for a root commit without the .changes file (count_old then returns None and the entry-count check is silently skipped), for --git-base explicitly overriding gwc detection, or for a gwc whose target doesn't exist.
OCR
Adversarial pass over the exact final diff at this head: no further blockers beyond the refile-scope statements and the -s <id> lines above. The changes-patches.sh gwc logic checks out (detection, root-commit base, index-state new_files, unstaged files invisible), and the doc corrections listed under Spec verified live.
Verdict
CHANGES_REQUESTED — fix the refile supersede scope (four statements plus the contradicted line 166) and the -s <id> lines. The gate-enforcement gap and the gwc test gaps are should-fix in the same PR; the #178 conflict needs a rebase once one of the two lands.
geectl 0.3.0's refile supersedes the named request plus every other open request of the filer's for the same hop, not for the whole package, and request file sweeps that hop too. So no filing touches exactly one request, and a refile of a devel request leaves the open Factory forward, a different hop, in place: that one is superseded or revoked by hand.
geectl request refile takes the superseded id only as the long option --supersede; -s is an option of the old client and fails there.
gate.sh --obs-build and obs-wait.py report green on one judged build and only name the repos and arches still building; neither refuses on them. The text read as if the gate held the SR back, so an agent could file on its GREEN. It now says the agent files only once a rerun names no still-building remainder.
…on lacks In a geectl working copy whose base revision has no .changes (or no commit at all), the entry count was silently skipped, so any number of stacked entries passed. The file is new there: every entry now counts, with a note saying so. Tests also pin the other edges of the working-copy path: a git-backed one and an explicit --git-base still compare against a git ref, and a target that does not exist skips the patch check but not the entry count.
|
Fixed in 2740248..8a7d64a: both filings sweep the same hop only, |
Restores the whole-branch build gate, makes every accept
--no-forwardwith the forward as a separate checked step, and corrects the texts that claimed more than geectl, rpmcrab or the guard enforce.changes-patches.shnow resolves the target of a geectl working copy, which had turnedgate.shred.