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(cli): cover landing results and native actors [A1,H16]
Corey Olson3f9cb5be8313
diff --git a/docs/api.md b/docs/api.mdindex 09e3645b..546b71d8 100644--- a/docs/api.md+++ b/docs/api.md@@ -86,7 +86,7 @@ For example: `flow: review wait average 61 min (1 measured; > 60 min); bottlenec| `done` | `version:number`, `id:number`, `commit:string`, `pin:string`, `gate:object` || `verify` | `version:number`, `id:number`, `decision:string`, `reason:string` || `merged` | `version:number`, `id:number`, `commit:string` |-| `land` | `version:number`, `batch:object`, `landed:array`, `conflicts:array`, `blocked:array`, `culprits:array`, `flakes:array` |+| `land` | `version:number`, `batch:object\|null`, `landed:array`, `conflicts:array`, `blocked:array`, `culprits:array`, `flakes:array` || `withdraw` | `version:number`, `id:number`, `reason:string` || `refreeze` | `version:number`, `id:number`, `after:string` || `reopen` | `version:number`, `id:number`, `commit:string` |diff --git a/docs/api.test.js b/docs/api.test.jsindex 355f9305..dd4c7c3d 100644--- a/docs/api.test.js+++ b/docs/api.test.js@@ -17,7 +17,7 @@ function readShapeTable(start, end) {for (const line of section.split(/\r?\n/)) {const row = /^\| \x60([^\x60]+)\x60 \| (.+) \|$/.exec(line);if (!row) continue;- const fields = [...row[2].matchAll(/\x60([^:\x60]+):([^\x60]+)\x60/g)].map((match) => [match[1], match[2]]);+ const fields = [...row[2].matchAll(/\x60([^:\x60]+):([^\x60]+)\x60/g)].map((match) => [match[1], match[2].replaceAll('\\|', '|')]);assert.ok(fields.length, 'shape row lists fields: ' + row[1]);assert.equal(rows.has(row[1]), false, 'shape row is unique: ' + row[1]);rows.set(row[1], Object.fromEntries(fields));diff --git a/src/json.js b/src/json.jsindex a2e77c0e..f67bfb1c 100644--- a/src/json.js+++ b/src/json.js@@ -53,7 +53,7 @@ export const JSON_SHAPES = {done: shape({ id: 'number', commit: 'string', pin: 'string', gate: 'object' }),verify: shape({ id: 'number', decision: 'string', reason: 'string' }),merged: shape({ id: 'number', commit: 'string' }),- land: shape({ batch: 'object', landed: 'array', conflicts: 'array', blocked: 'array', culprits: 'array', flakes: 'array' }),+ land: shape({ batch: 'object|null', landed: 'array', conflicts: 'array', blocked: 'array', culprits: 'array', flakes: 'array' }),withdraw: shape({ id: 'number', reason: 'string' }),refreeze: shape({ id: 'number', after: 'string' }),reopen: shape({ id: 'number', commit: 'string' }),diff --git a/test/api.test.js b/test/api.test.jsindex 6ac22d99..b92a6c8a 100644--- a/test/api.test.js+++ b/test/api.test.js@@ -201,6 +201,7 @@ function shapeFor(command, subcommand) {/** Match one catalog field to its declared JSON value type. */function hasType(value, type) {+ if (type.includes('|')) return type.split('|').some((part) => hasType(value, part));if (type === 'array') return Array.isArray(value);if (type === 'object') return value !== null && typeof value === 'object' && !Array.isArray(value);if (type === 'null') return value === null;@@ -630,6 +631,10 @@ test('[A1] every catalog command and subcommand has a real CLI exercise', () =>json(source, source.repo, 'relay');json(source, source.repo, 'relay', ['off']);const catalog = json(source, source.repo, 'add', ['app', 'Catalog item', '--criterion', 'catalog coverage'], 'add').item;+ const landing = json(source, source.repo, 'land', ['--dry-run']);+ assert.equal(landing.batch, null);+ assert.deepEqual(landing.landed, []);+ assert.deepEqual(landing.items, []);json(source, source.repo, 'roadmap');json(source, source.repo, 'milestone', ['add', 'Catalog', '--items', String(catalog.item_id)], 'add');json(source, source.repo, 'milestone', ['items', 'Catalog', '--remove', String(catalog.item_id)], 'items');diff --git a/test/relay-credential.test.js b/test/relay-credential.test.jsindex 4cd0911a..f81131f3 100644--- a/test/relay-credential.test.js+++ b/test/relay-credential.test.js@@ -26,6 +26,8 @@ test('every current operation selects its native actor credential without a secoexpected: { command: 'true', main: 'a'.repeat(40), result: 'pending', request: '11111111-1111-4111-8111-111111111111' },baseline: { command: 'true', main: 'a'.repeat(40), result: 'green' },}];+ if (['recordLandingBatch', 'recordLandingFlake', 'finishLandingBatch'].includes(operation)) args = [options];+ if (operation === 'recordLandingWaiver') { args = [{ ...options, agentId: 'person', channel: 'terminal' }]; kind = 'person'; }if (operation === 'addMilestone') args = [{ agentId: actor, name: 'Credential fixture', items: [] }];if (['holdLane', 'releaseLane'].includes(operation)) args = [box.lane, options];if (operation === 'applyRowDecisions') args = [{ agentId: actor, events: [] }];