Documentation
¶
Overview ¶
Package acceptance closes memcode's interaction loop by reading the room AFTER the work: did the agent's changes survive contact with the human? Git is the objective evidence most agents never look at — a commit is the strongest "yes", a revert the strongest "no", a manual edit a "close, but".
agent acts → user reacts → git reveals accepted/corrected/rejected → memory adjusts
It compares each finished agent session's per-file result hashes against the current git state and records a session_outcome event (only when the verdict is definitive — an undecided session is re-checked on the next scan). The room reducer already consumes those outcomes, and `learn` weighting will next.
Index ¶
Constants ¶
const ( Accepted = "accepted" // committed substantially intact (high confidence) Corrected = "corrected" // agent's files manually changed after (medium) Rejected = "rejected" // patch reverted / reset / discarded (high) Unknown = "unknown" // undecided — not recorded, re-checked later )
Outcome verdicts (string values match what room.Gather reads).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
SessionID string `json:"session_id"`
Outcome string `json:"outcome"`
Confidence string `json:"confidence"` // high | medium
Evidence string `json:"evidence"`
}
Result is one reconciled session.