Skip to content

feat(miner-hands): immutable acceptance-criteria file written before the coding agent starts #4271

Description

@JSONbored

Before a coding-agent driver (#4262's interface; #4266/#4267's implementations) starts editing, the miner needs to pin down — immutably, so the agent can't quietly redefine its own success bar mid-attempt — what "done" means for this attempt. The natural source of truth is the two Phase 2 primitives that are already done: buildFeasibilityVerdict/FeasibilityGateResult (packages/gittensory-engine/src/feasibility.ts, the go/raise/avoid verdict plus reasons) and buildPromptPacket/PromptPacket (packages/gittensory-engine/src/prompt-packet.ts, the sanitized taskBrief/feasibilityNotes/retrievalContext/constraints fields — explicitly documented as "the analysis→coding-agent boundary membrane"). This issue turns those into a single written-once file. It also has a direct home already reserved in the plan-template library: preparePlanTemplate's coding-agent step (packages/gittensory-engine/src/plan-templates.ts:84, actionClass: "codegen") runs immediately after branch-create and before local-test — this file is what that step should hand the driver.

Deliverables

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions