Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix: consume each signed OFF request only once [E22,H16]
Corey Olsond7fbed0d7ce9
diff --git a/src/person-signing.js b/src/person-signing.jsindex 2d7d99f2..d7454e6c 100644--- a/src/person-signing.js+++ b/src/person-signing.js@@ -111,12 +111,14 @@ function stampHolds(board, stamp, strict) {*/export function personSigning(board, { strict = true } = {}) {let state = { signed: false };+ const consumed = new Set();for (const row of board.db.prepare("SELECT event_by, event_at, event_detail FROM event WHERE event_kind = 'person_signing' ORDER BY event_id").all()) {let detail;try { detail = JSON.parse(row.event_detail); }catch { continue; } // An unreadable record turns nothing off; an on before it still holds.if (detail?.signed === true) state = { signed: true, by: row.event_by, at: row.event_at };- else if (detail?.signed === false && row.event_by === PERSON && offIntent(detail) && stampHolds(board, detail.presence, strict)) {+ else if (detail?.signed === false && row.event_by === PERSON && !consumed.has(detail.request) && offIntent(detail) && stampHolds(board, detail.presence, strict)) {+ consumed.add(detail.request);state = { signed: false, by: PERSON, at: row.event_at };}}