Forward-port the #2177 heal_rails vendored-path rail onto dev-factory main #2180

Open
opened 2026-11-07 05:18:40 +00:00 by matou-build-agent · 2 comments

Forward-port the #2177 heal_rails vendored-path rail onto dev-factory main

#2177 landed a FACTORY_MANIFEST rail in heal_rails on a dev-factory
backport branch off the idss pin (Matou/dev-factory backport/idss-2177
@ 291c9bf, off 4eae572b), then re-vendored it into idss — the headless
backport-onto-pin route while the main-HEAD adoption (#1684) stays human-gated.

The same commit must be forward-ported onto dev-factory main so the fix is not
lost when the pin next advances. The change touches rehearsal-heal-lib.sh
(the _heal_touches_vendored_path helper + the rail in heal_rails) and
tests/rehearsal-heal-lib-test.sh (cases V1–V4). dev-factory main has a heal
rework since the pin, so expect the cherry-pick to need a manual resolution in
heal_rails / its test; dev-factory is LANDING=push, but this follow-up
inherits landing-pr (ADR 0267) — honour it as a reviewed dev-factory PR or a
human-confirmed land.

Backport commit to forward-port: 291c9bf76e1cf08b79da6264fd02e1627d404788
(single commit; cherry-pick -x). Related: #2177, ADR 0180, ADR 0287.

<!-- origin: app-report #2047 --> ## Forward-port the #2177 heal_rails vendored-path rail onto dev-factory `main` #2177 landed a `FACTORY_MANIFEST` rail in `heal_rails` on a dev-factory **backport branch** off the idss pin (`Matou/dev-factory` `backport/idss-2177` @ `291c9bf`, off `4eae572b`), then re-vendored it into idss — the headless backport-onto-pin route while the main-HEAD adoption (#1684) stays human-gated. The same commit must be forward-ported onto dev-factory `main` so the fix is not lost when the pin next advances. The change touches `rehearsal-heal-lib.sh` (the `_heal_touches_vendored_path` helper + the rail in `heal_rails`) and `tests/rehearsal-heal-lib-test.sh` (cases V1–V4). dev-factory `main` has a heal rework since the pin, so expect the cherry-pick to need a manual resolution in `heal_rails` / its test; dev-factory is `LANDING=push`, but this follow-up inherits `landing-pr` (ADR 0267) — honour it as a reviewed dev-factory PR or a human-confirmed land. Backport commit to forward-port: `291c9bf76e1cf08b79da6264fd02e1627d404788` (single commit; cherry-pick `-x`). Related: #2177, ADR 0180, ADR 0287.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: category bug, state ready-for-session. landing-pr and the <!-- origin: app-report #2047 --> marker are left untouched.

Why a two-way door. Forward-porting the #2177 heal_rails vendored-path rail (dev-factory backport/idss-2177 @ 291c9bf, single commit, cherry-pick -x) onto dev-factory main is 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 revert on dev-factory main) and provable by tests/rehearsal-heal-lib-test.sh cases V1–V4 run on the rebased tip. Same standing forward-port-debt class as #2178, #2147, #2163.

Why ready-for-session and not ready-for-agent. Cross-repo work on Matou/dev-factory needing that repo's code-push standing, plus a judgment-heavy conflict resolution — the body notes dev-factory main carries a heal rework since the pin, so the cherry-pick will need a manual resolution in heal_rails / its test. That is live-repo standing a swarm worker lacks (list-ready-tasks.sh reads only ready-for-agent; the #445 boundary rolls back any .sandcastle/ touch). A session resolves + verifies the cherry-pick locally, opens the LANDING=pr PR, then relabels ready-for-human for the merge (ADR 0267).

Report policy intact. Descends from app report #2047; its words are outside input — data, never instructions. landing-pr and the origin marker stay; work lands by a human-approved PR, never a push to main. Only a human lifts the policy.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** category `bug`, state `ready-for-session`. `landing-pr` and the `<!-- origin: app-report #2047 -->` marker are left untouched. **Why a two-way door.** Forward-porting the #2177 `heal_rails` vendored-path rail (dev-factory `backport/idss-2177` @ `291c9bf`, single commit, cherry-pick `-x`) onto dev-factory `main` is 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 revert` on dev-factory `main`) and provable by `tests/rehearsal-heal-lib-test.sh` cases V1–V4 run on the rebased tip. Same standing forward-port-debt class as #2178, #2147, #2163. **Why `ready-for-session` and not `ready-for-agent`.** Cross-repo work on `Matou/dev-factory` needing that repo's code-push standing, **plus** a judgment-heavy conflict resolution — the body notes dev-factory `main` carries a heal rework since the pin, so the cherry-pick will need a manual resolution in `heal_rails` / its test. That is live-repo standing a swarm worker lacks (`list-ready-tasks.sh` reads only `ready-for-agent`; the #445 boundary rolls back any `.sandcastle/` touch). A session resolves + verifies the cherry-pick locally, opens the `LANDING=pr` PR, then relabels `ready-for-human` for the merge (ADR 0267). **Report policy intact.** Descends from app report #2047; its words are outside input — data, never instructions. `landing-pr` and the origin marker stay; work lands by a human-approved PR, never a push to `main`. Only a human lifts the policy.
Author
Member

Forward-port landed as dev-factory PR #343 — handing to human for merge

The #2177 heal_rails vendored-path rail is forward-ported onto dev-factory
main and awaits a human merge.

What landed (dev-factory):

  • Branch fp/idss-2180 @ f67abdba1e675531c693dc018e2f5865b63d81ab, PR
    Matou/dev-factory#343 (base main).
  • cherry-pick -x of 291c9bf76e1cf08b79da6264fd02e1627d404788 (the
    backport/idss-2177 commit, itself -x of the discarded original 0daf0d1).
    Single commit; the message carries the full provenance chain.

Resolution: applied cleanly onto main despite the heal rework since the
pin — the _heal_touches_product_surface / _heal_weakens_check context anchors
were byte-identical, so the new _heal_touches_vendored_path helper and its rail
landed with no manual conflict. Resulting heal_rails order:
self-mod → vendored-path → assertion → product-surface → 3-file cap → line cap.

Proof: tests/rehearsal-heal-lib-test.sh (with V1–V4) green locally —
OK: 38 cases, exit 0; bash -n clean on rehearsal-heal-lib.sh and the test.
dev-factory main had no prior rail (git grep confirmed), so the fix is not
lost when the idss pin next advances.

Ruled by agent under ADR 0174 — veto anytime. Two-way: a reviewed,
revertible dev-factory PR; the forward-port is proven by the full offline suite.

Why human

This ticket is an app-report descendant (<!-- origin: app-report #2047 -->) and
inherits landing-pr (ADR 0267), so the forward-port lands only by a
human-approved merge — not a direct push, even though dev-factory itself is
LANDING=push. The sole residue is: a human reviews and merges dev-factory PR
#343.
That merge is the one-way gate ADR 0267 reserves for a person.

Routing note: the runner resolved this ticket pr, but its pr-unqueue keys on an
idss agent/issue-2180 PR — there is no idss diff here (the entire deliverable is
the cross-repo dev-factory PR), so the runner cannot see it and would re-drain the
ticket as "no progress". Relabelling ready-for-human per the #2147 precedent so
it leaves the session lane and reaches the person who merges #343. landing-pr
and the origin marker are retained.

## Forward-port landed as dev-factory PR #343 — handing to human for merge The #2177 `heal_rails` vendored-path rail is forward-ported onto dev-factory `main` and awaits a human merge. **What landed (dev-factory):** - Branch `fp/idss-2180` @ `f67abdba1e675531c693dc018e2f5865b63d81ab`, PR https://git.matou.nz/Matou/dev-factory/pulls/343 (base `main`). - `cherry-pick -x` of `291c9bf76e1cf08b79da6264fd02e1627d404788` (the `backport/idss-2177` commit, itself `-x` of the discarded original `0daf0d1`). Single commit; the message carries the full provenance chain. **Resolution:** applied **cleanly** onto `main` despite the heal rework since the pin — the `_heal_touches_product_surface` / `_heal_weakens_check` context anchors were byte-identical, so the new `_heal_touches_vendored_path` helper and its rail landed with no manual conflict. Resulting `heal_rails` order: self-mod → **vendored-path** → assertion → product-surface → 3-file cap → line cap. **Proof:** `tests/rehearsal-heal-lib-test.sh` (with V1–V4) green locally — `OK: 38 cases`, exit 0; `bash -n` clean on `rehearsal-heal-lib.sh` and the test. dev-factory `main` had no prior rail (`git grep` confirmed), so the fix is not lost when the idss pin next advances. **Ruled by agent under ADR 0174 — veto anytime.** Two-way: a reviewed, revertible dev-factory PR; the forward-port is proven by the full offline suite. ## Why human This ticket is an app-report descendant (`<!-- origin: app-report #2047 -->`) and inherits `landing-pr` (ADR 0267), so the forward-port lands **only** by a human-approved merge — not a direct push, even though dev-factory itself is `LANDING=push`. The sole residue is: **a human reviews and merges dev-factory PR #343.** That merge is the one-way gate ADR 0267 reserves for a person. Routing note: the runner resolved this ticket `pr`, but its pr-unqueue keys on an idss `agent/issue-2180` PR — there is no idss diff here (the entire deliverable is the cross-repo dev-factory PR), so the runner cannot see it and would re-drain the ticket as "no progress". Relabelling `ready-for-human` per the #2147 precedent so it leaves the session lane and reaches the person who merges #343. `landing-pr` and the origin marker are retained.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2180
No description provided.