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
docs(lifecycle): clarify family guard [O2,O3]
Corey Olson40fe944964cd
diff --git a/docs/lifecycle.md b/docs/lifecycle.mdindex 118a9425..b4c89b36 100644--- a/docs/lifecycle.md+++ b/docs/lifecycle.md@@ -100,7 +100,7 @@ Each move checks its guards in this order and refuses with the first one that do| NOT_AT_COMMIT | the caller's checkout contains the submitted commit | git switch --detach <commit> || SELF_VERIFY | the caller did not build it | another agent verifies it: pullboard next --verify || COORDINATOR_VERIFIES | the repo's verify policy lets the caller verify this lane's work | the coordinator verifies it |-| O2_FAMILY_MATCH | the builder and verifier have known, different declared families, verify.family is require | ask the coordinator for a verifier from another declared family |+| O2_FAMILY_MATCH | the builder and verifier have different declared families; an undeclared family counts as a match, only when verify.family is require | ask the coordinator for a verifier from another declared family || REVIEW_HELD | no other agent holds its review under a live lease | pullboard next --verify, which passes over reviews another agent holds || BAD_REASON | an accept gives CRITERION_MET as its reason | a failed criterion is a reject: pullboard verify <id> reject --reason CODE || PROOF_REQUIRED | an accept notes how it was proved | --note "what you broke or which edge you tried, and what happened" |diff --git a/src/machine.js b/src/machine.jsindex be07b290..8e732ec9 100644--- a/src/machine.js+++ b/src/machine.js@@ -118,7 +118,7 @@ export const GUARDS = [{ id: 'atSubmittedCommit', refuse: 'NOT_AT_COMMIT', rule: "the caller's checkout contains the submitted commit", next: 'git switch --detach <commit>', source: 'cli' },{ id: 'notBuilder', refuse: 'SELF_VERIFY', rule: 'the caller did not build it', next: 'another agent verifies it: pullboard next --verify', source: 'board' },{ id: 'policyAllows', refuse: 'COORDINATOR_VERIFIES', rule: "the repo's verify policy lets the caller verify this lane's work", next: 'the coordinator verifies it', source: 'board' },- { id: 'familyAllows', refuse: 'O2_FAMILY_MATCH', rule: 'the builder and verifier have known, different declared families', next: 'ask the coordinator for a verifier from another declared family', source: 'board', when: 'verify.family is require' },+ { id: 'familyAllows', refuse: 'O2_FAMILY_MATCH', rule: 'the builder and verifier have different declared families; an undeclared family counts as a match', next: 'ask the coordinator for a verifier from another declared family', source: 'board', when: 'only when verify.family is require' },{ id: 'reviewFree', refuse: 'REVIEW_HELD', rule: 'no other agent holds its review under a live lease', next: 'pullboard next --verify, which passes over reviews another agent holds', source: 'board' },{ id: 'reasonIsMet', refuse: 'BAD_REASON', rule: 'an accept gives CRITERION_MET as its reason', next: 'a failed criterion is a reject: pullboard verify <id> reject --reason CODE', source: 'board' },{ id: 'proofNoted', refuse: 'PROOF_REQUIRED', rule: 'an accept notes how it was proved', next: '--note "what you broke or which edge you tried, and what happened"', source: 'board' },diff --git a/test/machine.test.js b/test/machine.test.jsindex 494ec5ff..00e0b41c 100644--- a/test/machine.test.js+++ b/test/machine.test.js@@ -733,6 +733,14 @@ test('docs/lifecycle.md is the page the declaration generates, so a stale copy ffor (const code of codes) assert.match(page, new RegExp(`^\\| ${code} \\|`, 'm'), `${code} is in the refusal table`);});+test('the lifecycle page limits family matching to require and explains unknown families [O2, O3]', () => {+ const page = lifecycleMarkdown();+ assert.match(page, /^\| O2_FAMILY_MATCH \| the builder and verifier have different declared families; an undeclared family counts as a match, only when verify\.family is require \| ask the coordinator for a verifier from another declared family \|$/m);+ for (const verb of ['reserve', 'accept', 'reject']) {+ assert.match(page, new RegExp(`^\\| ${verb} \\| .*familyAllows \\(O2_FAMILY_MATCH\\)`, 'm'));+ }+});+test('the page and the help follow the declaration: a new move appears in both [M1, P4]', () => {const machine = copy();machine.moves.push({ verb: 'shelve', from: ['open'], to: 'withdrawn', by: ['coordinator'], refuse: 'CLOSED', guards: ['joined', 'coordinatorOnly', 'noteGiven', 'itemExists', IN_STATE], sets: ['item_withdrawn_reason'] });