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.

refactor(person): keep re-exports on main's lines under the cap [C7]

Corey Olsonc12f34dee90f
diff --git a/src/board.js b/src/board.js
index e42f0236..7bd20227 100644
--- a/src/board.js
+++ b/src/board.js
@@ -274,51 +274,16 @@ import {
carriesFlakeDiagnostics,
} from './flake-engine.js';
export { landingFlakes, landingWaiverCovers, landingWaiverKind };
-export {
- landingWaivers,
- landingWaiverFor,
- waivedLandingProof,
-} from './landing-waivers.js';
+export { landingWaivers, landingWaiverFor, waivedLandingProof } from './landing-waivers.js';
export { acceptCheck } from './check-accept.js';
-export {
- declareJob,
- recordJobRun,
-} from './recurring-jobs.js';
-export {
- proposeSentinel,
- decideSentinel,
- beginSentinelRun,
- finishSentinelRun,
-} from './sentinels.js';
-export {
- flakeLedger,
- recordFlakeObservation,
-} from './flakes.js';
-export {
- flakeQuarantines,
- gateRuns,
- recordGateRun,
-} from './quarantine.js';
-export {
- personProposals,
- personSigning,
- proposePersonMove,
- setPersonSigning,
-} from './person-signing.js'; // Signed person moves [E22].
+export { declareJob, recordJobRun } from './recurring-jobs.js';
+export { proposeSentinel, decideSentinel, beginSentinelRun, finishSentinelRun } from './sentinels.js';
+export { flakeLedger, recordFlakeObservation } from './flakes.js';
+export { flakeQuarantines, gateRuns, recordGateRun } from './quarantine.js';
+export { personProposals, personSigning, proposePersonMove, setPersonSigning } from './person-signing.js'; // Signed person moves [E22].
export { recordPublishFinding } from './pr-findings.js';
/** The seat readers live in seats.js; the board re-exports them so `store.*` callers keep one import. */
-export {
- agentAt,
- agentById,
- agentCreator,
- coordinatorHolder,
- listAgents,
- nextSeatId,
- seatEnrolled,
- seatLineage,
- takeCoordinator,
- withVerifierStanding,
-} from './seats.js';
+export { agentAt, agentById, agentCreator, coordinatorHolder, listAgents, nextSeatId, seatEnrolled, seatLineage, takeCoordinator, withVerifierStanding } from './seats.js';
export const ACCEPT_REASON = 'CRITERION_MET';
export { PERSON } from './board-query.js';
@@ -2220,27 +2185,10 @@ export function releaseItemHold(board, id, { agentId }) {
// A lane agent's drafted rows live in row-drafts.js (#878); exported here so the engine dispatches them.
-export {
- draftSpecRow,
- rowDrafts,
-} from './row-drafts.js';
-export {
- recordSpecApprovalBaseline,
- specApprovalBaseline,
- specApprovalBaselineExists,
-} from './spec-approval-baseline.js';
+export { draftSpecRow, rowDrafts } from './row-drafts.js';
+export { recordSpecApprovalBaseline, specApprovalBaseline, specApprovalBaselineExists } from './spec-approval-baseline.js';
// The roadmap's moves live in milestones.js; the board keeps exporting them so the engine replays them.
-export {
- addMilestone,
- canonicalMilestoneTarget,
- editMilestone,
- editMilestoneItems,
- orderMilestoneItems,
- moveMilestone,
- removeMilestone,
- roadmap,
- shipMilestone,
-} from './milestones.js';
+export { addMilestone, canonicalMilestoneTarget, editMilestone, editMilestoneItems, orderMilestoneItems, moveMilestone, removeMilestone, roadmap, shipMilestone } from './milestones.js';
export { rowDecisions } from './board-query.js';
@@ -2305,14 +2253,7 @@ export function applyRowDecisions(board, { agentId, events }) {
}
-export {
- recentShouts,
- eventsOfKinds,
- recentEvents,
- lastMoves,
- decisionAndEvidenceShouts,
- submitInvariantEvents,
-} from './board-hot.js';
+export { recentShouts, eventsOfKinds, recentEvents, lastMoves, decisionAndEvidenceShouts, submitInvariantEvents } from './board-hot.js';
export { stats } from './board-stats.js';
diff --git a/test/api.test.js b/test/api.test.js
index abb2a65e..301196fd 100644
--- a/test/api.test.js
+++ b/test/api.test.js
@@ -1,15 +1,7 @@
/** The public, versioned JSON surface of every pullboard command (A1). */
import assert from 'node:assert/strict';
import { randomUUID } from 'node:crypto';
-import {
- runFixtureExecFile as execFileSync,
- startFixtureChild as spawn,
- runFixtureChild as spawnSync,
- reportFixtureChildFailure,
- runFixtureChild,
- runFixtureGit,
- safeFixtureDiagnostic,
-} from './fixture-child.js';
+import { runFixtureExecFile as execFileSync, startFixtureChild as spawn, runFixtureChild as spawnSync, reportFixtureChildFailure, runFixtureChild, runFixtureGit, safeFixtureDiagnostic } from './fixture-child.js';
import { performance } from 'node:perf_hooks';
import {
appendFileSync,
@@ -27,46 +19,17 @@ import { tmpdir } from 'node:os';
import { DatabaseSync } from 'node:sqlite';
import { once } from 'node:events';
import { createServer } from 'node:http';
-import {
- join,
- dirname,
- resolve,
- basename,
- delimiter,
-} from 'node:path';
-import {
- after,
- test,
-} from 'node:test';
-import {
- main,
- resultCommands,
-} from '../src/cli.js';
+import { join, dirname, resolve, basename, delimiter } from 'node:path';
+import { after, test } from 'node:test';
+import { main, resultCommands } from '../src/cli.js';
import { createLocalApiHandler } from '../src/api.js';
import { serveApi } from '../src/api.js';
import * as apiExports from '../src/api.js';
-import {
- addItem as addBoardItem,
- allShouts,
- EVENT_LOG_VERSION,
- closeBoard,
- events as boardEvents,
- openBoard,
- verdictsFor,
-} from '../src/board.js';
+import { addItem as addBoardItem, allShouts, EVENT_LOG_VERSION, closeBoard, events as boardEvents, openBoard, verdictsFor } from '../src/board.js';
import { SIGNED_EVENT_LOG_VERSION } from '../src/board.js';
-
-// The newest event-log format this Pullboard reads: a board with signed person moves is format 2 [E22].
-const READABLE_EVENT_LOG = Math.max(EVENT_LOG_VERSION, SIGNED_EVENT_LOG_VERSION);
-import {
- presentationShout,
- relayPresentation,
-} from '../src/relay-presentation.js';
+import { presentationShout, relayPresentation } from '../src/relay-presentation.js';
import { JSON_SHAPES } from '../src/json.js';
-import {
- projectState,
- serveView,
-} from '../src/serve.js';
+import { projectState, serveView } from '../src/serve.js';
import { registerProject } from '../src/projects.js';
import { SSH_SHELL_MARKERS } from '../src/person.js';
import {
@@ -77,6 +40,9 @@ import {
timedMs,
} from './api-fixture.js';
+// The newest event-log format this Pullboard reads: a board with signed person moves is format 2 [E22].
+const READABLE_EVENT_LOG = Math.max(EVENT_LOG_VERSION, SIGNED_EVENT_LOG_VERSION);
+
const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');
const TEMP_DIRS = [];
const covered = new Set();
@@ -608,10 +574,7 @@ test('[A5, A6] a future-schema worktree cannot migrate the shared board; main ca
writeFileSync(guardedSource, unguardedText);
const mutationProbe = join(unguarded, '.schema-mutation-probe.mjs');
writeFileSync(mutationProbe, `
- import {
- openBoard,
- closeBoard,
-} from './src/board.js';
+ import { openBoard, closeBoard } from './src/board.js';
const board = openBoard(process.env.PULLBOARD_FIXTURE_BOARD, undefined, { isMain: false });
closeBoard(board);
`);