docs(miner-hands): CodingAgentDriver seam design doc + driver-authoring guide (#4312)#4463
Conversation
…ng guide (JSONbored#4312) Add packages/gittensory-miner/docs/coding-agent-driver.md documenting the CodingAgentDriver interface seam (JSONbored#4262): what it is (the one interface a miner runs a coding agent through — CLI subprocess OR Agent-SDK behind a provider-agnostic contract), the design rationale (mirrors SelfHostAi's single run() + injected deps), the Task/Result contract, the surrounding primitives (execution mode, invoke, factory, attempt log, metering, acceptance criteria, worktree isolation), a driver-authoring guide for a third implementation, and a worked attempt-lifecycle example. Written against the seam's ACTUAL landed shape: the CLI-subprocess (JSONbored#4266) and Agent-SDK (JSONbored#4267) backends are framed as the planned first two, since today createCodingAgentDriver resolves the built-in noop driver. Prose doc under docs/, matching the miner-goal-spec.md/cross-repo-discovery-phase1.md convention; not an enumerable code-driven surface, so not covered by the docs-drift check. Closes JSONbored#4312
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-09 20:20:03 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 6 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Adds
packages/gittensory-miner/docs/coding-agent-driver.md— the design note + authoring guide for theCodingAgentDriverinterface seam (#4262), matching the existingdocs/prose convention (miner-goal-spec.md,cross-repo-discovery-phase1.md).Covers
query()loop behind a provider-agnostic contract — and the rationale for mirroringSelfHostAi(singlerun(), injected deps) rather than inventing a new pattern.CodingAgentDriverTask/CodingAgentDriverResult/run()shapes.paused/dry_run/live),invokeCodingAgentDriver, the factory, the attempt log (feat(miner-hands): driver-level structured attempt log (JSONL event trace per attempt) #4294), metering (feat(miner-hands): per-attempt cost/turn metering for CodingAgentDriver runs #4311), acceptance criteria (feat(miner-hands): immutable acceptance-criteria file written before the coding agent starts #4271), and worktree isolation (feat(miner-hands): git-worktree-per-attempt isolation primitive #4269).Accuracy
Written against the seam's actual landed shape — the CLI-subprocess (#4266) and Agent-SDK (#4267) backends are framed as the planned first two, since
createCodingAgentDrivertoday resolves the built-innoopdriver (CODING_AGENT_DRIVER_NAMES=["noop"]). Every referenced export was verified againstpackages/gittensory-engine/src/miner/. Prose only — not one of the enumerable surfacescheck-docs-drift.mjstracks, so it has no automated drift check (docs:drift-checkstays green); the relative link to the interface resolves.Closes #4312