Skip to content

feat: ship canonical headless harness contract - #3

Closed
AbirAbbas wants to merge 1 commit into
resident-m1from
agent/headless-harness-contract
Closed

AbirAbbas wants to merge 1 commit into
resident-m1from
agent/headless-harness-contract

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

Summary

  • carries the current resident-m1 headless implementation into master
  • makes aforge do --json --yes-spend the canonical non-interactive harness surface
  • adds per-run provider usage (calls, prompt/completion/cache tokens, measured cost) for benchmark accounting
  • adds a provider-free aforge version command for AgentField doctor/install checks
  • documents exit-code, timeout, stream, and JSON-envelope behavior

This supersedes #1. That older PR implemented the now-stale aforge exec interface. AgentField adapters will target aforge do only because aforge-v2 is unreleased.

Base-branch note

Santosh’s current headless work is on resident-m1, 441 commits ahead of master. This branch is intentionally based on resident-m1, so the draft includes that full resident implementation plus one benchmark-contract commit (c18cc52).

Verification

  • go test ./...
  • go build -o /tmp/aforge-v2-main.wr1RWC/bin/aforge-do ./cmd/aforge
  • /tmp/aforge-v2-main.wr1RWC/bin/aforge-do version

Coordinated follow-ups

A companion AgentField PR will update Python and add Go/TypeScript providers against this exact contract. Draft consumer PRs for SWE-AF, sec-af, and pr-af will then expose opt-in Aforge selection for benchmarking.

@AbirAbbas
AbirAbbas changed the base branch from master to resident-m1 August 10, 2026 17:48
@AbirAbbas AbirAbbas closed this Aug 15, 2026
@santoshkumarradha
santoshkumarradha deleted the agent/headless-harness-contract branch August 21, 2026 16:42
santoshkumarradha added a commit that referenced this pull request Aug 27, 2026
The fifth cold walk sat down in front of home v2 and found the one gesture
that breaks the owner's bar: alt+n on the standing place, a sentence, alt+enter
— and the frame came back identical. Same four promises, same `3 held`, an
empty box, and the seed's own `finish the sentence and press alt+enter · esc
takes it back` still standing under it, instructing a person to do the thing
they had just done. What had actually happened was a full model turn in the
conversation underneath, waiting on a permission prompt the standing place does
not draw, which resolves itself as denied.

The road is structural and is left alone; the silence is not. The place now
says `sent · answer its card in the conversation, esc is the way there` on the
press and `the draft is gone · nothing was promised` when esc takes the draft
back, so the one slot this place has for a sentence about itself is never left
holding an instruction for a mode that has exited.

Work's `alt+g` clause now tracks its own state — `group by project` ungrouped,
`one list again` grouped. A toggle whose words never move cannot tell you which
of its two readings is on the screen, and `group by project` over a page that
is already grouped by project reads as a key that did not work.

Work's head sentence gains its relative pronoun: `work that aforge ran on its
own. 17 pieces, $2.18 of it.` Without it the line parses first as the place
name and then as a new sentence about aforge.

And four manual claims that the program does not keep: standing-orders.md said
the ratification card opens on the place (it opens in the conversation) and
offered a launcher row that cannot be walked to; home.md said an armed verb
warms its band (the ink warms, the band takes the dim ground — internal/theme
carries the treat the design asks for and verbstrip.go does not reach for it);
places.md called work `2 tasks` in the alt+. map.

WALKTHROUGH-v2e.md carries all of it: three blocks, twenty-three confusions,
eighteen points of polish, where SCREENS-v2.txt is stale, and v2d's three
blocks re-tested with the key sequence for each — #2, #3 and #4 all closed.

Co-Authored-By: Claude Opus 5 <[email protected]>
@santoshkumarradha santoshkumarradha added the feature Work that adds a capability; developers break it into tasks label Oct 3, 2026
santoshkumarradha added a commit that referenced this pull request Nov 17, 2026
…(E2 #3, E3 F3)

A workstream's agent on a driver's laptop has none of the workstream's
tools. A fresh organization's runner choice is now unset rather than
driver; it reads as server once the server has a model key, and the
key lets go of every driver's hand.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha added a commit that referenced this pull request Nov 17, 2026
…on the server (E2 #3, E3 F3) (#2735)

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95 pushed a commit that referenced this pull request Nov 24, 2026
…on the server (E2 #3, E3 F3) (#2735)

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Work that adds a capability; developers break it into tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants