Repository navigation
Description
Parent
Ticket DW6 of spec #1987 (0.1.1). Size: S.
What to build
A driver for Factory at adapters/factory/, copied from adapters/template/ and built on the driver contract (kernel/driver.v1.md): version, schema, start, wake and stop, with a fake Factory under fixtures/bin/ so the kit runs in CI. Drive Factory's droid exec: start runs it with JSON output and keeps the session id, wake runs it again on that session, stop ends the local process and any child it started. Droid is Factory's own agent; the README says how harness maps. The exact commands are in the drivers-wave research (private/research/drivers-wave/2026-11-20.md in jparker2006/ClosedWiz; your parent passes the section). If one of start, wake or stop turns out not to be scriptable, stop and ask on this ticket. The driver never reads, prints or passes on a credential (contract section 2). Its README opens with one login line in the spec's form: Login: held by Factory. Shared lines, one row each: the test line in .github/workflows/ci.yml, the entry in tools/open-import/paths.json, and the name in DRIVERS in tools/release/build_products.py.
Owned paths
adapters/factory/inopenwizdev/OpenWiz(new).github/workflows/ci.ymlinopenwizdev/OpenWiz(shared: this driver's one test line)tools/open-import/paths.jsoninopenwizdev/OpenWiz(shared: this driver's one entry)tools/release/build_products.pyinopenwizdev/OpenWiz(shared: this driver's name in DRIVERS)
Relies on: kernel/driver.v1.md, kernel/driver-kit/schema.json
Links
none
Acceptance criteria
- The kit fails against the copied template first (red log in
evidence/), then passes all five checks on fixtures, in CI - No input, argument, output or copied environment carries a login, token, key or password
- The README's login line says where the user's login lives, in the spec's form
- Merge gate: merges only after its live-check ticket records 5 of 5 on the real host at this pull request's approved head (driver contract section 3), and after the 0.1.0 cut
Proof
P1 (this driver): test_driver.py and the kit on fixtures, red first. P3: the code review.
Activity
jparker2006 commentedon Nov 20, 2026
launch-fleet: start checked, branch room/1998-factory-driver
Started by hand under the J87 planner's fleet.sh-outage ruling (OpenWiz #1958):
fleet.sh claimfailed only with "conflicting PR check snapshots". Start conditions read at 20:09Z: open; labelled ready-for-agent only, not held; no open blocker; no other live claim, builder or pull request; plan approval 7049330143 (revision 2) current, asfleet.sh spec 1987printedstart #1998at 20:01Z.jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.0
step: R7 fixed once more, red first: stop on a tampered folder ends nothing and says so; a new green head is handed back.
time: 2026-11-21T22:24:30Z
pr: #2022
#1998: the kit's own run on the synthetic droid, five of five, in the…
#1998: cut every comment and docstring from the Factory driver, its f…
jparker2006 commentedon Nov 20, 2026
Builder question: one supporting-edit grant for the changelog line (PR #2022)
This ticket's changelog line must be
changes/1998.md, but that name is already taken onmainby a line moved from the private repository under its old number.changes/README.md(Moved files) says to rename only that moved file tochanges/closedwiz-1998.mdwhen a new ticket's line collides with it. The rename is byte-for-byte: its sha256 still matches its entry intools/release/moved.json, so no other file changes.The
owned-pathscheck rejectschanges/closedwiz-1998.mdbecause neither the owned paths nor the standing supporting-edit rule name it.Options:
changes/closedwiz-1998.md(the rename above). My pick: it is the changelog contract's own rule for this case.no-changelog. I advise against this: a new driver is a product change.The driver itself is done and the fixture tests pass. I'll finish the hand-back once this is answered.
jparker2006 commentedon Nov 20, 2026
launch-fleet: granted supporting edit: rename the moved line changes/1998.md to changes/closedwiz-1998.md byte for byte (sha256 unchanged, still matching tools/release/moved.json), as changes/README.md's Moved files rule says, so this ticket's own changelog line can be changes/1998.md (PR #2022)
#1998: the Factory tests run with PATH limited to fixtures/bin and py…
jparker2006 commentedon Nov 20, 2026
Builder: the grant needs the
owned-pathscheck's form (PR #2022)Thanks: grant 7049799014 is trusted. But
tools/owned-paths/check.pyonly counts a record author's comment that containsF4 supporting edit grantedand names each path in backticks. Run on PR #2022 with the grant posted, it still printsOUT: changes/closedwiz-1998.mdand fails.Please restate it in that form, for example:
I won't post a grant for my own edit. Once it's recorded, I'll re-run the check, push the green hand-back and settle
needs-info.jparker2006 commentedon Nov 20, 2026
launch-fleet: granted supporting-edit: the changelog rename, restated in the form the owned-paths check reads
F4 supporting edit granted:
changes/closedwiz-1998.md(the byte-for-byte rename of the moved linechanges/1998.md, sha256 unchanged and still matchingtools/release/moved.json, so this ticket's own line can bechanges/1998.md; PR #2022). Same grant as comment 7049799014.#1998: the owned-paths check passes after the F4 grant, in the green …
10 remaining items
#1998: red, the README names no supported platforms
#1998: README names its platforms; driver comment cut
#1998: green, R7 fixed and the README names its platforms
jparker2006 commentedon Nov 20, 2026
Planner ruling for DW6 #1998 (Factory), stop on tampered state: when a run's folder or files aren't owner-only, or are links, stop must not act on anything recorded there, because killing untrusted process ids could hit someone else's process. It first ends whatever it can still identify safely, without trusting that state: the process group or session the driver itself created, or its supervisor as a direct child. If that ends the run, it answers stopped. If it can't safely end the run, it exits 1 with a fixed reason naming the folder and the next step (driver contract D3), and never kills a process found through the untrusted state. Wake may refuse outright on tampered state. Tests cover both stop outcomes. This narrows the Pane stop ruling only for tampered state.
#1998: red, stop on a tampered folder leaves the run's own processes …
#1998: stop on a tampered folder ends the run's own supervisors, foun…
#1998: green, stop on a tampered folder follows the D6 ruling
jparker2006 commentedon Nov 20, 2026
launch-fleet: noted #2028
kernel/driver.v1.md (the Supported platforms line) and kernel/driver-kit/ changed in #2028; its fresh-round builder was told in its brief at 22:1xZ.
#1998: R7 red, stop on a tampered folder signals a command-line looka…
#1998: R7 fix, stop on a tampered folder ends nothing and says so
#1998: green, stop on a tampered folder ends nothing and says so
#1998: green: merge main and update factory schema.json
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: Claude Code
model: Opus 5.5
skills: review-ticket@0.4.0
step: APPROVE at 3b5937e posted
time: 2026-11-24T12:57:46Z
pr: #2022