Repository navigation
Description
Parent
Ticket W3-sculpt of spec #2520 (0.1.2): Imbue's Sculptor (sculpt) as a harness row on the local driver. Size: M.
What to build
The sculpt row, under the harness-row contract adapters/local/harness-row.md (#2431) with the row stop field (#2538), in its own folder adapters/local/harnesses/sculpt/. Branch from #2538's approved head as a draft pull request that names that commit. Merge after #2538, and after this row's live check.
From the drivers census (private), to confirm against primary sources:
- Program:
sculpt - Start:
sculpt agent create --prompt "<p>" --json - Wake:
sculpt agent send <agent-id> "<msg>" --follow - Stop:
sculpt agent delete <id> -y(the census hadinterruptfirst; check from the docs whetherdeleteends a running agent), then the driver's process-tree kill - Login: the harness's own login (for example the user's Claude CLI);
sculptgets the backend's token itself
The census check to resolve: Sculptor's agent runs in its own backend on localhost:5050, outside the driver's process tree. The row's stop is the single sculpt agent delete {session} -y (#2538 allows one stop argument list, with only {session}), run before the driver's process-tree kill. Prove that agent delete ends every process the agent started: the fake stands in for the backend (a session outside the turn's process tree that only agent delete ends), and the row's own test_row.py must find it ended after stop (the runner has no backend-session check). Confirm that sculpt fetches its backend session token itself, so the driver never touches it. The README says the backend must already be running; the driver never starts it. Resolve it from the primary sources below: the CLI's own docs, source and --help at a named version. Then write the answer and its links in the README. Run no live test and sign in to nothing: the live run is the person's ticket. If the check fails in a way the row contract can't express, stop and ask on this ticket.
Sources: SPEC.md section 8, sculpt session.py, sculpt agent.py.
The folder:
row.json;fake: built onadapters/local/fixtures/fake_cli.py. It accepts only the documented command lines and exits 2 on anything else;README.md: it opens with where the login lives, then gives the commands, the modes, the resolved check with links, andLive check: #<n>, the live ticket that this one blocks;- optional
test_row.pyfor this CLI's own rules; evidence/with red and green.
Owned paths
adapters/local/harnesses/sculpt/(new)
Relies on: adapters/local/harness-row.md, adapters/local/fixtures/fake_cli.py, adapters/local/test_harnesses.py
Links
- 0.1.2 row commands: declarative precheck and stop fields for local harness rows (after HR1) #2538 real: the row
stopfield and the harness check's backend-session check this row needs, on top of HR1 (0.1.2 HR1: the harness-row contract, the local driver's row loader and the kit check for rows #2431)
Acceptance criteria
-
python3 -I adapters/local/test_harnesses.pyfails on an emptysculptrow first (red, saved inevidence/), then passes: the five kit checks, wake reaching the same session id, and the env and stop checks;test_row.pyproves the fake backend session ended after stop - The fake exits 2 on a command line the real CLI's docs don't allow, and the row's argument lists match the cited docs at a named version
- The README resolves the census check with primary-source links, and says where the login lives. The driver never reads or passes a login
- Effort (J318):
row.jsontakes one of two forms: aneffortobject mapping each effort value to the CLI's exact flag or setting (through an{effort}placeholder or a fixedenvvalue), cited to the CLI's docs; or"effort": "none: <why, with the source>", said the same way in the README. The runner proves a claimed effort reaches the fake CLI's argv or env, and that a no-effort row refuses a start that carries an effort with a D3 error and starts nothing. The effort start field comes from driver v1's change (0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471). A row with"effort": "none: …"refuses with exactly thisnext:this host can't set effort: remove the effort for this harness in your Models table or Roster to run it at the host's default - The pull request changes nothing outside
adapters/local/harnesses/sculpt/ - Merge gate: merges only after its live check records 5 of 5 at this pull request's approved head
Proof
P1 (the sculpt row): the runner's red then green on fixtures.
Activity