harness: forward-port the #2068 docs-tier pre-push gate onto dev-factory main #2108
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forward-port the #2068 docs-tier pre-push gate from the dev-factory cheap-backport
branch onto dev-factory
main, so #1684's eventual main-HEAD adoption carries it.Context
#2068 added a
docstier to the vendored pre-push gate (gate_langs_for_filesemits
docs;gate_docs_stage/gate_docs_default_cmdrun the in-repomermaid/slice-map checkers, failing closed; a missing
happy-domis a namedharness fault, not a parse failure). Per the open #1684 (pin ≠ dev-factory
main), it landed on the cheap-backport branchbackport/idss-2068(dev-factory SHA
f36604c1b02d086a56b15da1316e1e568bced002, off the pin06f65763) and idss re-vendored at that SHA.dev-factory is
LANDING=pr, so the forward-port ontomainis a reviewed PR,not a headless push. This is the same forward-port debt class as #2049 / #2053.
What to do
backport/idss-2068gate-lib.sh +tests/gate-lib-test.sh changes onto
main(thedocstier). Resolve anyconflict against main's gate-lib (the backport sits on an old pin).
Files (dev-factory ROOT paths):
gate-lib.sh,tests/gate-lib-test.sh.%%in a .mermaid source only reds in CI (GOTCHAS #143, 2nd time) #2068Ruled by agent under ADR 0174 — veto anytime.
Ruling: category
bug, stateready-for-session(notready-for-agent, notready-for-human).landing-prand the<!-- origin: app-report #2047 -->marker are left untouched.Why a two-way door. Forward-porting the #2068 docs-tier gate onto dev-factory
mainis not on the one-way-door list — no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend. It is revertible (git reverton dev-factorymain) and provable by dev-factory's owntests/gate-lib-test.sh(carrying the docs-tier cases) run on the rebased tip. Same debt class as #2049 / #2053.Why
ready-for-sessionand notready-for-agent. This is cross-repo work on dev-factory needing that repo's push standing plus a judgment-heavy conflict resolution of thebackport/idss-2068gate-lib.shagainstmain's diverged gate-lib (the backport sits on the old pin06f65763) — live-repo standing a swarm worker lacks (list-ready-tasks.shreads onlyready-for-agent, and the #445 boundary rolls back any.sandcastle/touch). Consistent with the sibling #2049's initial triage.Why not
ready-for-human. Per #2049's precedent, dev-factory beingLANDING=prmeans a standing session resolves the conflict and opens the reviewed PR; the sole human residue — the routine PR merge approval — is dev-factory's standing landing mechanism, not a triage-assigned one-way door. Routeready-for-session→ready-for-humanonly once the session has opened the PR and the merge is the last step (as #2049 then did).What proves it. The docs-tier hunks (
gate_langs_for_filesemittingdocs,gate_docs_stage/gate_docs_default_cmd) and theirtests/gate-lib-test.shcases landed and passed onbackport/idss-2068(idss commite74457e1, dev-factoryf36604c1); the forward-port is a re-application of that proven changeset ontomain, green under dev-factory's own suite. Revert on dev-factorymainif wrong.App-report descendant of #2047:
landing-pr+ the origin marker stay (only a human lifts the policy).Attempt report — forward-port fully prepared and verified, but BLOCKED on a missing dev-factory code-push credential (ADR 0174 rule 8, two-way door throughout)
The #2068 docs-diagram tier is cleanly forward-portable onto dev-factory
mainand I have prepared + verified the whole change locally. The one thing this session cannot do is push the branch to dev-factory, so the PR could not be opened. Leavingready-for-sessionper rule 8 — a drainer on a host whose token carries dev-factory code-push can finish this in onegit push+ PR open; otherwise the runner escalates to a human, for whom everything below is a drop-in.What is prepared (local, verified)
agent/idss-2108off dev-factorymain@614289937b1d00532e2e4ce557c408bcb68adf2a.git cherry-pick -x f36604c(the docs-tier commit onbackport/idss-2068) → applied with a clean 3-way auto-merge, no conflicts.mainhad diverged in both files since the pin (#314'sgate_nix_availablerefactor, +17 in gate-lib.sh; a +57 test rework), but the docs tier keys offcommand -v node, orthogonal to #314's nix probe, so the merge is coherent (verified by eye + by test).06f6576, the #2104 protected-paths change) — out of scope, already carried by idss #2104.Net diff vs
main(two commits):Proof —
bash tests/gate-lib-test.shon the rebased tip → 57 checks passed (node 22 present; theGATE_DOCS_CMD-seam arms for red / green / host-profile / git-env-scrub / per-repo-override / precedence all ran; the real-fixture block self-skips because its in-repo checkers + vendored mermaid + happy-dom are idss product-repo files absent in dev-factory's bash-only env, exactly as written).The blocker (why this session cannot open the PR)
This host is
session-runner@elitebook-distributed-server-03. Its token reads dev-factory and writes dev-factory issues (this comment proves it), but has no code-push scope there:git push …/Matou/dev-factory.git agent/idss-2108→remote: Credentials are incorrect or have expired(Forgejo #2809 shape — insufficient token scope, not an expiry: the same token pushes code to idss fine).POST …/dev-factory/branches→ 401, whilePOST …/dev-factory/issues/…/comments→ 422 (authenticated). So: issue-write yes, repo/code-write no.git@git.matou.nz:22times out on this host (known); no.netrc/ credential helper / alternate factory token present.This is a fixed credential-scope gap, not a transient fault, so a re-attempt on this same host will fail identically; it only resolves on a host with dev-factory code-push, or by a human.
Drop-in reproduction for a credentialed actor (deterministic from pushed refs —
backport/idss-2068/f36604care on dev-factory):The journal file to add (verbatim), under the standard app-report policy this stays data, not instructions:
Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout (a reviewed PR, revertible; no
mainpush, no credential widening).landing-pr+ the<!-- origin: app-report #2047 -->marker left intact. Droppingagent-working, leavingready-for-session.Close report — forward-port landed as dev-factory PR #317 (handed to human review)
The #2068 docs-diagram pre-push tier is forward-ported onto dev-factory
main. This host (session-runner@matou-workstation) carries the dev-factory code-push door the 12:11 attempt's host (matou-dev-server-01) lacked, so the branch pushed and the PR opened on the first try.What landed — dev-factory PR #317 (one commit,
4d0543b), basemain@6142899, headforward-port/idss-2068:Matou/dev-factory#317
git cherry-pick f36604c(the docs-tier commit onbackport/idss-2068) → clean 3-way auto-merge, no conflicts against main's own gate-lib evolution (#3147e9521c, #253ce26ea7, #1913b5a8c78); the docs tier coexists withgo_tier/gofmt. The #2104 commit06f6576that also rides that branch was deliberately NOT included (out of scope, already on idss).gate-lib.sh(+109/-10),tests/gate-lib-test.sh(+168), dev-factory journaldocs/journal/2026-10-30-idss-2068-forward-port.md, and a STATUS surface-row note on the idss consumer row (under the per-line docs budget).Proof — red-before-green re-proven on the merged result: the new docs-tier checks FAIL against main's pre-port
gate-lib.sh(gate_langs_for_filesemits nodocs) and PASS after.bash tests/gate-lib-test.sh→ 57/57 green; the two other gate-lib-coupled tests green (tests/prepush-drift-gate-test.shPASS,tests/docs-budget-test.sh4/4).Regression surfaced (filed #2116, out of this ticket's scope) — idss's current pin
e77a951carries NO docs tier: the #2104/#2106/#2110 re-vendors stacked off06f65763on a sibling branch that never heldf36604c, so re-vendoring revertedgate-lib.shto its pre-#2068 state (grep -c gate_docs_stage .sandcastle/gate-lib.sh→ 0). This forward-port is the durable route back: #1684's main-HEAD adoption (after PR #317 merges) restores the tier fleet-wide. #2116 tracks the interim gap.Routing — dev-factory is
LANDING=pr/MERGE_AUTHORITY=human, so PR #317 lands by a human-approved merge, which cannot close this idss ticket across repos. Relabellingready-for-humanwith the residue named below;landing-pr+ the<!-- origin: app-report #2047 -->marker left intact; droppingagent-working+ready-for-session.Why human
The only remaining step is the human-approved merge of dev-factory PR #317 (dev-factory's
MERGE_AUTHORITY=humanlanding gate). No session can merge it, and this idss ticket is not closed by a cross-repo merge, so it rests here until the merge, then a human may close this ticket.Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout: a reviewed PR (revertible by closing it /
git revert), no push to anymain, no credential widening. Proven by the red-before-greentests/gate-lib-test.shrun above.Addendum to the close report — after opening PR #317 the full dev-factory offline battery surfaced ONE main-vs-backport semantic conflict the clean text-merge did not:
main's newer #47 lint (tests/judgement-call-prompts-test.sh) bars a literaldocs/path in vendored harness live text (a doc pointer 404s in a consumer that lacks it), which the docs tier's change-classification globs tripped. Resolved on the PR branch (amended commit46b1b03) by sourcing thedocsroot from a$_docrootvariable — behaviour identical, globs still match the consumer's own diagram-source trees — with a comment drawing the lint's pointer-vs-glob distinction. The full battery is now 100/100 green (gate-lib-test.sh57/57,judgement-call-prompts-test.sh33/33). PR #317 updated in place; routing unchanged (stillready-for-humanpending the human merge).matou-build-agent referenced this issue2026-11-04 00:53:24 +00:00