Skip to content

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.

fix(cli): keep queue refusal paths auditable [M1,V4]

Corey Olsonb52e320b19ba
diff --git a/src/cli.js b/src/cli.js
index 5e256f5f..6786dec0 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -1,4 +1,4 @@
-import { createQueuedItemLease } from "./queued-item-lease.js";
+import { createQueuedItemLease } from './queued-item-lease.js';
import * as personIdentity from './person.js';
import { dependencyValues } from './item-dependencies.js';
import { computedReturnArgs } from './computed-conflict-return.js';
@@ -1678,7 +1678,7 @@ export function resourceAgent(ctx) {
/** Keep the public queue adapter while its lease protocol lives in a bounded module. */
export function queuedItemLease(ctx, initial, agentId, kind, admission = null) {
- return createQueuedItemLease(ctx, initial, agentId, kind, admission, { ordered, withBoard, claimFreezer });
+ return createQueuedItemLease(ctx, initial, agentId, kind, admission);
}
/** Print the file and reason when conservative uncertainty reserves browser capacity.
diff --git a/src/queued-item-lease.js b/src/queued-item-lease.js
index 9516a357..f67bd8ec 100644
--- a/src/queued-item-lease.js
+++ b/src/queued-item-lease.js
@@ -1,11 +1,14 @@
-import { randomUUID } from "node:crypto";
-import * as store from "./board.js";
-import { headCommit } from "./git.js";
-import { gateWaitReporter } from "./gate-wait.js";
-import { Refused } from "./refused.js";
+import { randomUUID } from 'node:crypto';
+import * as store from './board.js';
+import { headCommit } from './git.js';
+import { gateWaitReporter } from './gate-wait.js';
+import { Refused } from './refused.js';
+import { withBoard } from './cli-context.js';
+import { ordered } from './cli.js';
+import { claimFreezer } from './cli.js';
/** Keep only this queued command's live item lease, using ordinary ordered board moves. */
-export function createQueuedItemLease(ctx, initial, agentId, kind, admission, { ordered, withBoard, claimFreezer }) {
+export function createQueuedItemLease(ctx, initial, agentId, kind, admission) {
const report = gateWaitReporter(ctx.io);
// Naming somebody else's check remains read-only; it never extends their build claim.
if (kind === 'build' && (initial.item_status !== 'claimed' || initial.item_owner !== agentId)) return report;