Skip to content

0.1.2 W3: the Sculptor harness row on the local driver (sculpt) #2540

Open

Description

@jparker2006

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 had interrupt first; check from the docs whether delete ends a running agent), then the driver's process-tree kill
  • Login: the harness's own login (for example the user's Claude CLI); sculpt gets 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 on adapters/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, and Live check: #<n>, the live ticket that this one blocks;
  • optional test_row.py for 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

Acceptance criteria

  • python3 -I adapters/local/test_harnesses.py fails on an empty sculpt row first (red, saved in evidence/), then passes: the five kit checks, wake reaching the same session id, and the env and stop checks; test_row.py proves 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.json takes one of two forms: an effort object mapping each effort value to the CLI's exact flag or setting (through an {effort} placeholder or a fixed env value), 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 this next: 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions