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.

chore(core): compose agent grants with current trunk [E21,E23,H16]

Corey Olson234b19ba11a4
diff --cc docs/formats.md
index e78fb698,afdf587b..13361af1
--- a/docs/formats.md
+++ b/docs/formats.md
@@@ -430,10 -428,10 +430,10 @@@ The computed-grant engine adds `grantEn
| `escalate` | builder | `from`, `to`, `note`, `attempt` |
| `attempt` | reporting agent | `n`, `seconds`, `result` |
| `fact` | author | `id`, `kind`, `text`, `ref`, `supersedes`, engine-20 `implies`, `decision`, `supersededBy`, engine-30 `cause`, `neverAgain`, `channel` |
-| `claim` | builder | `leaseUntil`, `digest` |
-| `renew` | builder | `leaseUntil`, `digest` |
+| `claim` | builder | `leaseUntil`, `digest`, optional `grantEngine` |
+| `renew` | builder | `leaseUntil`, `digest`, optional `grantEngine` |
| `release` | builder | — |
- | `submit` | builder | `commit`, `tree`, `policyCommit`, engine-9 `criterionDigest`, engine-38 `submissionProof` |
+ | `submit` | builder | `commit`, `tree`, `policyCommit`, engine-9 `criterionDigest`, engine-38 `submissionProof`, optional `submissionSize` |
| `reserve` | reviewer | `until` |
| `accept` | reviewer | `reason`, `commit`, engine-20 `implies`, engine-33 `review`, engine-68 `note` |
| `reject` | reviewer | `reason`, `commit`, engine-20 `implies`, engine-30 `cause`, engine-33 `review`, automatic-Rigor `causeDerivation` |
diff --cc src/board.js
index fe12be98,5bb79ec8..61f1f578
--- a/src/board.js
+++ b/src/board.js
@@@ -1,6 -1,4 +1,7 @@@
+import { AGENT_GRANT_ENGINE } from './agent-grant-engine.js';
+import * as computedConflictEvidence from './computed-conflict-receipt.js';
+import { reopenAuthority } from './reopen-authority.js';
+ import * as activityDeliveryStore from './activity-delivery-store.js';
import { requireFactKind } from './item-notes.js';
import { activityNewsFlag } from './activity-news.js';
import { migrateEventLogVersion } from './board-event-log-migrate.js';
diff --cc test/relay-client-fixture.js
index 69f9bdff,704ce996..fe5fdeff
--- a/test/relay-client-fixture.js
+++ b/test/relay-client-fixture.js
@@@ -745,12 -745,9 +745,12 @@@ globalThis.fetch = function tracedFetch
const initEnv = { ...otherEnv };
delete initEnv.PULLBOARD_MODEL; // Pairing imports the source coordinator's declaration.
assert.equal((await childResult(otherRoot, initEnv, [CLI, 'init', '--json'])).code, 0, 'the cloned project initializes its private local board');
- const joined = await run('relay', 'join', code, '--url', origin);
+ const joined = await run('relay', 'join', code, '--url', origin, ...(name === undefined ? [] : ['--name', name]));
const document = joined.document;
- if (joined.code !== 0) throw new Error('real clone did not join the one-use pairing code');
+ if (joined.code !== 0) {
+ const refusal = document?.error?.code;
+ throw new Error(`real clone did not join the one-use pairing code (${typeof refusal === 'string' && /^[A-Z0-9_]+$/u.test(refusal) ? refusal : 'NO_TYPED_REFUSAL'})`);
+ }
const exported = await run('export');
if (exported.code !== 0) throw new Error('paired clone could not read its restored board');
const link = JSON.parse(readFileSync(join(otherRoot, '.git', 'pullboard', 'relay.json'), 'utf8'));