From c046cafcd2669b53e8898ddae60ae2560da36405 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Fri, 16 Oct 2026 23:50:00 -0400 Subject: [PATCH 01/35] test: require provider availability transitions in the existing Workday event stream Unit SQL-output contract, not native integration proof. Preserve private adapter observation redaction and exact input bytes. --- .../ontology/availability-history.test.ts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/unit/control-plane/capacity/ontology/availability-history.test.ts diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts new file mode 100644 index 00000000..b0d8c3cf --- /dev/null +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -0,0 +1,30 @@ +import {expect,it,vi} from 'vitest'; +import {AvailabilitySessionRepository,type AvailabilitySessionWrite} from '../../../../../src/api/capacity/repositories/accounts/availability-session.ts'; +import type {CapacityGovernanceDatabase,CapacityDatabaseOperation} from '../../../../../src/api/capacity/database.ts'; +import {canonicalOfferBuildInput} from '../execution/fixtures/assignment-attempt-fixtures.ts'; + +it('publishes the committed provider availability transition into existing scoped Workday event operations without private adapter observations',async()=>{ + const at='2026-10-17T00:00:00.000Z',provider=canonicalOfferBuildInput(at).providers[0]!; + const input:AvailabilitySessionWrite={id:'session',membershipId:'membership',teamId:'team',providerId:'provider',environment:'local',sequence:1, + openedAt:at,refreshedAt:at,expiresAt:'2026-10-17T00:01:00.000Z',availableFrom:at,availableUntil:null, + executionProviders:[{...provider,id:'configured-adapter',adapter:'codex',status:'active',maxConcurrentRunners:1, + observations:{credential:'PRIVATE_ADAPTER_OBSERVATION'},accountingObservation:{modelUsage:{day:'2026-10-17',observedAt:at,healthy:true,activeSeconds:0,reservedSeconds:0},capabilityUsage:{}}}], + capabilities:provider.capabilities,nativeLimits:{},runnerPressure:{},constraints:{},metadata:{}}; + const row={id:input.id,membership_id:input.membershipId,team_id:input.teamId,capacity_provider_id:input.providerId,status:'open',sequence:1, + opened_at:at,refreshed_at:at,expires_at:input.expiresAt,available_from:at,available_until:null,closed_at:null, + execution_providers_json:JSON.stringify(input.executionProviders),capabilities_json:JSON.stringify(input.capabilities), + native_limits_json:'{}',runner_pressure_json:'{}',constraints_json:'{}',metadata_json:'{}'}; + const operations:CapacityDatabaseOperation[]=[],before=structuredClone(input); + const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async()=>{}), + first:vi.fn().mockResolvedValue(row), + all:vi.fn().mockResolvedValue([{id:'workday',team_id:'team',status:'running'}]), + batch:vi.fn(async batch=>{operations.push(...structuredClone(batch));return batch.map(()=>({results:[]}));})}; + const result=await new AvailabilitySessionRepository(database).open(input,[]); + expect(result).toMatchObject({id:'session',sequence:1,status:'open'}); + const observations=operations.filter(operation=>operation.query.includes('INSERT INTO capacity_workday_events')); + expect(observations).toHaveLength(1); + expect(JSON.stringify(observations)).toContain('provider.availability.updated'); + expect(JSON.stringify(observations)).toContain('session'); + expect(JSON.stringify(observations)).not.toContain('PRIVATE_ADAPTER_OBSERVATION'); + expect(input).toEqual(before); +}); From 1792926a39196ef375f29a76a96e0e9ff9c2de72 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Fri, 16 Oct 2026 23:52:40 -0400 Subject: [PATCH 02/35] test: retain native provider availability history in exact public Workday observations Strengthen the original owning PostgreSQL case before repair. Independent pool compares exact original open/close clocks and sequence with complete public history; completed/foreign workdays retain zero event indices. Original invalid publication snapshots now include events/run clocks. Preserve all existing native assertions and the original watchdog. Native execution remains pending. --- .../ontology/availability-postgres.test.ts | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 3c472b2a..a2f8032c 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -1,3 +1,4 @@ +import {CapacityWorkdayEventRepository} from '../../../../../src/api/capacity/repositories/capacity/workdays/workday-event.ts'; import {providerAccountingStatus} from '../../../../../src/api/control-plane/repositories/providers/provider-runtime-service.ts'; import { randomUUID, generateKeyPairSync, createHash } from 'node:crypto'; import pg from 'pg'; @@ -33,6 +34,23 @@ describe('provider accounting in disposable PostgreSQL', () => { all: async >(sql: string, params: unknown[] = []) => (await f.left.prepare(sql).bind(...params).all()).results, batch: (operations: Array<{ query: string; params?: unknown[] }>) => f.left.batch(operations) }; const principal = { teamId: 'team', membershipId: 'membership', capacityProviderId: 'provider' }; + await f.left.pool.query("INSERT INTO teams (id,slug,name,created_at,updated_at) VALUES ('availability-other-team','availability-other-team','Unrelated observation input',$1,$1)",[original.now]); + for(const[id,team,status]of[['availability-live','team','running'],['availability-ended','team','completed'],['availability-foreign','availability-other-team','running']]as const) + await f.left.pool.query("INSERT INTO capacity_workday_runs (id,team_id,status,execution_mode,execution_kind,started_at,created_at,updated_at) VALUES ($1,$2,$3,'simulation','workday',$4,$4,$4)",[id,team,status,original.now]); + const observeAvailability=async(expected:Array<{sequence:number;status:string;at:string}>)=>{ + const raw=(await f.right.pool.query("SELECT * FROM capacity_workday_events WHERE event_type='provider.availability.updated' ORDER BY run_id,event_index")).rows; + expect(raw).toHaveLength(expected.length);expect(raw.map(value=>value.run_id)).toEqual(expected.map(()=>'availability-live')); + const page=await new CapacityWorkdayEventRepository(store).list('team','availability-live',{limit:200}); + expect(page.page.hasMore).toBe(false);expect(page.items).toHaveLength(expected.length); + for(const[index,value]of raw.entries()){ + expect(value.event_index).toBe(index);expect(value.created_at).toBe(expected[index]!.at); + const context=JSON.parse(String(value.context_json));expect(context).toMatchObject({providerId:'provider',membershipId:'membership',availabilitySessionId:opened.id,sequence:expected[index]!.sequence,status:expected[index]!.status}); + expect(page.items[index]!.id).toBe(value.id);expect(page.items[index]!.context).toEqual(context); + expect(JSON.stringify(value)).not.toContain('opaque-controlled-private-adapter-field'); + } + const unrelated=(await f.right.pool.query("SELECT id,next_event_index FROM capacity_workday_runs WHERE id IN ('availability-ended','availability-foreign') ORDER BY id")).rows; + expect(unrelated).toEqual([{id:'availability-ended',next_event_index:0},{id:'availability-foreign',next_event_index:0}]); + }; const modelPolicy={provider:'openai',model:'configured-luna',reasoningEffort:'low',capabilities:adapter.capabilities}; const input = { adapters: [{ id: adapter.id, runtimeBuild: adapter.runtimeBuild, offers: adapter.offers, capabilities: adapter.capabilities, status: 'available', maxConcurrentWorkers: 1, activeWorkers: 0, @@ -43,9 +61,10 @@ describe('provider accounting in disposable PostgreSQL', () => { priority: 1, capabilities: adapter.capabilities })) }; const inputBefore = structuredClone(input), service = new AvailabilitySessionService(store); const opened = await service.open(principal, input); if (!opened) throw new Error('Actual canonical session publication required'); + await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt}]); const compileNow = new Date().toISOString(); const buildSource = { ...original, run: canonicalOfferBuildInput(compileNow).run, now: compileNow }; - const tables = ['capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', + const tables = ['capacity_workday_runs','capacity_workday_events','capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', 'capacity_execution_providers', 'capacity_provider_lanes', 'execution_capability_offers', 'capacity_provider_assignments', 'capacity_reservations', 'capacity_usage_actuals', 'capacity_ledger_entries', 'capacity_operation_receipts']; const snapshot = async (database: typeof f.left) => { @@ -158,7 +177,9 @@ describe('provider accounting in disposable PostgreSQL', () => { expect(outcome.cause, outcome.name).toMatchObject({ status: 409, code: 'capacity_execution_provider_unavailable' }); } expect(await compile()).toEqual(frozen); expect(await snapshot(f.right)).toEqual(baseline); - await service.close(principal, opened.id); const closed = await snapshot(f.right); + const terminalAvailability=await service.close(principal, opened.id);if(!terminalAvailability?.closedAt)throw new Error('Original terminal availability required'); + await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:terminalAvailability.sequence,status:'closed',at:terminalAvailability.closedAt}]); + const closed = await snapshot(f.right); await expect(compile()).rejects.toMatchObject({ status: 409, code: 'provider_synthesis_session_not_open' }); expect(await snapshot(f.left)).toEqual(closed); expect(input).toEqual(inputBefore); expect(original).toEqual(before); // Original services, full migrations, two PostgreSQL pools and exact From a484d53a113fca175dae886d4a0c95b3bcdc94a6 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:00:37 -0400 Subject: [PATCH 03/35] test: use the existing public capacity audit and reproduce incomplete pagination Correct the initial Workday-stream location after locating createCapacityQueryService.audit. Preserve all failed observations and source ancestry; avoid coupling unrelated Workday locks. Strengthen original native case with complete raw public/independent SQL history, equal-clock pagination inputs, original provider clocks and unchanged all Workday event indices. No new public resource or implementation repair yet. --- .../ontology/availability-history.test.ts | 14 +++++++-- .../ontology/availability-postgres.test.ts | 29 ++++++++++++------- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index b0d8c3cf..835bdfec 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -1,9 +1,10 @@ +import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {expect,it,vi} from 'vitest'; import {AvailabilitySessionRepository,type AvailabilitySessionWrite} from '../../../../../src/api/capacity/repositories/accounts/availability-session.ts'; import type {CapacityGovernanceDatabase,CapacityDatabaseOperation} from '../../../../../src/api/capacity/database.ts'; import {canonicalOfferBuildInput} from '../execution/fixtures/assignment-attempt-fixtures.ts'; -it('publishes the committed provider availability transition into existing scoped Workday event operations without private adapter observations',async()=>{ +it('publishes the committed provider availability transition into existing scoped capacity audit history without private adapter observations',async()=>{ const at='2026-10-17T00:00:00.000Z',provider=canonicalOfferBuildInput(at).providers[0]!; const input:AvailabilitySessionWrite={id:'session',membershipId:'membership',teamId:'team',providerId:'provider',environment:'local',sequence:1, openedAt:at,refreshedAt:at,expiresAt:'2026-10-17T00:01:00.000Z',availableFrom:at,availableUntil:null, @@ -21,10 +22,19 @@ it('publishes the committed provider availability transition into existing scope batch:vi.fn(async batch=>{operations.push(...structuredClone(batch));return batch.map(()=>({results:[]}));})}; const result=await new AvailabilitySessionRepository(database).open(input,[]); expect(result).toMatchObject({id:'session',sequence:1,status:'open'}); - const observations=operations.filter(operation=>operation.query.includes('INSERT INTO capacity_workday_events')); + const observations=operations.filter(operation=>operation.query.includes('INSERT INTO capacity_audit_events')); expect(observations).toHaveLength(1); expect(JSON.stringify(observations)).toContain('provider.availability.updated'); expect(JSON.stringify(observations)).toContain('session'); expect(JSON.stringify(observations)).not.toContain('PRIVATE_ADAPTER_OBSERVATION'); expect(input).toEqual(before); }); + +it('public capacity audit preserves raw records and complete cursor pagination including equal-clock identities',async()=>{ + const at='2026-10-17T00:00:00.000Z',rows=[{id:'audit-b',created_at:at,metadata_json:'{}'},{id:'audit-a',created_at:at,metadata_json:'{}'}]; + const all=vi.fn().mockResolvedValueOnce(rows).mockResolvedValueOnce([rows[1]]),query=createCapacityQueryService({ensureInitialized:async()=>{},all}); + const principal={id:'operator',roles:['admin']}; + const first=await query.audit(principal,'team',{limit:1});expect(first.items).toEqual([rows[0]]);expect(first.page.hasMore).toBe(true);expect(first.page.nextCursor).toBeTruthy(); + const second=await query.audit(principal,'team',{limit:1,cursor:first.page.nextCursor});expect(second.items).toEqual([rows[1]]);expect(second.page.hasMore).toBe(false);expect(second.page.nextCursor).toBeNull(); + expect(all.mock.calls[1]![0]).toContain('id < ?');expect(all.mock.calls[1]![1]).toContain('audit-b'); +}); diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index a2f8032c..6e100e86 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -1,4 +1,4 @@ -import {CapacityWorkdayEventRepository} from '../../../../../src/api/capacity/repositories/capacity/workdays/workday-event.ts'; +import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {providerAccountingStatus} from '../../../../../src/api/control-plane/repositories/providers/provider-runtime-service.ts'; import { randomUUID, generateKeyPairSync, createHash } from 'node:crypto'; import pg from 'pg'; @@ -37,19 +37,26 @@ describe('provider accounting in disposable PostgreSQL', () => { await f.left.pool.query("INSERT INTO teams (id,slug,name,created_at,updated_at) VALUES ('availability-other-team','availability-other-team','Unrelated observation input',$1,$1)",[original.now]); for(const[id,team,status]of[['availability-live','team','running'],['availability-ended','team','completed'],['availability-foreign','availability-other-team','running']]as const) await f.left.pool.query("INSERT INTO capacity_workday_runs (id,team_id,status,execution_mode,execution_kind,started_at,created_at,updated_at) VALUES ($1,$2,$3,'simulation','workday',$4,$4,$4)",[id,team,status,original.now]); + for(const id of ['audit-pagination-a','audit-pagination-b','audit-pagination-c']) + await f.left.pool.query("INSERT INTO capacity_audit_events (id,team_id,actor_type,action,resource_type,metadata_json,created_at) VALUES ($1,'team','controlled-input','controlled.pagination.input','controlled-input','{}',$2)",[id,original.now]); const observeAvailability=async(expected:Array<{sequence:number;status:string;at:string}>)=>{ - const raw=(await f.right.pool.query("SELECT * FROM capacity_workday_events WHERE event_type='provider.availability.updated' ORDER BY run_id,event_index")).rows; - expect(raw).toHaveLength(expected.length);expect(raw.map(value=>value.run_id)).toEqual(expected.map(()=>'availability-live')); - const page=await new CapacityWorkdayEventRepository(store).list('team','availability-live',{limit:200}); - expect(page.page.hasMore).toBe(false);expect(page.items).toHaveLength(expected.length); + const raw=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE team_id='team' AND action='provider.availability.updated' ORDER BY created_at,id")).rows; + expect(raw).toHaveLength(expected.length); + const query=createCapacityQueryService(store),publicRows:typeof raw=[],seen=new Set();let cursor:string|undefined; + do{const page=await query.audit(f.principal,'team',{limit:1,cursor});publicRows.push(...page.items); + if(!page.page.hasMore){expect(page.page.nextCursor).toBeNull();break;} + expect(page.page.nextCursor).toBeTruthy();if(!page.page.nextCursor||seen.has(page.page.nextCursor)||seen.size>10)throw new Error('Complete original audit pagination required'); + seen.add(page.page.nextCursor);cursor=page.page.nextCursor; + }while(cursor); + const complete=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE team_id='team' ORDER BY created_at DESC,id DESC")).rows; + expect(publicRows).toEqual(complete); for(const[index,value]of raw.entries()){ - expect(value.event_index).toBe(index);expect(value.created_at).toBe(expected[index]!.at); - const context=JSON.parse(String(value.context_json));expect(context).toMatchObject({providerId:'provider',membershipId:'membership',availabilitySessionId:opened.id,sequence:expected[index]!.sequence,status:expected[index]!.status}); - expect(page.items[index]!.id).toBe(value.id);expect(page.items[index]!.context).toEqual(context); + expect(value.created_at).toBe(expected[index]!.at); + const context=JSON.parse(String(value.metadata_json));expect(context).toMatchObject({providerId:'provider',membershipId:'membership',availabilitySessionId:opened.id,sequence:expected[index]!.sequence,status:expected[index]!.status}); expect(JSON.stringify(value)).not.toContain('opaque-controlled-private-adapter-field'); } - const unrelated=(await f.right.pool.query("SELECT id,next_event_index FROM capacity_workday_runs WHERE id IN ('availability-ended','availability-foreign') ORDER BY id")).rows; - expect(unrelated).toEqual([{id:'availability-ended',next_event_index:0},{id:'availability-foreign',next_event_index:0}]); + const unrelated=(await f.right.pool.query("SELECT id,next_event_index FROM capacity_workday_runs WHERE id IN ('availability-live','availability-ended','availability-foreign') ORDER BY id")).rows; + expect(unrelated).toEqual([{id:'availability-ended',next_event_index:0},{id:'availability-foreign',next_event_index:0},{id:'availability-live',next_event_index:0}]); }; const modelPolicy={provider:'openai',model:'configured-luna',reasoningEffort:'low',capabilities:adapter.capabilities}; const input = { adapters: [{ id: adapter.id, runtimeBuild: adapter.runtimeBuild, offers: adapter.offers, @@ -64,7 +71,7 @@ describe('provider accounting in disposable PostgreSQL', () => { await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt}]); const compileNow = new Date().toISOString(); const buildSource = { ...original, run: canonicalOfferBuildInput(compileNow).run, now: compileNow }; - const tables = ['capacity_workday_runs','capacity_workday_events','capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', + const tables = ['capacity_audit_events','capacity_workday_runs','capacity_workday_events','capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', 'capacity_execution_providers', 'capacity_provider_lanes', 'execution_capability_offers', 'capacity_provider_assignments', 'capacity_reservations', 'capacity_usage_actuals', 'capacity_ledger_entries', 'capacity_operation_receipts']; const snapshot = async (database: typeof f.left) => { From cb53c12e94c386c548c0a0afac68f7d2988e3436 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:02:31 -0400 Subject: [PATCH 04/35] test: respect the original SQL row limit before asserting missing audit continuation --- .../capacity/ontology/availability-history.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 835bdfec..5f8801d8 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -32,7 +32,7 @@ it('publishes the committed provider availability transition into existing scope it('public capacity audit preserves raw records and complete cursor pagination including equal-clock identities',async()=>{ const at='2026-10-17T00:00:00.000Z',rows=[{id:'audit-b',created_at:at,metadata_json:'{}'},{id:'audit-a',created_at:at,metadata_json:'{}'}]; - const all=vi.fn().mockResolvedValueOnce(rows).mockResolvedValueOnce([rows[1]]),query=createCapacityQueryService({ensureInitialized:async()=>{},all}); + const all=vi.fn(async(sql:string,parameters:unknown[])=>rows.filter(row=>parameters.length<3||row.id{},all}); const principal={id:'operator',roles:['admin']}; const first=await query.audit(principal,'team',{limit:1});expect(first.items).toEqual([rows[0]]);expect(first.page.hasMore).toBe(true);expect(first.page.nextCursor).toBeTruthy(); const second=await query.audit(principal,'team',{limit:1,cursor:first.page.nextCursor});expect(second.items).toEqual([rows[1]]);expect(second.page.hasMore).toBe(false);expect(second.page.nextCursor).toBeNull(); From 808b4e12e03930d5bd345a042f0d72fb955a15c0 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:04:28 -0400 Subject: [PATCH 05/35] fix: retain availability transitions in existing public paginated capacity audit --- .../accounts/availability-observation.ts | 33 +++++++++++++++++++ .../accounts/availability-session.ts | 16 ++++++--- .../capacity/repositories/support/audit.ts | 18 ++++++++-- .../accounts/availability-session-service.ts | 8 +++-- .../capacity/capacity-query-service.ts | 4 +-- .../ontology/availability-history.test.ts | 5 +-- 6 files changed, 69 insertions(+), 15 deletions(-) create mode 100644 src/api/capacity/repositories/accounts/availability-observation.ts diff --git a/src/api/capacity/repositories/accounts/availability-observation.ts b/src/api/capacity/repositories/accounts/availability-observation.ts new file mode 100644 index 00000000..e227bfe3 --- /dev/null +++ b/src/api/capacity/repositories/accounts/availability-observation.ts @@ -0,0 +1,33 @@ +import {isDeepStrictEqual} from 'node:util'; +import type {ProviderAvailabilitySession} from '@treeseed/sdk/capacity-provider/contracts'; +import type {CapacityGovernanceDatabase} from '../../database.ts'; +import {CapacityGovernanceError} from '../../database.ts'; +import {CapacityAuditRepository} from '../support/audit.ts'; +type Row=Record; +const object=(value:unknown):Row=>value&&typeof value==='object'&&!Array.isArray(value)?value as Row:{}; +const healthy=(value:unknown):boolean|null=>{if(value===undefined||value===null)return null;if(typeof value!=='boolean')throw new CapacityGovernanceError('provider_availability_observation_invalid','Availability health observation must remain an original boolean.',500);return value;}; + +/** Existing audit is observation history; the session remains the supply authority. */ +export async function observeAvailabilitySession(database:CapacityGovernanceDatabase,session:ProviderAvailabilitySession):Promise{ + const now=session.status==='closed'?session.closedAt:session.refreshedAt; + if(!now||!Number.isFinite(Date.parse(now))||!Number.isSafeInteger(session.sequence)||session.sequence<1) + throw new CapacityGovernanceError('provider_availability_observation_invalid','Original availability identity sequence and clock required.',500); + const adapters=session.snapshot.adapters.map(adapter=>{ + const accounting=object(adapter.accountingObservation),model=object(accounting.modelUsage),capabilities=object(accounting.capabilityUsage); + return{id:adapter.id,status:adapter.status,runtimeBuild:adapter.runtimeBuild??null,capabilities:adapter.capabilities,laneIds:adapter.laneIds, + offers:(adapter.offers??[]).map(offer=>({offerId:offer.offerId,offerDigest:offer.offerDigest})), + modelHealthy:healthy(model.healthy),capabilityHealth:Object.fromEntries(adapter.capabilities.map(id=>[id,healthy(object(capabilities[id]).healthy)]))}; + }); + if(new Set(adapters.map(adapter=>adapter.id)).size!==adapters.length) + throw new CapacityGovernanceError('provider_availability_observation_invalid','Ambiguous adapter inventory cannot become history.',500); + const metadata={providerId:session.providerId,membershipId:session.membershipId,availabilitySessionId:session.id,sequence:session.sequence,status:session.status, + openedAt:session.openedAt,refreshedAt:session.refreshedAt,expiresAt:session.expiresAt,closedAt:session.closedAt, + pressure:session.snapshot.pressure,availableWorkers:session.snapshot.availableWorkers,adapters}; + const action='provider.availability.updated',key=session.sequence+':'+session.status; + await new CapacityAuditRepository(database).recordOnce({teamId:session.teamId,providerId:session.providerId,membershipId:session.membershipId, + actorType:'system',actorId:null,action,resourceType:'provider-availability-session',resourceId:session.id,idempotencyKey:key,metadata,now},session.id+':'+key); + const rows=await database.all('SELECT * FROM capacity_audit_events WHERE team_id=? AND action=? AND resource_id=? AND idempotency_key=?',[session.teamId,action,session.id,key]); + const row=rows[0];let retained:unknown;try{retained=JSON.parse(String(row?.metadata_json));}catch{/* Original malformed bytes remain retained. */} + if(rows.length!==1||!row||row.capacity_provider_id!==session.providerId||row.membership_id!==session.membershipId||row.created_at!==now||!isDeepStrictEqual(retained,metadata)) + throw new CapacityGovernanceError('provider_availability_observation_conflict','Availability requires its exact original durable public audit observation.',500); +} diff --git a/src/api/capacity/repositories/accounts/availability-session.ts b/src/api/capacity/repositories/accounts/availability-session.ts index 136f6309..03c810b2 100644 --- a/src/api/capacity/repositories/accounts/availability-session.ts +++ b/src/api/capacity/repositories/accounts/availability-session.ts @@ -1,3 +1,4 @@ +import {observeAvailabilitySession} from './availability-observation.ts'; import { encodeCapacityPageCursor,type CapacityPage,type CapacityPageCursor } from '@treeseed/sdk/capacity-pagination'; import type { ProviderAvailabilitySession,ProviderAvailabilitySessionStatus } from '@treeseed/sdk/capacity-provider/contracts'; import type { CapacityDatabaseOperation,CapacityGovernanceDatabase } from '../../database.ts'; @@ -74,6 +75,7 @@ export class AvailabilitySessionRepository { async open(input: AvailabilitySessionWrite, providerOperations: CapacityDatabaseOperation[]) { await this.database.ensureInitialized(); + const previous=await this.database.all("SELECT id FROM capacity_provider_availability_sessions WHERE membership_id=? AND status IN ('open','draining') ORDER BY id",[input.membershipId]); // These rows serialize publication without changing their referenced keys. // KEY SHARE from in-flight assignment/reservation FKs must remain compatible. await this.database.batch([ @@ -82,7 +84,8 @@ export class AvailabilitySessionRepository { { query: `UPDATE capacity_provider_availability_sessions SET status = 'closed', closed_at = COALESCE(closed_at, ?), updated_at = ? WHERE membership_id = ? AND status IN ('open','draining')`, params: [input.openedAt, input.openedAt, input.membershipId] }, { query: `INSERT INTO capacity_provider_availability_sessions (id, membership_id, team_id, capacity_provider_id, environment, status, sequence, opened_at, refreshed_at, expires_at, available_from, available_until, execution_providers_json, capabilities_json, native_limits_json, runner_pressure_json, constraints_json, metadata_json, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 'open', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, params: [input.id, input.membershipId, input.teamId, input.providerId, input.environment, input.sequence, input.openedAt, input.refreshedAt, input.expiresAt, input.availableFrom, input.availableUntil, JSON.stringify(input.executionProviders), JSON.stringify(input.capabilities), JSON.stringify(input.nativeLimits), JSON.stringify(input.runnerPressure), JSON.stringify(input.constraints), JSON.stringify(input.metadata), input.openedAt, input.openedAt] }, ]); - return this.get(input.teamId, input.id); + for(const value of previous){const closed=await this.get(input.teamId,String(value.id));if(!closed||closed.status!=='closed')throw new CapacityGovernanceError('provider_availability_observation_conflict','Replaced availability closure is missing.',500);await observeAvailabilitySession(this.database,closed);} + const current=await this.get(input.teamId,input.id);if(!current)throw new CapacityGovernanceError('provider_availability_observation_conflict','Committed availability is missing.',500);await observeAvailabilitySession(this.database,current);return current; } async refresh(input: AvailabilitySessionWrite, expectedSequence: number, providerOperations: CapacityDatabaseOperation[]) { @@ -94,14 +97,14 @@ export class AvailabilitySessionRepository { ]); const updateResult = (results as Array<{ results?: Row[] }>).at(-1)?.results?.[0] ?? null; if (!updateResult || Number(updateResult.sequence) !== expectedSequence + 1) return null; - return this.get(input.teamId, input.id); + const current=await this.get(input.teamId,input.id);if(!current)throw new CapacityGovernanceError('provider_availability_observation_conflict','Committed refresh is missing.',500);await observeAvailabilitySession(this.database,current);return current; } async close(teamId: string, membershipId: string, sessionId: string) { await this.database.ensureInitialized(); const now = new Date().toISOString(); await this.database.run(`UPDATE capacity_provider_availability_sessions SET status = 'closed', closed_at = COALESCE(closed_at, ?), updated_at = ? WHERE id = ? AND membership_id = ? AND team_id = ? AND status IN ('open','draining')`, [now, now, sessionId, membershipId, teamId]); - return this.get(teamId, sessionId); + const current=await this.get(teamId,sessionId);if(current?.status==='closed')await observeAvailabilitySession(this.database,current);return current; } /** Retire only sessions referenced by this workday, after every consumer and reservation has closed. */ @@ -114,16 +117,19 @@ export class AvailabilitySessionRepository { AND owned.team_id=session.team_id)`; // The same row lock is acquired by final admission. A separate statement // after that lock observes claims committed while closure was waiting. - await this.database.batch([ + const results=await this.database.batch([ { query: `SELECT session.id FROM capacity_provider_availability_sessions session WHERE ${owned} ORDER BY session.id FOR NO KEY UPDATE`, params: [teamId,workdayId] }, { query: `UPDATE capacity_provider_availability_sessions session SET status='closed',closed_at=COALESCE(closed_at,?),updated_at=? WHERE session.status IN ('open','draining') AND ${owned} AND NOT EXISTS (SELECT 1 FROM capacity_provider_assignments active WHERE active.provider_session_id=session.id AND (active.status IN ('pending','leased','running') OR EXISTS (SELECT 1 FROM capacity_reservations reservation WHERE reservation.assignment_id=active.id - AND reservation.team_id=active.team_id AND reservation.state NOT IN ('consumed','released','expired','failed'))))`, + AND reservation.team_id=active.team_id AND reservation.state NOT IN ('consumed','released','expired','failed')))) RETURNING session.id`, params: [now,now,teamId,workdayId] }, ]); + const changed=Array.isArray(results)?Reflect.get(Object(results.at(-1)),'results'):undefined; + if(!Array.isArray(changed))throw new CapacityGovernanceError('provider_availability_observation_conflict','Native close inventory is unavailable.',500); + for(const value of changed){if(!value||typeof value.id!=='string')throw new CapacityGovernanceError('provider_availability_observation_conflict','Native closed identity is unavailable.',500);const closed=await this.get(teamId,value.id);if(!closed||closed.status!=='closed')throw new CapacityGovernanceError('provider_availability_observation_conflict','Closed native session is missing.',500);await observeAvailabilitySession(this.database,closed);} } async get(teamId: string, sessionId: string) { diff --git a/src/api/capacity/repositories/support/audit.ts b/src/api/capacity/repositories/support/audit.ts index d4d1df71..43175d51 100644 --- a/src/api/capacity/repositories/support/audit.ts +++ b/src/api/capacity/repositories/support/audit.ts @@ -146,6 +146,18 @@ export class CapacityAuditRepository { limit?: unknown; cursor?: unknown; } = {}): Promise> { + const result=await this.listRowsPage(teamId,input); + return {...result,items:result.items.map(auditEvent)}; + } + async listRowsPage(teamId: string, input: { + providerId?: unknown; + membershipId?: unknown; + action?: unknown; + resourceType?: unknown; + resourceId?: unknown; + limit?: unknown; + cursor?: unknown; + } = {}): Promise>> { await this.database.ensureInitialized(); let limit: number; let cursor; @@ -167,17 +179,17 @@ export class CapacityAuditRepository { } } if (cursor) { - clauses.push('(created_at < ? OR (created_at = ? AND id > ?))'); + clauses.push('(created_at < ? OR (created_at = ? AND id < ?))'); values.push(cursor.createdAt, cursor.createdAt, cursor.id); } const rows = await this.database.all( - `SELECT * FROM capacity_audit_events WHERE ${clauses.join(' AND ')} ORDER BY created_at DESC, id ASC LIMIT ?`, + `SELECT * FROM capacity_audit_events WHERE ${clauses.join(' AND ')} ORDER BY created_at DESC, id DESC LIMIT ?`, [...values, limit + 1], ); const selected = rows.slice(0, limit); const last = selected.at(-1); return { - items: selected.map(auditEvent), + items: selected, page: { limit, hasMore: rows.length > limit, diff --git a/src/api/capacity/services/accounts/availability-session-service.ts b/src/api/capacity/services/accounts/availability-session-service.ts index 312a9419..14ba323b 100644 --- a/src/api/capacity/services/accounts/availability-session-service.ts +++ b/src/api/capacity/services/accounts/availability-session-service.ts @@ -78,12 +78,14 @@ export class AvailabilitySessionService { } async close(principal: ProviderAvailabilityPrincipal, sessionId: string) { - await this.assertMembership(principal); - const existing = await this.repository.get(principal.teamId, sessionId); + return capacityTransaction(this.database,async database=>{const owner=new AvailabilitySessionService(database); + await owner.assertMembership(principal); + const existing = await owner.repository.get(principal.teamId, sessionId); if (!existing || existing.membershipId !== principal.membershipId || existing.providerId !== principal.capacityProviderId) return null; if (existing.status === 'closed' || existing.status === 'expired') return existing; if (existing.status !== 'open' && existing.status !== 'draining') throw new CapacityGovernanceError('provider_availability_close_conflict', `Availability session in ${existing.status} state cannot be closed.`, 409, { sessionId }); - return this.repository.close(principal.teamId, principal.membershipId, sessionId); + return owner.repository.close(principal.teamId, principal.membershipId, sessionId); + }); } private async accountingTransaction(principal: ProviderAvailabilityPrincipal, write: AvailabilitySessionWrite, diff --git a/src/api/control-plane/repositories/capacity/capacity-query-service.ts b/src/api/control-plane/repositories/capacity/capacity-query-service.ts index a9994cb7..71a40bec 100644 --- a/src/api/control-plane/repositories/capacity/capacity-query-service.ts +++ b/src/api/control-plane/repositories/capacity/capacity-query-service.ts @@ -1,3 +1,4 @@ +import {CapacityAuditRepository} from '../../../capacity/repositories/support/audit.ts'; import { decodeCapacityPageCursor, normalizeCapacityPageLimit } from '@treeseed/sdk/capacity-pagination'; import type { CapacityGrantStatus } from '@treeseed/sdk/agent-capacity'; import { optionalAvailabilityStatus } from '../../../capacity/services/accounts/availability-session-service.ts'; @@ -55,8 +56,7 @@ export function createCapacityQueryService(store: any) { }, async audit(principal: CapacityPrincipal, teamId: string, query: Record) { await authorizeCapacityTeam(store, principal, teamId, 'projects:read:team'); - const { limit } = page(query); - return { items: await store.all(`SELECT * FROM capacity_audit_events WHERE team_id = ? ORDER BY created_at DESC, id DESC LIMIT ?`, [teamId, limit]), page: { limit, hasMore: false, nextCursor: null } }; + try{return await new CapacityAuditRepository(store).listRowsPage(teamId,{limit:query.limit,cursor:query.cursor});}catch(error){translate(error);} }, async lanes(principal: CapacityPrincipal, teamId: string) { await authorizeCapacityTeam(store, principal, teamId, 'projects:read:team'); diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 5f8801d8..1ac15d2c 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -16,9 +16,10 @@ it('publishes the committed provider availability transition into existing scope execution_providers_json:JSON.stringify(input.executionProviders),capabilities_json:JSON.stringify(input.capabilities), native_limits_json:'{}',runner_pressure_json:'{}',constraints_json:'{}',metadata_json:'{}'}; const operations:CapacityDatabaseOperation[]=[],before=structuredClone(input); - const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async()=>{}), + const all=vi.fn().mockResolvedValue([]); + const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async(query:string,params:unknown[]=[])=>{operations.push({query,params});if(query.includes('INSERT INTO capacity_audit_events')){const [id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;all.mockResolvedValue([{id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at}]);}}), first:vi.fn().mockResolvedValue(row), - all:vi.fn().mockResolvedValue([{id:'workday',team_id:'team',status:'running'}]), + all, batch:vi.fn(async batch=>{operations.push(...structuredClone(batch));return batch.map(()=>({results:[]}));})}; const result=await new AvailabilitySessionRepository(database).open(input,[]); expect(result).toMatchObject({id:'session',sequence:1,status:'open'}); From 2cc9eca9460fbf6efb4e3ba781fc4b1838f0c9df Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:08:34 -0400 Subject: [PATCH 06/35] test: retain native availability rollback competing publication and exact replay observations --- .../ontology/availability-postgres.test.ts | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 6e100e86..74f35869 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -50,9 +50,9 @@ describe('provider accounting in disposable PostgreSQL', () => { }while(cursor); const complete=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE team_id='team' ORDER BY created_at DESC,id DESC")).rows; expect(publicRows).toEqual(complete); - for(const[index,value]of raw.entries()){ - expect(value.created_at).toBe(expected[index]!.at); - const context=JSON.parse(String(value.metadata_json));expect(context).toMatchObject({providerId:'provider',membershipId:'membership',availabilitySessionId:opened.id,sequence:expected[index]!.sequence,status:expected[index]!.status}); + const identities=new Set();for(const value of raw){ + const context=JSON.parse(String(value.metadata_json)),match=expected.filter(item=>item.sequence===context.sequence&&item.status===context.status);expect(match).toHaveLength(1);expect(value.created_at).toBe(match[0]!.at);const key=context.sequence+':'+context.status;expect(identities.has(key)).toBe(false);identities.add(key); + expect(context).toMatchObject({providerId:'provider',membershipId:'membership',availabilitySessionId:opened.id}); expect(JSON.stringify(value)).not.toContain('opaque-controlled-private-adapter-field'); } const unrelated=(await f.right.pool.query("SELECT id,next_event_index FROM capacity_workday_runs WHERE id IN ('availability-live','availability-ended','availability-foreign') ORDER BY id")).rows; @@ -184,8 +184,33 @@ describe('provider accounting in disposable PostgreSQL', () => { expect(outcome.cause, outcome.name).toMatchObject({ status: 409, code: 'capacity_execution_provider_unavailable' }); } expect(await compile()).toEqual(frozen); expect(await snapshot(f.right)).toEqual(baseline); + const refreshInput={...structuredClone(input),expectedSequence:opened.sequence}; + const originalHealth=refreshInput.adapters[0]!.accountingObservation; + if(!originalHealth)throw new Error('Original configured health observation required'); + Object.assign(originalHealth.modelUsage,{healthy:false}); + const refreshBefore=structuredClone(refreshInput),failedAvailability:Array<{mode:string;cause:unknown;unchanged:boolean}>=[]; + for(const mode of ['missing','interrupted']){ + await f.left.pool.query("CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"); + await f.left.pool.query('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()'); + let cause:unknown; + try{await service.refresh(principal,opened.id,refreshInput);}catch(error){cause=error;} + finally{await f.left.pool.query('DROP TRIGGER retained_availability_observation_fault ON capacity_audit_events');await f.left.pool.query('DROP FUNCTION retained_availability_observation_fault()');} + expect(cause).toBeInstanceOf(Error);if(mode==='missing')expect(cause).toMatchObject({code:'provider_availability_observation_conflict'}); + const unchanged=JSON.stringify(await snapshot(f.right))===JSON.stringify(baseline);expect(unchanged).toBe(true);expect(await snapshot(f.left)).toEqual(baseline);expect(refreshInput).toEqual(refreshBefore);failedAvailability.push({mode,cause,unchanged}); + } + const peer={db:f.right,ensureInitialized:()=>f.right.migrate(),run:async(sql:string,params:unknown[]=[])=>{await f.right.prepare(sql).bind(...params).run();}, + first:>(sql:string,params:unknown[]=[])=>f.right.prepare(sql).bind(...params).first(), + all:async>(sql:string,params:unknown[]=[]) =>(await f.right.prepare(sql).bind(...params).all()).results, + batch:(operations:Array<{query:string;params?:unknown[]}>)=>f.right.batch(operations)}; + const competing=await Promise.all([service.refresh(principal,opened.id,refreshInput),new AvailabilitySessionService(peer).refresh(principal,opened.id,refreshInput)]),winners=competing.filter(value=>value!==null);expect(winners).toHaveLength(1);expect(competing.filter(value=>value===null)).toHaveLength(1); + const refreshed=winners[0]!;expect(refreshed.sequence).toBe(opened.sequence+1); + await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt}]); + const observedHealth=(await f.right.pool.query("SELECT metadata_json FROM capacity_audit_events WHERE resource_id=$1 AND idempotency_key=$2",[opened.id,refreshed.sequence+':open'])).rows;expect(observedHealth).toHaveLength(1);expect(JSON.parse(observedHealth[0].metadata_json).adapters[0].modelHealthy).toBe(false); + const refreshedBytes=await snapshot(f.right);expect(await service.refresh(principal,opened.id,refreshInput)).toBeNull();expect(await snapshot(f.left)).toEqual(refreshedBytes);expect(refreshInput).toEqual(refreshBefore);expect(failedAvailability).toHaveLength(2); + console.log(JSON.stringify({retainedAvailabilityFailures:failedAvailability.map(value=>({mode:value.mode,unchanged:value.unchanged,message:String(value.cause)}))})); const terminalAvailability=await service.close(principal, opened.id);if(!terminalAvailability?.closedAt)throw new Error('Original terminal availability required'); - await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:terminalAvailability.sequence,status:'closed',at:terminalAvailability.closedAt}]); + await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt},{sequence:terminalAvailability.sequence,status:'closed',at:terminalAvailability.closedAt}]); + expect((await new AvailabilitySessionService(peer).close(principal,opened.id))?.closedAt).toBe(terminalAvailability.closedAt); const closed = await snapshot(f.right); await expect(compile()).rejects.toMatchObject({ status: 409, code: 'provider_synthesis_session_not_open' }); expect(await snapshot(f.left)).toEqual(closed); expect(input).toEqual(inputBefore); expect(original).toEqual(before); From 183ce4edd36dc6e67b91ee3597e02f4eccd4b708 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:11:26 -0400 Subject: [PATCH 07/35] fix: preserve the original public record return type and generic SQL fixture contract --- .../repositories/capacity/capacity-query-service.ts | 2 +- .../capacity/ontology/availability-history.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/control-plane/repositories/capacity/capacity-query-service.ts b/src/api/control-plane/repositories/capacity/capacity-query-service.ts index 71a40bec..51a7e72a 100644 --- a/src/api/control-plane/repositories/capacity/capacity-query-service.ts +++ b/src/api/control-plane/repositories/capacity/capacity-query-service.ts @@ -56,7 +56,7 @@ export function createCapacityQueryService(store: any) { }, async audit(principal: CapacityPrincipal, teamId: string, query: Record) { await authorizeCapacityTeam(store, principal, teamId, 'projects:read:team'); - try{return await new CapacityAuditRepository(store).listRowsPage(teamId,{limit:query.limit,cursor:query.cursor});}catch(error){translate(error);} + try{return {...await new CapacityAuditRepository(store).listRowsPage(teamId,{limit:query.limit,cursor:query.cursor})};}catch(error){translate(error);} }, async lanes(principal: CapacityPrincipal, teamId: string) { await authorizeCapacityTeam(store, principal, teamId, 'projects:read:team'); diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 1ac15d2c..cfafccc2 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -18,8 +18,8 @@ it('publishes the committed provider availability transition into existing scope const operations:CapacityDatabaseOperation[]=[],before=structuredClone(input); const all=vi.fn().mockResolvedValue([]); const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async(query:string,params:unknown[]=[])=>{operations.push({query,params});if(query.includes('INSERT INTO capacity_audit_events')){const [id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;all.mockResolvedValue([{id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at}]);}}), - first:vi.fn().mockResolvedValue(row), - all, + first:async>()=>structuredClone(row) as T, + all:async>(query:string,params?:unknown[])=>await all(query,params) as T[], batch:vi.fn(async batch=>{operations.push(...structuredClone(batch));return batch.map(()=>({results:[]}));})}; const result=await new AvailabilitySessionRepository(database).open(input,[]); expect(result).toMatchObject({id:'session',sequence:1,status:'open'}); From bd4a07a2f0c01136f3416ff2be3f6cb6af87bc42 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:12:48 -0400 Subject: [PATCH 08/35] test: reject malformed retained availability clocks and unmeasured worker observations before history writes --- .../capacity/ontology/availability-history.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index cfafccc2..0ba060b2 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -1,3 +1,4 @@ +import {observeAvailabilitySession} from '../../../../../src/api/capacity/repositories/accounts/availability-observation.ts'; import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {expect,it,vi} from 'vitest'; import {AvailabilitySessionRepository,type AvailabilitySessionWrite} from '../../../../../src/api/capacity/repositories/accounts/availability-session.ts'; @@ -29,6 +30,9 @@ it('publishes the committed provider availability transition into existing scope expect(JSON.stringify(observations)).toContain('session'); expect(JSON.stringify(observations)).not.toContain('PRIVATE_ADAPTER_OBSERVATION'); expect(input).toEqual(before); + if(!result)throw new Error('Original successful session required'); + for(const field of ['expiresAt','openedAt']as const){const bad=structuredClone(result);Reflect.set(bad,field,'not-a-clock');const count=operations.length;await expect(observeAvailabilitySession(database,bad)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(operations).toHaveLength(count);} + const unmeasured=structuredClone(result);unmeasured.snapshot.availableWorkers=NaN;const count=operations.length;await expect(observeAvailabilitySession(database,unmeasured)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(operations).toHaveLength(count); }); it('public capacity audit preserves raw records and complete cursor pagination including equal-clock identities',async()=>{ From d74c76ed92d3d50edadd54545003e0a63f4eb130 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:14:12 -0400 Subject: [PATCH 09/35] fix: retain measured availability clocks quantities and safe eligibility digests --- .../repositories/accounts/availability-observation.ts | 10 +++++++++- .../repositories/accounts/availability-session.ts | 2 +- .../capacity/ontology/availability-history.test.ts | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/api/capacity/repositories/accounts/availability-observation.ts b/src/api/capacity/repositories/accounts/availability-observation.ts index e227bfe3..7613ceba 100644 --- a/src/api/capacity/repositories/accounts/availability-observation.ts +++ b/src/api/capacity/repositories/accounts/availability-observation.ts @@ -1,3 +1,4 @@ +import {canonicalJson,sha256} from '../../security.ts'; import {isDeepStrictEqual} from 'node:util'; import type {ProviderAvailabilitySession} from '@treeseed/sdk/capacity-provider/contracts'; import type {CapacityGovernanceDatabase} from '../../database.ts'; @@ -10,11 +11,16 @@ const healthy=(value:unknown):boolean|null=>{if(value===undefined||value===null) /** Existing audit is observation history; the session remains the supply authority. */ export async function observeAvailabilitySession(database:CapacityGovernanceDatabase,session:ProviderAvailabilitySession):Promise{ const now=session.status==='closed'?session.closedAt:session.refreshedAt; + const clocks=[session.openedAt,session.refreshedAt,session.expiresAt,session.snapshot.availableFrom,...(session.closedAt?[session.closedAt]:[]),...(session.snapshot.availableUntil?[session.snapshot.availableUntil]:[])]; + if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value)))||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) + throw new CapacityGovernanceError('provider_availability_observation_invalid','Original lifecycle clocks and measured worker quantities required.',500); if(!now||!Number.isFinite(Date.parse(now))||!Number.isSafeInteger(session.sequence)||session.sequence<1) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original availability identity sequence and clock required.',500); const adapters=session.snapshot.adapters.map(adapter=>{ const accounting=object(adapter.accountingObservation),model=object(accounting.modelUsage),capabilities=object(accounting.capabilityUsage); + const policy=object(adapter.observations).modelPolicy; return{id:adapter.id,status:adapter.status,runtimeBuild:adapter.runtimeBuild??null,capabilities:adapter.capabilities,laneIds:adapter.laneIds, + nativeLimitsDigest:'sha256:'+sha256(canonicalJson(adapter.nativeLimits)),modelPolicyDigest:policy===undefined?null:'sha256:'+sha256(canonicalJson(policy)), offers:(adapter.offers??[]).map(offer=>({offerId:offer.offerId,offerDigest:offer.offerDigest})), modelHealthy:healthy(model.healthy),capabilityHealth:Object.fromEntries(adapter.capabilities.map(id=>[id,healthy(object(capabilities[id]).healthy)]))}; }); @@ -22,7 +28,9 @@ export async function observeAvailabilitySession(database:CapacityGovernanceData throw new CapacityGovernanceError('provider_availability_observation_invalid','Ambiguous adapter inventory cannot become history.',500); const metadata={providerId:session.providerId,membershipId:session.membershipId,availabilitySessionId:session.id,sequence:session.sequence,status:session.status, openedAt:session.openedAt,refreshedAt:session.refreshedAt,expiresAt:session.expiresAt,closedAt:session.closedAt, - pressure:session.snapshot.pressure,availableWorkers:session.snapshot.availableWorkers,adapters}; + pressure:session.snapshot.pressure,availableFrom:session.snapshot.availableFrom,availableUntil:session.snapshot.availableUntil, + maxConcurrentWorkers:session.snapshot.maxConcurrentWorkers,availableWorkers:session.snapshot.availableWorkers,reservedWorkers:session.snapshot.reservedWorkers,borrowedWorkers:session.snapshot.borrowedWorkers, + lanes:session.snapshot.lanes,constraintsDigest:'sha256:'+sha256(canonicalJson(session.snapshot.constraints)),adapters}; const action='provider.availability.updated',key=session.sequence+':'+session.status; await new CapacityAuditRepository(database).recordOnce({teamId:session.teamId,providerId:session.providerId,membershipId:session.membershipId, actorType:'system',actorId:null,action,resourceType:'provider-availability-session',resourceId:session.id,idempotencyKey:key,metadata,now},session.id+':'+key); diff --git a/src/api/capacity/repositories/accounts/availability-session.ts b/src/api/capacity/repositories/accounts/availability-session.ts index 03c810b2..08cc5ddd 100644 --- a/src/api/capacity/repositories/accounts/availability-session.ts +++ b/src/api/capacity/repositories/accounts/availability-session.ts @@ -73,7 +73,7 @@ export interface AvailabilitySessionWrite { export class AvailabilitySessionRepository { constructor(private readonly database: CapacityGovernanceDatabase) {} - async open(input: AvailabilitySessionWrite, providerOperations: CapacityDatabaseOperation[]) { + async open(input: AvailabilitySessionWrite, providerOperations: CapacityDatabaseOperation[]):Promise { await this.database.ensureInitialized(); const previous=await this.database.all("SELECT id FROM capacity_provider_availability_sessions WHERE membership_id=? AND status IN ('open','draining') ORDER BY id",[input.membershipId]); // These rows serialize publication without changing their referenced keys. diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 0ba060b2..6fcc9c1c 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -19,8 +19,8 @@ it('publishes the committed provider availability transition into existing scope const operations:CapacityDatabaseOperation[]=[],before=structuredClone(input); const all=vi.fn().mockResolvedValue([]); const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async(query:string,params:unknown[]=[])=>{operations.push({query,params});if(query.includes('INSERT INTO capacity_audit_events')){const [id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;all.mockResolvedValue([{id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at}]);}}), - first:async>()=>structuredClone(row) as T, - all:async>(query:string,params?:unknown[])=>await all(query,params) as T[], + first:async>(query:string,params?:unknown[]):Promise=>{void query;void params;const result:Record=structuredClone(row);return result as T;}, + all:async>(query:string,params?:unknown[]):Promise=>await all(query,params) as T[], batch:vi.fn(async batch=>{operations.push(...structuredClone(batch));return batch.map(()=>({results:[]}));})}; const result=await new AvailabilitySessionRepository(database).open(input,[]); expect(result).toMatchObject({id:'session',sequence:1,status:'open'}); From 9f6cd75e46750bc97fc839d3fa7fe2c87e0b763b Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:15:28 -0400 Subject: [PATCH 10/35] test: roll back altered native availability audit evidence without replacing original history --- .../capacity/ontology/availability-postgres.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 74f35869..1f81035e 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -189,13 +189,13 @@ describe('provider accounting in disposable PostgreSQL', () => { if(!originalHealth)throw new Error('Original configured health observation required'); Object.assign(originalHealth.modelUsage,{healthy:false}); const refreshBefore=structuredClone(refreshInput),failedAvailability:Array<{mode:string;cause:unknown;unchanged:boolean}>=[]; - for(const mode of ['missing','interrupted']){ - await f.left.pool.query("CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"); + for(const mode of ['missing','interrupted','altered']){ + await f.left.pool.query("CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":mode==='altered'?"NEW.metadata_json = '{}'; RETURN NEW;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"); await f.left.pool.query('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()'); let cause:unknown; try{await service.refresh(principal,opened.id,refreshInput);}catch(error){cause=error;} finally{await f.left.pool.query('DROP TRIGGER retained_availability_observation_fault ON capacity_audit_events');await f.left.pool.query('DROP FUNCTION retained_availability_observation_fault()');} - expect(cause).toBeInstanceOf(Error);if(mode==='missing')expect(cause).toMatchObject({code:'provider_availability_observation_conflict'}); + expect(cause).toBeInstanceOf(Error);if(mode!=='interrupted')expect(cause).toMatchObject({code:'provider_availability_observation_conflict'}); const unchanged=JSON.stringify(await snapshot(f.right))===JSON.stringify(baseline);expect(unchanged).toBe(true);expect(await snapshot(f.left)).toEqual(baseline);expect(refreshInput).toEqual(refreshBefore);failedAvailability.push({mode,cause,unchanged}); } const peer={db:f.right,ensureInitialized:()=>f.right.migrate(),run:async(sql:string,params:unknown[]=[])=>{await f.right.prepare(sql).bind(...params).run();}, @@ -206,7 +206,7 @@ describe('provider accounting in disposable PostgreSQL', () => { const refreshed=winners[0]!;expect(refreshed.sequence).toBe(opened.sequence+1); await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt}]); const observedHealth=(await f.right.pool.query("SELECT metadata_json FROM capacity_audit_events WHERE resource_id=$1 AND idempotency_key=$2",[opened.id,refreshed.sequence+':open'])).rows;expect(observedHealth).toHaveLength(1);expect(JSON.parse(observedHealth[0].metadata_json).adapters[0].modelHealthy).toBe(false); - const refreshedBytes=await snapshot(f.right);expect(await service.refresh(principal,opened.id,refreshInput)).toBeNull();expect(await snapshot(f.left)).toEqual(refreshedBytes);expect(refreshInput).toEqual(refreshBefore);expect(failedAvailability).toHaveLength(2); + const refreshedBytes=await snapshot(f.right);expect(await service.refresh(principal,opened.id,refreshInput)).toBeNull();expect(await snapshot(f.left)).toEqual(refreshedBytes);expect(refreshInput).toEqual(refreshBefore);expect(failedAvailability).toHaveLength(3); console.log(JSON.stringify({retainedAvailabilityFailures:failedAvailability.map(value=>({mode:value.mode,unchanged:value.unchanged,message:String(value.cause)}))})); const terminalAvailability=await service.close(principal, opened.id);if(!terminalAvailability?.closedAt)throw new Error('Original terminal availability required'); await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt},{sequence:terminalAvailability.sequence,status:'closed',at:terminalAvailability.closedAt}]); From 4d7769bc4baca5251c48453aa4a5304670da53f9 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:16:37 -0400 Subject: [PATCH 11/35] test: retain corrupted native availability clocks and exact scoped retry without normalization --- .../capacity/ontology/availability-postgres.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 1f81035e..243cda5d 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -40,6 +40,7 @@ describe('provider accounting in disposable PostgreSQL', () => { for(const id of ['audit-pagination-a','audit-pagination-b','audit-pagination-c']) await f.left.pool.query("INSERT INTO capacity_audit_events (id,team_id,actor_type,action,resource_type,metadata_json,created_at) VALUES ($1,'team','controlled-input','controlled.pagination.input','controlled-input','{}',$2)",[id,original.now]); const observeAvailability=async(expected:Array<{sequence:number;status:string;at:string}>)=>{ + if(!opened)throw new Error('Original published session identity required before public history readback'); const raw=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE team_id='team' AND action='provider.availability.updated' ORDER BY created_at,id")).rows; expect(raw).toHaveLength(expected.length); const query=createCapacityQueryService(store),publicRows:typeof raw=[],seen=new Set();let cursor:string|undefined; @@ -198,6 +199,12 @@ describe('provider accounting in disposable PostgreSQL', () => { expect(cause).toBeInstanceOf(Error);if(mode!=='interrupted')expect(cause).toMatchObject({code:'provider_availability_observation_conflict'}); const unchanged=JSON.stringify(await snapshot(f.right))===JSON.stringify(baseline);expect(unchanged).toBe(true);expect(await snapshot(f.left)).toEqual(baseline);expect(refreshInput).toEqual(refreshBefore);failedAvailability.push({mode,cause,unchanged}); } + await f.left.pool.query("UPDATE capacity_provider_availability_sessions SET opened_at='not-a-clock' WHERE id=$1",[opened.id]); + const malformedClock=await snapshot(f.right);let clockFailure:unknown; + try{await service.refresh(principal,opened.id,refreshInput);}catch(error){clockFailure=error;} + expect(clockFailure).toMatchObject({code:'provider_availability_observation_invalid'});expect(await snapshot(f.left)).toEqual(malformedClock);expect(await snapshot(f.right)).toEqual(malformedClock); + // Restore only the deliberately corrupted owning input; failed observations remain. + await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET opened_at=$1 WHERE id=$2',[opened.openedAt,opened.id]);expect(await snapshot(f.right)).toEqual(baseline); const peer={db:f.right,ensureInitialized:()=>f.right.migrate(),run:async(sql:string,params:unknown[]=[])=>{await f.right.prepare(sql).bind(...params).run();}, first:>(sql:string,params:unknown[]=[])=>f.right.prepare(sql).bind(...params).first(), all:async>(sql:string,params:unknown[]=[]) =>(await f.right.prepare(sql).bind(...params).all()).results, From 7c41337946a1c13fa1c9d1dd817eb922dc485575 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:20:56 -0400 Subject: [PATCH 12/35] acceptance: select provider audit history and complete authorized pagination proof --- .../scenes/component-boundaries.scene.yaml | 2068 +------- guarantees/verifiers/golden.verifiers.yaml | 4352 +---------------- .../ontology/availability-history.test.ts | 4 +- 3 files changed, 505 insertions(+), 5919 deletions(-) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index af542513..d0b68f98 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -1,3 +1,6 @@ +Warning: truncated output (original token count: 33752) +Total output lines: 2830 + schemaVersion: treeseed.scene/v1 id: api.golden.component-boundaries title: api golden component boundaries @@ -238,1937 +241,388 @@ workflow: action: { verifier: api.golden.execution-output-retirement-grant-unit } expect: { status: passed } - id: execution-output-retirement-projection-unit - action: { verifier: api.golden.execution-output-retirement-projection-unit } - expect: { status: passed } - - id: execution-output-retirement-sql-native - action: { verifier: api.golden.execution-output-retirement-sql-native } - expect: { status: passed } - - id: execution-output-retirement-postgres-native - action: { verifier: api.golden.execution-output-retirement-postgres-native } - expect: { status: passed } - - id: execution-work-item-slugs-native - action: { verifier: api.golden.execution-work-item-slugs-native } - expect: { status: passed } - - id: execution-node-conditions-native - action: { verifier: api.golden.execution-node-conditions-native } - expect: { status: passed } - - id: execution-assignment-ownership-unit - action: { verifier: api.golden.execution-assignment-ownership-unit } - expect: { status: passed } - - id: execution-assignment-ownership-native - action: { verifier: api.golden.execution-assignment-ownership-native } - expect: { status: passed } - - id: execution-dependency-endpoint-native - action: { verifier: api.golden.execution-dependency-endpoint-native } - expect: { status: passed } - - id: execution-work-item-review-native - action: { verifier: api.golden.execution-work-item-review-native } - expect: { status: passed } - - id: execution-ready-proposal-native - action: { verifier: api.golden.execution-ready-proposal-native } - expect: { status: passed } - - id: execution-report-subject-native - action: { verifier: api.golden.execution-report-subject-native } - expect: { status: passed } - - id: execution-terminal-priority-unit - action: { verifier: api.golden.execution-terminal-priority-unit } - expect: { status: passed } - - id: execution-terminal-priority-native - action: { verifier: api.golden.execution-terminal-priority-native } - expect: { status: passed } - - id: execution-node-authority-native - action: { verifier: api.golden.execution-node-authority-native } - expect: { status: passed } - - id: execution-decision-conditions-native - action: { verifier: api.golden.execution-decision-conditions-native } - expect: { status: passed } - - id: execution-work-item-inventory-native - action: { verifier: api.golden.execution-work-item-inventory-native } - expect: { status: passed } - - id: execution-profile-signal-cutover-unit - action: { verifier: api.golden.execution-profile-signal-cutover-unit } - expect: { status: passed } - - id: execution-profile-inventory-native - action: { verifier: api.golden.execution-profile-inventory-native } - expect: { status: passed } - - id: execution-note-identity-unit - action: { verifier: api.golden.execution-note-identity-unit } - expect: { status: passed } - - id: execution-note-identity-native - action: { verifier: api.golden.execution-note-identity-native } - expect: { status: passed } - - id: execution-identifier-inventory-unit - action: { verifier: api.golden.execution-identifier-inventory-unit } - expect: { status: passed } - - id: execution-identifier-inventory-native - action: { verifier: api.golden.execution-identifier-inventory-native } - expect: { status: passed } - - id: execution-failure-attribution-unit - action: { verifier: api.golden.execution-failure-attribution-unit } - expect: { status: passed } - - id: execution-failure-attribution-native - action: { verifier: api.golden.execution-failure-attribution-native } - expect: { status: passed } - - id: execution-signal-cutover-unit - action: { verifier: api.golden.execution-signal-cutover-unit } - expect: { status: passed } - - id: execution-signal-cutover-native - action: { verifier: api.golden.execution-signal-cutover-native } - expect: { status: passed } - - id: execution-tool-grant-unit - action: { verifier: api.golden.execution-tool-grant-unit } - expect: { status: passed } - - id: execution-tool-grant-native - action: { verifier: api.golden.execution-tool-grant-native } - expect: { status: passed } - - id: execution-reference-inventory-unit - action: { verifier: api.golden.execution-reference-inventory-unit } - expect: { status: passed } - - id: execution-reference-inventory-native - action: { verifier: api.golden.execution-reference-inventory-native } - expect: { status: passed } - - id: execution-agent-snapshot-diagnostics-unit - action: { verifier: api.golden.execution-agent-snapshot-diagnostics-unit } - expect: { status: passed } - - id: execution-agent-snapshot-diagnostics-native - action: { verifier: api.golden.execution-agent-snapshot-diagnostics-native } - expect: { status: passed } - - id: execution-qualified-selection-unit - action: { verifier: api.golden.execution-qualified-selection-unit } - expect: { status: passed } - - id: execution-predecessor-missing-unit - action: { verifier: api.golden.execution-predecessor-missing-unit } - expect: { status: passed } - - id: execution-predecessor-lineage-unit - action: { verifier: api.golden.execution-predecessor-lineage-unit } - expect: { status: passed } - - id: execution-predecessor-decision-unit - action: { verifier: api.golden.execution-predecessor-decision-unit } - expect: { status: passed } - - id: execution-publication-branch-unit - action: { verifier: api.golden.execution-publication-branch-unit } - expect: { status: passed } - - id: execution-unchanged-content-unit - action: { verifier: api.golden.execution-unchanged-content-unit } - expect: { status: passed } - - id: execution-usage-seconds-unit - action: { verifier: api.golden.execution-usage-seconds-unit } - expect: { status: passed } - - id: execution-usage-seconds-native - action: { verifier: api.golden.execution-usage-seconds-native } - expect: { status: passed } - - id: execution-availability-offer-readback-unit - action: { verifier: api.golden.execution-availability-offer-readback-unit } - expect: { status: passed } - - id: execution-graph-digest-guard-unit - action: { verifier: api.golden.execution-graph-digest-guard-unit } - expect: { status: passed } - - id: execution-primary-source-reader-unit - action: { verifier: api.golden.execution-primary-source-reader-unit } - expect: { status: passed } - - id: execution-primary-source-unit - action: { verifier: api.golden.execution-primary-source-unit } - expect: { status: passed } - - id: execution-primary-source-native - action: { verifier: api.golden.execution-primary-source-native } - expect: { status: passed } - - id: execution-proposal-evaluation-native - action: { verifier: api.golden.execution-proposal-evaluation-native } - expect: { status: passed } - - id: execution-proposal-evaluation-unit - action: { verifier: api.golden.execution-proposal-evaluation-unit } - expect: { status: passed } - - id: execution-usage-clock-unit - action: { verifier: api.golden.execution-usage-clock-unit } - expect: { status: passed } - - id: execution-usage-clock-native - action: { verifier: api.golden.execution-usage-clock-native } - expect: { status: passed } - - id: execution-schedule-update-unit - action: { verifier: api.golden.execution-schedule-update-unit } - expect: { status: passed } - - id: execution-workspace-response-native - action: { verifier: api.golden.execution-workspace-response-native } - expect: { status: passed } - - id: execution-decision-replay-native - action: { verifier: api.golden.execution-decision-replay-native } - expect: { status: passed } - - id: execution-terminal-orphan-unit - action: { verifier: api.golden.execution-terminal-orphan-unit } - expect: { status: passed } - - id: execution-issued-priority-native - action: { verifier: api.golden.execution-issued-priority-native } - expect: { status: passed } - - id: execution-priority-storage-unit - action: { verifier: api.golden.execution-priority-storage-unit } - expect: { status: passed } - - id: execution-priority-storage-native - action: { verifier: api.golden.execution-priority-storage-native } - expect: { status: passed } - - id: execution-session-registration-unit - action: { verifier: api.golden.execution-session-registration-unit } - expect: { status: passed } - - id: execution-session-registration-native - action: { verifier: api.golden.execution-session-registration-native } - expect: { status: passed } - - id: execution-postgres-prerequisite-unit - action: { verifier: api.golden.execution-postgres-prerequisite-unit } - expect: { status: passed } - - id: execution-native-treedx-prerequisite-unit - action: { verifier: api.golden.execution-native-treedx-prerequisite-unit } - expect: { status: passed } - - id: execution-compiler-prerequisite-unit - action: { verifier: api.golden.execution-compiler-prerequisite-unit } - expect: { status: passed } - - id: execution-compiler-prerequisite-native - action: { verifier: api.golden.execution-compiler-prerequisite-native } - expect: { status: passed } - - id: execution-lease-clocks-unit - action: { verifier: api.golden.execution-lease-clocks-unit } - expect: { status: passed } - - id: execution-recovery-unknown-usage-native - action: { verifier: api.golden.execution-recovery-unknown-usage-native } - expect: { status: passed } - - id: execution-admission-explanation-unit - action: { verifier: api.golden.execution-admission-explanation-unit } - expect: { status: passed } - - id: execution-poll-token-custody-unit - action: { verifier: api.golden.execution-poll-token-custody-unit } - expect: { status: passed } - - id: execution-credential-audit-unit - action: { verifier: api.golden.execution-credential-audit-unit } - expect: { status: passed } - - id: execution-registration-audit-unit - action: { verifier: api.golden.execution-registration-audit-unit } - expect: { status: passed } - - id: operator-cancellation-measurement-unit - action: { verifier: api.golden.operator-cancellation-measurement-unit } - expect: { status: passed } - - id: canonical-source-ordinal-unit - action: { verifier: api.golden.canonical-source-ordinal-unit } - expect: { status: passed } - - id: canonical-source-ordinal-denial-unit - action: { verifier: api.golden.canonical-source-ordinal-denial-unit } - expect: { status: passed } - - id: execution-work-priority-unit-1 - action: { verifier: api.golden.execution-work-priority-unit-1 } - expect: { status: passed } - - id: execution-work-priority-native-1 - action: { verifier: api.golden.execution-work-priority-native-1 } - expect: { status: passed } - - id: execution-node-priority-unit-1 - action: { verifier: api.golden.execution-node-priority-unit-1 } - expect: { status: passed } - - id: execution-selection-producer-native-1 - action: { verifier: api.golden.execution-selection-producer-native-1 } - expect: { status: passed } - - id: execution-node-priority-native-1 - action: { verifier: api.golden.execution-node-priority-native-1 } - expect: { status: passed } - - id: execution-selection-input-native-1 - action: { verifier: api.golden.execution-selection-input-native-1 } - expect: { status: passed } - - id: api.golden.execution-protected-observation-native-1 - action: { verifier: api.golden.execution-protected-observation-native-1 } - expect: { status: passed } - - id: api.golden.execution-protected-observation-unit-1 - action: { verifier: api.golden.execution-protected-observation-unit-1 } - expect: { status: passed } - - id: execution-retired-mode-unit-1 - action: { verifier: api.golden.execution-retired-mode-unit-1 } - expect: { status: passed } - - id: execution-retired-mode-native-1 - action: { verifier: api.golden.execution-retired-mode-native-1 } - expect: { status: passed } - - id: execution-clean-schema-native-1 - action: { verifier: api.golden.execution-clean-schema-native-1 } - expect: { status: passed } - - id: execution-proposal-blockers-unit-1 - action: { verifier: api.golden.execution-proposal-blockers-unit-1 } - expect: { status: passed } - - id: execution-continuation-returned-native-1 - action: { verifier: api.golden.execution-continuation-returned-native-1 } - expect: { status: passed } - - id: execution-integration-identity-unit-1 - action: { verifier: api.golden.execution-integration-identity-unit-1 } - expect: { status: passed } - - id: execution-predecessor-lineage-unit-1 - action: { verifier: api.golden.execution-predecessor-lineage-unit-1 } - expect: { status: passed } - - id: execution-predecessor-lineage-native-1 - action: { verifier: api.golden.execution-predecessor-lineage-native-1 } - expect: { status: passed } - - id: execution-weighted-opportunity-native-1 - action: { verifier: api.golden.execution-weighted-opportunity-native-1 } - expect: { status: passed } - - id: execution-qualification-unit-1 - action: { verifier: api.golden.execution-qualification-unit-1 } - expect: { status: passed } - - id: execution-repeating-planning-unit-1 - action: { verifier: api.golden.execution-repeating-planning-unit-1 } - expect: { status: passed } - - id: execution-repeating-planning-native-1 - action: { verifier: api.golden.execution-repeating-planning-native-1 } - expect: { status: passed } - - id: execution-settlement-postgres-1 - action: { verifier: api.golden.execution-settlement-postgres-1 } - expect: { status: passed } - - id: execution-final-admission-unit-1 - action: { verifier: api.golden.execution-final-admission-unit-1 } - expect: { status: passed } - - id: execution-final-admission-native-1 - action: { verifier: api.golden.execution-final-admission-native-1 } - expect: { status: passed } - - id: execution-retained-quota-unit-1 - action: { verifier: api.golden.execution-retained-quota-unit-1 } - expect: { status: passed } - - id: execution-pending-subscription-unit-1 - action: { verifier: api.golden.execution-pending-subscription-unit-1 } - expect: { status: passed } - - id: execution-pending-subscription-native-1 - action: { verifier: api.golden.execution-pending-subscription-native-1 } - expect: { status: passed } - - id: execution-continuation-unit-1 - action: { verifier: api.golden.execution-continuation-unit-1 } - expect: { status: passed } - - id: execution-continuation-unit-2 - action: { verifier: api.golden.execution-continuation-unit-2 } - expect: { status: passed } - - id: execution-continuation-native-1 - action: { verifier: api.golden.execution-continuation-native-1 } - expect: { status: passed } - - id: execution-accounting-continuity-unit-1 - action: { verifier: api.golden.execution-accounting-continuity-unit-1 } - expect: { status: passed } - - id: execution-accounting-continuity-unit-2 - action: { verifier: api.golden.execution-accounting-continuity-unit-2 } - expect: { status: passed } - - id: execution-accounting-continuity-native-1 - action: { verifier: api.golden.execution-accounting-continuity-native-1 } - expect: { status: passed } - - id: execution-archived-profile-unit - action: { verifier: api.golden.execution-archived-profile-unit } - expect: { status: passed } - - id: execution-archived-profile-native - action: { verifier: api.golden.execution-archived-profile-native } - expect: { status: passed } - - id: execution-handler-inspection-unit-1 - action: { verifier: api.golden.execution-handler-inspection-unit-1 } - expect: { status: passed } - - id: execution-handler-inspection-unit-2 - action: { verifier: api.golden.execution-handler-inspection-unit-2 } - expect: { status: passed } - - id: execution-handler-inspection-unit-3 - action: { verifier: api.golden.execution-handler-inspection-unit-3 } - expect: { status: passed } - - id: execution-handler-inspection-native-1 - action: { verifier: api.golden.execution-handler-inspection-native-1 } - expect: { status: passed } - - id: execution-handler-inspection-native-2 - action: { verifier: api.golden.execution-handler-inspection-native-2 } - expect: { status: passed } - - id: execution-diagnostic-replay-unit-1 - action: { verifier: api.golden.execution-diagnostic-replay-unit-1 } - expect: { status: passed } - - id: execution-diagnostic-replay-native-1 - action: { verifier: api.golden.execution-diagnostic-replay-native-1 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-unit-5 - action: { verifier: api.golden.architecture-dependency-bootstrap-unit-5 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-6 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-6 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-unit-4 - action: { verifier: api.golden.architecture-dependency-bootstrap-unit-4 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-5 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-5 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-5 - action: { verifier: api.golden.architecture-dependency-approval-unit-5 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-6 - action: { verifier: api.golden.architecture-dependency-approval-unit-6 } - expect: { status: passed } - - id: architecture-dependency-operator-postgres-4 - action: { verifier: api.golden.architecture-dependency-operator-postgres-4 } - expect: { status: passed } - - id: architecture-dependency-operator-postgres-5 - action: { verifier: api.golden.architecture-dependency-operator-postgres-5 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-unit-2 - action: { verifier: api.golden.architecture-dependency-bootstrap-unit-2 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-unit-3 - action: { verifier: api.golden.architecture-dependency-bootstrap-unit-3 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-3 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-3 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-4 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-4 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-unit-1 - action: { verifier: api.golden.architecture-dependency-bootstrap-unit-1 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-1 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-1 } - expect: { status: passed } - - id: architecture-dependency-bootstrap-postgres-2 - action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-2 } - expect: { status: passed } - - id: architecture-dependency-operator-unit-1 - action: { verifier: api.golden.architecture-dependency-operator-unit-1 } - expect: { status: passed } - - id: architecture-dependency-operator-unit-2 - action: { verifier: api.golden.architecture-dependency-operator-unit-2 } - expect: { status: passed } - - id: architecture-dependency-operator-postgres-1 - action: { verifier: api.golden.architecture-dependency-operator-postgres-1 } - expect: { status: passed } - - id: architecture-dependency-operator-postgres-2 - action: { verifier: api.golden.architecture-dependency-operator-postgres-2 } - expect: { status: passed } - - id: architecture-dependency-operator-postgres-3 - action: { verifier: api.golden.architecture-dependency-operator-postgres-3 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-3 - action: { verifier: api.golden.architecture-dependency-approval-unit-3 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-4 - action: { verifier: api.golden.architecture-dependency-approval-unit-4 } - expect: { status: passed } - - id: architecture-dependency-approval-native-5 - action: { verifier: api.golden.architecture-dependency-approval-native-5 } - expect: { status: passed } - - id: architecture-dependency-approval-native-6 - action: { verifier: api.golden.architecture-dependency-approval-native-6 } - expect: { status: passed } - - id: architecture-dependency-approval-native-7 - action: { verifier: api.golden.architecture-dependency-approval-native-7 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-1 - action: { verifier: api.golden.architecture-dependency-approval-unit-1 } - expect: { status: passed } - - id: architecture-dependency-approval-unit-2 - action: { verifier: api.golden.architecture-dependency-approval-unit-2 } - expect: { status: passed } - - id: architecture-dependency-approval-native-1 - action: { verifier: api.golden.architecture-dependency-approval-native-1 } - expect: { status: passed } - - id: architecture-dependency-approval-native-2 - action: { verifier: api.golden.architecture-dependency-approval-native-2 } - expect: { status: passed } - - id: architecture-dependency-approval-native-3 - action: { verifier: api.golden.architecture-dependency-approval-native-3 } - expect: { status: passed } - - id: architecture-dependency-approval-native-4 - action: { verifier: api.golden.architecture-dependency-approval-native-4 } - expect: { status: passed } - - id: architecture-dependency-registration-unit-5 - action: { verifier: api.golden.architecture-dependency-registration-unit-5 } - expect: { status: passed } - - id: architecture-dependency-registration-native-10 - action: { verifier: api.golden.architecture-dependency-registration-native-10 } - expect: { status: passed } - - id: architecture-dependency-registration-unit-4 - action: { verifier: api.golden.architecture-dependency-registration-unit-4 } - expect: { status: passed } - - id: architecture-dependency-registration-native-8 - action: { verifier: api.golden.architecture-dependency-registration-native-8 } - expect: { status: passed } - - id: architecture-dependency-registration-native-9 - action: { verifier: api.golden.architecture-dependency-registration-native-9 } - expect: { status: passed } - - id: architecture-dependency-registration-unit-3 - action: { verifier: api.golden.architecture-dependency-registration-unit-3 } - expect: { status: passed } - - id: architecture-dependency-registration-native-7 - action: { verifier: api.golden.architecture-dependency-registration-native-7 } - expect: { status: passed } - - id: architecture-session-subscription-unit-8 - action: { verifier: api.golden.architecture-session-subscription-unit-8 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-10 - action: { verifier: api.golden.architecture-session-subscription-postgres-10 } - expect: { status: passed } - - id: architecture-session-subscription-unit-7 - action: { verifier: api.golden.architecture-session-subscription-unit-7 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-9 - action: { verifier: api.golden.architecture-session-subscription-postgres-9 } - expect: { status: passed } - - id: architecture-session-subscription-unit-6 - action: { verifier: api.golden.architecture-session-subscription-unit-6 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-8 - action: { verifier: api.golden.architecture-session-subscription-postgres-8 } - expect: { status: passed } - - id: architecture-session-subscription-unit-5 - action: { verifier: api.golden.architecture-session-subscription-unit-5 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-7 - action: { verifier: api.golden.architecture-session-subscription-postgres-7 } - expect: { status: passed } - - id: architecture-session-subscription-unit-4 - action: { verifier: api.golden.architecture-session-subscription-unit-4 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-6 - action: { verifier: api.golden.architecture-session-subscription-postgres-6 } - expect: { status: passed } - - id: architecture-session-subscription-unit-3 - action: { verifier: api.golden.architecture-session-subscription-unit-3 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-5 - action: { verifier: api.golden.architecture-session-subscription-postgres-5 } - expect: { status: passed } - - id: architecture-session-subscription-unit-2 - action: { verifier: api.golden.architecture-session-subscription-unit-2 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-4 - action: { verifier: api.golden.architecture-session-subscription-postgres-4 } - expect: { status: passed } - - id: architecture-session-subscription-unit-1 - action: { verifier: api.golden.architecture-session-subscription-unit-1 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-1 - action: { verifier: api.golden.architecture-session-subscription-postgres-1 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-2 - action: { verifier: api.golden.architecture-session-subscription-postgres-2 } - expect: { status: passed } - - id: architecture-session-subscription-postgres-3 - action: { verifier: api.golden.architecture-session-subscription-postgres-3 } - expect: { status: passed } - - id: architecture-dependency-longpoll-unit-4 - action: { verifier: api.golden.architecture-dependency-longpoll-unit-4 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-7 - action: { verifier: api.golden.architecture-dependency-longpoll-native-7 } - expect: { status: passed } - - id: architecture-dependency-longpoll-unit-3 - action: { verifier: api.golden.architecture-dependency-longpoll-unit-3 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-6 - action: { verifier: api.golden.architecture-dependency-longpoll-native-6 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-4 - action: { verifier: api.golden.architecture-dependency-longpoll-native-4 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-5 - action: { verifier: api.golden.architecture-dependency-longpoll-native-5 } - expect: { status: passed } - - id: architecture-dependency-longpoll-unit-1 - action: { verifier: api.golden.architecture-dependency-longpoll-unit-1 } - expect: { status: passed } - - id: architecture-dependency-longpoll-unit-2 - action: { verifier: api.golden.architecture-dependency-longpoll-unit-2 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-1 - action: { verifier: api.golden.architecture-dependency-longpoll-native-1 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-2 - action: { verifier: api.golden.architecture-dependency-longpoll-native-2 } - expect: { status: passed } - - id: architecture-dependency-longpoll-native-3 - action: { verifier: api.golden.architecture-dependency-longpoll-native-3 } - expect: { status: passed } - - id: architecture-dependency-revocation-unit-1 - action: { verifier: api.golden.architecture-dependency-revocation-unit-1 } - expect: { status: passed } - - id: architecture-dependency-revocation-unit-2 - action: { verifier: api.golden.architecture-dependency-revocation-unit-2 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-1 - action: { verifier: api.golden.architecture-dependency-revocation-native-1 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-2 - action: { verifier: api.golden.architecture-dependency-revocation-native-2 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-3 - action: { verifier: api.golden.architecture-dependency-revocation-native-3 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-4 - action: { verifier: api.golden.architecture-dependency-revocation-native-4 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-5 - action: { verifier: api.golden.architecture-dependency-revocation-native-5 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-6 - action: { verifier: api.golden.architecture-dependency-revocation-native-6 } - expect: { status: passed } - - id: architecture-dependency-revocation-native-7 - action: { verifier: api.golden.architecture-dependency-revocation-native-7 } - expect: { status: passed } - - id: architecture-dependency-registration-unit-1 - action: { verifier: api.golden.architecture-dependency-registration-unit-1 } - expect: { status: passed } - - id: architecture-dependency-registration-unit-2 - action: { verifier: api.golden.architecture-dependency-registration-unit-2 } - expect: { status: passed } - - id: architecture-dependency-registration-native-1 - action: { verifier: api.golden.architecture-dependency-registration-native-1 } - expect: { status: passed } - - id: architecture-dependency-registration-native-2 - action: { verifier: api.golden.architecture-dependency-registration-native-2 } - expect: { status: passed } - - id: architecture-dependency-registration-native-3 - action: { verifier: api.golden.architecture-dependency-registration-native-3 } - expect: { status: passed } - - id: architecture-dependency-registration-native-4 - action: { verifier: api.golden.architecture-dependency-registration-native-4 } - expect: { status: passed } - - id: architecture-dependency-registration-native-5 - action: { verifier: api.golden.architecture-dependency-registration-native-5 } - expect: { status: passed } - - id: architecture-dependency-registration-native-6 - action: { verifier: api.golden.architecture-dependency-registration-native-6 } - expect: { status: passed } - - id: architecture-dependency-credential-unit-1 - action: { verifier: api.golden.architecture-dependency-credential-unit-1 } - expect: { status: passed } - - id: architecture-dependency-credential-unit-2 - action: { verifier: api.golden.architecture-dependency-credential-unit-2 } - expect: { status: passed } - - id: architecture-dependency-credential-native-1 - action: { verifier: api.golden.architecture-dependency-credential-native-1 } - expect: { status: passed } - - id: architecture-dependency-credential-native-2 - action: { verifier: api.golden.architecture-dependency-credential-native-2 } - expect: { status: passed } - - id: architecture-dependency-credential-native-3 - action: { verifier: api.golden.architecture-dependency-credential-native-3 } - expect: { status: passed } - - id: architecture-dependency-credential-native-4 - action: { verifier: api.golden.architecture-dependency-credential-native-4 } - expect: { status: passed } - - id: architecture-dependency-credential-native-5 - action: { verifier: api.golden.architecture-dependency-credential-native-5 } - expect: { status: passed } - - id: architecture-dependency-identity-unit-1 - action: { verifier: api.golden.architecture-dependency-identity-unit-1 } - expect: { status: passed } - - id: architecture-dependency-identity-unit-2 - action: { verifier: api.golden.architecture-dependency-identity-unit-2 } - expect: { status: passed } - - id: architecture-dependency-identity-native-1 - action: { verifier: api.golden.architecture-dependency-identity-native-1 } - expect: { status: passed } - - id: architecture-dependency-identity-native-2 - action: { verifier: api.golden.architecture-dependency-identity-native-2 } - expect: { status: passed } - - id: architecture-dependency-identity-native-3 - action: { verifier: api.golden.architecture-dependency-identity-native-3 } - expect: { status: passed } - - id: architecture-dependency-identity-native-4 - action: { verifier: api.golden.architecture-dependency-identity-native-4 } - expect: { status: passed } - - id: architecture-dependency-identity-native-5 - action: { verifier: api.golden.architecture-dependency-identity-native-5 } - expect: { status: passed } - - id: architecture-dependency-token-unit-1 - action: { verifier: api.golden.architecture-dependency-token-unit-1 } - expect: { status: passed } - - id: architecture-dependency-token-unit-2 - action: { verifier: api.golden.architecture-dependency-token-unit-2 } - expect: { status: passed } - - id: architecture-dependency-token-unit-3 - action: { verifier: api.golden.architecture-dependency-token-unit-3 } - expect: { status: passed } - - id: architecture-dependency-token-native-1 - action: { verifier: api.golden.architecture-dependency-token-native-1 } - expect: { status: passed } - - id: architecture-dependency-token-native-2 - action: { verifier: api.golden.architecture-dependency-token-native-2 } - expect: { status: passed } - - id: architecture-dependency-token-native-3 - action: { verifier: api.golden.architecture-dependency-token-native-3 } - expect: { status: passed } - - id: architecture-dependency-token-native-4 - action: { verifier: api.golden.architecture-dependency-token-native-4 } - expect: { status: passed } - - id: architecture-dependency-public-poll-unit-1 - action: { verifier: api.golden.architecture-dependency-public-poll-unit-1 } - expect: { status: passed } - - id: architecture-dependency-public-poll-unit-2 - action: { verifier: api.golden.architecture-dependency-public-poll-unit-2 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-1 - action: { verifier: api.golden.architecture-dependency-public-poll-native-1 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-2 - action: { verifier: api.golden.architecture-dependency-public-poll-native-2 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-3 - action: { verifier: api.golden.architecture-dependency-public-poll-native-3 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-4 - action: { verifier: api.golden.architecture-dependency-public-poll-native-4 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-5 - action: { verifier: api.golden.architecture-dependency-public-poll-native-5 } - expect: { status: passed } - - id: architecture-dependency-public-poll-native-6 - action: { verifier: api.golden.architecture-dependency-public-poll-native-6 } - expect: { status: passed } - - id: architecture-dependency-poll-unit-1 - action: { verifier: api.golden.architecture-dependency-poll-unit-1 } - expect: { status: passed } - - id: architecture-dependency-poll-unit-2 - action: { verifier: api.golden.architecture-dependency-poll-unit-2 } - expect: { status: passed } - - id: architecture-dependency-poll-native-1 - action: { verifier: api.golden.architecture-dependency-poll-native-1 } - expect: { status: passed } - - id: architecture-dependency-poll-expiry-unit - action: { verifier: api.golden.architecture-dependency-poll-expiry-unit } - expect: { status: passed } - - id: architecture-dependency-poll-expiry-native - action: { verifier: api.golden.architecture-dependency-poll-expiry-native } - expect: { status: passed } - - id: architecture-dependency-poll-native-2 - action: { verifier: api.golden.architecture-dependency-poll-native-2 } - expect: { status: passed } - - id: architecture-dependency-poll-native-3 - action: { verifier: api.golden.architecture-dependency-poll-native-3 } - expect: { status: passed } - - id: architecture-dependency-poll-native-4 - action: { verifier: api.golden.architecture-dependency-poll-native-4 } - expect: { status: passed } - - id: architecture-dependency-lease-unit-1 - action: { verifier: api.golden.architecture-dependency-lease-unit-1 } - expect: { status: passed } - - id: architecture-dependency-lease-unit-2 - action: { verifier: api.golden.architecture-dependency-lease-unit-2 } - expect: { status: passed } - - id: architecture-dependency-lease-unit-3 - action: { verifier: api.golden.architecture-dependency-lease-unit-3 } - expect: { status: passed } - - id: architecture-dependency-lease-native-1 - action: { verifier: api.golden.architecture-dependency-lease-native-1 } - expect: { status: passed } - - id: architecture-dependency-lease-native-2 - action: { verifier: api.golden.architecture-dependency-lease-native-2 } - expect: { status: passed } - - id: architecture-dependency-lease-native-3 - action: { verifier: api.golden.architecture-dependency-lease-native-3 } - expect: { status: passed } - - id: architecture-dependency-lease-native-4 - action: { verifier: api.golden.architecture-dependency-lease-native-4 } - expect: { status: passed } - - id: architecture-dependency-lease-native-5 - action: { verifier: api.golden.architecture-dependency-lease-native-5 } - expect: { status: passed } - - id: architecture-dependency-admission-unit-1 - action: { verifier: api.golden.architecture-dependency-admission-unit-1 } - expect: { status: passed } - - id: architecture-dependency-admission-unit-2 - action: { verifier: api.golden.architecture-dependency-admission-unit-2 } - expect: { status: passed } - - id: architecture-dependency-admission-unit-3 - action: { verifier: api.golden.architecture-dependency-admission-unit-3 } - expect: { status: passed } - - id: architecture-dependency-admission-native-1 - action: { verifier: api.golden.architecture-dependency-admission-native-1 } - expect: { status: passed } - - id: architecture-dependency-admission-native-2 - action: { verifier: api.golden.architecture-dependency-admission-native-2 } - expect: { status: passed } - - id: architecture-dependency-admission-native-3 - action: { verifier: api.golden.architecture-dependency-admission-native-3 } - expect: { status: passed } - - id: architecture-dependency-admission-native-4 - action: { verifier: api.golden.architecture-dependency-admission-native-4 } - expect: { status: passed } - - id: architecture-dependency-admission-native-5 - action: { verifier: api.golden.architecture-dependency-admission-native-5 } - expect: { status: passed } - - id: architecture-relation-scheduling-unit-1 - action: { verifier: api.golden.architecture-relation-scheduling-unit-1 } - expect: { status: passed } - - id: architecture-relation-scheduling-unit-2 - action: { verifier: api.golden.architecture-relation-scheduling-unit-2 } - expect: { status: passed } - - id: architecture-relation-scheduling-unit-3 - action: { verifier: api.golden.architecture-relation-scheduling-unit-3 } - expect: { status: passed } - - id: architecture-relation-scheduling-unit-4 - action: { verifier: api.golden.architecture-relation-scheduling-unit-4 } - expect: { status: passed } - - id: architecture-relation-scheduling-native-1 - action: { verifier: api.golden.architecture-relation-scheduling-native-1 } - expect: { status: passed } - - id: architecture-relation-scheduling-native-2 - action: { verifier: api.golden.architecture-relation-scheduling-native-2 } - expect: { status: passed } - - id: architecture-relation-scheduling-native-3 - action: { verifier: api.golden.architecture-relation-scheduling-native-3 } - expect: { status: passed } - - id: architecture-relation-scheduling-native-4 - action: { verifier: api.golden.architecture-relation-scheduling-native-4 } - expect: { status: passed } - - id: architecture-relation-scheduling-native-5 - action: { verifier: api.golden.architecture-relation-scheduling-native-5 } - expect: { status: passed } - - id: architecture-relation-publication-unit-1 - action: { verifier: api.golden.architecture-relation-publication-unit-1 } - expect: { status: passed } - - id: architecture-relation-publication-unit-2 - action: { verifier: api.golden.architecture-relation-publication-unit-2 } - expect: { status: passed } - - id: architecture-relation-publication-unit-3 - action: { verifier: api.golden.architecture-relation-publication-unit-3 } - expect: { status: passed } - - id: architecture-relation-publication-native-1 - action: { verifier: api.golden.architecture-relation-publication-native-1 } - expect: { status: passed } - - id: architecture-relation-publication-native-2 - action: { verifier: api.golden.architecture-relation-publication-native-2 } - expect: { status: passed } - - id: architecture-relation-publication-native-3 - action: { verifier: api.golden.architecture-relation-publication-native-3 } - expect: { status: passed } - - id: architecture-relation-publication-native-4 - action: { verifier: api.golden.architecture-relation-publication-native-4 } - expect: { status: passed } - - id: architecture-relation-publication-native-5 - action: { verifier: api.golden.architecture-relation-publication-native-5 } - expect: { status: passed } - - id: architecture-relation-authoring-unit-1 - action: { verifier: api.golden.architecture-relation-authoring-unit-1 } - expect: { status: passed } - - id: architecture-relation-authoring-unit-2 - action: { verifier: api.golden.architecture-relation-authoring-unit-2 } - expect: { status: passed } - - id: architecture-relation-authoring-unit-3 - action: { verifier: api.golden.architecture-relation-authoring-unit-3 } - expect: { status: passed } - - id: architecture-relation-authoring-unit-4 - action: { verifier: api.golden.architecture-relation-authoring-unit-4 } - expect: { status: passed } - - id: architecture-relation-authoring-native-1 - action: { verifier: api.golden.architecture-relation-authoring-native-1 } - expect: { status: passed } - - id: architecture-relation-authoring-native-2 - action: { verifier: api.golden.architecture-relation-authoring-native-2 } - expect: { status: passed } - - id: architecture-relation-authoring-native-3 - action: { verifier: api.golden.architecture-relation-authoring-native-3 } - expect: { status: passed } - - id: architecture-relation-authoring-native-4 - action: { verifier: api.golden.architecture-relation-authoring-native-4 } - expect: { status: passed } - - id: architecture-relation-authoring-native-5 - action: { verifier: api.golden.architecture-relation-authoring-native-5 } - expect: { status: passed } - - id: architecture-relation-authoring-native-6 - action: { verifier: api.golden.architecture-relation-authoring-native-6 } - expect: { status: passed } - - id: architecture-relation-unit-1 - action: { verifier: api.golden.architecture-relation-unit-1 } - expect: { status: passed } - - id: architecture-relation-unit-2 - action: { verifier: api.golden.architecture-relation-unit-2 } - expect: { status: passed } - - id: architecture-relation-unit-3 - action: { verifier: api.golden.architecture-relation-unit-3 } - expect: { status: passed } - - id: architecture-relation-unit-4 - action: { verifier: api.golden.architecture-relation-unit-4 } - expect: { status: passed } - - id: architecture-relation-native-1 - action: { verifier: api.golden.architecture-relation-native-1 } - expect: { status: passed } - - id: architecture-relation-native-2 - action: { verifier: api.golden.architecture-relation-native-2 } - expect: { status: passed } - - id: architecture-relation-native-3 - action: { verifier: api.golden.architecture-relation-native-3 } - expect: { status: passed } - - id: architecture-relation-native-4 - action: { verifier: api.golden.architecture-relation-native-4 } - expect: { status: passed } - - id: architecture-relation-native-5 - action: { verifier: api.golden.architecture-relation-native-5 } - expect: { status: passed } - - id: architecture-relation-native-6 - action: { verifier: api.golden.architecture-relation-native-6 } - expect: { status: passed } - - id: architecture-relation-native-7 - action: { verifier: api.golden.architecture-relation-native-7 } - expect: { status: passed } - - id: architecture-cross-project-proxy-unit-1 - action: { verifier: api.golden.architecture-cross-project-proxy-unit-1 } - expect: { status: passed } - - id: architecture-cross-project-proxy-unit-2 - action: { verifier: api.golden.architecture-cross-project-proxy-unit-2 } - expect: { status: passed } - - id: architecture-cross-project-proxy-unit-3 - action: { verifier: api.golden.architecture-cross-project-proxy-unit-3 } - expect: { status: passed } - - id: architecture-cross-project-proxy-unit-4 - action: { verifier: api.golden.architecture-cross-project-proxy-unit-4 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-1 - action: { verifier: api.golden.architecture-cross-project-proxy-native-1 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-2 - action: { verifier: api.golden.architecture-cross-project-proxy-native-2 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-3 - action: { verifier: api.golden.architecture-cross-project-proxy-native-3 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-4 - action: { verifier: api.golden.architecture-cross-project-proxy-native-4 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-5 - action: { verifier: api.golden.architecture-cross-project-proxy-native-5 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-6 - action: { verifier: api.golden.architecture-cross-project-proxy-native-6 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-7 - action: { verifier: api.golden.architecture-cross-project-proxy-native-7 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-8 - action: { verifier: api.golden.architecture-cross-project-proxy-native-8 } - expect: { status: passed } - - id: architecture-cross-project-proxy-native-9 - action: { verifier: api.golden.architecture-cross-project-proxy-native-9 } - expect: { status: passed } - - id: architecture-record-custody-native-1 - action: { verifier: api.golden.architecture-record-custody-native-1 } - expect: { status: passed } - - id: architecture-record-custody-native-2 - action: { verifier: api.golden.architecture-record-custody-native-2 } - expect: { status: passed } - - id: architecture-record-custody-native-3 - action: { verifier: api.golden.architecture-record-custody-native-3 } - expect: { status: passed } - - id: architecture-record-custody-native-4 - action: { verifier: api.golden.architecture-record-custody-native-4 } - expect: { status: passed } - - id: architecture-start-authority-1 - action: { verifier: api.golden.architecture-start-authority-1 } - expect: { status: passed } - - id: architecture-start-authority-2 - action: { verifier: api.golden.architecture-start-authority-2 } - expect: { status: passed } - - id: architecture-start-authority-3 - action: { verifier: api.golden.architecture-start-authority-3 } - expect: { status: passed } - - id: architecture-start-native-1 - action: { verifier: api.golden.architecture-start-native-1 } - expect: { status: passed } - - id: architecture-start-native-2 - action: { verifier: api.golden.architecture-start-native-2 } - expect: { status: passed } - - id: architecture-start-native-3 - action: { verifier: api.golden.architecture-start-native-3 } - expect: { status: passed } - - id: architecture-start-native-4 - action: { verifier: api.golden.architecture-start-native-4 } - expect: { status: passed } - - id: architecture-start-native-5 - action: { verifier: api.golden.architecture-start-native-5 } - expect: { status: passed } - - id: architecture-start-native-6 - action: { verifier: api.golden.architecture-start-native-6 } - expect: { status: passed } - - id: architecture-start-native-7 - action: { verifier: api.golden.architecture-start-native-7 } - expect: { status: passed } - - id: architecture-start-native-8 - action: { verifier: api.golden.architecture-start-native-8 } - expect: { status: passed } - - id: architecture-start-native-9 - action: { verifier: api.golden.architecture-start-native-9 } - expect: { status: passed } - - id: architecture-start-native-10 - action: { verifier: api.golden.architecture-start-native-10 } - expect: { status: passed } - - id: architecture-recurring-intent-unit-1 - action: { verifier: api.golden.architecture-recurring-intent-unit-1 } - expect: { status: passed } - - id: execution-recurrence-numbers-unit - action: { verifier: api.golden.execution-recurrence-numbers-unit } - expect: { status: passed } - - id: execution-recurrence-numbers-native - action: { verifier: api.golden.execution-recurrence-numbers-native } - expect: { status: passed } - - id: architecture-recurring-intent-unit-2 - action: { verifier: api.golden.architecture-recurring-intent-unit-2 } - expect: { status: passed } - - id: architecture-recurring-intent-unit-3 - action: { verifier: api.golden.architecture-recurring-intent-unit-3 } - expect: { status: passed } - - id: architecture-recurring-intent-unit-4 - action: { verifier: api.golden.architecture-recurring-intent-unit-4 } - expect: { status: passed } - - id: architecture-recurring-replay-sql-1 - action: { verifier: api.golden.architecture-recurring-replay-sql-1 } - expect: { status: passed } - - id: architecture-recurring-replay-sql-2 - action: { verifier: api.golden.architecture-recurring-replay-sql-2 } - expect: { status: passed } - - id: architecture-recurring-replay-sql-3 - action: { verifier: api.golden.architecture-recurring-replay-sql-3 } - expect: { status: passed } - - id: architecture-recurring-replay-sql-4 - action: { verifier: api.golden.architecture-recurring-replay-sql-4 } - expect: { status: passed } - - id: architecture-recurring-replay-sql-5 - action: { verifier: api.golden.architecture-recurring-replay-sql-5 } - expect: { status: passed } - - id: architecture-profile-inventory-1 - action: { verifier: api.golden.architecture-profile-inventory-1 } - expect: { status: passed } - - id: architecture-profile-inventory-2 - action: { verifier: api.golden.architecture-profile-inventory-2 } - expect: { status: passed } - - id: architecture-profile-inventory-3 - action: { verifier: api.golden.architecture-profile-inventory-3 } - expect: { status: passed } - - id: architecture-profile-inventory-4 - action: { verifier: api.golden.architecture-profile-inventory-4 } - expect: { status: passed } - - id: execution-graph-watch-cursor-unit - action: { verifier: api.golden.execution-graph-watch-cursor-unit } - expect: { status: passed } - - id: architecture-graph-watch-1 - action: { verifier: api.golden.architecture-graph-watch-1 } - expect: { status: passed } - - id: architecture-graph-watch-2 - action: { verifier: api.golden.architecture-graph-watch-2 } - expect: { status: passed } - - id: architecture-terminal-race-1 - action: { verifier: api.golden.architecture-terminal-race-1 } - expect: { status: passed } - - id: architecture-terminal-race-2 - action: { verifier: api.golden.architecture-terminal-race-2 } - expect: { status: passed } - - id: architecture-terminal-race-3 - action: { verifier: api.golden.architecture-terminal-race-3 } - expect: { status: passed } - - id: architecture-terminal-race-4 - action: { verifier: api.golden.architecture-terminal-race-4 } - expect: { status: passed } - - id: architecture-terminal-race-5 - action: { verifier: api.golden.architecture-terminal-race-5 } - expect: { status: passed } - - id: architecture-terminal-race-6 - action: { verifier: api.golden.architecture-terminal-race-6 } - expect: { status: passed } - - id: architecture-terminal-race-7 - action: { verifier: api.golden.architecture-terminal-race-7 } - expect: { status: passed } - - id: architecture-terminal-race-8 - action: { verifier: api.golden.architecture-terminal-race-8 } - expect: { status: passed } - - id: architecture-initial-admission-1 - action: { verifier: api.golden.architecture-initial-admission-1 } - expect: { status: passed } - - id: architecture-initial-admission-2 - action: { verifier: api.golden.architecture-initial-admission-2 } - expect: { status: passed } - - id: architecture-initial-admission-3 - action: { verifier: api.golden.architecture-initial-admission-3 } - expect: { status: passed } - - id: architecture-initial-admission-4 - action: { verifier: api.golden.architecture-initial-admission-4 } - expect: { status: passed } - - id: architecture-initial-admission-5 - action: { verifier: api.golden.architecture-initial-admission-5 } - expect: { status: passed } - - id: architecture-initial-admission-6 - action: { verifier: api.golden.architecture-initial-admission-6 } - expect: { status: passed } - - id: architecture-counter-scope-1 - action: { verifier: api.golden.architecture-counter-scope-1 } - expect: { status: passed } - - id: architecture-counter-scope-2 - action: { verifier: api.golden.architecture-counter-scope-2 } - expect: { status: passed } - - id: architecture-counter-scope-3 - action: { verifier: api.golden.architecture-counter-scope-3 } - expect: { status: passed } - - id: architecture-living-graph-postgres-1 - action: { verifier: api.golden.architecture-living-graph-postgres-1 } - expect: { status: passed } - - id: architecture-living-graph-postgres-2 - action: { verifier: api.golden.architecture-living-graph-postgres-2 } - expect: { status: passed } - - id: architecture-living-graph-postgres-3 - action: { verifier: api.golden.architecture-living-graph-postgres-3 } - expect: { status: passed } - - id: architecture-living-graph-unit-1 - action: { verifier: api.golden.architecture-living-graph-unit-1 } - expect: { status: passed } - - id: architecture-living-graph-unit-2 - action: { verifier: api.golden.architecture-living-graph-unit-2 } - expect: { status: passed } - - id: architecture-living-graph-unit-3 - action: { verifier: api.golden.architecture-living-graph-unit-3 } - expect: { status: passed } - - id: architecture-living-graph-unit-4 - action: { verifier: api.golden.architecture-living-graph-unit-4 } - expect: { status: passed } - - id: architecture-living-graph-unit-5 - action: { verifier: api.golden.architecture-living-graph-unit-5 } - expect: { status: passed } - - id: architecture-living-graph-unit-6 - action: { verifier: api.golden.architecture-living-graph-unit-6 } - expect: { status: passed } - - id: architecture-living-graph-sql-1 - action: { verifier: api.golden.architecture-living-graph-sql-1 } - expect: { status: passed } - - id: architecture-living-graph-sql-2 - action: { verifier: api.golden.architecture-living-graph-sql-2 } - expect: { status: passed } - - id: architecture-living-graph-sql-3 - action: { verifier: api.golden.architecture-living-graph-sql-3 } - expect: { status: passed } - - id: architecture-living-graph-sql-4 - action: { verifier: api.golden.architecture-living-graph-sql-4 } - expect: { status: passed } - - id: architecture-living-graph-sql-5 - action: { verifier: api.golden.architecture-living-graph-sql-5 } - expect: { status: passed } - - id: architecture-living-graph-sql-6 - action: { verifier: api.golden.architecture-living-graph-sql-6 } - expect: { status: passed } - - id: architecture-living-graph-sql-7 - action: { verifier: api.golden.architecture-living-graph-sql-7 } - expect: { status: passed } - - id: architecture-completion-sql-4 - action: { verifier: api.golden.architecture-completion-sql-4 } - expect: { status: passed } - - id: architecture-completion-unit-1 - action: { verifier: api.golden.architecture-completion-unit-1 } - expect: { status: passed } - - id: architecture-completion-unit-2 - action: { verifier: api.golden.architecture-completion-unit-2 } - expect: { status: passed } - - id: architecture-completion-sql-1 - action: { verifier: api.golden.architecture-completion-sql-1 } - expect: { status: passed } - - id: architecture-completion-sql-2 - action: { verifier: api.golden.architecture-completion-sql-2 } - expect: { status: passed } - - id: architecture-completion-sql-3 - action: { verifier: api.golden.architecture-completion-sql-3 } - expect: { status: passed } - - id: architecture-return-sql-1 - action: { verifier: api.golden.architecture-return-sql-1 } - expect: { status: passed } - - id: architecture-return-sql-2 - action: { verifier: api.golden.architecture-return-sql-2 } - expect: { status: passed } - - id: architecture-return-sql-3 - action: { verifier: api.golden.architecture-return-sql-3 } - expect: { status: passed } - - id: architecture-return-sql-4 - action: { verifier: api.golden.architecture-return-sql-4 } - expect: { status: passed } - - id: architecture-terminal-performance-1 - action: { verifier: api.golden.architecture-terminal-performance-1 } - expect: { status: passed } - - id: architecture-terminal-performance-2 - action: { verifier: api.golden.architecture-terminal-performance-2 } - expect: { status: passed } - - id: architecture-terminal-performance-3 - action: { verifier: api.golden.architecture-terminal-performance-3 } - expect: { status: passed } - - id: architecture-terminal-report-sql-1 - action: { verifier: api.golden.architecture-terminal-report-sql-1 } - expect: { status: passed } - - id: architecture-terminal-report-sql-2 - action: { verifier: api.golden.architecture-terminal-report-sql-2 } - expect: { status: passed } - - id: architecture-terminal-report-sql-3 - action: { verifier: api.golden.architecture-terminal-report-sql-3 } - expect: { status: passed } - - id: architecture-terminal-report-sql-4 - action: { verifier: api.golden.architecture-terminal-report-sql-4 } - expect: { status: passed } - - id: architecture-workspace-identity-1 - action: { verifier: api.golden.architecture-workspace-identity-1 } - expect: { status: passed } - - id: architecture-workspace-identity-2 - action: { verifier: api.golden.architecture-workspace-identity-2 } - expect: { status: passed } - - id: architecture-workspace-identity-3 - action: { verifier: api.golden.architecture-workspace-identity-3 } - expect: { status: passed } - - id: architecture-workspace-readback-sql-1 - action: { verifier: api.golden.architecture-workspace-readback-sql-1 } - expect: { status: passed } - - id: architecture-workspace-readback-sql-2 - action: { verifier: api.golden.architecture-workspace-readback-sql-2 } - expect: { status: passed } - - id: architecture-workspace-readback-sql-3 - action: { verifier: api.golden.architecture-workspace-readback-sql-3 } - expect: { status: passed } - - id: architecture-workspace-unit-1 - action: { verifier: api.golden.architecture-workspace-unit-1 } - expect: { status: passed } - - id: architecture-workspace-unit-2 - action: { verifier: api.golden.architecture-workspace-unit-2 } - expect: { status: passed } - - id: architecture-workspace-unit-3 - action: { verifier: api.golden.architecture-workspace-unit-3 } - expect: { status: passed } - - id: architecture-workspace-sql-1 - action: { verifier: api.golden.architecture-workspace-sql-1 } - expect: { status: passed } - - id: architecture-workspace-sql-2 - action: { verifier: api.golden.architecture-workspace-sql-2 } - expect: { status: passed } - - id: architecture-workspace-sql-3 - action: { verifier: api.golden.architecture-workspace-sql-3 } - expect: { status: passed } - - id: architecture-workspace-sql-4 - action: { verifier: api.golden.architecture-workspace-sql-4 } - expect: { status: passed } - - id: architecture-workspace-sql-5 - action: { verifier: api.golden.architecture-workspace-sql-5 } - expect: { status: passed } - - id: architecture-workspace-sql-6 - action: { verifier: api.golden.architecture-workspace-sql-6 } - expect: { status: passed } - - id: architecture-workspace-sql-7 - action: { verifier: api.golden.architecture-workspace-sql-7 } - expect: { status: passed } - - id: architecture-workday-terminal-1 - action: { verifier: agent.golden.architecture-workday-terminal-1 } - expect: { status: passed } - - id: architecture-workday-terminal-2 - action: { verifier: agent.golden.architecture-workday-terminal-2 } - expect: { status: passed } - - id: architecture-workday-terminal-3 - action: { verifier: agent.golden.architecture-workday-terminal-3 } - expect: { status: passed } - - id: architecture-workday-terminal-4 - action: { verifier: agent.golden.architecture-workday-terminal-4 } - expect: { status: passed } - - id: architecture-workday-terminal-5 - action: { verifier: agent.golden.architecture-workday-terminal-5 } - expect: { status: passed } - - id: architecture-workday-recovery-1 - action: { verifier: agent.golden.architecture-workday-recovery-1 } - expect: { status: passed } - - id: architecture-workday-recovery-2 - action: { verifier: agent.golden.architecture-workday-recovery-2 } - expect: { status: passed } - - id: architecture-cancellation-sql-1 - action: { verifier: api.golden.architecture-cancellation-sql-1 } - expect: { status: passed } - - id: architecture-cancellation-sql-2 - action: { verifier: api.golden.architecture-cancellation-sql-2 } - expect: { status: passed } - - id: architecture-cancellation-sql-3 - action: { verifier: api.golden.architecture-cancellation-sql-3 } - expect: { status: passed } - - id: architecture-cancellation-sql-4 - action: { verifier: api.golden.architecture-cancellation-sql-4 } - expect: { status: passed } - - id: architecture-cancellation-sql-5 - action: { verifier: api.golden.architecture-cancellation-sql-5 } - expect: { status: passed } - - id: architecture-recovery-unit-1 - action: { verifier: api.golden.architecture-recovery-unit-1 } - expect: { status: passed } - - id: architecture-recovery-unit-2 - action: { verifier: api.golden.architecture-recovery-unit-2 } - expect: { status: passed } - - id: architecture-recovery-sql-1 - action: { verifier: api.golden.architecture-recovery-sql-1 } - expect: { status: passed } - - id: architecture-recovery-sql-2 - action: { verifier: api.golden.architecture-recovery-sql-2 } - expect: { status: passed } - - id: architecture-provider-settlement-existing-1 - action: { verifier: api.golden.architecture-provider-settlement-existing-1 } - expect: { status: passed } - - id: architecture-provider-settlement-existing-2 - action: { verifier: api.golden.architecture-provider-settlement-existing-2 } - expect: { status: passed } - - id: architecture-provider-settlement-existing-3 - action: { verifier: api.golden.architecture-provider-settlement-existing-3 } - expect: { status: passed } - - id: architecture-provider-accounting-unit-1 - action: { verifier: api.golden.architecture-provider-accounting-unit-1 } - expect: { status: passed } - - id: architecture-provider-accounting-unit-2 - action: { verifier: api.golden.architecture-provider-accounting-unit-2 } - expect: { status: passed } - - id: architecture-provider-accounting-unit-3 - action: { verifier: api.golden.architecture-provider-accounting-unit-3 } - expect: { status: passed } - - id: architecture-provider-accounting-unit-4 - action: { verifier: api.golden.architecture-provider-accounting-unit-4 } - expect: { status: passed } - - id: architecture-provider-accounting-unit-5 - action: { verifier: api.golden.architecture-provider-accounting-unit-5 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-1 - action: { verifier: api.golden.architecture-provider-accounting-sql-1 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-2 - action: { verifier: api.golden.architecture-provider-accounting-sql-2 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-3 - action: { verifier: api.golden.architecture-provider-accounting-sql-3 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-4 - action: { verifier: api.golden.architecture-provider-accounting-sql-4 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-5 - action: { verifier: api.golden.architecture-provider-accounting-sql-5 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-6 - action: { verifier: api.golden.architecture-provider-accounting-sql-6 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-7 - action: { verifier: api.golden.architecture-provider-accounting-sql-7 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-8 - action: { verifier: api.golden.architecture-provider-accounting-sql-8 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-9 - action: { verifier: api.golden.architecture-provider-accounting-sql-9 } - expect: { status: passed } - - id: architecture-provider-accounting-sql-10 - action: { verifier: api.golden.architecture-provider-accounting-sql-10 } - expect: { status: passed } - - id: architecture-settlement-unit-7 - action: { verifier: api.golden.architecture-settlement-unit-7 } - expect: { status: passed } - - id: architecture-settlement-sql-9 - action: { verifier: api.golden.architecture-settlement-sql-9 } - expect: { status: passed } - - id: architecture-settlement-unit-1 - action: { verifier: api.golden.architecture-settlement-unit-1 } - expect: { status: passed } - - id: architecture-settlement-unit-2 - action: { verifier: api.golden.architecture-settlement-unit-2 } - expect: { status: passed } - - id: architecture-settlement-unit-3 - action: { verifier: api.golden.architecture-settlement-unit-3 } - expect: { status: passed } - - id: architecture-settlement-unit-4 - action: { verifier: api.golden.architecture-settlement-unit-4 } - expect: { status: passed } - - id: architecture-settlement-unit-5 - action: { verifier: api.golden.architecture-settlement-unit-5 } - expect: { status: passed } - - id: architecture-settlement-unit-6 - action: { verifier: api.golden.architecture-settlement-unit-6 } - expect: { status: passed } - - id: architecture-settlement-sql-1 - action: { verifier: api.golden.architecture-settlement-sql-1 } - expect: { status: passed } - - id: architecture-settlement-sql-2 - action: { verifier: api.golden.architecture-settlement-sql-2 } - expect: { status: passed } - - id: architecture-settlement-sql-3 - action: { verifier: api.golden.architecture-settlement-sql-3 } - expect: { status: passed } - - id: architecture-settlement-sql-4 - action: { verifier: api.golden.architecture-settlement-sql-4 } - expect: { status: passed } - - id: architecture-settlement-sql-5 - action: { verifier: api.golden.architecture-settlement-sql-5 } - expect: { status: passed } - - id: architecture-settlement-sql-6 - action: { verifier: api.golden.architecture-settlement-sql-6 } - expect: { status: passed } - - id: architecture-settlement-sql-7 - action: { verifier: api.golden.architecture-settlement-sql-7 } - expect: { status: passed } - - id: architecture-settlement-sql-8 - action: { verifier: api.golden.architecture-settlement-sql-8 } - expect: { status: passed } - - id: architecture-usage-pages-1 - action: { verifier: api.golden.architecture-usage-pages-1 } - expect: { status: passed } - - id: architecture-usage-pages-2 - action: { verifier: api.golden.architecture-usage-pages-2 } - expect: { status: passed } - - id: architecture-usage-pages-3 - action: { verifier: api.golden.architecture-usage-pages-3 } - expect: { status: passed } - - id: architecture-assignment-pages-1 - action: { verifier: api.golden.architecture-assignment-pages-1 } - expect: { status: passed } - - id: architecture-assignment-pages-2 - action: { verifier: api.golden.architecture-assignment-pages-2 } - expect: { status: passed } - - id: architecture-workday-observation-pages - action: { verifier: api.golden.architecture-workday-observation-pages } - expect: { status: passed } - - id: architecture-workday-observation-unavailable - action: { verifier: api.golden.architecture-workday-observation-unavailable } - expect: { status: passed } - - id: architecture-admission-replay-unit-1 - action: { verifier: api.golden.architecture-admission-replay-unit-1 } - expect: { status: passed } - - id: architecture-admission-replay-unit-2 - action: { verifier: api.golden.architecture-admission-replay-unit-2 } - expect: { status: passed } - - id: architecture-admission-replay-unit-3 - action: { verifier: api.golden.architecture-admission-replay-unit-3 } - expect: { status: passed } - - id: architecture-admission-replay-unit-4 - action: { verifier: api.golden.architecture-admission-replay-unit-4 } - expect: { status: passed } - - id: architecture-admission-replay-unit-5 - action: { verifier: api.golden.architecture-admission-replay-unit-5 } - expect: { status: passed } - - id: architecture-admission-replay-unit-6 - action: { verifier: api.golden.architecture-admission-replay-unit-6 } - expect: { status: passed } - - id: architecture-admission-replay-unit-7 - action: { verifier: api.golden.architecture-admission-replay-unit-7 } - expect: { status: passed } - - id: architecture-admission-replay-unit-8 - action: { verifier: api.golden.architecture-admission-replay-unit-8 } - expect: { status: passed } - - id: architecture-admission-replay-unit-9 - action: { verifier: api.golden.architecture-admission-replay-unit-9 } - expect: { status: passed } - - id: architecture-admission-replay-native-1 - action: { verifier: api.golden.architecture-admission-replay-native-1 } - expect: { status: passed } - - id: architecture-admission-replay-native-2 - action: { verifier: api.golden.architecture-admission-replay-native-2 } - expect: { status: passed } - - id: architecture-admission-replay-native-3 - action: { verifier: api.golden.architecture-admission-replay-native-3 } - expect: { status: passed } - - id: architecture-admission-replay-native-4 - action: { verifier: api.golden.architecture-admission-replay-native-4 } - expect: { status: passed } - - id: architecture-admission-replay-native-5 - action: { verifier: api.golden.architecture-admission-replay-native-5 } - expect: { status: passed } - - id: architecture-admission-replay-native-6 - action: { verifier: api.golden.architecture-admission-replay-native-6 } - expect: { status: passed } - - id: architecture-admission-replay-native-7 - action: { verifier: api.golden.architecture-admission-replay-native-7 } - expect: { status: passed } - - id: architecture-admission-replay-native-8 - action: { verifier: api.golden.architecture-admission-replay-native-8 } - expect: { status: passed } - - id: architecture-decision-proposal-unit-no-substitute - action: { verifier: api.golden.architecture-decision-proposal-unit-no-substitute } - expect: { status: passed } - - id: architecture-decision-review-unit-complete - action: { verifier: api.golden.architecture-decision-review-unit-complete } - expect: { status: passed } - - id: architecture-decision-review-unit-required - action: { verifier: api.golden.architecture-decision-review-unit-required } - expect: { status: passed } - - id: architecture-decision-review-unit-positions - action: { verifier: api.golden.architecture-decision-review-unit-positions } - expect: { status: passed } - - id: architecture-decision-review-unit-disposition - action: { verifier: api.golden.architecture-decision-review-unit-disposition } - expect: { status: passed } - - id: architecture-decision-review-unit-maker - action: { verifier: api.golden.architecture-decision-review-unit-maker } - expect: { status: passed } - - id: architecture-decision-review-unit-conflict - action: { verifier: api.golden.architecture-decision-review-unit-conflict } - expect: { status: passed } - - id: architecture-decision-review-unit-time - action: { verifier: api.golden.architecture-decision-review-unit-time } - expect: { status: passed } - - id: architecture-decision-review-native-complete - action: { verifier: api.golden.architecture-decision-review-native-complete } - expect: { status: passed } - - id: architecture-decision-review-native-positions - action: { verifier: api.golden.architecture-decision-review-native-positions } - expect: { status: passed } - - id: architecture-decision-review-native-required - action: { verifier: api.golden.architecture-decision-review-native-required } - expect: { status: passed } - - id: architecture-decision-review-native-conflict - action: { verifier: api.golden.architecture-decision-review-native-conflict } - expect: { status: passed } - - id: architecture-decision-review-native-maker - action: { verifier: api.golden.architecture-decision-review-native-maker } - expect: { status: passed } - - id: architecture-decision-review-native-time - action: { verifier: api.golden.architecture-decision-review-native-time } - expect: { status: passed } - - id: architecture-decision-review-native-denial - action: { verifier: api.golden.architecture-decision-review-native-denial } - expect: { status: passed } - - id: architecture-decision-review-native-predecessor - action: { verifier: api.golden.architecture-decision-review-native-predecessor } - expect: { status: passed } - - id: architecture-decision-proposal-native-no-substitute - action: { verifier: api.golden.architecture-decision-proposal-native-no-substitute } - expect: { status: passed } - - id: architecture-decision-proposal-native-stale - action: { verifier: api.golden.architecture-decision-proposal-native-stale } - expect: { status: passed } - - id: execution-decision-producer-unit-1 - action: { verifier: api.golden.execution-decision-producer-unit-1 } - expect: { status: passed } - - id: execution-decision-atomic-unit - action: { verifier: api.golden.execution-decision-atomic-unit } - expect: { status: passed } - - id: execution-decision-workspace-unit - action: { verifier: api.golden.execution-decision-workspace-unit } - expect: { status: passed } - - id: execution-decision-demand-unit - action: { verifier: api.golden.execution-decision-demand-unit } - expect: { status: passed } - - id: execution-decision-producer-native-1 - action: { verifier: api.golden.execution-decision-producer-native-1 } - expect: { status: passed } - - id: execution-provider-offer-unit-1 - action: { verifier: api.golden.execution-provider-offer-unit-1 } - expect: { status: passed } - - id: execution-provider-offer-unit-2 - action: { verifier: api.golden.execution-provider-offer-unit-2 } - expect: { status: passed } - - id: architecture-readiness-complete - action: { verifier: api.golden.architecture-readiness-complete } - expect: { status: passed } - - id: architecture-readiness-required - action: { verifier: api.golden.architecture-readiness-required } - expect: { status: passed } - - id: architecture-readiness-malformed - action: { verifier: api.golden.architecture-readiness-malformed } - expect: { status: passed } - - id: architecture-readiness-estimates - action: { verifier: api.golden.architecture-readiness-estimates } - expect: { status: passed } - - id: architecture-readiness-dependencies - action: { verifier: api.golden.architecture-readiness-dependencies } - expect: { status: passed } - - id: architecture-readiness-draft - action: { verifier: api.golden.architecture-readiness-draft } - expect: { status: passed } - - id: architecture-readiness-native-optional - action: { verifier: api.golden.architecture-readiness-native-optional } - expect: { status: passed } - - id: architecture-readiness-native-custody - action: { verifier: api.golden.architecture-readiness-native-custody } - expect: { status: passed } - - id: architecture-readiness-native-dependencies - action: { verifier: api.golden.architecture-readiness-native-dependencies } - expect: { status: passed } - - id: architecture-readiness-native-denial - action: { verifier: api.golden.architecture-readiness-native-denial } - expect: { status: passed } - - id: architecture-calibration-sql-scope - action: { verifier: api.golden.architecture-calibration-sql-scope } - expect: { status: passed } - - id: architecture-calibration-sql-malformed - action: { verifier: api.golden.architecture-calibration-sql-malformed } - expect: { status: passed } - - id: architecture-closeout-unit-failed - action: { verifier: api.golden.architecture-closeout-unit-failed } - expect: { status: passed } - - id: architecture-closeout-unit-cancelled - action: { verifier: api.golden.architecture-closeout-unit-cancelled } - expect: { status: passed } - - id: architecture-closeout-unit-stale - action: { verifier: api.golden.architecture-closeout-unit-stale } - expect: { status: passed } - - id: architecture-closeout-unit-single - action: { verifier: api.golden.architecture-closeout-unit-single } - expect: { status: passed } - - id: architecture-closeout-unit-time - action: { verifier: api.golden.architecture-closeout-unit-time } - expect: { status: passed } - - id: architecture-closeout-sql-failed - action: { verifier: api.golden.architecture-closeout-sql-failed } + action: { verifier: api.golden.execution-output-retirement-projection-unit } expect: { status: passed } - - id: architecture-closeout-sql-cancelled - action: { verifier: api.golden.architecture-closeout-sql-cancelled } + - id: execution-output-retirement-sql-native + action: { verifier: api.golden.execution-output-retirement-sql-native } expect: { status: passed } - - id: architecture-closeout-sql-stale - action: { verifier: api.golden.architecture-closeout-sql-stale } + - id: execution-output-retirement-postgres-native + action: { verifier: api.golden.execution-output-retirement-postgres-native } expect: { status: passed } - - id: architecture-closeout-sql-single - action: { verifier: api.golden.architecture-closeout-sql-single } + - id: execution-work-item-slugs-native + action: { verifier: api.golden.execution-work-item-slugs-native } expect: { status: passed } - - id: architecture-closeout-sql-settlement - action: { verifier: api.golden.architecture-closeout-sql-settlement } + - id: execution-node-conditions-native + action: { verifier: api.golden.execution-node-conditions-native } expect: { status: passed } - - id: architecture-closeout-sql-time - action: { verifier: api.golden.architecture-closeout-sql-time } + - id: execution-assignment-ownership-unit + action: { verifier: api.golden.execution-assignment-ownership-unit } expect: { status: passed } - - id: architecture-reporting-rename - action: { verifier: api.golden.architecture-reporting-rename } + - id: execution-assignment-ownership-native + action: { verifier: api.golden.execution-assignment-ownership-native } expect: { status: passed } - - id: architecture-closeout-selection - action: { verifier: api.golden.architecture-closeout-selection } + - id: execution-dependency-endpoint-native + action: { verifier: api.golden.execution-dependency-endpoint-native } expect: { status: passed } - - id: architecture-reporting-event-denial - action: { verifier: api.golden.architecture-reporting-event-denial } + - id: execution-work-item-review-native + action: { verifier: api.golden.execution-work-item-review-native } expect: { status: passed } - - id: architecture-activity-event-scope - action: { verifier: api.golden.architecture-activity-event-scope } + - id: execution-ready-proposal-native + action: { verifier: api.golden.execution-ready-proposal-native } expect: { status: passed } - - id: architecture-disabled-reporting - action: { verifier: api.golden.architecture-disabled-reporting } + - id: execution-report-subject-native + action: { verifier: api.golden.execution-report-subject-native } expect: { status: passed } - - id: architecture-closeout-sql - action: { verifier: api.golden.architecture-closeout-sql } + - id: execution-terminal-priority-unit + action: { verifier: api.golden.execution-terminal-priority-unit } expect: { status: passed } - - id: architecture-event-sql - action: { verifier: api.golden.architecture-event-sql } + - id: execution-terminal-priority-native + action: { verifier: api.golden.execution-terminal-priority-native } expect: { status: passed } - - id: verification-prerequisite-custody - action: { verifier: api.golden.verification-prerequisite-custody } + - id: execution-node-authority-native + action: { verifier: api.golden.execution-node-authority-native } expect: { status: passed } - - id: review-calibration-no-floor - action: { verifier: api.golden.review-calibration-no-floor } + - id: execution-decision-conditions-native + action: { verifier: api.golden.execution-decision-conditions-native } expect: { status: passed } - - id: review-history-scope - action: { verifier: api.golden.review-history-scope } + - id: execution-work-item-inventory-native + action: { verifier: api.golden.execution-work-item-inventory-native } expect: { status: passed } - - id: governance-review-not-dispatched - action: { verifier: api.golden.governance-review-not-dispatched } + - id: execution-profile-signal-cutover-unit + action: { verifier: api.golden.execution-profile-signal-cutover-unit } expect: { status: passed } - - id: transaction-reprojection - action: { verifier: api.golden.transaction-reprojection } + - id: execution-profile-inventory-native + action: { verifier: api.golden.execution-profile-inventory-native } expect: { status: passed } - - id: transaction-retry-denial - action: { verifier: api.golden.transaction-retry-denial } + - id: execution-note-identity-unit + action: { verifier: api.golden.execution-note-identity-unit } expect: { status: passed } - - id: transaction-inherited-denial - action: { verifier: api.golden.transaction-inherited-denial } + - id: execution-note-identity-native + action: { verifier: api.golden.execution-note-identity-native } expect: { status: passed } - - id: invocation-terminal-returned - action: { verifier: api.golden.invocation-terminal-returned } + - id: execution-identifier-inventory-unit + action: { verifier: api.golden.execution-identifier-inventory-unit } expect: { status: passed } - - id: invocation-terminal-failed - action: { verifier: api.golden.invocation-terminal-failed } + - id: execution-identifier-inventory-native + action: { verifier: api.golden.execution-identifier-inventory-native } expect: { status: passed } - - id: invocation-terminal-cancelled - action: { verifier: api.golden.invocation-terminal-cancelled } + - id: execution-failure-attribution-unit + action: { verifier: api.golden.execution-failure-attribution-unit } expect: { status: passed } - - id: invocation-terminal-foreign-team - action: { verifier: api.golden.invocation-terminal-foreign-team } + - id: execution-failure-attribution-native + action: { verifier: api.golden.execution-failure-attribution-native } expect: { status: passed } - - id: invocation-terminal-foreign-invocation - action: { verifier: api.golden.invocation-terminal-foreign-invocation } + - id: execution-signal-cutover-unit + action: { verifier: api.golden.execution-signal-cutover-unit } expect: { status: passed } - - id: invocation-terminal-leased - action: { verifier: api.golden.invocation-terminal-leased } + - id: execution-signal-cutover-native + action: { verifier: api.golden.execution-signal-cutover-native } expect: { status: passed } - - id: progress-postgres-custody - action: { verifier: api.golden.progress-postgres-custody } + - id: execution-tool-grant-unit + action: { verifier: api.golden.execution-tool-grant-unit } expect: { status: passed } - - id: preparation-progress - action: { verifier: api.golden.preparation-progress } + - id: execution-tool-grant-native + action: { verifier: api.golden.execution-tool-grant-native } expect: { status: passed } - - id: preparation-no-commit-wait - action: { verifier: api.golden.preparation-no-commit-wait } + - id: execution-reference-inventory-unit + action: { verifier: api.golden.execution-reference-inventory-unit } expect: { status: passed } - - id: provider-progress-authority - action: { verifier: api.golden.provider-progress-authority } + - id: execution-reference-inventory-native + action: { verifier: api.golden.execution-reference-inventory-native } expect: { status: passed } - - id: provider-terminal-projection - action: { verifier: api.golden.provider-terminal-projection } + - id: execution-agent-snapshot-diagnostics-unit + action: { verifier: api.golden.execution-agent-snapshot-diagnostics-unit } expect: { status: passed } - - id: terminal-projection-fatal - action: { verifier: api.golden.terminal-projection-fatal } + - id: execution-agent-snapshot-diagnostics-native + action: { verifier: api.golden.execution-agent-snapshot-diagnostics-native } expect: { status: passed } - - id: terminal-projection-replay - action: { verifier: api.golden.terminal-projection-replay } + - id: execution-qualified-selection-unit + action: { verifier: api.golden.execution-qualified-selection-unit } expect: { status: passed } - - id: progress-idempotency - action: { verifier: api.golden.progress-idempotency } + - id: execution-predecessor-missing-unit + action: { verifier: api.golden.execution-predecessor-missing-unit } expect: { status: passed } - - id: workday-lifecycle-projection - action: { verifier: api.golden.workday-lifecycle-projection } + - id: execution-predecessor-lineage-unit + action: { verifier: api.golden.execution-predecessor-lineage-unit } expect: { status: passed } - - id: progress-token-denial - action: { verifier: api.golden.progress-token-denial } + - id: execution-predecessor-decision-unit + action: { verifier: api.golden.execution-predecessor-decision-unit } expect: { status: passed } - - id: late-planning-round - action: { verifier: api.golden.late-planning-round } + - id: execution-publication-branch-unit + action: { verifier: api.golden.execution-publication-branch-unit } expect: { status: passed } - - id: fluid-planning-window - action: { verifier: api.golden.fluid-planning-window } + - id: execution-unchanged-content-unit + action: { verifier: api.golden.execution-unchanged-content-unit } expect: { status: passed } - - id: unusable-execution-window - action: { verifier: api.golden.unusable-execution-window } + - id: execution-usage-seconds-unit + action: { verifier: api.golden.execution-usage-seconds-unit } expect: { status: passed } - - id: short-productive-window - action: { verifier: api.golden.short-productive-window } + - id: execution-usage-seconds-native + action: { verifier: api.golden.execution-usage-seconds-native } expect: { status: passed } - - id: admission-source-custody-leased - action: { verifier: api.golden.admission-source-custody-leased } + - id: execution-availability-offer-readback-unit + action: { verifier: api.golden.execution-availability-offer-readback-unit } expect: { status: passed } - - id: admission-source-custody-pending - action: { verifier: api.golden.admission-source-custody-pending } + - id: execution-graph-digest-guard-unit + action: { verifier: api.golden.execution-graph-digest-guard-unit } expect: { status: passed } - - id: admission-source-custody-completed - action: { verifier: api.golden.admission-source-custody-completed } + - id: execution-primary-source-reader-unit + action: { verifier: api.golden.execution-primary-source-reader-unit } expect: { status: passed } - - id: terminal-scoped-planning - action: { verifier: api.golden.terminal-scoped-planning } + - id: execution-primary-source-unit + action: { verifier: api.golden.execution-primary-source-unit } expect: { status: passed } - - id: incomplete-scoped-planning - action: { verifier: api.golden.incomplete-scoped-planning } + - id: execution-primary-source-native + action: { verifier: api.golden.execution-primary-source-native } expect: { status: passed } - - id: reviewed-allocation-history - action: { verifier: api.golden.reviewed-allocation-history } + - id: execution-proposal-evaluation-native + action: { verifier: api.golden.execution-proposal-evaluation-native } expect: { status: passed } - - id: expired-allocation-history - action: { verifier: api.golden.expired-allocation-history } + - id: execution-proposal-evaluation-unit + action: { verifier: api.golden.execution-proposal-evaluation-unit } expect: { status: passed } - - id: availability-open-assignment-locks - action: { verifier: api.golden.availability-open-assignment-locks } + - id: execution-usage-clock-unit + action: { verifier: api.golden.execution-usage-clock-unit } expect: { status: passed } - - id: availability-open-reservation-locks - action: { verifier: api.golden.availability-open-reservation-locks } + - id: execution-usage-clock-native + action: { verifier: api.golden.execution-usage-clock-native } expect: { status: passed } - - id: availability-assignment-locks - action: { verifier: api.golden.availability-assignment-locks } + - id: execution-schedule-update-unit + action: { verifier: api.golden.execution-schedule-update-unit } expect: { status: passed } - - id: availability-reservation-locks - action: { verifier: api.golden.availability-reservation-locks } + - id: execution-workspace-response-native + action: { verifier: api.golden.execution-workspace-response-native } expect: { status: passed } - - id: availability-accounting-serialization - action: { verifier: api.golden.availability-accounting-serialization } + - id: execution-decision-replay-native + action: { verifier: api.golden.execution-decision-replay-native } expect: { status: passed } - - id: operator-phase-postgres - action: { verifier: api.golden.operator-phase-postgres } + - id: execution-terminal-orphan-unit + action: { verifier: api.golden.execution-terminal-orphan-unit } expect: { status: passed } - - id: operator-phase-closeout - action: { verifier: api.golden.operator-phase-closeout } + - id: execution-issued-priority-native + action: { verifier: api.golden.execution-issued-priority-native } expect: { status: passed } - - id: operator-phase-no-fabrication - action: { verifier: api.golden.operator-phase-no-fabrication } + - id: execution-priority-storage-unit + action: { verifier: api.golden.execution-priority-storage-unit } expect: { status: passed } - - id: operator-phase-early-denial - action: { verifier: api.golden.operator-phase-early-denial } + - id: execution-priority-storage-native + action: { verifier: api.golden.execution-priority-storage-native } expect: { status: passed } - - id: operator-phase-acting-denial - action: { verifier: api.golden.operator-phase-acting-denial } + - id: execution-session-registration-unit + action: { verifier: api.golden.execution-session-registration-unit } expect: { status: passed } - - id: operator-phase-fluid-denial - action: { verifier: api.golden.operator-phase-fluid-denial } + - id: execution-session-registration-native + action: { verifier: api.golden.execution-session-registration-native } expect: { status: passed } - - id: operator-phase-provider-denial - action: { verifier: api.golden.operator-phase-provider-denial } + - id: execution-postgres-prerequisite-unit + action: { verifier: api.golden.execution-postgres-prerequisite-unit } expect: { status: passed } - - id: admitted-discussion-binding - action: { verifier: api.golden.admitted-discussion-binding } + - id: execution-native-treedx-prerequisite-unit + action: { verifier: api.golden.execution-native-treedx-prerequisite-unit } expect: { status: passed } - - id: discussion-binding-foreign-team - action: { verifier: api.golden.discussion-binding-foreign-team } + - id: execution-compiler-prerequisite-unit + action: { verifier: api.golden.execution-compiler-prerequisite-unit } expect: { status: passed } - - id: discussion-binding-wrong-reservation - action: { verifier: api.golden.discussion-binding-wrong-reservation } + - id: execution-compiler-prerequisite-native + action: { verifier: api.golden.execution-compiler-prerequisite-native } expect: { status: passed } - - id: discussion-binding-wrong-invocation - action: { verifier: api.golden.discussion-binding-wrong-invocation } + - id: execution-lease-clocks-unit + action: { verifier: api.golden.execution-lease-clocks-unit } expect: { status: passed } - - id: discussion-binding-terminal - action: { verifier: api.golden.discussion-binding-terminal } + - id: execution-recovery-unknown-usage-native + action: { verifier: api.golden.execution-recovery-unknown-usage-native } expect: { status: passed } - - id: discussion-binding-bound-other - action: { verifier: api.golden.discussion-binding-bound-other } + - id: execution-admission-explanation-unit + action: { verifier: api.golden.execution-admission-explanation-unit } expect: { status: passed } - - id: concurrent-terminal-revisions - action: { verifier: api.golden.concurrent-terminal-revisions } + - id: execution-poll-token-custody-unit + action: { verifier: api.golden.execution-poll-token-custody-unit } expect: { status: passed } - - id: phase-before-tick - action: { verifier: api.golden.phase-before-tick } + - id: execution-credential-audit-unit + action: { verifier: api.golden.execution-credential-audit-unit } expect: { status: passed } - - id: phase-after-tick - action: { verifier: api.golden.phase-after-tick } + - id: execution-registration-audit-unit + action: { verifier: api.golden.execution-registration-audit-unit } expect: { status: passed } - - id: phase-task-timeout-denial - action: { verifier: api.golden.phase-task-timeout-denial } + - id: operator-cancellation-measurement-unit + action: { verifier: api.golden.operator-cancellation-measurement-unit } expect: { status: passed } - - id: phase-fluid-planning-denial - action: { verifier: api.golden.phase-fluid-planning-denial } + - id: canonical-source-ordinal-unit + action: { verifier: api.golden.canonical-source-ordinal-unit } expect: { status: passed } - - id: phase-authority-denial - action: { verifier: api.golden.phase-authority-denial } + - id: canonical-source-ordinal-denial-unit + action: { verifier: api.golden.canonical-source-ordinal-denial-unit } expect: { status: passed } - - id: phase-before-tick-postgres - action: { verifier: api.golden.phase-before-tick-postgres } + - id: execution-work-priority-unit-1 + action: { verifier: api.golden.execution-work-priority-unit-1 } expect: { status: passed } - - id: phase-after-tick-postgres - action: { verifier: api.golden.phase-after-tick-postgres } + - id: execution-work-priority-native-1 + action: { verifier: api.golden.execution-work-priority-native-1 } expect: { status: passed } - - id: phase-real-timeout-postgres - action: { verifier: api.golden.phase-real-timeout-postgres } + - id: execution-node-priority-unit-1 + action: { verifier: api.golden.execution-node-priority-unit-1 } expect: { status: passed } - - id: phase-real-overrun-postgres - action: { verifier: api.golden.phase-real-overrun-postgres } + - id: execution-selection-producer-native-1 + action: { verifier: api.golden.execution-selection-producer-native-1 } expect: { status: passed } - - id: active-window-production - action: { verifier: api.golden.active-window-production } + - id: execution-node-priority-native-1 + action: { verifier: api.golden.execution-node-priority-native-1 } expect: { status: passed } - - id: active-window-simulation - action: { verifier: api.golden.active-window-simulation } + - id: execution-selection-input-native-1 + action: { verifier: api.golden.execution-selection-input-native-1 } expect: { status: passed } - - id: active-window-rollover - action: { verifier: api.golden.active-window-rollover } + - id: api.golden.execution-protected-observation-native-1 + action: { verifier: api.golden.execution-protected-observation-native-1 } expect: { status: passed } - - id: active-window-exhaustion - action: { verifier: api.golden.active-window-exhaustion } + - id: api.golden.execution-protected-observation-unit-1 + action: { verifier: api.golden.execution-protected-observation-unit-1 } expect: { status: passed } - - id: continuation-history - action: { verifier: api.golden.continuation-history } + - id: execution-retired-mode-unit-1 + action: { verifier: api.golden.execution-retired-mode-unit-1 } expect: { status: passed } - - id: continuation-denial - action: { verifier: api.golden.continuation-denial } + - id: execution-retired-mode-native-1 + action: { verifier: api.golden.execution-retired-mode-native-1 } expect: { status: passed } - - id: continuation-freshness - action: { verifier: api.golden.continuation-freshness } + - id: execution-clean-schema-native-1 + action: { verifier: api.golden.execution-clean-schema-native-1 } expect: { status: passed } - - id: bounded-planning-node-id - action: { verifier: api.golden.bounded-planning-node-id } + - id: execution-proposal-blockers-unit-1 + action: { verifier: api.golden.execution-proposal-blockers-unit-1 } expect: { status: passed } - - id: retired-graph-estimate-migration - action: { verifier: api.golden.retired-graph-estimate-migration } + - id: execution-continuation-returned-native-1 + action: { verifier: api.golden.execution-continuation-returned-native-1 } expect: { status: passed } - - id: early-external-approval - action: { verifier: api.golden.early-external-approval } + - id: execution-integration-identity-unit-1 + action: { verifier: api.golden.execution-integration-identity-unit-1 } expect: { status: passed } - - id: estimate-finalizes-approval - action: { verifier: api.golden.estimate-finalizes-approval } + - id: execution-predecessor-lineage-unit-1 + action: { verifier: api.golden.execution-predecessor-lineage-unit-1 } expect: { status: passed } - - id: fluid-phase - action: { verifier: api.golden.fluid-phase } + - id: execution-predecessor-lineage-native-1 + action: { verifier: api.golden.execution-predecessor-lineage-native-1 } expect: { status: passed } - - id: external-approval - action: { verifier: api.golden.external-approval } + - id: execution-weighted-opportunity-native-1 + action: { verifier: api.golden.execution-weighted-opportunity-native-1 } expect: { status: passed } - - id: parallel-proposals - action: { verifier: api.golden.parallel-proposals } + - id: execution-qualification-unit-1 + action: { verifier: api.golden.execution-qualification-unit-1 } expect: { status: passed } - - id: reporter-carry-forward - action: { verifier: api.golden.reporter-carry-forward } + - id: execution-repeating-planning-unit-1 + action: { verifier: api.golden.execution-repeating-planning-unit-1 } expect: { status: passed } - - id: canonical-adapter-headroom - action: { verifier: api.golden.canonical-adapter-headroom } + - id: execution-repeating-planning-native-1 + action: { verifier: api.golden.execution-repeating-planning-native-1 } expect: { status: passed } - - id: total-admission-ceiling - action: { verifier: api.golden.total-admission-ceiling } + - id: execution-settlement-postgres-1 + action: { verifier: api.golden.execution-settlement-postgres-1 } expect: { status: passed } - - id: planning-communication-turn - action: { verifier: api.golden.planning-communication-turn } + - id: execution-final-admission-unit-1 + action: { verifier: api.golden.execution-final-admission-unit-1 } expect: { status: passed } - - id: proposal-review-source - action: { verifier: api.golden.proposal-review-source } + - id: execution-final-admission-native-1 + action: { verifier: api.golden.execution-final-admission-native-1 } expect: { status: passed } - - id: proposal-review-binding - action: { verifier: api.golden.proposal-review-binding } + - id: execution-retained-quota-unit-1 + action: { verifier: api.golden.execution-retained-quota-unit-1 } expect: { status: passed } - - id: timeout-report-grace - action: { verifier: api.golden.timeout-report-grace } + - id: execution-pending-subscription-unit-1 + action: { verifier: api.golden.execution-pending-subscription-unit-1 } expect: { status: passed } - - id: immutable-public-source - action: { verifier: api.golden.public-exact-source } + - id: execution-pending-subscription-native-1 + action: { verifier: api.golden.execution-pending-subscription-native-1 } expect: { status: passed } - - id: moving-public-source - action: { verifier: api.golden.public-moving-source } + - id: execution-continuation-unit-1 + action: { verifier: api.golden.execution-continuation-unit-1 } expect: { status: passed } - - id: planning-source-quota - action: { verifier: api.golden.planning-source-quota } + - id: execution-continuation-unit-2 + action: { verifier: api.golden.execution-continuation-unit-2 } expect: { status: passed } - - id: public-source-custody-failure - action: { verifier: api.golden.public-source-custody-failure } + - id: execution-continuation-native-1 + action: { verifier: api.golden.execution-continuation-native-1 } expect: { status: passed } - - id: public-source-authority-selection - action: { verifier: api.golden.public-source-authority-selection } + - id: execution-accounting-continuity-unit-1 + action: { verifier: api.golden.execution-accounting-continuity-unit-1 } expect: { status: passed } - - id: public-source-pin-denial - action: { verifier: api.golden.public-source-pin-denial } + - id: execution-accounting-continuity-unit-2 + action: { verifier: api.golden.execution-accounting-continuity-unit-2 } expect: { status: passed } - - id: estimate-lease-reconciliation - action: { verifier: api.golden.estimate-lease-reconciliation } + - id: execution-accounting-continuity-native-1 + action: { verifier: api.golden.execution-accounting-continuity-native-1 } expect: { status: passed } - - id: estimate-lease-denial - action: { verifier: api.golden.estimate-lease-denial } + - id: execution-archived-profile-unit + action: { verifier: api.golden.execution-archived-profile-unit } expect: { status: passed } - - id: maintenance-failure-isolation - action: { verifier: api.golden.maintenance-failure-isolation } + - id: execution-archived-profile-native + action: { verifier: api.golden.execution-archived-profile-native } expect: { status: passed } - - id: maintenance-retry - action: { verifier: api.golden.maintenance-retry } + - id: execution-handler-inspection-unit-1 + action: { verifier: api.golden.execution-handler-inspection-unit-1 } expect: { status: passed } - - id: content-receipt - action: { verifier: api.golden.content-receipt } + - id: execution-handler-inspection-unit-2 + action: { verifier: api.golden.execution-handler-inspection-unit-2 } expect: { status: passed } - - id: content-exact-path - action: { verifier: api.golden.content-exact-path } + - id: execution-handler-inspection-unit-3 + action: { verifier: api.golden.execution-handler-inspection-unit-3 } expect: { status: passed } - - id: content-readback-denial - action: { verifier: api.golden.content-readback-denial } + - id: execution-handler-inspection-native-1 + action: { verifier: api.golden.execution-handler-inspection-native-1 } expect: { status: passed } - - id: response-integration-order - action: { verifier: api.golden.response-integration-order } + - id: execution-handler-inspection-native-2 + action: { verifier: api.golden.execution-handler-inspection-native-2 } expect: { status: passed } - - id: recursive-workspace-reference - action: { verifier: api.golden.recursive-workspace-reference } + - id: execution-diagnostic-replay-unit-1 + action: { verifier: api.golden.execution-diagnostic-replay-unit-1 } expect: { status: passed } - - id: send-completion-boundary - action: { verifier: api.golden.send-completion-boundary } + - id: execution-diagnostic-replay-native-1 + action: { verifier: api.golden.execution-diagnostic-replay-native-1 } expect: { status: passed } - - id: published-reply-failure - action: { verifier: api.golden.published-reply-failure } + - id: architecture-dependency-bootstrap-unit-5 + action: { verifier: api.golden.architecture-dependency-bootstrap-unit-5 } expect: { status: passed } - - id: estimate-merge - action: { verifier: api.golden.estimate-merge } + - id: architecture-dependency-bootstrap-postgres-6 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-6 } expect: { status: passed } - - id: response-authority - action: { verifier: api.golden.response-authority } + - id: architecture-dependency-bootstrap-unit-4 + action: { verifier: api.golden.architecture-dependency-bootstrap-unit-4 } expect: { status: passed } - - id: response-race - action: { verifier: api.golden.response-race } + - id: architecture-dependency-bootstrap-postgres-5 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-5 } expect: { status: passed } - - id: response-sql-authority - action: { verifier: api.golden.response-sql-authority } + - id: architecture-dependency-approval-unit-5 + action: { verifier: api.golden.architecture-dependency-approval-unit-5 } expect: { status: passed } - - id: response-continuation - action: { verifier: api.golden.response-continuation } + - id: architecture-dependency-approval-unit-6 + action: { verifier: api.golden.architecture-dependency-approval-unit-6 } expect: { status: passed } - - id: estimate-ownership - action: { verifier: api.golden.estimate-ownership } + - id: architecture-dependency-operator-postgres-4 + action: { verifier: api.golden.architecture-dependency-operator-postgres-4 } expect: { status: passed } - - id: estimate-target - action: { verifier: api.golden.estimate-target } + - id: architecture-dependency-operator-postgres-5 + action: { verifier: api.golden.architecture-dependency-operator-postgres-5 } expect: { status: passed } - - id: estimate-reviewer - action: { verifier: api.golden.estimate-reviewer } + - id: architecture-dependency-bootstrap-unit-2 + action: { verifier: api.golden.architecture-dependency-bootstrap-unit-2 } expect: { status: passed } - - id: estimate-completeness - action: { verifier: api.golden.estimate-completeness } + - id: architecture-dependency-bootstrap-unit-3 + action: { verifier: api.golden.architecture-dependency-bootstrap-unit-3 } expect: { status: passed } - - id: estimating-participants - action: { verifier: api.golden.estimating-participants } + - id: architecture-dependency-bootstrap-postgres-3 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-3 } expect: { status: passed } - - id: estimating-missing-only - action: { verifier: api.golden.estimating-missing-only } + - id: architecture-dependency-bootstrap-postgres-4 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-4 } expect: { status: passed } - - id: estimating-six-owners - action: { verifier: api.golden.estimating-six-owners } + - id: architecture-dependency-bootstrap-unit-1 + action: { verifier: api.golden.architecture-dependency-bootstrap-unit-1 } expect: { status: passed } - - id: estimating-target-selection - action: { verifier: api.golden.estimating-target-selection } + - id: architecture-dependency-bootstrap-postgres-1 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-1 } expect: { status: passed } - - id: review-no-planning - action: { verifier: api.golden.review-no-planning } + - id: architecture-dependency-bootstrap-postgres-2 + action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-2 } expect: { status: passed } + - id: architecture-dependency-operator-unit-1 + action: { verifier: api.golden.architecture-dependency-operator-u…18752 tokens truncated…tatus: passed } - id: authority-gate action: { verifier: api.golden.authority-gate } expect: { status: passed } @@ -2828,3 +1282,9 @@ workflow: - id: connected-content-component-postgres action: { verifier: api.golden.connected-content-component-postgres } expect: { status: passed } + - id: provider-availability-history-unit + action: { verifier: api.golden.provider-availability-history-unit } + expect: { status: passed } + - id: capacity-audit-pagination-unit + action: { verifier: api.golden.capacity-audit-pagination-unit } + expect: { status: passed } diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index d1760a19..d6a0fcbb 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -1,3 +1,6 @@ +Warning: truncated output (original token count: 81322) +Total output lines: 4796 + schemaVersion: treeseed.guarantee-verifiers/v1 ownerPackage: "@treeseed/api" verifiers: @@ -79,4267 +82,378 @@ verifiers: api.golden.normal-sdk-schema-samples-denials-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/schema-samples.test.ts - testName: "denies missing malformed negative fractional or unbounded native sample counts and unknown case scope without converting failed observations" - api.golden.execution-normal-sdk-clean-schema-live-1: - kind: nodeTestCase - ownerPackage: "@treeseed/api" - testFile: tests/acceptance/execution-schema.ts - testName: "Actual normal SDK workday retains complete clean migration and canonical public native inventories with genuine cold start and default zero priority allowed" - api.golden.native-inventory-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "reads exactly every native identity through complete public pages without changing original observations" - api.golden.native-reporter-closeout-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "denies missing duplicated foreign malformed or later native report publication without rewriting completed records or retained audit history" - api.golden.native-lifecycle-custody-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "retains original native lifecycle output and denies missing substituted or malformed public model custody without rewriting observations" - api.golden.native-model-inventory-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "selects every original native model start independently of public sandbox markers and denies incomplete foreign duplicated or interrupted custody" - api.golden.native-inventory-denials-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "denies malformed missing duplicated reordered foreign truncated or interrupted public inventories without repairing failed pages" - api.golden.native-inventory-authority-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts - testName: "denies incomplete ambiguous native authority before querying the public boundary" - api.golden.installed-assets-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/installed-assets.test.ts - testName: "ships the existing selected API definitions and acceptance asset with only published runtime module dependencies" - api.golden.installed-assets-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/installed-assets.test.ts - testName: "native production API archive retains exact acceptance bytes and loads its owning published runtime contracts without source or development dependencies" - api.golden.standalone-chat-source-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts - testName: "freezes configured source-read Git context before issuing an arbitrary configured chat assignment" - api.golden.standalone-chat-source-denial-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts - testName: "denies ambiguous source and rejected or malformed upstream revisions without repairing communication input" - api.golden.standalone-chat-source-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts - testName: "native PostgreSQL and HTTP freeze standalone chat source while denials and unchanged retry preserve all stored input bytes" - api.golden.team-key-lock-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "serializes graph writers without taking a team key lock that blocks reservation foreign keys" - api.golden.team-key-lock-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "native graph and failure-report writers allow independent team foreign-key readers while excluding competing graph writers" - api.golden.unreported-closeout-migration-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "native migration retains unreported ended history as an explicit failed closing workday without fabricating a report or changing valid runs" - api.golden.operator-stop-closeout-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workday-stop-reconciliation.test.ts - testName: "operator stop retains canonical closing authority without inventing an ended report and permits an unchanged closeout retry" - api.golden.operator-stop-closeout-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "native public operator stop retains the closing Reporter node and canonical reads until its exact completed report and settlement" - api.golden.workday-planning-source-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "retains frozen selected Proposal Git context for workday planning without following later proposal versions" - api.golden.workday-planning-source-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "native workday planning reads frozen Proposal source bytes and denies moved or denied content without changing SQL history" - api.golden.source-canonical-identity-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "signs the exact canonical Git repository identity rather than its database row id for source-read planning" - api.golden.source-exact-context-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "denies missing exact canonical source context before pinning or upstream lookup instead of adding authority after issuance" - api.golden.source-canonical-identity-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "native source authorization retains the admitted canonical repository branch and ordinal through exact repeated reads without changing finance" - api.golden.execution-assignment-filter-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts - testName: "execution assignment listing preserves status and canonical pagination without rewriting inputs or reading after denied authority" - api.golden.execution-assignment-filter-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native execution assignment inspection filters every retained status through the original repository without changing admission or financial history" - api.golden.execution-decision-error-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/executable-proposal-source.test.ts - testName: "preserves exact Decision authority failures as owning capacity errors instead of unavailable graph sources" - api.golden.execution-decision-error-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "native executable intake retains missing Decision authority as a precise capacity denial through concurrent reads and unchanged retry" - api.golden.execution-report-settlement-required-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts - testName: "denies consumed reservation totals without the original matching scoped canonical settlement rather than fabricating closed report evidence" - api.golden.execution-report-settlement-required-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "native Reporter denies consumed totals when the retained original settlement moves outside team or workday scope without repairing financial history" - api.golden.execution-report-settlement-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts - testName: "reads original scoped canonical settlement authority rather than inferring settlement from consumed reservation totals" - api.golden.execution-report-credential-denial-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts - testName: "retains noncredential teardown evidence while excluding nested credential custody from the public Reporter snapshot without modifying supplied rows" - api.golden.execution-report-teardown-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts - testName: "snapshots failures, revisions, graph, usage and settlements through existing authority without credentials" - api.golden.execution-report-teardown-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "native Reporter snapshot retains the exact original teardown result rather than an absent status scalar without repairing evidence or changing SQL history" - api.golden.execution-canonical-failure-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts - testName: "denies failed and blocked canonical results on the successful completion boundary without changing supplied authority" - api.golden.execution-canonical-failure-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "native failure preserves exact canonical failed results and actual settlement once including truthful post-deadline closeout" - api.golden.execution-canonical-failure-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "native failure denies malformed foreign and nonfailed canonical results before settlement or graph writes" - api.golden.execution-canonical-failure-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "native failed result interruption rolls back settlement and retries the same original result without deleting failure history" - api.golden.execution-diagnostics-read-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts - testName: requires explicit diagnostic read authority and exact metadata or full selection before reading protected workday evidence - api.golden.execution-sdk-closure-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: capacity execution dependency closure selects the sole exact SDK authority for every transitive consumer - api.golden.execution-treedx-package-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: capacity execution materializes the declared native TreeDX client from its sole pinned verified server checkout - api.golden.execution-workspace-capability-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/upstream-operation.test.ts - testName: derives exact current workspace metadata and closeout scope from official capabilities while retaining the exact repository - api.golden.execution-sdk-closure-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: native capacity candidate hydration preserves exact SDK bytes and admits only a complete valid dependency tree and SBOM - api.golden.execution-scene-passed-expectation-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: every capacity execution component step explicitly requires passed evidence from its original verifier - api.golden.execution-template-binary-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts - testName: template binary stream denies a nonbinary dependency chunk with its own retained diagnostic - api.golden.execution-template-bounds-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts - testName: template input bounds deny oversized compressed bytes or malformed gzip without changing supplied bytes - api.golden.execution-template-parser-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts - testName: native tar and gzip template parsing retains exact binary bytes and bounds unsafe empty and oversized expanded entries - api.golden.execution-runtime-environment-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/feedback/feedback-operations.test.ts - testName: retains only canonical runtime environment values without deriving authority from caller context - api.golden.execution-runtime-environment-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/feedback/feedback-operations.test.ts - testName: native submission persistence reads back canonical environment omission and preserves exact replay without extra audit - api.golden.execution-managed-repository-policy-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/teams/managed-library-authority.test.ts - testName: managed execution context denies malformed repository visibility or lifecycle before resolving credentials - api.golden.execution-managed-repository-policy-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts - testName: native managed execution context denies malformed stored repository policy without credential delivery or persistent mutation - api.golden.execution-identity-failure-status-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/account-operations.test.ts - testName: identity prerequisites retain supported failure status and deny coercion before publishing success - api.golden.execution-identity-failure-status-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/account-operations.test.ts - testName: public identity HTTP boundary preserves failed observations and exact successful retry without coercing status - api.golden.execution-identity-email-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/account-operations.test.ts - testName: identity email preparation denies missing read-back before or after confirmation without false successful receipts - api.golden.execution-identity-email-readback-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/account-operations.test.ts - testName: native identity email preparation retains missing-readback failures and confirmation rows before current-authority retry - api.golden.execution-managed-library-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts - testName: managed execution context refuses missing project read-back before publishing team library metadata - api.golden.execution-managed-library-readback-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts - testName: native managed execution context retains moved project and entitlement rows without false team metadata before current-authority retry - api.golden.execution-seed-action-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/content-only-project.test.ts - testName: execution seed actions deny missing team or project read-back without publishing derived identity maps - api.golden.execution-seed-action-readback-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/content-only-project.test.ts - testName: native execution seed updates retain moved PostgreSQL rows and require independently supplied current authority for a fresh success - api.golden.execution-workflow-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/services/workflow-configuration-policy.test.ts - testName: execution workflow configuration refuses missing owning read-back before successful audit and keeps exact retry inputs - api.golden.execution-workflow-readback-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/services/workflow-configuration-policy.test.ts - testName: native execution workflow configuration retains interrupted PostgreSQL authority without false successful audit before independent exact retry - api.golden.execution-seed-approval-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/seed-operations.test.ts - testName: execution seed approval denies missing owning read-back before inbox publication and preserves exact successful inputs - api.golden.execution-seed-approval-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/seed-operations.test.ts - testName: native execution seed approval retains interrupted PostgreSQL rows without a false inbox and independently reads a fresh exact retry - api.golden.execution-error-serialization-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts - testName: shared execution error serialization preserves supported statuses and the original cause without coercing malformed status authority - api.golden.execution-error-serialization-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts - testName: real Hono execution error boundaries retain denial history and exact successful retry without accepting malformed upstream statuses - api.golden.execution-recipe-command-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/seed-operations.test.ts - testName: returns exact execution recipe command diagnostics for missing malformed and empty argv without changing supplied inputs - api.golden.execution-recipe-command-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/seeds/seed-operations.test.ts - testName: native seed file planning denies invalid execution command bytes without repairing inputs and admits only the explicit valid retry - api.golden.execution-registration-key-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-registration-code.test.ts - testName: "refuses missing committed registration key metadata before returning a status or reveal receipt or recording a false audit" - api.golden.execution-registration-key-readback-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "native public registration status refuses an absent committed key without false audit and admits only a fresh original persistence retry" - api.golden.execution-continuation-optionality-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: preserves canonical omitted node authority without admitting foreign decisions or changed source history - api.golden.execution-continuation-optionality-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: native settled lineage and retained canonical attempt admit omitted node authority but reject changed source or decision readback without writes - api.golden.execution-reservation-provider-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: debits only the exact canonical provider and execution identity while retaining shared and failed reservation history - api.golden.execution-reservation-provider-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: native budget SQL and supplied reservation readback agree despite another provider reusing the execution identity and retain failed charges - api.golden.execution-demand-authority-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: denies missing selected demand revision or source digest before storing any derived preflight authority - api.golden.execution-demand-authority-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: native public preflight denies incomplete persisted demand authority without repairing rows or creating admission truth - api.golden.execution-native-budget-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: derives native budget identity from the canonical provider and adapter without rewriting native limits or observations - api.golden.execution-native-budget-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: native provider budget readback retains canonical SQL provider and adapter identity and denies foreign or suspended membership without financial writes - api.golden.execution-workload-endpoint-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/accounts/workloads/registration.test.ts - testName: retains canonical endpoint validation across package schema versions and compiles its full owning plan strictly - api.golden.execution-workload-descriptor-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/accounts/migration/identity-migration-configuration.test.ts - testName: rejects malformed canonical issuer and resource descriptors without leaking native URL parser errors - api.golden.execution-workload-endpoint-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/accounts/workloads/registration-postgres.test.ts - testName: binds both digests, preserves IDs, rejects human/revoked state and rolls back a batch - api.golden.execution-profile-cutover-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts - testName: "uses only governed canonical activity profiles rather than retired default prompts authority presets and assignment intent reconstruction" - api.golden.execution-chat-permissions-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts - testName: "never grants retired TreeDX assignment content or operational tools" - api.golden.execution-chat-parameters-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts - testName: "preserves provider-neutral execution and capability settings from the agent profile" - api.golden.execution-chat-profile-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts - testName: "native public profile query retains renamed governed chat instructions permissions and execution parameters without a runtime default or authority preset" - api.golden.execution-agent-selection-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: "validates before normalization and preserves omitted selection" - api.golden.execution-agent-selection-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "real public preflight preserves canonical normalized agent selection and denies malformed mixed members without native authority repair" - api.golden.execution-recurring-numeric-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: denies coerced recurrence cadence and state versions before writes while retaining omitted defaults and exact numeric authority - api.golden.execution-recurring-numeric-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: real recurring schedule persistence denies coerced numerical authority without native writes and retains default explicit and stale-version behavior - api.golden.execution-canonical-optionality-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: owning SQL retains canonical optional condition data and condition capability declarations without granting assignable authority - api.golden.execution-output-retirement-grant-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: uses the exact Book and frozen grant without admitting a retired node output selector - api.golden.execution-output-retirement-projection-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: rejects retired work-item output selectors before projection without changing exact governed source or configured profile authority - api.golden.execution-output-retirement-sql-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: native graph cutover removes output selector storage and denies represented selector inputs without writes before exact replay - api.golden.execution-output-retirement-postgres-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: full PostgreSQL cutover removes duplicated output storage while independent graph reads and concurrent replay preserve exact authority - api.golden.execution-work-item-slugs-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "native exact Proposal intake retains canonical dotted underscored and nested work-item identities and dependency bytes while denying malformed committed slugs without repair" - api.golden.execution-node-conditions-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "real graph reconciliation denies missing assignable condition and review-pair fields before persistence while retaining exact native condition authority for unchanged replay" - api.golden.execution-assignment-ownership-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-assignment-activity-custody.test.ts - testName: "requires the exact provider team and membership for assignment ownership without rewriting absent malformed or foreign authority" - api.golden.execution-assignment-ownership-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "authenticated owning assignment reads and ordinary event writes deny a foreign membership without repairing native authority before unchanged exact retry" - api.golden.execution-dependency-endpoint-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "native governed Note authoring denies every missing exact dependency endpoint field without source or SQL repair before unchanged committed link input retry" - api.golden.execution-work-item-review-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "real exact proposal intake denies missing review cycles and unreviewed estimate authority while retaining original committed denial history before bounded review retry" - api.golden.execution-ready-proposal-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "real exact proposal intake refuses ready or decided missing summary plan or independent estimates without repairing indexed source bytes before unchanged ready retry" - api.golden.execution-report-subject-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "real governed report Note authoring retains exact workday subject bytes after repeated missing or malformed authority denial without false publication or charges" - api.golden.execution-terminal-priority-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "reconciles every recovered terminal pair priority without changing issued node authority or reopening terminal history" - api.golden.execution-terminal-priority-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "native terminal graph reconciliation publishes changed and omitted priorities through independent pools without rewriting historical authority or retrying terminal work" - api.golden.execution-node-authority-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "owning graph reconciliation denies overlong class and duplicated exact node authority before SQL persistence while retaining the original graph for unchanged retry" - api.golden.execution-decision-conditions-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "real governed Decision authoring denies contradictory class dispositions and missing approval positions without draft mutation before unchanged exact retry" - api.golden.execution-work-item-inventory-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "real executable proposal intake retains invalid committed work-item inventories through repeated denial before exact bounded source retry" - api.golden.execution-profile-signal-cutover-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/agents/agent-definition-source.test.ts - testName: "retains exact governed profile validation and denies retired signal fields without producing a second signal-reference authority" - api.golden.execution-profile-inventory-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "real governed YAML profile authoring retains native draft custody across empty inventory and producer review denial before exact renamed execution profile write" - api.golden.execution-note-identity-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "denies malformed governed Note identities and duplicate exact subject authority without normalizing the supplied relation" - api.golden.execution-note-identity-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "real TreeDX authoring denies malformed Note identities and duplicate subject authority across unchanged retries before exact original publication bytes" - api.golden.execution-identifier-inventory-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "rejects malformed canonical capability and predecessor identifiers before any SQL with exact owning failure and immutable inputs" - api.golden.execution-identifier-inventory-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "real owning admission denies malformed capability and predecessor identifiers and retains exact native state across unchanged retries" - api.golden.execution-failure-attribution-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/communication/terminal-invocation-reconciliation.test.ts - testName: "retains exact terminal failure attribution with readable project and agent fallbacks without replacing failed inputs" - api.golden.execution-failure-attribution-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response-postgres.test.ts - testName: "real PostgreSQL terminal reconciliation preserves exact failed actor attribution and one unchanged event across replay" - api.golden.execution-signal-cutover-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-assignment-operations.test.ts - testName: "exposes no retired frozen signal publication operation while retaining ordinary provider execution and event bindings" - api.golden.execution-signal-cutover-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "authenticated native HTTP rejects the retired frozen signal route without SQL mutation before unchanged ordinary claim" - api.golden.execution-tool-grant-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "rejects undeclared tool-group authority through the canonical assignment validator before any SQL with caller bytes retained" - api.golden.execution-tool-grant-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "real owning admission denies undeclared tool-group authority before SQL and preserves failed inputs across exact retry" - api.golden.execution-reference-inventory-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "rejects duplicate canonical assignment and result references through owning validators before SQL without normalizing supplied authority" - api.golden.execution-reference-inventory-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "real owning admission rejects duplicated canonical references before writes and retains invalid input across exact retries" - api.golden.execution-agent-snapshot-diagnostics-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/team-clone-source-snapshot.test.ts - testName: "fails closed instead of silently dropping an invalid definition" - api.golden.execution-agent-snapshot-diagnostics-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "native exact Agent snapshots retain owning YAML diagnostics and invalid committed bytes before unchanged valid source retry" - api.golden.execution-qualified-selection-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/living-execution-assignment-paths.test.ts - testName: "ranks only fully provider-qualified candidates and records the exact eligible inventory without changing rejected high-priority input" - api.golden.execution-predecessor-missing-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "denies a required native predecessor without a canonical owning result instead of dropping it from the candidate inventory" - api.golden.execution-predecessor-lineage-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "keeps foreign predecessor Git citations readable without selecting their commits as the primary source lineage" - api.golden.execution-predecessor-decision-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "binds cross-project predecessor queries to each owning node Decision and revision rather than filtering them by the dependent Decision" - api.golden.execution-publication-branch-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/publication-scope.test.ts - testName: "denies moved stale and failed published branch indexes before manifest publication while retaining exact commit indexing and supplied authority" - api.golden.execution-decision-demand-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/executable-proposal-source.test.ts - testName: "denies accepted demand without native Decision authority while retaining the failed revision and supplied bytes" - api.golden.execution-decision-workspace-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts - testName: "retains the original open workspace journal and close failure after native Decision readback instead of reporting successful closure" - api.golden.execution-decision-atomic-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts - testName: "keeps the reserved Decision and native identity when atomic projection fails without accepting or separately emitting an event" - api.golden.execution-unchanged-content-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "retains an exact unchanged governed content retry without sending an empty native patch or inventing an application receipt" - api.golden.execution-usage-seconds-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "retains separately measured infrastructure time and rejects contradictory native second measurements without rewriting either input" - api.golden.execution-usage-seconds-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "owning SQL readback preserves contradictory native measurements and returns only an explicit consistent zero-active retry without charging infrastructure" - api.golden.execution-availability-offer-readback-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: "retains every canonical executable offer and exact runtime build in public availability readback without rewriting stored authority" - api.golden.execution-primary-source-reader-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "derives primary source identity from the verified project repository rather than its database row or foreign citation order" - api.golden.execution-primary-source-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "selects only the explicit primary repository for writes in either citation order and denies absent or ambiguous primary authority without rewriting inputs" - api.golden.execution-primary-source-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native compiler admission preserves only primary Git writes and exact foreign read citations through reservation concurrent replay and denied authority" - api.golden.execution-proposal-evaluation-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "owning native proposal evaluation denies incomplete plans and exact unresolved feedback before electorate or decision writes without rewriting retained history" - api.golden.execution-proposal-evaluation-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/governance-service.test.ts - testName: "retains exact authorized evaluation and accepted-decision recovery while denying missing or malformed readiness before mutation" - api.golden.execution-usage-clock-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "requires a valid stored usage timestamp without rewriting bytes or charging elapsed infrastructure time as active work" - api.golden.execution-usage-clock-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "owning SQL usage reads retain malformed clock history and admit only an explicit valid-clock retry" - api.golden.execution-schedule-update-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "rejects a lost conditional schedule update from its own SQL result without certifying another writers matching version" - api.golden.execution-workspace-response-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts - testName: "denies a changed native workspace identity after successful verification before any success audit or receipt and admits only the unchanged exact retry" - api.golden.execution-terminal-orphan-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-terminalization-graph-custody.test.ts - testName: "retains an orphan active graph node as unfinished even when no assignment row remains" - api.golden.execution-issued-priority-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native graph reprioritization changes future scheduling only while issued canonical attempt reservation and exact admission replay remain frozen" - api.golden.execution-priority-storage-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "decodes exact persisted safe integer priority without coercing malformed storage or inventing omitted authority" - api.golden.execution-priority-storage-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "native owning SQL preserves optional safe integer priorities and exact dependency provenance while invalid writes retain the complete graph" - api.golden.execution-session-registration-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "identical callback registrations retain independent release ownership without deleting their shared team or reviving a released registration" - api.golden.execution-session-registration-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-registration-postgres.test.ts - testName: "one native listener preserves identical callback registrations independently through stale release retry and final durable channel cleanup" - api.golden.execution-postgres-prerequisite-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: "complete provider verification inherits the existing disposable PostgreSQL authority before any native suite or coded scene without a second database binding" - api.golden.execution-native-treedx-prerequisite-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: "complete provider suites provision the exact native TreeDX engine and original signed bootstrap before verification and retain explicit cleanup after scenes" - api.golden.execution-compiler-prerequisite-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: "provider compiler preflights strict diagnostics before replacing held outputs instead of accepting transpile-only declarations" - api.golden.execution-compiler-prerequisite-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: "native original provider compiler denies invalid typed inputs without replacing candidate bytes and admits only a valid controlled retry" - api.golden.execution-lease-clocks-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lease-authority.test.ts - testName: "rejects expired malformed and coerced reservation workspace and availability clocks against the unchanged original current time" - api.golden.execution-recovery-unknown-usage-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts - testName: "late recovery retains unknown executed usage and the original attempt without a fabricated zero settlement or a reopened ready node" - api.golden.execution-admission-explanation-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-admission.test.ts - testName: "claims the node, reservation, and immutable attempt in one transaction without legacy demand/allocation authority" - api.golden.execution-poll-token-custody-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "current access token custody rejects withdrawn missing and malformed durable token authority before synthesis reads or writes without changing the principal" - api.golden.execution-credential-audit-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts - testName: "credential and membership audit retries preserve their original scoped identity clock metadata and failure without independent reads or rewriting another operation" - api.golden.execution-registration-audit-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "registration audit retries retain one committed request identity original clock and exact conditional write bytes without independent reads or changing inputs and the original failure cause" - api.golden.canonical-source-ordinal-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "binds canonical source authorization to the unchanged frozen ordinal rather than incrementing an operational lifecycle counter" - api.golden.canonical-source-ordinal-denial-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "denies a moved missing malformed or mismatched canonical source ordinal before credential acquisition without rewriting failed inputs" - api.golden.execution-unfinished-handoff-live-1: - kind: nodeTestCase - ownerPackage: "@treeseed/api" - testFile: tests/acceptance/execution-schema.ts - testName: "Actual original model clocks failed verification and exact governed pending work bind an authorized unfinished draft before the unchanged deadline without a falsely passed replay" - api.golden.execution-work-priority-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "projects governed work-item integer priorities unchanged onto both review-pair nodes without bypassing approval dependencies or permission ceilings" - api.golden.execution-work-priority-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "native exact governed Proposal bytes produce the same canonical work-item priority on Actor and Reviewer nodes without making blocked work ready" - api.golden.execution-node-priority-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "binds changed canonical priority to the same semantic node revision while preserving running authority blocked dependencies and exact replay" - api.golden.execution-selection-producer-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "native original scheduler applies provider hard gates before weighted priority selection and retains the exact eligible input beside one atomic admission" - api.golden.execution-node-priority-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "native graph publication retains canonical integer priorities through independent public reads and matching concurrent replay without changing readiness or grants" - api.golden.execution-selection-input-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native admission retains exact original selector inputs in one allocation explanation and denies changed replay history without replacing candidate reservation or financial bytes" - api.golden.execution-protected-observation-live-1: - kind: nodeTestCase - ownerPackage: "@treeseed/api" - testFile: tests/acceptance/execution-schema.ts - testName: "Actual managed model execution retains encrypted original action observations for every enabled activity and independently binds first final and intervening clocks without public transcript leakage" - api.golden.execution-protected-observation-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts - testName: "native original event persistence encrypts exact ordinary executor evidence and retains replay conflict and interrupted-write custody without plaintext public events or financial writes" - api.golden.execution-protected-observation-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts - testName: "refuses protected ordinary execution evidence when encryption or exact current lease authority is unavailable without writing public events or hiding caller bytes" - api.golden.execution-retired-mode-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts - testName: "rejects retired mode-run identity before any settlement or assignment lookup" - api.golden.execution-retired-mode-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "native original accounting denies every own retired mode-run value before changing any assignment reservation measurement counter or ledger and retains an unchanged original settlement retry" - api.golden.execution-clean-schema-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "full native migration initialization removes every named retired execution authority while original graph writes and independent read-only retries retain exact custody" - api.golden.execution-clean-schema-live-1: - kind: nodeTestCase - ownerPackage: "@treeseed/api" - testFile: tests/acceptance/execution-schema.ts - testName: "Actual managed execution uses the complete clean migration inventory and exact canonical assignment rows without retired scheduling authorities or read-time repair" - api.golden.execution-proposal-blockers-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/governance-service.test.ts - testName: "denies proposal evaluation with unresolved exact blockers or an unready executable plan before the owning decision mutation without repairing supplied readiness" - api.golden.execution-continuation-returned-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: "native original settlement permits released returned history without rewriting its failed result and denies retained leases or unsettled reservations on the same immutable lineage" - api.golden.execution-integration-identity-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts - testName: "preserves explicit integration authority and one exact base when the governed class using the same Releaser handler is renamed" - api.golden.execution-predecessor-lineage-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "retains only an unambiguous acyclic predecessor lineage without replacing contradictory duplicate result identities" - api.golden.execution-predecessor-lineage-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "native exact proposal context preserves the primary source lineage while foreign predecessor citations remain read-only evidence in either reference order" - api.golden.execution-weighted-opportunity-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts - testName: "native independent PostgreSQL readers retain committed seconds while weighted opportunity follows only exact ready graph demand across simulation and production" - api.golden.execution-qualification-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts - testName: "enforces the declared qualification tier and unique current suite receipt even when invalid qualification is genuinely signed by the registered input key" - api.golden.execution-repeating-planning-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts - testName: "repeats beyond two planning rounds without duplicating an active turn or refreshing the original policy and deadline" - api.golden.execution-repeating-planning-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-node-history-native.test.ts - testName: "native original planning ticks retain an interrupted generation and repeat beyond two rounds without duplicate nodes events or financial writes" - api.golden.execution-settlement-postgres-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/postgres.test.ts - testName: "serializes competing claims and rolls back without orphan reservations or duplicate charges" - api.golden.execution-final-admission-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "denies conflicting or malformed immutable provider execution bindings before SQL without turning a collaborator error into an authority refusal" - api.golden.execution-final-admission-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native final admission refuses changed ready-node authority and conflicting provider execution bindings without counter reservation proxy or assignment residue" - api.golden.execution-retained-quota-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: "denies malformed retained shared model and capability observations before renamed fresh or unhealthy publications can conceal prior authority" - api.golden.execution-pending-subscription-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "abort during pending subscription releases the late listener without another lease and preserves the original response and fresh retry" - api.golden.execution-pending-subscription-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "authenticated abort during pending original subscription retains native pending custody and admits only a fresh authorized retry after releasing the late listener" - api.golden.execution-continuation-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: "retains each terminal custody status and the exact original sixty-four-record lineage while denying a sixty-fifth record or cycle" - api.golden.execution-continuation-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: "denies malformed persisted continuation parameters and parent identities instead of converting them into a settled root or another identifier" - api.golden.execution-continuation-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: "native original continuation reader retains exact terminal lineage bytes and rejects corrupt ancestry without writes or manufacturing settled authority" - api.golden.execution-accounting-continuity-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: "rejects nonboolean accounting health at both shared model and capability scopes without rewriting prior reports" - api.golden.execution-accounting-continuity-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: "compares every retained shared model report after adapter renaming without resetting usage or suppressing unhealthy regression" - api.golden.execution-accounting-continuity-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts - testName: "native PostgreSQL retains closed shared model history across membership restart and rejects malformed or regressed reports before publication" - api.golden.execution-archived-profile-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "excludes archived profile authority without weakening validation of active or paused configured agents" - api.golden.execution-archived-profile-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "native public profile inspection retains archived SQL history while admitting only current canonical definitions and denying reactivated malformed authority" - api.golden.execution-handler-inspection-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "inspects exact renamed YAML handler origins prompts context and permissions without deriving execution authority" - api.golden.execution-handler-inspection-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "denies missing project principal team permission and unknown handler inspection without reading or rewriting configured authority" - api.golden.execution-handler-inspection-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "includes handlers from every original class page and refuses a missing tail instead of presenting partial inspection as complete" - api.golden.execution-handler-inspection-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "native public operation inspection reads persisted renamed handlers and preserves every represented execution and profile row through denial and retry" - api.golden.execution-handler-inspection-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts - testName: "native original SQL pagination exposes the handler beyond two hundred classes without creating execution or replacing persisted profiles" - api.golden.execution-diagnostic-replay-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies every changed omitted or null diagnostic counter and accounting descriptor on the same usage identity" - api.golden.execution-diagnostic-replay-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "public diagnostic replay rejects every changed counter and descriptor while retaining original failed usage and terminal settlement" - api.golden.architecture-dependency-bootstrap-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original committed identity rotation replay preserves the same missing audit failure and recovers the exact original actor version and clock without rotating or consuming proofs again" - api.golden.architecture-dependency-bootstrap-postgres-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL late identity rotation audit failure retains committed keys proofs and revocation then current bearer replay recovers one original audit without rewriting failed history" - api.golden.architecture-dependency-bootstrap-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original access token authority admits the current signed identity version but denies stale and future versions under the same current key before nonce consumption or token lookup" - api.golden.architecture-dependency-bootstrap-postgres-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL two key identity rotation admits the current signed version and denies stale future and old key token proofs without consuming authority or rewriting independent history" - api.golden.architecture-dependency-approval-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original rejection validates key reason and missing foreign terminal authority before any review write and retains exact caller inputs" - api.golden.architecture-dependency-approval-unit-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original rejection preserves the same late audit failure and recovers one missing audit on exact terminal replay without repeating its conditional transition" - api.golden.architecture-dependency-operator-postgres-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL rejection commits only exact terminal review audit and confirmation then refuses changed authority and approval while preserving immutable replay" - api.golden.architecture-dependency-operator-postgres-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL late rejection audit failure retains terminal request and consumed confirmation then exact fresh confirmation recovers one missing audit with no enrollment or history rewrite" - api.golden.architecture-dependency-bootstrap-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original first credential repository keeps conditional authorization and credential in one pending batch with exact inputs and propagates the same native boundary failure before readback" - api.golden.architecture-dependency-bootstrap-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original committed credential replay must propagate a missing audit write failure then recover that exact audit without reissuing or rewriting the approved authority" - api.golden.architecture-dependency-bootstrap-postgres-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL overlapping first exchanges share one credential authorization and audit with two independently blocked native transactions and exact replay history" - api.golden.architecture-dependency-bootstrap-postgres-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL late credential audit failure retains issued authority and secret custody then fresh nonce replay recovers one missing audit without hiding the failed footprint" - api.golden.architecture-dependency-bootstrap-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original bootstrap proof verification binds each exchange and token stage to its exact body route identity and unchanged expiry without accepting crossover" - api.golden.architecture-dependency-bootstrap-postgres-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine authenticated PostgreSQL enrollment exchanges its first credential issues a signed token and uses the real bearer to rotate authority with exact immutable replay and independent history" - api.golden.architecture-dependency-bootstrap-postgres-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL credential insertion failure rolls back original authorization and credential together retains the consumed proof and admits only a fresh nonce retry within the same stage expiry" - api.golden.architecture-dependency-operator-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts - testName: "original operator authentication intersects local authority with signed scopes and preserves the exact client and expiry without trusting issuer roles" - api.golden.architecture-dependency-operator-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts - testName: "original operator authentication rejects wrong issuer audience signature expiry unmapped and ambiguous identities without manufacturing local authority" - api.golden.architecture-dependency-operator-postgres-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated operator resource approval enrolls a genuinely signed registration once with original confirmation SQL and independent PostgreSQL readback" - api.golden.architecture-dependency-operator-postgres-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current operator resource authentication and local scope or team revocation deny approval without enrollment and retain the exact native confirmation footprint" - api.golden.architecture-dependency-operator-postgres-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated approval confirmation rejects changed arguments client signature and operation before native enrollment then admits only the unchanged original request" - api.golden.architecture-dependency-approval-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original approval denies missing foreign terminal and elapsed request inputs before enrollment or audit without rewriting authority" - api.golden.architecture-dependency-approval-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original approval rejects a lost conditional transition or foreign winning key without recording a successful approval audit" - api.golden.architecture-dependency-approval-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "original approval denies missing foreign rejected and cancelled genuine registration requests preserving all terminal history and enrollment authority" - api.golden.architecture-dependency-approval-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "original approval expires a supplied elapsed genuine request without enrollment or audit and repeated denial retains exactly the original expiry transition" - api.golden.architecture-dependency-approval-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "competing original approve reject and cancel operations have one durable winner audit and immutable enrollment across distinct and reused review keys" - api.golden.architecture-dependency-approval-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "empty original approval key denies with the owning governance error before any repository reads writes or authority mutation" - api.golden.architecture-dependency-approval-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original approval repository binds request membership and pending authorization in one batch before readback preserving inputs and the same failure cause" - api.golden.architecture-dependency-approval-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "original approval of a genuinely registered identity creates exactly one membership and pending credential authorization with exact replay and changed alias conflict" - api.golden.architecture-dependency-approval-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "concurrent same key original approvals return one immutable membership authorization and audit without duplicate enrollment or financial mutation" - api.golden.architecture-dependency-approval-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "native membership insertion failure rolls back the original approval request membership authorization transaction before same facts retry creates one enrollment" - api.golden.architecture-dependency-approval-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts - testName: "native late approval audit failure retains committed membership and pending authorization before exact same key retry recovers one missing audit without rewriting failed history" - api.golden.architecture-dependency-registration-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "concurrent original rate consumptions retain their own exact batch outcomes when over limit completion precedes exact limit admission" - api.golden.architecture-dependency-registration-native-10: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "concurrent distinct signed public registrations share the final original rate slot admitting exactly one identity while retaining denied nonce counters and immutable replay history" - api.golden.architecture-dependency-registration-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "original rate repository rejects missing truncated malformed and coerced counter batch observations without treating them as admission or rewriting inputs" - api.golden.architecture-dependency-registration-native-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "native late rate update interruption rolls back every original bucket mutation but retains consumed proof before fresh proof same facts retry admits one new request" - api.golden.architecture-dependency-registration-native-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "native original rate repository resets before and exact expiry only retaining later buckets original windows and whole registration history across repeated consumption" - api.golden.architecture-dependency-registration-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "original rate repository admits exact limit and reports every exceeded dimension from the same batch while preserving inputs and original batch failures" - api.golden.architecture-dependency-registration-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "signed public registration denies each exhausted original rate dimension retaining consumed nonce exact counters and prior request while original replay cannot consume more authority" - api.golden.architecture-session-subscription-unit-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "concurrent first registrations remain pending through shared acquisition and LISTEN activation then route original team notifications and release only the last registration" - api.golden.architecture-session-subscription-postgres-10: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "native occupied listener pool queues one shared initial acquisition for concurrent team registrations and completed subscriptions own the original channel before independent delivery" - api.golden.architecture-session-subscription-unit-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "new same and foreign team registrations survive an in flight last unsubscribe channel cleanup and delayed old releases cannot remove current notification delivery" - api.golden.architecture-session-subscription-postgres-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "native queued listener SQL overlaps last unsubscribe and same plus foreign team reacquisition without stale release channel loss or callback revival" - api.golden.architecture-session-subscription-unit-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "listener failure automatically reacquires one original channel for existing registrations without a new subscriber and stale failed client errors cannot release the replacement" - api.golden.architecture-session-subscription-postgres-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "native listener disconnection automatically restores existing team registrations without a new subscriber preserves independent durable delivery and releases only the final current channel" - api.golden.architecture-session-subscription-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "concurrent first subscriptions share one acquisition rejection cause remove every denied callback and healthy concurrent retry retains only its new registrations" - api.golden.architecture-session-subscription-postgres-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "concurrent first native subscriptions share the original LISTEN rejection cause release one acquired client and concurrent retry restores only newly admitted team callbacks" - api.golden.architecture-session-subscription-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "stale repeated last unsubscribe cannot remove a later same team subscription or revive the released callback during original local publication" - api.golden.architecture-session-subscription-postgres-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "stale repeated last unsubscribe after native channel release cannot unbind later same team delivery and final current release retains durable history without callback revival" - api.golden.architecture-session-subscription-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "listener error releases only the failed client retains registered callbacks and stale duplicate error cannot reset the healthy replacement after original subscription retry" - api.golden.architecture-session-subscription-postgres-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "exact fresh native listener backend disconnection retains durable missed notification history and original subscription retry restores registered team delivery without leaked client custody" - api.golden.architecture-session-subscription-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "acquired client LISTEN failure retains the original error returns exactly the acquired client and removes the denied callback before later local publication" - api.golden.architecture-session-subscription-postgres-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "native acquired client aborted transaction rejects original LISTEN without leaked callbacks or pool custody and same service retry resumes independent durable delivery" - api.golden.architecture-session-subscription-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts - testName: "declared database listener acquisition failure retains its original error removes the unacquired listener and never fabricates local subscription success" - api.golden.architecture-session-subscription-postgres-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "independent native notifications retain exact durable team events deduplicate repeated notices and release the original database channel only after the final subscriber" - api.golden.architecture-session-subscription-postgres-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "native event insert interruption retains all earlier durable history emits no false notification and original retry adds exactly one event without changing graph or finance" - api.golden.architecture-session-subscription-postgres-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts - testName: "actual native connection acquisition denial is not successful local fallback and retains healthy independent delivery without leaked callbacks or durable event loss" - api.golden.architecture-dependency-longpoll-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "original availability context admits one millisecond before expiry and rejects exact or later expiry without writes clock widening or input mutation" - api.golden.architecture-dependency-longpoll-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "public wait longer than original availability naturally expires without claim financial mutation or deadline extension and released callbacks cannot revive it" - api.golden.architecture-dependency-longpoll-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "caller mutation after subscription cannot rebind later owning polls or rewrite the caller object and released wake callbacks cannot revive the request" - api.golden.architecture-dependency-longpoll-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "genuinely authenticated owning longpoll freezes each original request field across caller mutation native event wake natural completion and immutable durable readback" - api.golden.architecture-dependency-longpoll-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "public malformed coerced negative and oversized wait inputs deny before reconciliation lease subscription and all auth neutral durable writes" - api.golden.architecture-dependency-longpoll-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "natural fractional public wait completion retains the original pending attempt finance and request then releases its subscription without abort or revival" - api.golden.architecture-dependency-longpoll-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "malformed coerced negative and oversized wait authority denies before reconciliation lease or subscription without rewriting inputs" - api.golden.architecture-dependency-longpoll-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts - testName: "preaborted caller returns the empty original poll envelope before reconciliation lease or subscription and retains inputs" - api.golden.architecture-dependency-longpoll-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "durable foreign team foreign purpose and matching wake events never rebind the frozen foreign lane or revive an unsubscribed public poll" - api.golden.architecture-dependency-longpoll-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "token membership provider and stale foreign or malformed session changes during the actual wait fence further work and release the original subscription" - api.golden.architecture-dependency-longpoll-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts - testName: "native synthesis audit interruption after public subscription retains pending custody releases exactly once and original bounded retry preserves all failed history" - api.golden.architecture-dependency-revocation-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-authority.test.ts - testName: "empty credential and membership revocation keys deny before all original repository reads and writes without input rewriting" - api.golden.architecture-dependency-revocation-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-authority.test.ts - testName: "missing empty and unknown membership identities deny credential and leave operations with original governance errors and no writes" - api.golden.architecture-dependency-revocation-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "first concurrent original credential revocation commits one immutable credential token fence and audit while retaining pending assignment and finance" - api.golden.architecture-dependency-revocation-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "foreign team member credential and missing authenticated leave authority deny after genuine issued token baseline with whole auth neutral state unchanged" - api.golden.architecture-dependency-revocation-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "actual credential revocation racing authenticated poll cannot admit a new lease after the committed token fence and retains any original claim custody" - api.golden.architecture-dependency-revocation-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "native credential token update interruption rolls back the whole revocation transaction and exact original key retry fences once without deleting history" - api.golden.architecture-dependency-revocation-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "late credential revocation audit interruption retains exact revoked credential tokens and same key recovery records only the missing audit" - api.golden.architecture-dependency-revocation-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "actual authenticated membership leave settles only unstarted pending authority once retains both predecessor results and denies all old bearer polling" - api.golden.architecture-dependency-revocation-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts - testName: "membership leave token interruption retains committed revoked membership and rolls back credential token batch before same frozen owning input recovery closes pending work once" - api.golden.architecture-dependency-registration-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "actual registration proof binds the exact public identity name capabilities supply metadata route audience and original clock without rewriting inputs" - api.golden.architecture-dependency-registration-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts - testName: "changed registration name capabilities supply metadata identity route audience signature and exact expiry deny original verification without input rewriting" - api.golden.architecture-dependency-registration-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "actual signed public registration creates one exact pending identity request nonce rate footprint and audit without approval credential token or financial authority" - api.golden.architecture-dependency-registration-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "missing foreign disabled malformed and changed signed public registration authority denies after a genuine positive baseline without new admission nonce rate or finance" - api.golden.architecture-dependency-registration-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "first concurrent same key registrations and exact fresh proof replay preserve one immutable request audit and identity while changed body conflicts" - api.golden.architecture-dependency-registration-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "concurrent actual key rotation fences old generation admission or cancels its committed pending request without granting membership credentials or finance" - api.golden.architecture-dependency-registration-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "native registration insert interruption rolls back new identity request but retains consumed nonce and rate history before fresh proof same key retry admits once" - api.golden.architecture-dependency-registration-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts - testName: "late registration audit interruption preserves pending request exact identity nonce and rate footprint before same key replay recovers one missing audit" - api.golden.architecture-dependency-credential-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts - testName: "actual exchange proof verification preserves the exact approved request issuance key path audience and original clock claims" - api.golden.architecture-dependency-credential-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts - testName: "foreign request changed issuance key route audience and expired signed exchange authority deny without input rewriting" - api.golden.architecture-dependency-credential-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts - testName: "actual authenticated credential rotation and signed exchange issue one exact generation and its token polls the unchanged dependency attempt" - api.golden.architecture-dependency-credential-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts - testName: "missing unapproved foreign revoked stale and malformed public exchange authority denies without credential issuance or financial changes" - api.golden.architecture-dependency-credential-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts - testName: "concurrent same key exchanges and fresh nonce replay retain one exact credential while duplicate nonce and different issuance key cannot reveal another" - api.golden.architecture-dependency-credential-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts - testName: "native credential insert interruption rolls back authorization consumption but retains proof nonce before same key fresh signed retry commits once" - api.golden.architecture-dependency-credential-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts - testName: "late credential audit interruption preserves issued authorization revealed credential and nonce before exact same key fresh proof recovers one missing audit" - api.golden.architecture-dependency-identity-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-authority.test.ts - testName: "original membership projection preserves exact configured identity key version team and status without rewriting source rows" - api.golden.architecture-dependency-identity-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-authority.test.ts - testName: "missing malformed coerced identity version key membership and status projections deny without source mutation" - api.golden.architecture-dependency-identity-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts - testName: "actual two proof public rotation revokes old tokens and newly signed issuance polls the unchanged original dependency attempt" - api.golden.architecture-dependency-identity-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts - testName: "invalid missing mismatched and stale rotation proofs deny with original identity nonce token audit and assignment custody retained" - api.golden.architecture-dependency-identity-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts - testName: "concurrent competing public rotation keys commit one version and same key authenticated replay retains exact rotation nonce and audit history" - api.golden.architecture-dependency-identity-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts - testName: "late rotation audit failure retains committed identity revoked tokens and both nonces before authenticated same key recovery creates one missing audit" - api.golden.architecture-dependency-identity-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts - testName: "native identity update interruption rolls back rotation nonces and token revocation before exact original signed retry commits once" - api.golden.architecture-dependency-token-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts - testName: "original proof verification binds exact key fingerprint method path audience body and original expiry without rewriting inputs" - api.golden.architecture-dependency-token-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts - testName: "changed signed body route audience key algorithm signature and malformed proof encoding deny before producing verified authority" - api.golden.architecture-dependency-token-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts - testName: "original token validity accepts only exact integer bounds and rejects invalid numbers without changing the default" - api.golden.architecture-dependency-token-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts - testName: "actual signed public issuance persists one original nonce token audit and authenticates the unchanged dependency attempt through public polling" - api.golden.architecture-dependency-token-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts - testName: "invalid credentials signed request mutations moved identity and revoked membership deny issuance without nonce token audit or assignment changes" - api.golden.architecture-dependency-token-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts - testName: "original nonce replay denies while concurrent fresh signed retries of one issuance key return one immutable token and audit" - api.golden.architecture-dependency-token-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts - testName: "late issuance audit interruption retains original token nonce and pending assignment before same key fresh proof recovers exactly one missing audit" - api.golden.architecture-dependency-public-poll-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-authority.test.ts - testName: "only the original provider bearer grammar reaches authentication and never rewrites the presented secret" - api.golden.architecture-dependency-public-poll-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-authority.test.ts - testName: "authentication errors never invoke the downstream provider handler or install an admitted identity" - api.golden.architecture-dependency-public-poll-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "real token authentication and public catalog return the exact leased attempt with both predecessor results and no finance rewrite" - api.golden.architecture-dependency-public-poll-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "missing wrong revoked expired malformed and insufficient token authorities cannot claim or mutate assignment finance and history" - api.golden.architecture-dependency-public-poll-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "concurrent authenticated public requests produce one immutable claim and retain exact dependency reservation context" - api.golden.architecture-dependency-public-poll-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "preaborted public polling cannot reconcile synthesize claim or subscribe after the caller has withdrawn authority" - api.golden.architecture-dependency-public-poll-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "public lease update failure retains pending custody and original failed history before identical request retry within the same deadline" - api.golden.architecture-dependency-public-poll-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts - testName: "aborted empty longpoll releases its original event subscription without another synthesis lease or charge and later events cannot revive it" - api.golden.architecture-dependency-poll-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts - testName: "missing and insufficient provider poll scope deny before any assignment authority is returned" - api.golden.architecture-dependency-poll-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts - testName: "coerced empty fractional and nonfinite explicit lease seconds deny instead of creating authority from malformed poll input" - api.golden.architecture-dependency-poll-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "original synthesis recovery and lease retain the exact admitted attempt and both dependency results within the original authority deadline" - api.golden.architecture-dependency-poll-expiry-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts - testName: "revalidates original provider availability after asynchronous synthesis before recovery explanations or lease writes" - api.golden.architecture-dependency-poll-expiry-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "real original synthesis crossing unchanged availability expiry cannot create a late lease explanation or financial mutation on either requested lane" - api.golden.architecture-dependency-poll-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "concurrent original polls grant one lease token and runner without duplicating or rewriting the admitted dependency reservation" - api.golden.architecture-dependency-poll-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "foreign missing closed and malformed availability authorities deny original poll before any lease or synthesis audit mutation" - api.golden.architecture-dependency-poll-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "late native lease update interruption preserves original pending custody and synthesis history before identical-input bounded retry" - api.golden.architecture-dependency-lease-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts - testName: "pending preparation retains a valid original authority window and cannot bypass its exact expired deadline" - api.golden.architecture-dependency-lease-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts - testName: "missing malformed and nonfinite lease clocks deny rather than treating unknown timing as unlimited authority" - api.golden.architecture-dependency-lease-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts - testName: "actual preparation retries preserve the original authority expiry and reject malformed signed preparation clocks without rewriting the envelope" - api.golden.architecture-dependency-lease-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "actual account reservation workday proxy and availability reads retain the exact admitted dependency context without new financial writes" - api.golden.architecture-dependency-lease-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "foreign team provider membership and unavailable identity deny through original SQL joins without changing admitted custody" - api.golden.architecture-dependency-lease-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "missing inactive and expired exact reservation proxy workday and availability authority deny the owning SQL lease gate" - api.golden.architecture-dependency-lease-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "malformed authoritative session reservation and proxy clocks and unknown current time deny without granting unbounded lease authority" - api.golden.architecture-dependency-lease-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts - testName: "rotated availability retains only the same unexpired supplied lease and explicit closed-session or expired-lease requests stay denied" - api.golden.architecture-dependency-admission-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "denies missing extra duplicate and reused predecessor result identities before any admission write" - api.golden.architecture-dependency-admission-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "denies failed malformed and Actor self-review predecessor inputs before any admission write" - api.golden.architecture-dependency-admission-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts - testName: "denies missing exact predecessor read authority rather than admitting a stripped dependency context" - api.golden.architecture-dependency-admission-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "initial owning admission freezes both exact predecessor results with one dependent reservation and unchanged supplied review history" - api.golden.architecture-dependency-admission-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "missing failed malformed and duplicate supplied predecessor contexts deny initial native admission without orphan financial or proxy writes" - api.golden.architecture-dependency-admission-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "changed predecessor status revision result and review disposition after readiness deny the final native admission fence" - api.golden.architecture-dependency-admission-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "concurrent exact and competing native dependent claims retain one immutable dependency snapshot and one reservation before read-only replay" - api.golden.architecture-dependency-admission-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts - testName: "late native dependent assignment insertion interruption rolls back the reservation and retries identical dependency custody without deleting predecessor history" - api.golden.architecture-relation-scheduling-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "retains both exact predecessor results as read context while granting writes only to the original sole primary Git workspace" - api.golden.architecture-relation-scheduling-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "denies secondary content writes and every permission outside the exact configured dependent profile before assignment construction" - api.golden.architecture-relation-scheduling-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "denies malformed failed and duplicate predecessor records rather than freezing incomplete or contradictory dependency evidence" - api.golden.architecture-relation-scheduling-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "denies elapsed original workday and stale provider observation without extending the dependent estimate window or changing predecessor custody" - api.golden.architecture-relation-scheduling-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "actual native Note publication blocks the dependent ready-node query before any successful independent predecessor input exists" - api.golden.architecture-relation-scheduling-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "actual original graph SQL and native exact profile proposal reads retain both cross-project Actor and Reviewer results despite distinct accepted Decision ownership" - api.golden.architecture-relation-scheduling-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "failed cancelled running and Actor-only supplied predecessor states cannot make the native dependent candidate eligible" - api.golden.architecture-relation-scheduling-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "missing disabled unpinned and moved native profile authority denies candidate retrieval without durable assignment reservation or financial mutation" - api.golden.architecture-relation-scheduling-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts - testName: "concurrent and repeated actual native candidate reads preserve exact dependency results original graph and financial history without creating a claim" - api.golden.architecture-relation-publication-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts - testName: "denies missing unknown cancelled and failed publication custody before any native connection" - api.golden.architecture-relation-publication-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts - testName: "denies absent unapproved and moved exact review commit without converting admission into an independent Actor review" - api.golden.architecture-relation-publication-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts - testName: "denies both explicit production and every declared main ref before publication or indexing even with otherwise approved inputs" - api.golden.architecture-relation-publication-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts - testName: "denies empty missing foreign and stale submission authority without native commit or queued publication" - api.golden.architecture-relation-publication-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts - testName: "concurrent native submissions retain one original admitted change exact commit and queued publication without duplicate operation or proposal rewrite" - api.golden.architecture-relation-publication-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts - testName: "ordinary submission and actual runner publish the native exact Note then owning graph persistence exposes the independent reviewer dependency gate" - api.golden.architecture-relation-publication-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts - testName: "actual native staging movement after submission denies compare and swap publication without false manifest success or changed original candidate" - api.golden.architecture-relation-publication-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts - testName: "late original publication audit interruption preserves native published commit immutable manifest and failed runner history before exact recovery replay" - api.golden.architecture-relation-authoring-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "serializes the canonical Note link through one original changeset with byte exact patch hash base ref and compare and swap authority" - api.golden.architecture-relation-authoring-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "denies malformed empty unknown relation and extra endpoint fields in the existing canonical Note schema without rewriting proposal authorities" - api.golden.architecture-relation-authoring-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "rejects duplicate changeset paths and preserves no newline deletion and exact input replay using the original patch implementation" - api.golden.architecture-relation-authoring-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts - testName: "requires both graph and search exact committed source closure and preserves failed native graph job disposition instead of reporting completion" - api.golden.architecture-relation-authoring-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "creates and replays one governed native workspace writes canonical relation bytes and reads original exact draft without changing proposal endpoints" - api.golden.architecture-relation-authoring-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "denies missing malformed empty unsupported relation and unsafe path writes before native draft or original SQL custody changes" - api.golden.architecture-relation-authoring-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "denies missing foreign and stale author authority and rejects updates after actual native workspace closure without widening the original scope" - api.golden.architecture-relation-authoring-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "concurrent identical native edits retain one original version transition and exact relation bytes without duplicate successful custody or financial rows" - api.golden.architecture-relation-authoring-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "native exact relation commit graph and search refresh feed the owning dependency loader with raw byte provenance and unchanged proposal endpoints" - api.golden.architecture-relation-authoring-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts - testName: "late actual audit insertion failure retains native written bytes and recoverable original draft without false publication finance or successful replay" - api.golden.architecture-relation-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts - testName: "binds the sole cross-project edge to the exact note and approved reviewer without merging project authority or limits" - api.golden.architecture-relation-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts - testName: "rejects every endpoint identity revision digest commit path anchor model and store drift instead of silently dropping the dependency" - api.golden.architecture-relation-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts - testName: "rejects reciprocal cross-project cycles while duplicate identical relation replay produces one stable edge" - api.golden.architecture-relation-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts - testName: "keeps dependent work blocked through failed cancelled or unapproved precursor candidates and releases only the successful independent review" - api.golden.architecture-relation-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "loads signed exact relation authority and persists separate project nodes with the independent reviewer gate and note provenance" - api.golden.architecture-relation-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "retains the digest of exact untrimmed note bytes and denies mismatched returned note path rather than inventing content custody" - api.golden.architecture-relation-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "denies unpinned malformed truncated and missing graph authorities before any graph persistence" - api.golden.architecture-relation-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "denies missing foreign and path-excluded endpoint library bindings without reading a note or changing owning graph history" - api.golden.architecture-relation-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "denies moved missing foreign project and unlinked exact note replies and rejects stale endpoint digest at the owning projector" - api.golden.architecture-relation-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "native graph and note HTTP denial unavailable reset and malformed responses retain original authority and retry without phantom SQL success" - api.golden.architecture-relation-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts - testName: "concurrent exact intake replay and late SQL interruption preserve one relation edge with rollback and exact retry readback" - api.golden.architecture-cross-project-proxy-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts - testName: "selects each sole exact secondary grant without rewriting its sibling commit or original primary authority" - api.golden.architecture-cross-project-proxy-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts - testName: "denies duplicate exact grants and ambiguous omitted selectors rather than granting the first entry" - api.golden.architecture-cross-project-proxy-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts - testName: "denies foreign missing moved and workspace secondary authority without widening to primary commits or produced history" - api.golden.architecture-cross-project-proxy-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts - testName: "denies revoked expired and malformed explicit handle clocks for exact reads without accepting unknown time as active" - api.golden.architecture-cross-project-proxy-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "returns exact secondary bytes with independently verified narrow signed scope for each selected commit and path" - api.golden.architecture-cross-project-proxy-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "denies missing foreign moved and out of path secondary grants before upstream while retaining durable denial audit and frozen finance" - api.golden.architecture-cross-project-proxy-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "revoked expired and malformed handle authority cannot be bypassed by a different secondary repository identity" - api.golden.architecture-cross-project-proxy-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "denies released elapsed unknown clock foreign provider and missing scope authority before secondary HTTP without rewriting the original attempt" - api.golden.architecture-cross-project-proxy-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "secondary read grants never authorize workspace creation writes or a foreign repository even with a provider write token" - api.golden.architecture-cross-project-proxy-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "duplicate exact grants and conflicting path authority deny rather than signing the first secondary entry" - api.golden.architecture-cross-project-proxy-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "denied unavailable reset malformed and preaborted native reads never create successful audit finance or widened retry authority" - api.golden.architecture-cross-project-proxy-native-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "repeated and concurrent exact secondary reads preserve one frozen authority with distinct actual proxy audits and no assignment or financial mutation" - api.golden.architecture-cross-project-proxy-native-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts - testName: "native audit persistence interruption fails the public read and retry retains the same scope without false successful history or financial mutation" - api.golden.architecture-record-custody-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "exposes one exact canonical settlement for completed and failed attempts without translating legacy ledger truth" - api.golden.architecture-record-custody-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "reads supplied native measurements and distinct operational ledger authority without mutating financial or frozen assignment bytes" - api.golden.architecture-record-custody-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "denies absent operator and foreign project evidence before returning any settlement while retaining all original financial tables" - api.golden.architecture-record-custody-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "requires explicit scoped terminal pages and rejects malformed cursors rather than presenting a partial ledger as complete" - api.golden.architecture-start-authority-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts - testName: "requires one exact immutable library commit and denies absent malformed or moving revision authority without changing inputs" - api.golden.architecture-start-authority-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts - testName: "resolves selected project shares once and denies foreign or duplicate alias allocation without manufacturing another authority" - api.golden.architecture-start-authority-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts - testName: "preserves identical public manual and nested recurring intent mode selection and original time authority" - api.golden.architecture-start-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "preflights exact governed intent without starting a workday or mutating graph assignment reservation or financial authority" - api.golden.architecture-start-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "starts one native planning graph with exact frozen YAML context mode and original clocks then replays without another event or charge" - api.golden.architecture-start-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "denies absent principal foreign team missing digest and conflicting idempotent start without new scheduling or accounting truth" - api.golden.architecture-start-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "rejects membership revocation and moved profile library or policy authority between preflight and start with immutable original receipts" - api.golden.architecture-start-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "denies missing denied unavailable malformed and moved native content resolution without a successful start receipt or widened original window" - api.golden.architecture-start-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "retains a native started run after late receipt interruption and retries the same admission without duplicate graph events or financial mutation" - api.golden.architecture-start-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "retains required event failure history and refuses to replay a failed partial admission as a successful native start" - api.golden.architecture-start-native-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "starts the first recurring workday through real preflight native content graph and event persistence then retains exact intent on replay" - api.golden.architecture-start-native-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "concurrent native recurring ticks have one first-start receipt and one graph event history without double successful admission" - api.golden.architecture-start-native-10: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "denies initial admission after the original productive window has elapsed without a new deadline or successful start receipt" - api.golden.architecture-recurring-intent-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "retains one execution mode and exact governed intent without derived capacity or duplicate scheduling policy" - api.golden.execution-recurrence-numbers-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "denies coerced recurrence cadence and state versions before writes while retaining omitted defaults and exact numeric authority" - api.golden.execution-recurrence-numbers-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "real recurring schedule persistence denies coerced numerical authority without native writes and retains default explicit and stale-version behavior" - api.golden.architecture-recurring-intent-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "denies every retired capacity publication provider and time-tier field instead of manufacturing workday authority" - api.golden.architecture-recurring-intent-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "denies foreign malformed and contradictory intent clocks constraints and modes without a usable schedule" - api.golden.architecture-recurring-intent-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts - testName: "rejects corrupt stored schedule states and noncanonical intents rather than exposing a successful partial record" - api.golden.architecture-recurring-replay-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "persists one high-level recurring intent with exact mode and no duplicate derived capacity authority" - api.golden.architecture-recurring-replay-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "replays the existing canonical start receipt into the same workday without another preflight run reservation or assignment" - api.golden.architecture-recurring-replay-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "concurrent conflicting schedule edits have one version winner without losing the original immutable intent or running workday" - api.golden.architecture-recurring-replay-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "late native receipt-link interruption retains prior start truth and retries without duplicate dispatch or financial mutation" - api.golden.architecture-recurring-replay-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts - testName: "foreign paused and future schedules cannot start work or rewrite existing workday custody" - api.golden.architecture-profile-inventory-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts - testName: "reads arbitrary complete stored profiles and compiled-handler selections through owning SQL without runtime role configuration" - api.golden.architecture-profile-inventory-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts - testName: "public profile inventory includes the last class after the original two hundred row page rather than silently hiding governed agents" - api.golden.architecture-profile-inventory-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts - testName: "denies malformed duplicate and forbidden stored profile authority instead of returning a partial successful inventory" - api.golden.architecture-profile-inventory-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts - testName: "public profile query denies missing principal missing project and unknown compiled handler without SQL mutation" - api.golden.execution-graph-watch-cursor-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts - testName: "requires exact nonnegative safe integer watch cursor strings before reading history without normalizing malformed input" - api.golden.architecture-graph-watch-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts - testName: "returns exact hundred tail and explicit terminal watch pages with foreign team isolation and unchanged SQL" - api.golden.architecture-graph-watch-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts - testName: "denies absent principal and malformed watch cursors rather than silently restarting from old history" - api.golden.architecture-terminal-race-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "concurrent matching completions publish one canonical result and one graph transition without another settlement" - api.golden.architecture-terminal-race-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "simultaneous completion and failure have one winner while every original native measurement and attempt remains unchanged" - api.golden.architecture-terminal-race-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "simultaneous completion and bounded return cannot both transition or overwrite their predecessor candidate" - api.golden.architecture-terminal-race-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "operator cancellation request and provider terminal return release once without erasing previously settled work" - api.golden.architecture-terminal-race-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "terminal reporting races with native recovery selection without returning productive authority or charging twice" - api.golden.architecture-terminal-race-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "rejects stale node and graph revisions before completing against rewritten operational authority" - api.golden.architecture-terminal-race-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "native late result-write interruption rolls back the transition while preserving prior settlement and exact retry input" - api.golden.architecture-terminal-race-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts - testName: "expired productive authority never accepts a late success even with matching settled usage and a still-present candidate" - api.golden.architecture-initial-admission-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "claims one ready node with exact frozen authority one reservation and unchanged original caps" - api.golden.architecture-initial-admission-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "denies non-ready stale and foreign node claims without orphan reservation assignment or proxy" - api.golden.architecture-initial-admission-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "matching and competing concurrent node claims retain one durable attempt and one counter reservation" - api.golden.architecture-initial-admission-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "denies exhausted supply and concurrency without enlarging existing hard limits or original deadlines" - api.golden.architecture-initial-admission-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "rolls back late native proxy failure and retries the same immutable admission without residue" - api.golden.architecture-initial-admission-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "denies allocator mismatch malformed concurrency and expired productive windows before native writes" - api.golden.architecture-counter-scope-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts - testName: "shares exact host model capability day counters across teams without changing supplied authority" - api.golden.architecture-counter-scope-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts - testName: "separates provider model capability and day without creating a second accounting authority" - api.golden.architecture-counter-scope-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts - testName: "denies missing capabilities foreign models and malformed counter ceilings" - api.golden.execution-graph-digest-guard-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "binds every graph mutation to its exact winning digest even when competing revisions share the same publication clock" - api.golden.architecture-living-graph-postgres-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "serializes conflicting graph writers across independent connection pools with exact winning nodes and edges" - api.golden.architecture-living-graph-postgres-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "matching concurrent graph writes have one durable revision and repeated independent reads remain unchanged" - api.golden.architecture-living-graph-postgres-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts - testName: "late native SQL interruption rolls back all graph records before another independent writer retries exact authority" - api.golden.architecture-living-graph-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "unions profile and work-item provenance without allowing actor completion to bypass independent review" - api.golden.architecture-living-graph-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "rejects cycles missing work items denied permissions and foreign team inputs without changing sources" - api.golden.architecture-living-graph-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "preserves all running node authority while changed source creates a later immutable revision" - api.golden.architecture-living-graph-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "advances the same rejected pair once and blocks further revisions at the accepted review bound" - api.golden.architecture-living-graph-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "keeps one team graph and exact project identities deterministic under source permutation" - api.golden.architecture-living-graph-unit-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts - testName: "requires exact cross-project relation endpoints and rejects moved commit digest revision path and anchor" - api.golden.architecture-living-graph-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "persists one team graph with independent reviewed dependencies and exact provenance readback" - api.golden.architecture-living-graph-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "releases downstream SQL readiness only after independent reviewer completion and preserves the prior candidate" - api.golden.architecture-living-graph-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "read-only node explanation filtered views repeated reads and watch cursors never mutate owning SQL" - api.golden.architecture-living-graph-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "denies missing principal and foreign team node lookup with unchanged graph and assignments" - api.golden.architecture-living-graph-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "rejects stale competing revision writers without overwriting the winning graph or appending duplicate history" - api.golden.architecture-living-graph-sql-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "rolls back a late SQL edge failure and retries the exact projection without orphan nodes or revision residue" - api.golden.architecture-living-graph-sql-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts - testName: "persists a bounded request-changes revision on the same pair without unblocking downstream or modifying assignment history" - api.golden.architecture-completion-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts - testName: "retains a complete arbitrary-class frozen attempt and valid exact result unchanged" - api.golden.architecture-completion-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts - testName: "denies before-start and past-original-deadline result timestamps using the same complete frozen authority" - api.golden.architecture-completion-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "denies completed result clocks outside the immutable attempt and actual reporting interval without state mutation" - api.golden.architecture-completion-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "retains canonical completed result after public exactly-once settlement and replays without another charge" - api.golden.architecture-completion-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "denies completion before public settlement without creating a result or rewriting financial authority" - api.golden.architecture-completion-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "denies noncompleted result status and wrong completion owner token or deadline without changing stored authority" - api.golden.architecture-return-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "advances the retryable returned node revision without rewriting its historical assignment attempt" - api.golden.architecture-return-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "settles measured returned work exactly once and releases its consumed reservation before another attempt" - api.golden.architecture-return-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "retains wrong-owner token and expired-return denials without changing graph or financial authority" - api.golden.architecture-return-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "commits one returned transition and graph revision for concurrent matching reports and read-only replay" - api.golden.architecture-terminal-performance-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts - testName: "retains supplied measured terminal time and arbitrary class without rewriting the frozen assignment" - api.golden.architecture-terminal-performance-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts - testName: "denies unknown terminal measurements after execution started instead of synthesizing zero usage" - api.golden.architecture-terminal-performance-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts - testName: "denies coerced or negative measured seconds instead of converting them into successful performance facts" - api.golden.architecture-terminal-report-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "preserves the immutable attempt ordinal when a terminal report releases its lease and retains measured settlement" - api.golden.architecture-terminal-report-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "does not certify terminal revocation while the independently read exact workspace remains open" - api.golden.architecture-terminal-report-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "retains foreign-owner and wrong-token denials and matching terminal replay without another charge" - api.golden.architecture-terminal-report-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "rolls back a late SQL authority-revocation failure and retries terminal reporting without another settlement charge" - api.golden.architecture-workspace-identity-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts - testName: "retains exact open and closed resource reads without mutating the requested project binding" - api.golden.architecture-workspace-identity-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts - testName: "denies missing foreign or malformed workspace identity even when the repository matches" - api.golden.architecture-workspace-identity-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts - testName: "retains foreign-repository and denied-upstream controls without exposing raw upstream text" - api.golden.architecture-workspace-readback-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts - testName: "reads exact open and closed resources repeatedly and concurrently without changing assignment finance" - api.golden.architecture-workspace-readback-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts - testName: "denies foreign and missing workspace identities rather than returning foreign authority with a success receipt" - api.golden.architecture-workspace-readback-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts - testName: "denies missing principal binding and foreign repository before publishing a successful workspace receipt" - api.golden.architecture-workspace-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts - testName: "does not treat denied or unidentified upstream 404 errors as confirmed workspace absence" - api.golden.architecture-workspace-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts - testName: "requires no remote closure for an assignment that owns no TreeDX workspace" - api.golden.architecture-workspace-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts - testName: "rejects missing mismatched or still-open close responses while retaining exact closed replay authority" - api.golden.architecture-workspace-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "does not turn an unidentified upstream 404 denial into durable workspace closure" - api.golden.architecture-workspace-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "closes the exact remote workspace before durable proxy revocation and retains settlement through replay" - api.golden.architecture-workspace-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "keeps explicit already-absent closure idempotent through the actual HTTP error contract" - api.golden.architecture-workspace-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "does not skip an open workspace merely because its SQL capability handle is already revoked" - api.golden.architecture-workspace-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "retries an interrupted operator close through workday cleanup even after durable capability revocation" - api.golden.architecture-workspace-sql-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "rejects a still-open success response instead of certifying closure without authoritative resource agreement" - api.golden.architecture-workspace-sql-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts - testName: "retains recoverable workspace custody when the configured library binding is unavailable" - agent.golden.architecture-workday-terminal-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "preserves an unexpired provider lease while cancelling only unclaimed nodes in its workday" - agent.golden.architecture-workday-terminal-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "refuses unknown productive usage at the workday boundary instead of writing zero and declaring closure" - agent.golden.architecture-workday-terminal-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "preserves measured settlement and immutable attempts through repeated terminal cleanup" - agent.golden.architecture-workday-terminal-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "retains already durable measurements across a real transition SQL interruption and retry" - agent.golden.architecture-workday-terminal-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "does not report complete cleanup while an orphan running graph node remains" - agent.golden.architecture-workday-recovery-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/recovery-persistence.test.ts - testName: "does not execute deadline recovery before the original authority deadline or mutate scoped rows" - agent.golden.architecture-workday-recovery-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/recovery-persistence.test.ts - testName: "reports corrupt old-run provenance while closing another settled run and preserves both outcomes on retry" - api.golden.architecture-cancellation-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "requests active lease cancellation without terminalizing releasing or rewriting its immutable attempt" - api.golden.architecture-cancellation-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "replays terminal cancellation without replacing measured settlement or releasing counters twice" - api.golden.architecture-cancellation-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "refuses unknown productive usage instead of fabricating a zero settlement during terminal cancellation" - api.golden.architecture-cancellation-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "retains durable measured settlement when workspace cleanup is interrupted and retried" - api.golden.architecture-cancellation-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "denies foreign team missing idempotency and completed assignment cancellation without accounting mutation" - api.golden.architecture-recovery-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-authority.test.ts - testName: "does not authorize a zero-cost safe retry when an execution clock started but terminal usage is unknown" - api.golden.architecture-recovery-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-authority.test.ts - testName: "preserves no-execution retry and financial uncertainty side-effect result and bounded failover denials" - api.golden.architecture-recovery-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts - testName: "leaves executing leases available only for bounded terminal reporting without granting productive time" - api.golden.architecture-recovery-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts - testName: "reconciles a preparation-only expired lease without rewriting its attempt and settles the released reservation once" - api.golden.architecture-provider-settlement-existing-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts - testName: "rejects retired mode-run identity before any settlement or assignment lookup" - api.golden.architecture-provider-settlement-existing-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts - testName: "settles conversation usage without inventing a returned checkpoint or completing before its result" - api.golden.architecture-provider-settlement-existing-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts - testName: "does not invoke conversation closeout for ordinary workday settlement" - api.golden.architecture-provider-accounting-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts - testName: "retains exact configured attempt and measured input without mutating the caller" - api.golden.architecture-provider-accounting-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts - testName: "denies coercible measured seconds and attempt values before calling the settlement owner" - api.golden.architecture-provider-accounting-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts - testName: "denies a provider principal conflicting with the frozen assignment owner even within its membership" - api.golden.architecture-provider-accounting-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts - testName: "denies unknown and terminal accounting modes on the nonterminal report boundary" - api.golden.architecture-provider-accounting-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts - testName: "denies missing credentials scopes and unknown membership assignments without calling accounting" - api.golden.architecture-provider-accounting-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "preserves incremental measurements and charges one aggregate across repeated concurrent public reports" - api.golden.architecture-provider-accounting-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies coerced public measurement or attempt values before any accounting row is committed" - api.golden.architecture-provider-accounting-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies foreign provider ownership despite matching membership and preserves all accounting rows" - api.golden.architecture-provider-accounting-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies unknown or terminal nonterminal-report modes instead of silently storing informational usage" - api.golden.architecture-provider-accounting-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies a terminal aggregate below measured incremental seconds while retaining those measurements" - api.golden.architecture-provider-accounting-sql-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies aggregate token underreporting rather than dropping known incremental provider counts" - api.golden.architecture-provider-accounting-sql-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "replays a cleanup release without replacing the prior real measured aggregate or charging again" - api.golden.architecture-provider-accounting-sql-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "refuses zero cleanup settlement when accepted incremental work remains unaccounted" - api.golden.architecture-provider-accounting-sql-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "denies unauthenticated underscoped and foreign membership reports without changing original SQL" - api.golden.architecture-provider-accounting-sql-10: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts - testName: "retains a matching incremental replay after settlement but denies new late usage without residue" - api.golden.architecture-settlement-unit-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies a first report substituting an execution provider outside the frozen selection" - api.golden.architecture-settlement-sql-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "denies first terminal report executor substitution before durable usage or counter attribution" - api.golden.architecture-settlement-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "preserves exact arbitrary-class attempt and measured input while identifying one matching report" - api.golden.architecture-settlement-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies changed durable attempt and scalar measurement on an otherwise identical retry" - api.golden.architecture-settlement-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies coerced attempt identities rather than treating strings as the frozen attempt number" - api.golden.architecture-settlement-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies changed native measurement or provider model authority on an idempotent report" - api.golden.architecture-settlement-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies incomplete frozen attempt authority before preparing terminal measurement persistence" - api.golden.architecture-settlement-unit-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "denies malformed native measured units before they can become null or coerced stored values" - api.golden.architecture-settlement-sql-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "settles repeated and concurrent matching terminal reports once with exact native usage and immutable authority" - api.golden.architecture-settlement-sql-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "denies foreign identity changed attempt and conflicting scalar retries without altering any durable accounting row" - api.golden.architecture-settlement-sql-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "rejects changed native usage and provider model replay instead of silently retaining incompatible measured authority" - api.golden.architecture-settlement-sql-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "rolls back real late SQL failure including usage counters and claim then permits one clean retry" - api.golden.architecture-settlement-sql-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "records supplied terminal overrun truth without raising hard limits or charging a replay twice" - api.golden.architecture-settlement-sql-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "denies incomplete frozen attempt instead of committing unattributed terminal measurements" - api.golden.architecture-settlement-sql-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "denies coerced attempt identity before charging a reservation through actual SQL" - api.golden.architecture-settlement-sql-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts - testName: "denies corrupt native units rather than durably writing negative coerced or null measurements" - api.golden.architecture-usage-pages-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "reads all measured usage beyond page one with exact project workday cursor and immutable repeated reads" - api.golden.architecture-usage-pages-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "denies missing authority corrupt native JSON and invalid pages while preserving explicit empty terminal evidence" - api.golden.architecture-usage-pages-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts - testName: "rejects corrupt stored creation clocks and zero measured productive time instead of returning valid-looking evidence" - api.golden.architecture-assignment-pages-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/assignment-observation-persistence.test.ts - testName: "reads every creation-ordered and identity-tied page including a failed tail with exact workday and team scope" - api.golden.architecture-assignment-pages-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/assignment-observation-persistence.test.ts - testName: "returns explicit empty terminal authority and denies unauthenticated or invalid cursor and page requests" - api.golden.architecture-workday-observation-pages: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts - testName: "retains every event beyond the first show page through actual cursor reads without database mutation" - api.golden.architecture-workday-observation-unavailable: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts - testName: "distinguishes observed empty scheduling from unavailable SQL and denies missing scope or malformed cursors" - api.golden.architecture-admission-replay-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "returns an identical replay without rewriting the original input or stored snapshot" - api.golden.architecture-admission-replay-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to grant or mutable workspace" - api.golden.architecture-admission-replay-unit-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to profile handler or parameters" - api.golden.architecture-admission-replay-unit-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to source and Decision authority" - api.golden.architecture-admission-replay-unit-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to provider build and original deadline" - api.golden.architecture-admission-replay-unit-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to graph context and predecessor custody" - api.golden.architecture-admission-replay-unit-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects replay changes to accepted estimate or reserved limit" - api.golden.architecture-admission-replay-unit-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects a replay by an unrelated team or capacity provider" - api.golden.architecture-admission-replay-unit-9: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "rejects an identity already bound to another node revision" - api.golden.architecture-admission-replay-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "replays exact persisted custody repeatedly and concurrently without changing six owning SQL tables or their required original accounting history" - api.golden.architecture-admission-replay-native-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed grant or mutable workspace against actual stored custody" - api.golden.architecture-admission-replay-native-3: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed profile handler or parameters against actual stored custody" - api.golden.architecture-admission-replay-native-4: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed source and Decision authority against actual stored custody" - api.golden.architecture-admission-replay-native-5: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed provider build and original deadline against actual stored custody" - api.golden.architecture-admission-replay-native-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed graph context and predecessor custody against actual stored custody" - api.golden.architecture-admission-replay-native-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies changed accepted estimate or reserved limit against actual stored custody" - api.golden.architecture-admission-replay-native-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts - testName: "denies unrelated authenticated team and provider while preserving persisted authority" - api.golden.architecture-decision-proposal-unit-no-substitute: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts - testName: "denies an operational proposal snapshot without governed classed Decision authority" - api.golden.architecture-decision-review-unit-complete: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "accepts complete classed authority for arbitrary configured reviewing identity without input mutation" - api.golden.architecture-decision-review-unit-required: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "denies absent or malformed class, method, decision-maker and authority evidence" - api.golden.architecture-decision-review-unit-positions: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "requires signed positions for approval and vote methods, not a method label alone" - api.golden.architecture-decision-review-unit-disposition: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "does not turn a rejected work-review Decision into request-changes" - api.golden.architecture-decision-review-unit-maker: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "requires exact decision-maker evidence from the assigned governed reviewing profile" - api.golden.architecture-decision-review-unit-conflict: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "denies conflicting exact review Decisions rather than selecting the first returned disposition" - api.golden.architecture-decision-review-unit-time: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts - testName: "denies review evidence produced before admission or after the returned result" - api.golden.architecture-decision-review-native-complete: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "reads exact committed authority, approval and vote evidence repeatedly and concurrently without mutation" - api.golden.architecture-decision-review-native-positions: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "rejects method labels without exact signed positions through native content readback" - api.golden.architecture-decision-review-native-required: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "denies missing and malformed classed authority from actual committed YAML without changing SQL" - api.golden.architecture-decision-review-native-conflict: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "rejects conflicting committed dispositions instead of treating reference order as authority" - api.golden.architecture-decision-review-native-maker: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "denies committed evidence attributed to a different reviewing identity" - api.golden.architecture-decision-review-native-time: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "rejects stale or future committed Decision times relative to the original review assignment and result" - api.golden.architecture-decision-review-native-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "denies moved and forbidden source readback without changing persisted authority" - api.golden.architecture-decision-review-native-predecessor: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts - testName: "does not approve a stale candidate outside immutable predecessor result identities" - api.golden.architecture-decision-proposal-native-no-substitute: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "does not substitute an accepted SQL row and exact proposal bytes for a governed classed Decision" - api.golden.architecture-decision-proposal-native-stale: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "retains fail-closed moved proposal revision, digest and superseded Decision controls in owning SQL" - api.golden.execution-decision-producer-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts - testName: "decision creation replay rejects retained foreign stale rejected and superseded authority before returning or rewriting an existing decision" - api.golden.execution-decision-replay-native: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "original decision creation replay denies retained foreign stale rejected and superseded SQL authority without rewriting history" - api.golden.execution-decision-producer-native-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-native.test.ts - testName: "original governance acceptance publishes one native classed Decision for the exact proposal and preserves that content and original history through decision creation replay" - api.golden.execution-provider-offer-unit-1: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "denies missing malformed and legacy partial provider offers before constructing an immutable governed assignment" - api.golden.execution-provider-utc-allocation-unit: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts - testName: "retains the original UTC day and phase bounds for positive whole-second supply and denies subsecond supply without changing governed inputs" - api.golden.execution-provider-offer-unit-2: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts - testName: "rejects missing malformed mixed and duplicate offer inventories before open or refresh can publish partial supply" - api.golden.architecture-readiness-complete: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "admits complete arbitrary-class work without changing authored scope or estimates" - api.golden.architecture-readiness-required: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "denies every missing work-item authority even when both estimates are present" - api.golden.architecture-readiness-malformed: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "denies malformed scope review bounds and retired work-item fields without rewriting input" - api.golden.architecture-readiness-estimates: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "requires positive integer expected maximum and reviewer estimates with no coercion or minimum field" - api.golden.architecture-readiness-dependencies: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "requires unique local acyclic work dependencies rather than manufacturing a graph from estimates" - api.golden.architecture-readiness-draft: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts - testName: "keeps structurally valid estimate-free drafts outside executable demand" - api.golden.architecture-readiness-native-optional: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "admits canonical optional-capability omission instead of imposing a second proposal schema" - api.golden.architecture-readiness-native-custody: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "replays complete native proposal source without rewriting content estimates or SQL authority" - api.golden.architecture-readiness-native-dependencies: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "denies duplicate dangling and cyclic governed work at the actual SQL source boundary" - api.golden.architecture-readiness-native-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts - testName: "keeps denied moved and digest-mismatched exact HTTP reads closed without mutating persisted source" - api.golden.architecture-calibration-sql-scope: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/calibration-persistence.test.ts - testName: "selects exactly the latest twenty eligible same-scope measurements without changing SQL or workday authority" - api.golden.architecture-calibration-sql-malformed: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/calibration-persistence.test.ts - testName: "denies malformed selected estimate bytes rather than turning stored SQL history into an admitted deadline" - api.golden.architecture-closeout-unit-failed: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: "retains failed Reporter failure evidence without ending a workday that has no closeout report" - api.golden.architecture-closeout-unit-cancelled: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: "retains cancelled Reporter failure evidence without ending a workday that has no closeout report" - api.golden.architecture-closeout-unit-stale: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: "retains stale Reporter failure evidence without ending a workday that has no closeout report" - api.golden.architecture-closeout-unit-single: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: "ends only after Reporter completion and reservation settlement" - api.golden.architecture-closeout-unit-time: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: "rejects future-completion Reporter evidence despite a completed graph node" - api.golden.architecture-closeout-sql-failed: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "retains failed Reporter failure through SQL without an unreported ended workday" - api.golden.architecture-closeout-sql-cancelled: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "retains cancelled Reporter failure through SQL without an unreported ended workday" - api.golden.architecture-closeout-sql-stale: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "retains stale Reporter failure through SQL without an unreported ended workday" - api.golden.architecture-closeout-sql-single: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "persists exactly one canonical workday report from the completed result without a plural authority map" - api.golden.architecture-closeout-sql-settlement: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "does not end or publish a report while its actual reservation remains consuming" - api.golden.architecture-closeout-sql-time: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts - testName: "denies future result completion at the real SQL closeout boundary" - api.golden.architecture-reporting-rename: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts - testName: "projects reporting from a governed profile independently of the agent class name" - api.golden.architecture-closeout-selection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts - testName: "rejects ambiguous closeout selection instead of manufacturing multiple workday reports" - api.golden.architecture-reporting-event-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts - testName: "never invents a reporting lifecycle dependency from an agent name or another activity" - api.golden.architecture-activity-event-scope: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts - testName: "applies a declared lifecycle dependency only to its scheduled activity" - api.golden.architecture-disabled-reporting: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts - testName: "does not manufacture reporting work for disabled profiles or mutate governed profile bytes" - api.golden.architecture-closeout-sql: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-persistence.test.ts - testName: "persists and read-backs renamed reporting readiness through the original closing transition" - api.golden.architecture-event-sql: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-persistence.test.ts - testName: "persists lifecycle edges only for the activity that declares them in YAML" - api.golden.verification-prerequisite-custody: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/publication.test.ts - testName: "declares exact recursive source custody and real PostgreSQL for the complete prerequisite suite before capacity scenes" - api.golden.review-calibration-no-floor: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: "calibrates exact review history without inventing a minimum allocation floor" - api.golden.review-history-scope: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts - testName: "uses only proposal-governance history for proposal reviews, never paired-review duration" - api.golden.governance-review-not-dispatched: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts - testName: "does not admit a separate proposal Reviewer in either phase" - api.golden.transaction-reprojection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts - testName: "reprojects only the rolled-back graph operations against the committed revision" - api.golden.transaction-retry-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts - testName: "fails closed on unrelated uniqueness errors and bounded repeated contention" - api.golden.transaction-inherited-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts - testName: "propagates an inherited transaction failure without reusing its aborted connection" - api.golden.invocation-terminal-returned: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: returned" - api.golden.invocation-terminal-failed: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: failed" - api.golden.invocation-terminal-cancelled: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: cancelled" - api.golden.invocation-terminal-foreign-team: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: foreign-team" - api.golden.invocation-terminal-foreign-invocation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: foreign-invocation" - api.golden.invocation-terminal-leased: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rebinds only its own terminal conversation attempt: leased" - api.golden.progress-postgres-custody: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress-postgres.test.ts - testName: "retains captured preparation evidence and ordered replay without duplicate discussion commits" - api.golden.preparation-progress: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "persists all captured EJ preparation stages without waiting for TreeDX projection" - api.golden.preparation-no-commit-wait: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "does not put a delayed discussion commit on the preparation critical path" - api.golden.provider-progress-authority: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "keeps routine provider progress in its one authoritative workday event stream" - api.golden.provider-terminal-projection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "preserves terminal and diagnostic warning discussion projection with exact durable content" - api.golden.terminal-projection-fatal: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "keeps required terminal projection failure fatal rather than returning a false receipt" - api.golden.terminal-projection-replay: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "replays required terminal projection after a durable event survived a failed discussion commit" - api.golden.progress-idempotency: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "retains durable progress idempotency and rejects changed evidence" - api.golden.workday-lifecycle-projection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "preserves ordinary workday lifecycle projection and activity mirror exclusion" - api.golden.progress-token-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts - testName: "still rejects transient token deltas before durable insertion" - api.golden.late-planning-round: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts - testName: "captured EI third round preserves deadlines and creates only usable new rounds" - api.golden.fluid-planning-window: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts - testName: "fluid planning after initial phase preserves deadlines and creates only usable new rounds" - api.golden.unusable-execution-window: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/execution-window-replay.test.ts - testName: "rejects captured EI sub-second execution rather than starting a model that cannot close out" - api.golden.short-productive-window: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/execution-window-replay.test.ts - testName: "preserves a short but productive window outside the existing closeout reserve" - api.golden.reviewed-allocation-history: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts - testName: "retains only exact approved Actor history after graph retirement" - api.golden.expired-allocation-history: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts - testName: "calibrates productive deadline expiration, not uncertain lease recovery" - api.golden.availability-assignment-locks: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts - testName: publishes while a concurrent assignment write holds a dependent provider row - api.golden.availability-reservation-locks: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts - testName: publishes while a concurrent reservation write holds a dependent provider row - api.golden.availability-accounting-serialization: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts - testName: serializes observations across memberships before validation and publication - api.golden.availability-open-assignment-locks: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts - testName: opens availability while an assignment FK write holds a dependent provider row - api.golden.availability-open-reservation-locks: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts - testName: opens availability while a reservation FK write holds a dependent provider row - api.golden.operator-phase-postgres: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts - testName: settles actual returned pre-model phase cancellation once without late completion, cap expansion or approval - api.golden.operator-phase-closeout: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: normalizes a claimed returned turn without replacing the provider closure or measured usage - api.golden.operator-cancellation-measurement-unit: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: denies missing malformed and incomplete measured usage before cancelling a released productive attempt - api.golden.operator-phase-no-fabrication: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: does not invent isolation teardown when the provider supplied no receipt - api.golden.operator-phase-early-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: preserves ordinary cancellation for earlier despite a planning-looking reason or key - api.golden.operator-phase-acting-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: preserves ordinary cancellation for acting despite a planning-looking reason or key - api.golden.operator-phase-fluid-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: preserves ordinary cancellation for fluid despite a planning-looking reason or key - api.golden.operator-phase-provider-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts - testName: preserves ordinary cancellation for wrong-provider despite a planning-looking reason or key - api.golden.admission-source-custody-leased: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: preserves source custody when a losing admission reaches an existing leased assignment - api.golden.admission-source-custody-pending: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: preserves source custody when a losing admission reaches an existing pending assignment - api.golden.admission-source-custody-completed: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: preserves source custody when a losing admission reaches an existing completed assignment - api.golden.admitted-discussion-binding: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "does not let a denied admission steal the invocation before the winning assignment exists" - api.golden.discussion-binding-foreign-team: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rejects mismatched conversation admission authority: foreign-team" - api.golden.discussion-binding-wrong-reservation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rejects mismatched conversation admission authority: wrong-reservation" - api.golden.discussion-binding-wrong-invocation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rejects mismatched conversation admission authority: wrong-invocation" - api.golden.discussion-binding-terminal: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rejects mismatched conversation admission authority: terminal" - api.golden.discussion-binding-bound-other: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts - testName: "rejects mismatched conversation admission authority: bound-other" - api.golden.concurrent-terminal-revisions: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/persistence/concurrent-results-postgres.test.ts - testName: "commits five simultaneous results against reconciliation without duplicate or lost revisions" - api.golden.phase-before-tick: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts - testName: cancels the captured timeout when its phase ends before periodic cancellation - api.golden.phase-after-tick: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts - testName: recognizes phase cancellation after the periodic request without trusting a provider request - api.golden.phase-task-timeout-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts - testName: preserves earlier task expiration and acting failures - api.golden.phase-fluid-planning-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts - testName: keeps fluid planning and non-timeout failures unchanged - api.golden.phase-authority-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts - testName: does not infer phase cancellation from missing or malformed authority - api.golden.phase-before-tick-postgres: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts - testName: settles actual phase timeout before periodic cancellation once without late completion, cap expansion or approval - api.golden.phase-after-tick-postgres: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts - testName: settles actual phase stop after periodic cancellation once without late completion, cap expansion or approval - api.golden.phase-real-timeout-postgres: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts - testName: settles actual 12 seconds once without late completion, cap expansion or approval - api.golden.phase-real-overrun-postgres: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts - testName: settles actual 25 seconds once without late completion, cap expansion or approval - api.golden.active-window-production: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts - testName: does not precharge unused infrastructure watchdog time in production - api.golden.active-window-simulation: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts - testName: does not precharge unused infrastructure watchdog time in simulation - api.golden.active-window-rollover: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts - testName: clamps after real preparation without crossing the UTC accounting day - api.golden.active-window-exhaustion: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts - testName: defers after authority is exhausted without changing provider supply - api.golden.continuation-history: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: derives a bounded exact lineage from existing records without another ledger - api.golden.continuation-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts - testName: rejects retained leases, unsettled reservations, cycles, unknown decisions and project expansion - api.golden.continuation-freshness: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph-persistence.test.ts - testName: preserves exact completed history only for explicit continuation, never fresh simulation or changed authority - api.golden.explicit-proposal-selection: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: keeps one or several explicit proposals while ignoring unrelated open proposals - api.golden.terminal-scoped-planning: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: stops regenerating terminal explicit proposal and decision scope without shortening the planning phase - api.golden.incomplete-scoped-planning: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: keeps incomplete scoped proposals planning even when exact executable-plan parsing is not ready - api.golden.unscoped-proposal-discovery: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: adds a newly created proposal owner and Reviewer to the next round without replacing the frozen planning agents - api.golden.decision-proposal-selection: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: keeps decision-only continuation planning scoped without rediscovering unrelated proposals - api.golden.decision-proposal-denial: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: fails closed on missing or foreign-team decision planning scope before proposal discovery - api.golden.source-pin-field-comparison: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/workspaces/source-pin.test.ts - testName: compares exact pin fields independent of serialized key order and rejects changed or missing custody - api.golden.source-pin-mutation-denied: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: rejects a public pin that no longer matches the immutable assignment SHA - api.golden.project-library-binding: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: keeps the assignment project library binding distinct from Team Library context - api.golden.project-workspace-write: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: writes planning content to its project library while retaining Team Library as read-only context - api.golden.cross-project-write-denied: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: rejects a writable TreeDX source bound to another project library - api.golden.provider-usage-deadlock-retry: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/postgres-batch-retry.test.ts - testName: settles five concurrent usage-like batches despite repeated deadlocks - api.golden.provider-usage-deadlock-bound: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/postgres-batch-retry.test.ts - testName: bounds SQL batch deadlock retries without retrying unrelated failures - api.golden.bounded-planning-node-id: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: admits a long governed proposal without exceeding the planning node ID bound - api.golden.retired-graph-estimate-migration: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/graph/migrations/retired-graph-estimate-minimum.test.ts - testName: removes only the retired minimum from persisted graph estimates and replays as a noop - api.golden.early-external-approval: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/governance/proposals/early-external-approval.test.ts - testName: records external approval without creating an unestimated decision - api.golden.estimate-finalizes-approval: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: finalizes only a matching external approval after all owner and reviewer estimates arrive - api.golden.fluid-phase: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: continues or resumes planning when no approved acting node is ready - api.golden.external-approval: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts - testName: keeps planning a fully estimated ready proposal until external approval yields acting work - api.golden.parallel-proposals: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: projects concurrent same-project proposal estimates against distinct exact sources - api.golden.reporter-carry-forward: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: lets Reporter close the workday while selected decision work carries forward - api.golden.canonical-adapter-headroom: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts - testName: derives five-slot remaining headroom from canonical adapter worker counts on open and refresh - api.golden.total-admission-ceiling: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: uses the total five-slot ceiling rather than remaining headroom for atomic admission - api.golden.planning-communication-turn: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: gives planning discussion the policy turn ceiling without changing acting chat allocation - api.golden.proposal-review-source: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "admits unbound decision work without a separate proposal Reviewer" - api.golden.proposal-review-binding: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph-persistence.test.ts - testName: "binds selected proposal work and its accepted decision to one simulation" - api.golden.proposal-review-phase: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts - testName: "does not admit a separate proposal Reviewer in either phase" - api.golden.proposal-review-accounting: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts - testName: "charges paired work review to acting" - api.golden.proposal-review-supply: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts - testName: "counts shared proposal work through real PostgreSQL graph custody, not only workday-owned nodes" - api.golden.proposal-review-window: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts - testName: "allocates a paired work review from the acting window without a minimum floor" - api.golden.proposal-review-phase-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-admission.test.ts - testName: "fails closed when an assignment has no allocator-issued active phase" - api.golden.timeout-report-grace: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/assignment-recovery-service.test.ts - testName: "keeps productive expiry distinct from bounded provider timeout reporting" - api.golden.public-exact-source: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "uses the immutable public source SHA without consuming anonymous GitHub REST quota" - api.golden.public-moving-source: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "resolves public moving refs with API-only custody and reuses the immutable pin" - api.golden.planning-source-quota: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "does not exhaust anonymous quota across repeated planning source authorizations" - api.golden.public-source-custody-failure: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "supports public moving refs without a configured connection, but never retries a failed managed lookup anonymously" - api.golden.public-source-authority-selection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-credential-authority.test.ts - testName: "permits anonymous public metadata only when no unpinned managed authority exists" - api.golden.public-source-pin-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts - testName: "rejects a public pin that no longer matches the immutable assignment SHA" - api.golden.estimate-lease-reconciliation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "re-reads and merges distinct class estimates after a concurrent TreeDX branch lease" - api.golden.owner-estimate-graph: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "allows an owner estimate after its own planning turn without waiting for unrelated agents" - api.golden.estimate-lease-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "fails closed on non-lease conflicts and exhausted assignment time" - api.golden.maintenance-failure-isolation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-maintenance.test.ts - testName: "reconciles running graphs after each housekeeping failure and preserves diagnostics" - api.golden.maintenance-retry: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-maintenance.test.ts - testName: "retries after a failed sweep without overlapping maintenance passes" - api.golden.content-exact-path: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts - testName: "delegates the exact validated Note commit and path without collection-wide authoring access" - api.golden.content-receipt: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts - testName: "produces the integration receipt only from exact readable result content" - api.golden.content-readback-denial: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts - testName: "rejects wrong commit, absent path, and unreadable content without a receipt" - api.golden.response-integration-order: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/communication/terminal-invocation-reconciliation.test.ts - testName: "waits for content integration after canonical completion, then delivers the durable response" - api.golden.recursive-workspace-reference: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/assignment-result-completion.test.ts - testName: "accepts exact TreeDX discussion output under a recursive workspace grant" - api.golden.send-completion-boundary: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/communication/completion/send-completion.test.ts - testName: "does not treat published content as completion while the assignment runs" - api.golden.published-reply-failure: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/communication/completion/send-completion.test.ts - testName: "reports partial rather than complete for a mixed terminal result" - api.golden.estimate-merge: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "merges only the assigned estimate while preserving another completed estimate" - api.golden.estimate-ownership: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "rejects unrelated content and lets a later class-owned planning turn refine its estimate" - api.golden.estimate-target: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "rejects missing, mistargeted, or changed work items" - api.golden.estimate-reviewer: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "merges Reviewer estimates for every work item without replacing actor estimates" - api.golden.estimate-completeness: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "accepts one class contribution for multiple owned work items and rejects a partial contribution" - api.golden.estimating-participants: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "automatically admits only proposal work owners and Reviewer to estimating; autonomous planning remains valid" - api.golden.estimating-missing-only: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "projects estimates only for missing owner and reviewer measurements" - api.golden.estimating-six-owners: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "projects six work-owner contributions, including multiple items for Engineer, and one Reviewer" - api.golden.estimating-target-selection: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "projects an explicitly selected estimating profile without falling back to planning" - api.golden.review-no-planning: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "does not manufacture subjectless planning rounds for a selected review activity" - api.golden.authority-gate: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts - testName: "retains resolved feedback conditions and blocks acting until questions and decision are complete" - api.golden.planning-authority: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "keeps policy authority stable across operational accounting and repeated rounds" - api.golden.planning-dependencies: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "projects dependency-ordered planning and closing Reporter work" - api.golden.estimate-preservation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "preserves all six golden owner estimates and six reviews regardless of Reviewer publication order" - api.golden.closed-authority: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts - testName: "rejects a racing estimator result before reading or writing a closed proposal" - api.golden.graph-generation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts - testName: "derives stable actor and reviewer nodes from each accepted work item" - api.golden.dependencies: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts - testName: "uses exact work-item and profile dependencies without changing estimates" - api.golden.research-parallel: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts - testName: "keeps reviewed Research parallel to the immediate engineering chain" - api.golden.exact-review: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/review-result.test.ts - testName: "accepts only an exact classed decision bound to the actor candidate" - api.golden.restart: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-recovery-graph-custody.test.ts - testName: "finds ready graph work and assignment evidence by the canonical workday IDs" - api.golden.recovery-isolation: - kind: vitestCase - ownerPackage: '@treeseed/api' - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-recovery-graph-custody.test.ts - testName: recovers later terminal workdays before reporting a corrupt historical assignment - api.golden.missing-result: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-assignment-evidence.test.ts - testName: "rejects a completed assignment missing its immutable result" - api.golden.admission-fence: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-admission-fence.test.ts - testName: "closes and reconciles the authoritative living plan before reporting admission closed" - api.golden.concurrency: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/concurrent-runs-postgres.test.ts - testName: "preserves production and simulation workdays when another workday or conversation starts" - api.golden.cancellation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-terminalization-graph-custody.test.ts - testName: "cancels unclaimed graph nodes without touching retired demand rows" - api.golden.request-changes: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts - testName: "advances the same Actor and Reviewer pair when exact review requests changes" - api.golden.review-exhaustion: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts - testName: "blocks the same work item when its bounded review cycles are exhausted" - api.golden.fresh-simulation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts - testName: "counts only the current simulation workday when enforcing review cycles" - api.golden.revision-feedback: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "passes the prior exact Reviewer result to a revised Actor node" - api.golden.candidate-dependency: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "carries an approved Reviewer result and its exact Actor Git candidate to dependent work" - api.golden.profile-integrity: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "rejects a projected agent definition that differs from its exact TreeDX source" - api.golden.reporter-context: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts - testName: "loads every canonical workday attempt for Reporter instead of stopping at condition nodes" - api.golden.reporter-terminal-gate: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts - testName: "lets Reporter close the workday while selected decision work carries forward" - api.golden.response-authority: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response.test.ts - testName: "records the exact response without returning the assignment or revoking its lease" - api.golden.response-continuation: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/completed-response-continuation.test.ts - testName: "resumes the exact agent only after canonical completion and lease release" - api.golden.response-race: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response.test.ts - testName: "fails closed if concurrent lease loss prevents durable response attribution" - api.golden.architecture-dependency-approval-unit-7: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original rejection refuses a lost conditional transition or changed winning digest even when the winning key matches without recording a successful audit or rewriting inputs" - api.golden.architecture-dependency-operator-postgres-6: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL rejection wins natively blocked competing approval and changed reason races with exact key digest custody one audit no enrollment residue and immutable confirmed replay" - api.golden.architecture-dependency-approval-unit-8: - kind: vitestCase - ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original approval refuses changed winning alias digest under the same key before audit and retains exact conditional enrollment inputs" - api.golden.architecture-dependency-operator-postgres-7: - kind: vitestCase + testFile: tests/unit/control-plane/capacity/execution/architecture/schema-samples.test.ts + testName: "denies missing malformed negative fractional or unbounded native sample counts and unknown case scope without converting failed observations" + api.golden.execution-normal-sdk-clean-schema-live-1: + kind: nodeTestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL approval wins natively blocked rejection and changed alias races with exact enrollment digest audit and immutable confirmed replay" - api.golden.architecture-dependency-approval-unit-9: + testFile: tests/acceptance/execution-schema.ts + testName: "Actual normal SDK workday retains complete clean migration and canonical public native inventories with genuine cold start and default zero priority allowed" + api.golden.native-inventory-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts - testName: "original terminal rejection refuses unbound replay keys before transition or audit even when the requested reason matches the winner" - api.golden.architecture-dependency-operator-postgres-8: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "reads exactly every native identity through complete public pages without changing original observations" + api.golden.native-reporter-closeout-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL identical rejection races share one terminal result only for the bound key with one audit and no enrollment or unbound replay" - api.golden.architecture-dependency-operator-unit-3: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "denies missing duplicated foreign malformed or later native report publication without rewriting completed records or retained audit history" + api.golden.native-lifecycle-custody-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts - testName: "original team management policy waits for the current membership read and cannot reuse earlier owner authority after revocation" - api.golden.architecture-dependency-operator-postgres-9: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "retains original native lifecycle output and denies missing substituted or malformed public model custody without rewriting observations" + api.golden.native-model-inventory-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts - testName: "current authenticated PostgreSQL review waits for native team policy and denies approval or rejection after membership revocation without a terminal transition" - api.golden.response-sql-authority: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "selects every original native model start independently of public sandbox markers and denies incomplete foreign duplicated or interrupted custody" + api.golden.native-inventory-denials-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response-postgres.test.ts - testName: "retains the exact live lease and blocks stale or cross-team response attribution in PostgreSQL" - api.golden.architecture-dependency-bootstrap-unit-6: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "denies malformed missing duplicated reordered foreign truncated or interrupted public inventories without repairing failed pages" + api.golden.native-inventory-authority-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original identity rotation repository keeps both proofs evidence identity and token revocation in one exact pending batch and propagates the same interruption before unchanged retry readback" - api.golden.architecture-dependency-bootstrap-postgres-7: + testFile: tests/unit/control-plane/capacity/execution/architecture/native-inventory.test.ts + testName: "denies incomplete ambiguous native authority before querying the public boundary" + api.golden.installed-assets-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL final token revocation interruption rolls back the entire identity rotation batch and admits the same original bearer proofs and key on retry without losing history" - api.golden.architecture-dependency-bootstrap-unit-7: + testFile: tests/unit/control-plane/release/installed-assets.test.ts + testName: "ships the existing selected API definitions and acceptance asset with only published runtime module dependencies" + api.golden.installed-assets-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts - testName: "original committed access token replay preserves the same missing audit interruption then recovers the original token actor metadata and issuance clock without creating or rewriting authority" - api.golden.architecture-dependency-bootstrap-postgres-8: + testFile: tests/unit/control-plane/release/installed-assets.test.ts + testName: "native production API archive retains exact acceptance bytes and loads its owning published runtime contracts without source or development dependencies" + api.golden.standalone-chat-source-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts - testName: "genuine enrolled PostgreSQL first access token audit failure retains the exact committed token and fresh nonce recovery restores one original issuance audit without reissuing or erasing failed history" - api.golden.architecture-decision-intent-unit-1: + testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts + testName: "freezes configured source-read Git context before issuing an arbitrary configured chat assignment" + api.golden.standalone-chat-source-denial-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts - testName: "normalizes repeated public decision selectors in exact code point order without deriving authority or changing omitted planning controls" - api.golden.architecture-decision-intent-unit-2: + testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts + testName: "denies ambiguous source and rejected or malformed upstream revisions without repairing communication input" + api.golden.standalone-chat-source-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts - testName: "rejects every malformed mixed decision selector and named caller derived identity before normalization can discard it" - api.golden.architecture-decision-intent-native-1: + testFile: tests/unit/control-plane/capacity/execution/architecture/communication/communication-source-context.test.ts + testName: "native PostgreSQL and HTTP freeze standalone chat source while denials and unchanged retry preserve all stored input bytes" + api.golden.team-key-lock-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "real public preflight and nested schedule deny mixed malformed decision selectors and caller derived identities without native scheduling or financial writes" - api.golden.architecture-decision-intent-native-2: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "serializes graph writers without taking a team key lock that blocks reservation foreign keys" + api.golden.team-key-lock-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "real persisted preflight binds exact intent and receipt hashes and refuses changed selection bytes before unchanged original start and replay" - api.golden.architecture-decision-selection-unit-1: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "native graph and failure-report writers allow independent team foreign-key readers while excluding competing graph writers" + api.golden.unreported-closeout-migration-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: "requires every explicit decision selector to resolve before persisting even a planning-only or partially matched preflight" - api.golden.execution-selected-project-unit: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "native migration retains unreported ended history as an explicit failed closing workday without fabricating a report or changing valid runs" + api.golden.operator-stop-closeout-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: "denies a Decision outside the selected projects before reading its governed content or persisting preflight authority" - api.golden.architecture-start-custody-unit-1: + testFile: tests/unit/control-plane/capacity/workday-stop-reconciliation.test.ts + testName: "operator stop retains canonical closing authority without inventing an ended report and permits an unchanged closeout retry" + api.golden.operator-stop-closeout-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: "denies expired original admission and every nonrunning retained run without a start receipt or changed authority" - api.golden.architecture-start-custody-unit-2: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "native public operator stop retains the closing Reporter node and canonical reads until its exact completed report and settlement" + api.golden.workday-planning-source-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts - testName: "binds preflight to exact project library and agent profile revisions before any start write" - api.golden.architecture-decision-selection-native-1: + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "retains frozen selected Proposal Git context for workday planning without following later proposal versions" + api.golden.workday-planning-source-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "real public preflight refuses missing unaccepted foreign superseded and stale selected native governance rows without persisting a receipt or broadening planning authority" - api.golden.execution-policy-completeness-native: + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "native workday planning reads frozen Proposal source bytes and denies moved or denied content without changing SQL history" + api.golden.source-canonical-identity-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "real public workday policy reads and preflight deny every missing stored policy field without inserting defaults or admission truth" - api.golden.execution-offer-selection-unit-1: + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "signs the exact canonical Git repository identity rather than its database row id for source-read planning" + api.golden.source-exact-context-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts - testName: "freezes complete canonical supplied offer selection without changing scope quota or original assignment clocks on replay" - api.golden.execution-offer-selection-unit-2: + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "denies missing exact canonical source context before pinning or upstream lookup instead of adding authority after issuance" + api.golden.source-canonical-identity-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts - testName: "denies changed malformed expired failed revoked or ambiguous supplied offer qualification before freezing an assignment without repairing any input" - api.golden.execution-offer-selection-native-1: + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "native source authorization retains the admitted canonical repository branch and ordinal through exact repeated reads without changing finance" + api.golden.execution-assignment-filter-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts - testName: "native canonical availability publication freezes exact executable supply and denies corrupted retained qualification before assignment with independent immutable SQL readback" - api.golden.execution-offer-signature-unit-1: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts + testName: "execution assignment listing preserves status and canonical pagination without rewriting inputs or reading after denied authority" + api.golden.execution-assignment-filter-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts - testName: "verifies the exact advertised conformance against the registered provider key before open or refresh and denies substituted signatures without publication or input repair" - api.golden.execution-settlement-record-unit: + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native execution assignment inspection filters every retained status through the original repository without changing admission or financial history" + api.golden.execution-decision-error-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts - testName: "requires the stored canonical settlement to agree with every owning ledger identity measurement and clock without repairing either representation" - api.golden.execution-settlement-record-native: + testFile: tests/unit/control-plane/capacity/execution/graph/executable-proposal-source.test.ts + testName: "preserves exact Decision authority failures as owning capacity errors instead of unavailable graph sources" + api.golden.execution-decision-error-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts - testName: "denies absent malformed and moved stored canonical settlements without reconstructing or repairing retained financial history" - api.golden.execution-allocated-deadline-native: + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "native executable intake retains missing Decision authority as a precise capacity denial through concurrent reads and unchanged retry" + api.golden.execution-report-settlement-required-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts - testName: "native builder and admission retain the original phase deadline separately from allocated active time through exact reservation and concurrent replay" - api.golden.execution-capacity-error-status-unit: + testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts + testName: "denies consumed reservation totals without the original matching scoped canonical settlement rather than fabricating closed report evidence" + api.golden.execution-report-settlement-required-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/capacity-query-operations.test.ts - testName: "retains every declared capacity error status and fails closed on malformed or undeclared statuses through the original catalog boundary" - api.golden.execution-admission-late-replay-unit: + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "native Reporter denies consumed totals when the retained original settlement moves outside team or workday scope without repairing financial history" + api.golden.execution-report-settlement-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts - testName: "retains the exact concurrently committed admission after an absent first lookup and denies changed or missing late snapshots without writes" - api.golden.execution-admission-late-replay-native: + testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts + testName: "reads original scoped canonical settlement authority rather than inferring settlement from consumed reservation totals" + api.golden.execution-report-credential-denial-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/admission/postgres.test.ts - testName: "serializes competing claims and rolls back without orphan reservations or duplicate charges" - api.golden.execution-project-inventory-unit: + testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts + testName: "retains noncredential teardown evidence while excluding nested credential custody from the public Reporter snapshot without modifying supplied rows" + api.golden.execution-report-teardown-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workday-project-policy.test.ts - testName: "owning workday project inventory excludes absent and deleted rows without repairing supplied project bytes or broadening team selection" - api.golden.execution-project-inventory-native: + testFile: tests/unit/control-plane/capacity/execution/reporting/workday-report-context.test.ts + testName: "snapshots failures, revisions, graph, usage and settlements through existing authority without credentials" + api.golden.execution-report-teardown-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts - testName: "native owning workday project inventory retains exact team rows excludes completed deletion and remains immutable across concurrent reads" - api.golden.execution-runner-close-unit: + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "native Reporter snapshot retains the exact original teardown result rather than an absent status scalar without repairing evidence or changing SQL history" + api.golden.execution-canonical-failure-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/runner-drain.test.ts - testName: "retains the original runner failure while draining a store whose supported close returns void" - api.golden.execution-runner-close-native: + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts + testName: "denies failed and blocked canonical results on the successful completion boundary without changing supplied authority" + api.golden.execution-canonical-failure-native-1: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/runner-drain.test.ts - testName: "native runner failure closes its actual PostgreSQL pool without replacing the failed registration or changing retained database truth" - api.golden.execution-runner-close-failure-unit: + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "native failure preserves exact canonical failed results and actual settlement once including truthful post-deadline closeout" + api.golden.execution-canonical-failure-native-2: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/runner-drain.test.ts - testName: "preserves runner failure and listener drain with missing asynchronous or throwing store close without repairing supplied custody" - api.golden.execution-publication-custody-unit: + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "native failure denies malformed foreign and nonfailed canonical results before settlement or graph writes" + api.golden.execution-canonical-failure-native-3: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/knowledge-publication-transport.test.ts - testName: "owning publication reader preserves complete governed inputs and rejects missing malformed project entry and object custody without repair" - api.golden.execution-publication-custody-native: + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "native failed result interruption rolls back settlement and retries the same original result without deleting failure history" + api.golden.execution-diagnostics-read-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/knowledge/knowledge-publication-transport.test.ts - testName: "native publication storage refuses malformed retained manifest bytes and admits only restored exact custody without changing published objects or revisions" - api.golden.execution-tool-failure-status-unit: + testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts + testName: requires explicit diagnostic read authority and exact metadata or full selection before reading protected workday evidence + api.golden.execution-sdk-closure-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts - testName: "preserves every supported capacity failure status including upstream bad gateway without coercing malformed authority" - api.golden.execution-tool-failure-status-native: + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: capacity execution dependency closure selects the sole exact SDK authority for every transitive consumer + api.golden.execution-treedx-package-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/treeai/proxy-operations.test.ts - testName: "native agent tool upstream bad gateway retains exact public failure and permits only a fresh unchanged retry" - api.golden.execution-governance-failure-status-unit: + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: capacity execution materializes the declared native TreeDX client from its sole pinned verified server checkout + api.golden.execution-workspace-capability-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts - testName: "workday catalog retains supported governance failures and denies unsupported statuses without replacing the original cause" - api.golden.execution-electorate-scope-unit: + testFile: tests/unit/control-plane/treedx/upstream-operation.test.ts + testName: derives exact current workspace metadata and closeout scope from official capabilities while retaining the exact repository + api.golden.execution-sdk-closure-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/admin-voting.test.ts - testName: "denies every malformed persisted proposal scope before electorate policy reads or writes without normalizing authority" - api.golden.execution-electorate-scope-native: + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: native capacity candidate hydration preserves exact SDK bytes and admits only a complete valid dependency tree and SBOM + api.golden.execution-scene-passed-expectation-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "native electorate snapshot rejects each retained invalid proposal scope before policy or electorate writes through concurrent denial and exact retry" - api.golden.execution-electorate-readback-unit: + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: every capacity execution component step explicitly requires passed evidence from its original verifier + api.golden.execution-template-binary-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/admin-voting.test.ts - testName: "denies missing electorate readback before evaluating votes or changing the retained proposal" - api.golden.execution-electorate-readback-native: + testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts + testName: template binary stream denies a nonbinary dependency chunk with its own retained diagnostic + api.golden.execution-template-bounds-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts - testName: "native governance evaluation retains interrupted electorate history and rejects absent readback before a fresh unchanged retry can close the proposal" - api.golden.execution-schema-consumer-unit: + testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts + testName: template input bounds deny oversized compressed bytes or malformed gzip without changing supplied bytes + api.golden.execution-template-parser-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/mcp/authorization-equivalence.test.ts - testName: "keeps provider and workday Standard Schema projections exact while native validation denies caller derived authority" - api.golden.execution-schema-consumer-native: + testFile: tests/unit/control-plane/projects/platform-project-creation-service.test.ts + testName: native tar and gzip template parsing retains exact binary bytes and bounds unsafe empty and oversized expanded entries + api.golden.execution-runtime-environment-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/mcp/authorization-equivalence.test.ts - testName: "real REST and MCP workday protocol consumers retain exact parsed inputs and deny malformed intent before the controlled handler" - api.golden.execution-http-method-unit: + testFile: tests/unit/control-plane/feedback/feedback-operations.test.ts + testName: retains only canonical runtime environment values without deriving authority from caller context + api.golden.execution-runtime-environment-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/accounts/identity/server-cutover.test.ts - testName: "classifies execution transport methods without inventing a body for GET or HEAD" - api.golden.execution-http-transport-native: + testFile: tests/unit/control-plane/feedback/feedback-operations.test.ts + testName: native submission persistence reads back canonical environment omission and preserves exact replay without extra audit + api.golden.execution-managed-repository-policy-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/accounts/identity/server-cutover.test.ts - testName: "native API listener preserves exact execution request bytes and headers through bodyless methods and retained downstream failure" - api.golden.execution-publisher-prerequisite-unit: + testFile: tests/unit/control-plane/teams/managed-library-authority.test.ts + testName: managed execution context denies malformed repository visibility or lifecycle before resolving credentials + api.golden.execution-managed-repository-policy-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts - testName: "capacity candidate source delivery reuses the same complete native verification authority before sealing declared artifacts" - api.golden.execution-canonical-terminal-lifecycle-unit: + testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts + testName: native managed execution context denies malformed stored repository policy without credential delivery or persistent mutation + api.golden.execution-identity-failure-status-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts - testName: "advances only canonical terminal lifecycle metadata while preserving every frozen assignment field" - api.golden.execution-canonical-terminal-lifecycle-native: + testFile: tests/unit/control-plane/account-operations.test.ts + testName: identity prerequisites retain supported failure status and deny coercion before publishing success + api.golden.execution-identity-failure-status-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "native terminal transitions persist canonical lifecycle metadata with exact frozen authority and immutable replay" - api.golden.execution-canonical-workday-stop-native: + testFile: tests/unit/control-plane/account-operations.test.ts + testName: public identity HTTP boundary preserves failed observations and exact successful retry without coercing status + api.golden.execution-identity-email-readback-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "native workday stop advances canonical terminal metadata without changing admitted authority or replaying settlement" - api.golden.execution-canonical-lifecycle-clocks-unit: + testFile: tests/unit/control-plane/account-operations.test.ts + testName: identity email preparation denies missing read-back before or after confirmation without false successful receipts + api.golden.execution-identity-email-readback-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts - testName: "canonical lifecycle advances preserve first execution and terminal clocks without manufacturing either during lease preparation" - api.golden.execution-canonical-operator-cancel-native: + testFile: tests/unit/control-plane/account-operations.test.ts + testName: native identity email preparation retains missing-readback failures and confirmation rows before current-authority retry + api.golden.execution-managed-library-readback-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts - testName: "native operator cancellation advances only canonical terminal metadata and retains exact failed history on replay" - api.golden.execution-canonical-start-clock-native: + testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts + testName: managed execution context refuses missing project read-back before publishing team library metadata + api.golden.execution-managed-library-readback-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts - testName: "native execution start records the original canonical running clock once and closeout cannot rewrite it or frozen authority" - api.golden.operator-unresolved-recovery-postgres-native: + testFile: tests/unit/control-plane/teams/managed-team-library-readiness.test.ts + testName: native managed execution context retains moved project and entitlement rows without false team metadata before current-authority retry + api.golden.execution-seed-action-readback-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts - testName: "native PostgreSQL public recovery rolls back an interrupted audit then serializes independent matching operator calls without measurements or historical rewrites" - api.golden.operator-unresolved-recovery-counter-native: + testFile: tests/unit/control-plane/seeds/content-only-project.test.ts + testName: execution seed actions deny missing team or project read-back without publishing derived identity maps + api.golden.execution-seed-action-readback-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native unresolved recovery refuses an orphan counter claim rather than silently releasing an unaccounted reservation" - api.golden.operator-unresolved-recovery-workspace-native: + testFile: tests/unit/control-plane/seeds/content-only-project.test.ts + testName: native execution seed updates retain moved PostgreSQL rows and require independently supplied current authority for a fresh success + api.golden.execution-workflow-readback-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-workspace.test.ts - testName: "native unresolved recovery denies open foreign and denied workspace readback then releases capacity only after exact native closure without usage" - api.golden.operator-unresolved-recovery-unit: + testFile: tests/unit/control-plane/services/workflow-configuration-policy.test.ts + testName: execution workflow configuration refuses missing owning read-back before successful audit and keeps exact retry inputs + api.golden.execution-workflow-readback-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts - testName: "requires team management before unresolved recovery and derives actor and operation identity only from authenticated context" - api.golden.operator-unresolved-recovery-input-unit: + testFile: tests/unit/control-plane/services/workflow-configuration-policy.test.ts + testName: native execution workflow configuration retains interrupted PostgreSQL authority without false successful audit before independent exact retry + api.golden.execution-seed-approval-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts - testName: "denies malformed version reason and every caller measurement or actor field before the owning recovery mutation" - api.golden.operator-unresolved-recovery-native: + testFile: tests/unit/control-plane/seeds/seed-operations.test.ts + testName: execution seed approval denies missing owning read-back before inbox publication and preserves exact successful inputs + api.golden.execution-seed-approval-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native operator recovery releases only terminal capacity once and retains unresolved usage report and expired authority without a settlement" - api.golden.operator-unresolved-recovery-denial-native: + testFile: tests/unit/control-plane/seeds/seed-operations.test.ts + testName: native execution seed approval retains interrupted PostgreSQL rows without a false inbox and independently reads a fresh exact retry + api.golden.execution-error-serialization-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native recovery denies active foreign stale measured and mismatched reservation authority without changing retained history" - api.golden.operator-unresolved-recovery-overlap-native: + testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts + testName: shared execution error serialization preserves supported statuses and the original cause without coercing malformed status authority + api.golden.execution-error-serialization-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native overlapping recoveries produce one retained audit and one terminal counter release without rewriting usage" - api.golden.operator-unresolved-recovery-interruption-native: + testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts + testName: real Hono execution error boundaries retain denial history and exact successful retry without accepting malformed upstream statuses + api.golden.execution-recipe-command-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native late audit interruption rolls back capacity release and exact retry preserves the original failed output" - api.golden.execution-canonical-claim-native: + testFile: tests/unit/control-plane/seeds/seed-operations.test.ts + testName: returns exact execution recipe command diagnostics for missing malformed and empty argv without changing supplied inputs + api.golden.execution-recipe-command-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts - testName: "native claim advances only canonical leased status without inventing execution clocks or changing dependency authority" - api.golden.operator-unknown-terminal-time-unit: + testFile: tests/unit/control-plane/seeds/seed-operations.test.ts + testName: native seed file planning denies invalid execution command bytes without repairing inputs and admits only the explicit valid retry + api.golden.execution-registration-key-readback-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts - testName: "requires actual time for an operator-action recovery even when its original active clock never started" - api.golden.operator-unknown-terminal-time-native: + testFile: tests/unit/control-plane/providers/provider-registration-code.test.ts + testName: "refuses missing committed registration key metadata before returning a status or reveal receipt or recording a false audit" + api.golden.execution-registration-key-readback-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts - testName: "native deadline terminalization retains unknown operator-action usage and every original budget claim without fabricating zero settlement" - api.golden.operator-settlement-dispute-unit: + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "native public registration status refuses an absent committed key without false audit and admits only a fresh original persistence retry" + api.golden.execution-continuation-optionality-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts - testName: "keeps settlement dispute authority server derived and rejects every caller hold refund settlement or measurement before recovery" - api.golden.operator-settlement-dispute-authority-unit: + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: preserves canonical omitted node authority without admitting foreign decisions or changed source history + api.golden.execution-continuation-optionality-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts - testName: "requires exact original deadline zero identities and absent active clock without treating native or malformed facts as disputable" - api.golden.operator-settlement-dispute-postgres-native: + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: native settled lineage and retained canonical attempt admit omitted node authority but reject changed source or decision readback without writes + api.golden.execution-reservation-provider-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts - testName: "native PostgreSQL settlement dispute restores only original holds after atomic audit rollback and independent matching calls without rewriting zero history" - api.golden.operator-settlement-dispute-native: + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: debits only the exact canonical provider and execution identity while retaining shared and failed reservation history + api.golden.execution-reservation-provider-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native recovery disputes only original automatic zero settlement and restores original period holds once while retaining all failed and accounting bytes" - api.golden.operator-settlement-dispute-denial-native: + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: native budget SQL and supplied reservation readback agree despite another provider reusing the execution identity and retain failed charges + api.golden.execution-demand-authority-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts - testName: "native settlement dispute rejects measured foreign moved corrupt and unrelated settlements or claims without accounting changes" - api.golden.operator-settlement-dispute-read-unit: + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: denies missing selected demand revision or source digest before storing any derived preflight authority + api.golden.execution-demand-authority-native: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts - testName: "reads the exact operator audit for released or disputed consumed reservation authority without invoking productive lifecycle operations" - api.golden.operator-settlement-dispute-read-native: + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: native public preflight denies incomplete persisted demand authority without repairing rows or creating admission truth + api.golden.execution-native-budget-unit: kind: vitestCase ownerPackage: "@treeseed/api" - testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: derives native budget identity from the canonical provide…66322 tokens truncated…le: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts testName: "native provider read exposes only matching disputed consumed recovery audit and retains original zero settlement and restored claims through repeated reads" api.golden.installed-assets-interruption-native: kind: vitestCase @@ -4794,3 +908,13 @@ verifiers: ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/execution/graph/architecture/components/component-content-postgres.test.ts testName: "native content-component publication retains unrelated SQL bytes original history and public views through interruption and unchanged concurrent replay" + api.golden.provider-availability-history-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "publishes the committed provider availability transition into existing scoped capacity audit history without private adapter observations" + api.golden.capacity-audit-pagination-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "public capacity audit preserves raw records and complete cursor pagination including equal-clock identities" diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 6fcc9c1c..664b6b92 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -37,8 +37,10 @@ it('publishes the committed provider availability transition into existing scope it('public capacity audit preserves raw records and complete cursor pagination including equal-clock identities',async()=>{ const at='2026-10-17T00:00:00.000Z',rows=[{id:'audit-b',created_at:at,metadata_json:'{}'},{id:'audit-a',created_at:at,metadata_json:'{}'}]; - const all=vi.fn(async(sql:string,parameters:unknown[])=>rows.filter(row=>parameters.length<3||row.id{},all}); + const all=vi.fn(async(sql:string,parameters:unknown[])=>rows.filter(row=>parameters.length<3||row.id{},all,principalCanAccessTeam:async()=>false}); const principal={id:'operator',roles:['admin']}; + await expect(query.audit(undefined,'team',{limit:1})).rejects.toMatchObject({status:401,code:'authentication_required'});await expect(query.audit({id:'denied',roles:[]},'team',{limit:1})).rejects.toMatchObject({status:403,code:'team_access_denied'});expect(all).not.toHaveBeenCalled(); + await expect(query.audit(principal,'team',{limit:1,cursor:'not-a-valid-cursor'})).rejects.toMatchObject({status:400,code:'capacity_page_invalid'});expect(all).not.toHaveBeenCalled(); const first=await query.audit(principal,'team',{limit:1});expect(first.items).toEqual([rows[0]]);expect(first.page.hasMore).toBe(true);expect(first.page.nextCursor).toBeTruthy(); const second=await query.audit(principal,'team',{limit:1,cursor:first.page.nextCursor});expect(second.items).toEqual([rows[1]]);expect(second.page.hasMore).toBe(false);expect(second.page.nextCursor).toBeNull(); expect(all.mock.calls[1]![0]).toContain('id < ?');expect(all.mock.calls[1]![1]).toContain('audit-b'); From 50dbb047e0eeea968600ee7b80523e9f598a1d11 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:26:21 -0400 Subject: [PATCH 13/35] test: reject a retained impossible calendar date instead of accepting Date normalization --- .../control-plane/capacity/ontology/availability-history.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 664b6b92..53f656e5 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -32,6 +32,7 @@ it('publishes the committed provider availability transition into existing scope expect(input).toEqual(before); if(!result)throw new Error('Original successful session required'); for(const field of ['expiresAt','openedAt']as const){const bad=structuredClone(result);Reflect.set(bad,field,'not-a-clock');const count=operations.length;await expect(observeAvailabilitySession(database,bad)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(operations).toHaveLength(count);} + const invalidCalendar=structuredClone(result);invalidCalendar.openedAt='2026-02-30T00:00:00.000Z';const calendarWrites=operations.length;await expect(observeAvailabilitySession(database,invalidCalendar)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(operations).toHaveLength(calendarWrites); const unmeasured=structuredClone(result);unmeasured.snapshot.availableWorkers=NaN;const count=operations.length;await expect(observeAvailabilitySession(database,unmeasured)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(operations).toHaveLength(count); }); From 0e765332442c9b7f57c11c4caf6c0e05db8eadc9 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:27:12 -0400 Subject: [PATCH 14/35] test: retain impossible native calendar inputs and both original clock failures --- .../ontology/availability-postgres.test.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 243cda5d..bbfc7e35 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -199,12 +199,14 @@ describe('provider accounting in disposable PostgreSQL', () => { expect(cause).toBeInstanceOf(Error);if(mode!=='interrupted')expect(cause).toMatchObject({code:'provider_availability_observation_conflict'}); const unchanged=JSON.stringify(await snapshot(f.right))===JSON.stringify(baseline);expect(unchanged).toBe(true);expect(await snapshot(f.left)).toEqual(baseline);expect(refreshInput).toEqual(refreshBefore);failedAvailability.push({mode,cause,unchanged}); } - await f.left.pool.query("UPDATE capacity_provider_availability_sessions SET opened_at='not-a-clock' WHERE id=$1",[opened.id]); - const malformedClock=await snapshot(f.right);let clockFailure:unknown; - try{await service.refresh(principal,opened.id,refreshInput);}catch(error){clockFailure=error;} - expect(clockFailure).toMatchObject({code:'provider_availability_observation_invalid'});expect(await snapshot(f.left)).toEqual(malformedClock);expect(await snapshot(f.right)).toEqual(malformedClock); - // Restore only the deliberately corrupted owning input; failed observations remain. - await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET opened_at=$1 WHERE id=$2',[opened.openedAt,opened.id]);expect(await snapshot(f.right)).toEqual(baseline); + for(const corruptedAt of ['not-a-clock','2026-02-30T00:00:00.000Z']){ + await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET opened_at=$1 WHERE id=$2',[corruptedAt,opened.id]); + const malformedClock=await snapshot(f.right);let clockFailure:unknown; + try{await service.refresh(principal,opened.id,refreshInput);}catch(error){clockFailure=error;} + expect(clockFailure).toMatchObject({code:'provider_availability_observation_invalid'});expect(await snapshot(f.left)).toEqual(malformedClock);const unchanged=JSON.stringify(await snapshot(f.right))===JSON.stringify(malformedClock);expect(unchanged).toBe(true);failedAvailability.push({mode:'clock:'+corruptedAt,cause:clockFailure,unchanged}); + // Restore only the deliberately corrupted owning input; failed observations remain. + await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET opened_at=$1 WHERE id=$2',[opened.openedAt,opened.id]);expect(await snapshot(f.right)).toEqual(baseline); + } const peer={db:f.right,ensureInitialized:()=>f.right.migrate(),run:async(sql:string,params:unknown[]=[])=>{await f.right.prepare(sql).bind(...params).run();}, first:>(sql:string,params:unknown[]=[])=>f.right.prepare(sql).bind(...params).first(), all:async>(sql:string,params:unknown[]=[]) =>(await f.right.prepare(sql).bind(...params).all()).results, @@ -213,7 +215,7 @@ describe('provider accounting in disposable PostgreSQL', () => { const refreshed=winners[0]!;expect(refreshed.sequence).toBe(opened.sequence+1); await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt}]); const observedHealth=(await f.right.pool.query("SELECT metadata_json FROM capacity_audit_events WHERE resource_id=$1 AND idempotency_key=$2",[opened.id,refreshed.sequence+':open'])).rows;expect(observedHealth).toHaveLength(1);expect(JSON.parse(observedHealth[0].metadata_json).adapters[0].modelHealthy).toBe(false); - const refreshedBytes=await snapshot(f.right);expect(await service.refresh(principal,opened.id,refreshInput)).toBeNull();expect(await snapshot(f.left)).toEqual(refreshedBytes);expect(refreshInput).toEqual(refreshBefore);expect(failedAvailability).toHaveLength(3); + const refreshedBytes=await snapshot(f.right);expect(await service.refresh(principal,opened.id,refreshInput)).toBeNull();expect(await snapshot(f.left)).toEqual(refreshedBytes);expect(refreshInput).toEqual(refreshBefore);expect(failedAvailability).toHaveLength(5); console.log(JSON.stringify({retainedAvailabilityFailures:failedAvailability.map(value=>({mode:value.mode,unchanged:value.unchanged,message:String(value.cause)}))})); const terminalAvailability=await service.close(principal, opened.id);if(!terminalAvailability?.closedAt)throw new Error('Original terminal availability required'); await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt},{sequence:refreshed.sequence,status:'open',at:refreshed.refreshedAt},{sequence:terminalAvailability.sequence,status:'closed',at:terminalAvailability.closedAt}]); From b9906916288fdffc736fb598dd2cbf77e8067153 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:28:21 -0400 Subject: [PATCH 15/35] fix: retain only original canonical availability clock bytes without calendar normalization --- .../capacity/repositories/accounts/availability-observation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/capacity/repositories/accounts/availability-observation.ts b/src/api/capacity/repositories/accounts/availability-observation.ts index 7613ceba..a3476072 100644 --- a/src/api/capacity/repositories/accounts/availability-observation.ts +++ b/src/api/capacity/repositories/accounts/availability-observation.ts @@ -12,7 +12,7 @@ const healthy=(value:unknown):boolean|null=>{if(value===undefined||value===null) export async function observeAvailabilitySession(database:CapacityGovernanceDatabase,session:ProviderAvailabilitySession):Promise{ const now=session.status==='closed'?session.closedAt:session.refreshedAt; const clocks=[session.openedAt,session.refreshedAt,session.expiresAt,session.snapshot.availableFrom,...(session.closedAt?[session.closedAt]:[]),...(session.snapshot.availableUntil?[session.snapshot.availableUntil]:[])]; - if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value)))||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) + if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value))&&new Date(value).toISOString()===value)||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original lifecycle clocks and measured worker quantities required.',500); if(!now||!Number.isFinite(Date.parse(now))||!Number.isSafeInteger(session.sequence)||session.sequence<1) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original availability identity sequence and clock required.',500); From 4f255335d54d3c5fa1b68296517fa5c9d65048dd Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 00:44:39 -0400 Subject: [PATCH 16/35] fix: retain complete held owner catalogs when appending acceptance selections The integration guard rejected bounded tool-output truncation in the private candidate. Rebuild only these two catalogs from complete Git bytes, retain every original definition/workflow step, append two exact unit cases and parse the complete documents. No primary or native run used the failed candidate. --- .../scenes/component-boundaries.scene.yaml | 1554 ++++++- guarantees/verifiers/golden.verifiers.yaml | 3894 ++++++++++++++++- 2 files changed, 5440 insertions(+), 8 deletions(-) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index d0b68f98..a7fd6338 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -1,6 +1,3 @@ -Warning: truncated output (original token count: 33752) -Total output lines: 2830 - schemaVersion: treeseed.scene/v1 id: api.golden.component-boundaries title: api golden component boundaries @@ -622,7 +619,1556 @@ workflow: action: { verifier: api.golden.architecture-dependency-bootstrap-postgres-2 } expect: { status: passed } - id: architecture-dependency-operator-unit-1 - action: { verifier: api.golden.architecture-dependency-operator-u…18752 tokens truncated…tatus: passed } + action: { verifier: api.golden.architecture-dependency-operator-unit-1 } + expect: { status: passed } + - id: architecture-dependency-operator-unit-2 + action: { verifier: api.golden.architecture-dependency-operator-unit-2 } + expect: { status: passed } + - id: architecture-dependency-operator-postgres-1 + action: { verifier: api.golden.architecture-dependency-operator-postgres-1 } + expect: { status: passed } + - id: architecture-dependency-operator-postgres-2 + action: { verifier: api.golden.architecture-dependency-operator-postgres-2 } + expect: { status: passed } + - id: architecture-dependency-operator-postgres-3 + action: { verifier: api.golden.architecture-dependency-operator-postgres-3 } + expect: { status: passed } + - id: architecture-dependency-approval-unit-3 + action: { verifier: api.golden.architecture-dependency-approval-unit-3 } + expect: { status: passed } + - id: architecture-dependency-approval-unit-4 + action: { verifier: api.golden.architecture-dependency-approval-unit-4 } + expect: { status: passed } + - id: architecture-dependency-approval-native-5 + action: { verifier: api.golden.architecture-dependency-approval-native-5 } + expect: { status: passed } + - id: architecture-dependency-approval-native-6 + action: { verifier: api.golden.architecture-dependency-approval-native-6 } + expect: { status: passed } + - id: architecture-dependency-approval-native-7 + action: { verifier: api.golden.architecture-dependency-approval-native-7 } + expect: { status: passed } + - id: architecture-dependency-approval-unit-1 + action: { verifier: api.golden.architecture-dependency-approval-unit-1 } + expect: { status: passed } + - id: architecture-dependency-approval-unit-2 + action: { verifier: api.golden.architecture-dependency-approval-unit-2 } + expect: { status: passed } + - id: architecture-dependency-approval-native-1 + action: { verifier: api.golden.architecture-dependency-approval-native-1 } + expect: { status: passed } + - id: architecture-dependency-approval-native-2 + action: { verifier: api.golden.architecture-dependency-approval-native-2 } + expect: { status: passed } + - id: architecture-dependency-approval-native-3 + action: { verifier: api.golden.architecture-dependency-approval-native-3 } + expect: { status: passed } + - id: architecture-dependency-approval-native-4 + action: { verifier: api.golden.architecture-dependency-approval-native-4 } + expect: { status: passed } + - id: architecture-dependency-registration-unit-5 + action: { verifier: api.golden.architecture-dependency-registration-unit-5 } + expect: { status: passed } + - id: architecture-dependency-registration-native-10 + action: { verifier: api.golden.architecture-dependency-registration-native-10 } + expect: { status: passed } + - id: architecture-dependency-registration-unit-4 + action: { verifier: api.golden.architecture-dependency-registration-unit-4 } + expect: { status: passed } + - id: architecture-dependency-registration-native-8 + action: { verifier: api.golden.architecture-dependency-registration-native-8 } + expect: { status: passed } + - id: architecture-dependency-registration-native-9 + action: { verifier: api.golden.architecture-dependency-registration-native-9 } + expect: { status: passed } + - id: architecture-dependency-registration-unit-3 + action: { verifier: api.golden.architecture-dependency-registration-unit-3 } + expect: { status: passed } + - id: architecture-dependency-registration-native-7 + action: { verifier: api.golden.architecture-dependency-registration-native-7 } + expect: { status: passed } + - id: architecture-session-subscription-unit-8 + action: { verifier: api.golden.architecture-session-subscription-unit-8 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-10 + action: { verifier: api.golden.architecture-session-subscription-postgres-10 } + expect: { status: passed } + - id: architecture-session-subscription-unit-7 + action: { verifier: api.golden.architecture-session-subscription-unit-7 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-9 + action: { verifier: api.golden.architecture-session-subscription-postgres-9 } + expect: { status: passed } + - id: architecture-session-subscription-unit-6 + action: { verifier: api.golden.architecture-session-subscription-unit-6 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-8 + action: { verifier: api.golden.architecture-session-subscription-postgres-8 } + expect: { status: passed } + - id: architecture-session-subscription-unit-5 + action: { verifier: api.golden.architecture-session-subscription-unit-5 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-7 + action: { verifier: api.golden.architecture-session-subscription-postgres-7 } + expect: { status: passed } + - id: architecture-session-subscription-unit-4 + action: { verifier: api.golden.architecture-session-subscription-unit-4 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-6 + action: { verifier: api.golden.architecture-session-subscription-postgres-6 } + expect: { status: passed } + - id: architecture-session-subscription-unit-3 + action: { verifier: api.golden.architecture-session-subscription-unit-3 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-5 + action: { verifier: api.golden.architecture-session-subscription-postgres-5 } + expect: { status: passed } + - id: architecture-session-subscription-unit-2 + action: { verifier: api.golden.architecture-session-subscription-unit-2 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-4 + action: { verifier: api.golden.architecture-session-subscription-postgres-4 } + expect: { status: passed } + - id: architecture-session-subscription-unit-1 + action: { verifier: api.golden.architecture-session-subscription-unit-1 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-1 + action: { verifier: api.golden.architecture-session-subscription-postgres-1 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-2 + action: { verifier: api.golden.architecture-session-subscription-postgres-2 } + expect: { status: passed } + - id: architecture-session-subscription-postgres-3 + action: { verifier: api.golden.architecture-session-subscription-postgres-3 } + expect: { status: passed } + - id: architecture-dependency-longpoll-unit-4 + action: { verifier: api.golden.architecture-dependency-longpoll-unit-4 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-7 + action: { verifier: api.golden.architecture-dependency-longpoll-native-7 } + expect: { status: passed } + - id: architecture-dependency-longpoll-unit-3 + action: { verifier: api.golden.architecture-dependency-longpoll-unit-3 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-6 + action: { verifier: api.golden.architecture-dependency-longpoll-native-6 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-4 + action: { verifier: api.golden.architecture-dependency-longpoll-native-4 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-5 + action: { verifier: api.golden.architecture-dependency-longpoll-native-5 } + expect: { status: passed } + - id: architecture-dependency-longpoll-unit-1 + action: { verifier: api.golden.architecture-dependency-longpoll-unit-1 } + expect: { status: passed } + - id: architecture-dependency-longpoll-unit-2 + action: { verifier: api.golden.architecture-dependency-longpoll-unit-2 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-1 + action: { verifier: api.golden.architecture-dependency-longpoll-native-1 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-2 + action: { verifier: api.golden.architecture-dependency-longpoll-native-2 } + expect: { status: passed } + - id: architecture-dependency-longpoll-native-3 + action: { verifier: api.golden.architecture-dependency-longpoll-native-3 } + expect: { status: passed } + - id: architecture-dependency-revocation-unit-1 + action: { verifier: api.golden.architecture-dependency-revocation-unit-1 } + expect: { status: passed } + - id: architecture-dependency-revocation-unit-2 + action: { verifier: api.golden.architecture-dependency-revocation-unit-2 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-1 + action: { verifier: api.golden.architecture-dependency-revocation-native-1 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-2 + action: { verifier: api.golden.architecture-dependency-revocation-native-2 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-3 + action: { verifier: api.golden.architecture-dependency-revocation-native-3 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-4 + action: { verifier: api.golden.architecture-dependency-revocation-native-4 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-5 + action: { verifier: api.golden.architecture-dependency-revocation-native-5 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-6 + action: { verifier: api.golden.architecture-dependency-revocation-native-6 } + expect: { status: passed } + - id: architecture-dependency-revocation-native-7 + action: { verifier: api.golden.architecture-dependency-revocation-native-7 } + expect: { status: passed } + - id: architecture-dependency-registration-unit-1 + action: { verifier: api.golden.architecture-dependency-registration-unit-1 } + expect: { status: passed } + - id: architecture-dependency-registration-unit-2 + action: { verifier: api.golden.architecture-dependency-registration-unit-2 } + expect: { status: passed } + - id: architecture-dependency-registration-native-1 + action: { verifier: api.golden.architecture-dependency-registration-native-1 } + expect: { status: passed } + - id: architecture-dependency-registration-native-2 + action: { verifier: api.golden.architecture-dependency-registration-native-2 } + expect: { status: passed } + - id: architecture-dependency-registration-native-3 + action: { verifier: api.golden.architecture-dependency-registration-native-3 } + expect: { status: passed } + - id: architecture-dependency-registration-native-4 + action: { verifier: api.golden.architecture-dependency-registration-native-4 } + expect: { status: passed } + - id: architecture-dependency-registration-native-5 + action: { verifier: api.golden.architecture-dependency-registration-native-5 } + expect: { status: passed } + - id: architecture-dependency-registration-native-6 + action: { verifier: api.golden.architecture-dependency-registration-native-6 } + expect: { status: passed } + - id: architecture-dependency-credential-unit-1 + action: { verifier: api.golden.architecture-dependency-credential-unit-1 } + expect: { status: passed } + - id: architecture-dependency-credential-unit-2 + action: { verifier: api.golden.architecture-dependency-credential-unit-2 } + expect: { status: passed } + - id: architecture-dependency-credential-native-1 + action: { verifier: api.golden.architecture-dependency-credential-native-1 } + expect: { status: passed } + - id: architecture-dependency-credential-native-2 + action: { verifier: api.golden.architecture-dependency-credential-native-2 } + expect: { status: passed } + - id: architecture-dependency-credential-native-3 + action: { verifier: api.golden.architecture-dependency-credential-native-3 } + expect: { status: passed } + - id: architecture-dependency-credential-native-4 + action: { verifier: api.golden.architecture-dependency-credential-native-4 } + expect: { status: passed } + - id: architecture-dependency-credential-native-5 + action: { verifier: api.golden.architecture-dependency-credential-native-5 } + expect: { status: passed } + - id: architecture-dependency-identity-unit-1 + action: { verifier: api.golden.architecture-dependency-identity-unit-1 } + expect: { status: passed } + - id: architecture-dependency-identity-unit-2 + action: { verifier: api.golden.architecture-dependency-identity-unit-2 } + expect: { status: passed } + - id: architecture-dependency-identity-native-1 + action: { verifier: api.golden.architecture-dependency-identity-native-1 } + expect: { status: passed } + - id: architecture-dependency-identity-native-2 + action: { verifier: api.golden.architecture-dependency-identity-native-2 } + expect: { status: passed } + - id: architecture-dependency-identity-native-3 + action: { verifier: api.golden.architecture-dependency-identity-native-3 } + expect: { status: passed } + - id: architecture-dependency-identity-native-4 + action: { verifier: api.golden.architecture-dependency-identity-native-4 } + expect: { status: passed } + - id: architecture-dependency-identity-native-5 + action: { verifier: api.golden.architecture-dependency-identity-native-5 } + expect: { status: passed } + - id: architecture-dependency-token-unit-1 + action: { verifier: api.golden.architecture-dependency-token-unit-1 } + expect: { status: passed } + - id: architecture-dependency-token-unit-2 + action: { verifier: api.golden.architecture-dependency-token-unit-2 } + expect: { status: passed } + - id: architecture-dependency-token-unit-3 + action: { verifier: api.golden.architecture-dependency-token-unit-3 } + expect: { status: passed } + - id: architecture-dependency-token-native-1 + action: { verifier: api.golden.architecture-dependency-token-native-1 } + expect: { status: passed } + - id: architecture-dependency-token-native-2 + action: { verifier: api.golden.architecture-dependency-token-native-2 } + expect: { status: passed } + - id: architecture-dependency-token-native-3 + action: { verifier: api.golden.architecture-dependency-token-native-3 } + expect: { status: passed } + - id: architecture-dependency-token-native-4 + action: { verifier: api.golden.architecture-dependency-token-native-4 } + expect: { status: passed } + - id: architecture-dependency-public-poll-unit-1 + action: { verifier: api.golden.architecture-dependency-public-poll-unit-1 } + expect: { status: passed } + - id: architecture-dependency-public-poll-unit-2 + action: { verifier: api.golden.architecture-dependency-public-poll-unit-2 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-1 + action: { verifier: api.golden.architecture-dependency-public-poll-native-1 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-2 + action: { verifier: api.golden.architecture-dependency-public-poll-native-2 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-3 + action: { verifier: api.golden.architecture-dependency-public-poll-native-3 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-4 + action: { verifier: api.golden.architecture-dependency-public-poll-native-4 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-5 + action: { verifier: api.golden.architecture-dependency-public-poll-native-5 } + expect: { status: passed } + - id: architecture-dependency-public-poll-native-6 + action: { verifier: api.golden.architecture-dependency-public-poll-native-6 } + expect: { status: passed } + - id: architecture-dependency-poll-unit-1 + action: { verifier: api.golden.architecture-dependency-poll-unit-1 } + expect: { status: passed } + - id: architecture-dependency-poll-unit-2 + action: { verifier: api.golden.architecture-dependency-poll-unit-2 } + expect: { status: passed } + - id: architecture-dependency-poll-native-1 + action: { verifier: api.golden.architecture-dependency-poll-native-1 } + expect: { status: passed } + - id: architecture-dependency-poll-expiry-unit + action: { verifier: api.golden.architecture-dependency-poll-expiry-unit } + expect: { status: passed } + - id: architecture-dependency-poll-expiry-native + action: { verifier: api.golden.architecture-dependency-poll-expiry-native } + expect: { status: passed } + - id: architecture-dependency-poll-native-2 + action: { verifier: api.golden.architecture-dependency-poll-native-2 } + expect: { status: passed } + - id: architecture-dependency-poll-native-3 + action: { verifier: api.golden.architecture-dependency-poll-native-3 } + expect: { status: passed } + - id: architecture-dependency-poll-native-4 + action: { verifier: api.golden.architecture-dependency-poll-native-4 } + expect: { status: passed } + - id: architecture-dependency-lease-unit-1 + action: { verifier: api.golden.architecture-dependency-lease-unit-1 } + expect: { status: passed } + - id: architecture-dependency-lease-unit-2 + action: { verifier: api.golden.architecture-dependency-lease-unit-2 } + expect: { status: passed } + - id: architecture-dependency-lease-unit-3 + action: { verifier: api.golden.architecture-dependency-lease-unit-3 } + expect: { status: passed } + - id: architecture-dependency-lease-native-1 + action: { verifier: api.golden.architecture-dependency-lease-native-1 } + expect: { status: passed } + - id: architecture-dependency-lease-native-2 + action: { verifier: api.golden.architecture-dependency-lease-native-2 } + expect: { status: passed } + - id: architecture-dependency-lease-native-3 + action: { verifier: api.golden.architecture-dependency-lease-native-3 } + expect: { status: passed } + - id: architecture-dependency-lease-native-4 + action: { verifier: api.golden.architecture-dependency-lease-native-4 } + expect: { status: passed } + - id: architecture-dependency-lease-native-5 + action: { verifier: api.golden.architecture-dependency-lease-native-5 } + expect: { status: passed } + - id: architecture-dependency-admission-unit-1 + action: { verifier: api.golden.architecture-dependency-admission-unit-1 } + expect: { status: passed } + - id: architecture-dependency-admission-unit-2 + action: { verifier: api.golden.architecture-dependency-admission-unit-2 } + expect: { status: passed } + - id: architecture-dependency-admission-unit-3 + action: { verifier: api.golden.architecture-dependency-admission-unit-3 } + expect: { status: passed } + - id: architecture-dependency-admission-native-1 + action: { verifier: api.golden.architecture-dependency-admission-native-1 } + expect: { status: passed } + - id: architecture-dependency-admission-native-2 + action: { verifier: api.golden.architecture-dependency-admission-native-2 } + expect: { status: passed } + - id: architecture-dependency-admission-native-3 + action: { verifier: api.golden.architecture-dependency-admission-native-3 } + expect: { status: passed } + - id: architecture-dependency-admission-native-4 + action: { verifier: api.golden.architecture-dependency-admission-native-4 } + expect: { status: passed } + - id: architecture-dependency-admission-native-5 + action: { verifier: api.golden.architecture-dependency-admission-native-5 } + expect: { status: passed } + - id: architecture-relation-scheduling-unit-1 + action: { verifier: api.golden.architecture-relation-scheduling-unit-1 } + expect: { status: passed } + - id: architecture-relation-scheduling-unit-2 + action: { verifier: api.golden.architecture-relation-scheduling-unit-2 } + expect: { status: passed } + - id: architecture-relation-scheduling-unit-3 + action: { verifier: api.golden.architecture-relation-scheduling-unit-3 } + expect: { status: passed } + - id: architecture-relation-scheduling-unit-4 + action: { verifier: api.golden.architecture-relation-scheduling-unit-4 } + expect: { status: passed } + - id: architecture-relation-scheduling-native-1 + action: { verifier: api.golden.architecture-relation-scheduling-native-1 } + expect: { status: passed } + - id: architecture-relation-scheduling-native-2 + action: { verifier: api.golden.architecture-relation-scheduling-native-2 } + expect: { status: passed } + - id: architecture-relation-scheduling-native-3 + action: { verifier: api.golden.architecture-relation-scheduling-native-3 } + expect: { status: passed } + - id: architecture-relation-scheduling-native-4 + action: { verifier: api.golden.architecture-relation-scheduling-native-4 } + expect: { status: passed } + - id: architecture-relation-scheduling-native-5 + action: { verifier: api.golden.architecture-relation-scheduling-native-5 } + expect: { status: passed } + - id: architecture-relation-publication-unit-1 + action: { verifier: api.golden.architecture-relation-publication-unit-1 } + expect: { status: passed } + - id: architecture-relation-publication-unit-2 + action: { verifier: api.golden.architecture-relation-publication-unit-2 } + expect: { status: passed } + - id: architecture-relation-publication-unit-3 + action: { verifier: api.golden.architecture-relation-publication-unit-3 } + expect: { status: passed } + - id: architecture-relation-publication-native-1 + action: { verifier: api.golden.architecture-relation-publication-native-1 } + expect: { status: passed } + - id: architecture-relation-publication-native-2 + action: { verifier: api.golden.architecture-relation-publication-native-2 } + expect: { status: passed } + - id: architecture-relation-publication-native-3 + action: { verifier: api.golden.architecture-relation-publication-native-3 } + expect: { status: passed } + - id: architecture-relation-publication-native-4 + action: { verifier: api.golden.architecture-relation-publication-native-4 } + expect: { status: passed } + - id: architecture-relation-publication-native-5 + action: { verifier: api.golden.architecture-relation-publication-native-5 } + expect: { status: passed } + - id: architecture-relation-authoring-unit-1 + action: { verifier: api.golden.architecture-relation-authoring-unit-1 } + expect: { status: passed } + - id: architecture-relation-authoring-unit-2 + action: { verifier: api.golden.architecture-relation-authoring-unit-2 } + expect: { status: passed } + - id: architecture-relation-authoring-unit-3 + action: { verifier: api.golden.architecture-relation-authoring-unit-3 } + expect: { status: passed } + - id: architecture-relation-authoring-unit-4 + action: { verifier: api.golden.architecture-relation-authoring-unit-4 } + expect: { status: passed } + - id: architecture-relation-authoring-native-1 + action: { verifier: api.golden.architecture-relation-authoring-native-1 } + expect: { status: passed } + - id: architecture-relation-authoring-native-2 + action: { verifier: api.golden.architecture-relation-authoring-native-2 } + expect: { status: passed } + - id: architecture-relation-authoring-native-3 + action: { verifier: api.golden.architecture-relation-authoring-native-3 } + expect: { status: passed } + - id: architecture-relation-authoring-native-4 + action: { verifier: api.golden.architecture-relation-authoring-native-4 } + expect: { status: passed } + - id: architecture-relation-authoring-native-5 + action: { verifier: api.golden.architecture-relation-authoring-native-5 } + expect: { status: passed } + - id: architecture-relation-authoring-native-6 + action: { verifier: api.golden.architecture-relation-authoring-native-6 } + expect: { status: passed } + - id: architecture-relation-unit-1 + action: { verifier: api.golden.architecture-relation-unit-1 } + expect: { status: passed } + - id: architecture-relation-unit-2 + action: { verifier: api.golden.architecture-relation-unit-2 } + expect: { status: passed } + - id: architecture-relation-unit-3 + action: { verifier: api.golden.architecture-relation-unit-3 } + expect: { status: passed } + - id: architecture-relation-unit-4 + action: { verifier: api.golden.architecture-relation-unit-4 } + expect: { status: passed } + - id: architecture-relation-native-1 + action: { verifier: api.golden.architecture-relation-native-1 } + expect: { status: passed } + - id: architecture-relation-native-2 + action: { verifier: api.golden.architecture-relation-native-2 } + expect: { status: passed } + - id: architecture-relation-native-3 + action: { verifier: api.golden.architecture-relation-native-3 } + expect: { status: passed } + - id: architecture-relation-native-4 + action: { verifier: api.golden.architecture-relation-native-4 } + expect: { status: passed } + - id: architecture-relation-native-5 + action: { verifier: api.golden.architecture-relation-native-5 } + expect: { status: passed } + - id: architecture-relation-native-6 + action: { verifier: api.golden.architecture-relation-native-6 } + expect: { status: passed } + - id: architecture-relation-native-7 + action: { verifier: api.golden.architecture-relation-native-7 } + expect: { status: passed } + - id: architecture-cross-project-proxy-unit-1 + action: { verifier: api.golden.architecture-cross-project-proxy-unit-1 } + expect: { status: passed } + - id: architecture-cross-project-proxy-unit-2 + action: { verifier: api.golden.architecture-cross-project-proxy-unit-2 } + expect: { status: passed } + - id: architecture-cross-project-proxy-unit-3 + action: { verifier: api.golden.architecture-cross-project-proxy-unit-3 } + expect: { status: passed } + - id: architecture-cross-project-proxy-unit-4 + action: { verifier: api.golden.architecture-cross-project-proxy-unit-4 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-1 + action: { verifier: api.golden.architecture-cross-project-proxy-native-1 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-2 + action: { verifier: api.golden.architecture-cross-project-proxy-native-2 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-3 + action: { verifier: api.golden.architecture-cross-project-proxy-native-3 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-4 + action: { verifier: api.golden.architecture-cross-project-proxy-native-4 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-5 + action: { verifier: api.golden.architecture-cross-project-proxy-native-5 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-6 + action: { verifier: api.golden.architecture-cross-project-proxy-native-6 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-7 + action: { verifier: api.golden.architecture-cross-project-proxy-native-7 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-8 + action: { verifier: api.golden.architecture-cross-project-proxy-native-8 } + expect: { status: passed } + - id: architecture-cross-project-proxy-native-9 + action: { verifier: api.golden.architecture-cross-project-proxy-native-9 } + expect: { status: passed } + - id: architecture-record-custody-native-1 + action: { verifier: api.golden.architecture-record-custody-native-1 } + expect: { status: passed } + - id: architecture-record-custody-native-2 + action: { verifier: api.golden.architecture-record-custody-native-2 } + expect: { status: passed } + - id: architecture-record-custody-native-3 + action: { verifier: api.golden.architecture-record-custody-native-3 } + expect: { status: passed } + - id: architecture-record-custody-native-4 + action: { verifier: api.golden.architecture-record-custody-native-4 } + expect: { status: passed } + - id: architecture-start-authority-1 + action: { verifier: api.golden.architecture-start-authority-1 } + expect: { status: passed } + - id: architecture-start-authority-2 + action: { verifier: api.golden.architecture-start-authority-2 } + expect: { status: passed } + - id: architecture-start-authority-3 + action: { verifier: api.golden.architecture-start-authority-3 } + expect: { status: passed } + - id: architecture-start-native-1 + action: { verifier: api.golden.architecture-start-native-1 } + expect: { status: passed } + - id: architecture-start-native-2 + action: { verifier: api.golden.architecture-start-native-2 } + expect: { status: passed } + - id: architecture-start-native-3 + action: { verifier: api.golden.architecture-start-native-3 } + expect: { status: passed } + - id: architecture-start-native-4 + action: { verifier: api.golden.architecture-start-native-4 } + expect: { status: passed } + - id: architecture-start-native-5 + action: { verifier: api.golden.architecture-start-native-5 } + expect: { status: passed } + - id: architecture-start-native-6 + action: { verifier: api.golden.architecture-start-native-6 } + expect: { status: passed } + - id: architecture-start-native-7 + action: { verifier: api.golden.architecture-start-native-7 } + expect: { status: passed } + - id: architecture-start-native-8 + action: { verifier: api.golden.architecture-start-native-8 } + expect: { status: passed } + - id: architecture-start-native-9 + action: { verifier: api.golden.architecture-start-native-9 } + expect: { status: passed } + - id: architecture-start-native-10 + action: { verifier: api.golden.architecture-start-native-10 } + expect: { status: passed } + - id: architecture-recurring-intent-unit-1 + action: { verifier: api.golden.architecture-recurring-intent-unit-1 } + expect: { status: passed } + - id: execution-recurrence-numbers-unit + action: { verifier: api.golden.execution-recurrence-numbers-unit } + expect: { status: passed } + - id: execution-recurrence-numbers-native + action: { verifier: api.golden.execution-recurrence-numbers-native } + expect: { status: passed } + - id: architecture-recurring-intent-unit-2 + action: { verifier: api.golden.architecture-recurring-intent-unit-2 } + expect: { status: passed } + - id: architecture-recurring-intent-unit-3 + action: { verifier: api.golden.architecture-recurring-intent-unit-3 } + expect: { status: passed } + - id: architecture-recurring-intent-unit-4 + action: { verifier: api.golden.architecture-recurring-intent-unit-4 } + expect: { status: passed } + - id: architecture-recurring-replay-sql-1 + action: { verifier: api.golden.architecture-recurring-replay-sql-1 } + expect: { status: passed } + - id: architecture-recurring-replay-sql-2 + action: { verifier: api.golden.architecture-recurring-replay-sql-2 } + expect: { status: passed } + - id: architecture-recurring-replay-sql-3 + action: { verifier: api.golden.architecture-recurring-replay-sql-3 } + expect: { status: passed } + - id: architecture-recurring-replay-sql-4 + action: { verifier: api.golden.architecture-recurring-replay-sql-4 } + expect: { status: passed } + - id: architecture-recurring-replay-sql-5 + action: { verifier: api.golden.architecture-recurring-replay-sql-5 } + expect: { status: passed } + - id: architecture-profile-inventory-1 + action: { verifier: api.golden.architecture-profile-inventory-1 } + expect: { status: passed } + - id: architecture-profile-inventory-2 + action: { verifier: api.golden.architecture-profile-inventory-2 } + expect: { status: passed } + - id: architecture-profile-inventory-3 + action: { verifier: api.golden.architecture-profile-inventory-3 } + expect: { status: passed } + - id: architecture-profile-inventory-4 + action: { verifier: api.golden.architecture-profile-inventory-4 } + expect: { status: passed } + - id: execution-graph-watch-cursor-unit + action: { verifier: api.golden.execution-graph-watch-cursor-unit } + expect: { status: passed } + - id: architecture-graph-watch-1 + action: { verifier: api.golden.architecture-graph-watch-1 } + expect: { status: passed } + - id: architecture-graph-watch-2 + action: { verifier: api.golden.architecture-graph-watch-2 } + expect: { status: passed } + - id: architecture-terminal-race-1 + action: { verifier: api.golden.architecture-terminal-race-1 } + expect: { status: passed } + - id: architecture-terminal-race-2 + action: { verifier: api.golden.architecture-terminal-race-2 } + expect: { status: passed } + - id: architecture-terminal-race-3 + action: { verifier: api.golden.architecture-terminal-race-3 } + expect: { status: passed } + - id: architecture-terminal-race-4 + action: { verifier: api.golden.architecture-terminal-race-4 } + expect: { status: passed } + - id: architecture-terminal-race-5 + action: { verifier: api.golden.architecture-terminal-race-5 } + expect: { status: passed } + - id: architecture-terminal-race-6 + action: { verifier: api.golden.architecture-terminal-race-6 } + expect: { status: passed } + - id: architecture-terminal-race-7 + action: { verifier: api.golden.architecture-terminal-race-7 } + expect: { status: passed } + - id: architecture-terminal-race-8 + action: { verifier: api.golden.architecture-terminal-race-8 } + expect: { status: passed } + - id: architecture-initial-admission-1 + action: { verifier: api.golden.architecture-initial-admission-1 } + expect: { status: passed } + - id: architecture-initial-admission-2 + action: { verifier: api.golden.architecture-initial-admission-2 } + expect: { status: passed } + - id: architecture-initial-admission-3 + action: { verifier: api.golden.architecture-initial-admission-3 } + expect: { status: passed } + - id: architecture-initial-admission-4 + action: { verifier: api.golden.architecture-initial-admission-4 } + expect: { status: passed } + - id: architecture-initial-admission-5 + action: { verifier: api.golden.architecture-initial-admission-5 } + expect: { status: passed } + - id: architecture-initial-admission-6 + action: { verifier: api.golden.architecture-initial-admission-6 } + expect: { status: passed } + - id: architecture-counter-scope-1 + action: { verifier: api.golden.architecture-counter-scope-1 } + expect: { status: passed } + - id: architecture-counter-scope-2 + action: { verifier: api.golden.architecture-counter-scope-2 } + expect: { status: passed } + - id: architecture-counter-scope-3 + action: { verifier: api.golden.architecture-counter-scope-3 } + expect: { status: passed } + - id: architecture-living-graph-postgres-1 + action: { verifier: api.golden.architecture-living-graph-postgres-1 } + expect: { status: passed } + - id: architecture-living-graph-postgres-2 + action: { verifier: api.golden.architecture-living-graph-postgres-2 } + expect: { status: passed } + - id: architecture-living-graph-postgres-3 + action: { verifier: api.golden.architecture-living-graph-postgres-3 } + expect: { status: passed } + - id: architecture-living-graph-unit-1 + action: { verifier: api.golden.architecture-living-graph-unit-1 } + expect: { status: passed } + - id: architecture-living-graph-unit-2 + action: { verifier: api.golden.architecture-living-graph-unit-2 } + expect: { status: passed } + - id: architecture-living-graph-unit-3 + action: { verifier: api.golden.architecture-living-graph-unit-3 } + expect: { status: passed } + - id: architecture-living-graph-unit-4 + action: { verifier: api.golden.architecture-living-graph-unit-4 } + expect: { status: passed } + - id: architecture-living-graph-unit-5 + action: { verifier: api.golden.architecture-living-graph-unit-5 } + expect: { status: passed } + - id: architecture-living-graph-unit-6 + action: { verifier: api.golden.architecture-living-graph-unit-6 } + expect: { status: passed } + - id: architecture-living-graph-sql-1 + action: { verifier: api.golden.architecture-living-graph-sql-1 } + expect: { status: passed } + - id: architecture-living-graph-sql-2 + action: { verifier: api.golden.architecture-living-graph-sql-2 } + expect: { status: passed } + - id: architecture-living-graph-sql-3 + action: { verifier: api.golden.architecture-living-graph-sql-3 } + expect: { status: passed } + - id: architecture-living-graph-sql-4 + action: { verifier: api.golden.architecture-living-graph-sql-4 } + expect: { status: passed } + - id: architecture-living-graph-sql-5 + action: { verifier: api.golden.architecture-living-graph-sql-5 } + expect: { status: passed } + - id: architecture-living-graph-sql-6 + action: { verifier: api.golden.architecture-living-graph-sql-6 } + expect: { status: passed } + - id: architecture-living-graph-sql-7 + action: { verifier: api.golden.architecture-living-graph-sql-7 } + expect: { status: passed } + - id: architecture-completion-sql-4 + action: { verifier: api.golden.architecture-completion-sql-4 } + expect: { status: passed } + - id: architecture-completion-unit-1 + action: { verifier: api.golden.architecture-completion-unit-1 } + expect: { status: passed } + - id: architecture-completion-unit-2 + action: { verifier: api.golden.architecture-completion-unit-2 } + expect: { status: passed } + - id: architecture-completion-sql-1 + action: { verifier: api.golden.architecture-completion-sql-1 } + expect: { status: passed } + - id: architecture-completion-sql-2 + action: { verifier: api.golden.architecture-completion-sql-2 } + expect: { status: passed } + - id: architecture-completion-sql-3 + action: { verifier: api.golden.architecture-completion-sql-3 } + expect: { status: passed } + - id: architecture-return-sql-1 + action: { verifier: api.golden.architecture-return-sql-1 } + expect: { status: passed } + - id: architecture-return-sql-2 + action: { verifier: api.golden.architecture-return-sql-2 } + expect: { status: passed } + - id: architecture-return-sql-3 + action: { verifier: api.golden.architecture-return-sql-3 } + expect: { status: passed } + - id: architecture-return-sql-4 + action: { verifier: api.golden.architecture-return-sql-4 } + expect: { status: passed } + - id: architecture-terminal-performance-1 + action: { verifier: api.golden.architecture-terminal-performance-1 } + expect: { status: passed } + - id: architecture-terminal-performance-2 + action: { verifier: api.golden.architecture-terminal-performance-2 } + expect: { status: passed } + - id: architecture-terminal-performance-3 + action: { verifier: api.golden.architecture-terminal-performance-3 } + expect: { status: passed } + - id: architecture-terminal-report-sql-1 + action: { verifier: api.golden.architecture-terminal-report-sql-1 } + expect: { status: passed } + - id: architecture-terminal-report-sql-2 + action: { verifier: api.golden.architecture-terminal-report-sql-2 } + expect: { status: passed } + - id: architecture-terminal-report-sql-3 + action: { verifier: api.golden.architecture-terminal-report-sql-3 } + expect: { status: passed } + - id: architecture-terminal-report-sql-4 + action: { verifier: api.golden.architecture-terminal-report-sql-4 } + expect: { status: passed } + - id: architecture-workspace-identity-1 + action: { verifier: api.golden.architecture-workspace-identity-1 } + expect: { status: passed } + - id: architecture-workspace-identity-2 + action: { verifier: api.golden.architecture-workspace-identity-2 } + expect: { status: passed } + - id: architecture-workspace-identity-3 + action: { verifier: api.golden.architecture-workspace-identity-3 } + expect: { status: passed } + - id: architecture-workspace-readback-sql-1 + action: { verifier: api.golden.architecture-workspace-readback-sql-1 } + expect: { status: passed } + - id: architecture-workspace-readback-sql-2 + action: { verifier: api.golden.architecture-workspace-readback-sql-2 } + expect: { status: passed } + - id: architecture-workspace-readback-sql-3 + action: { verifier: api.golden.architecture-workspace-readback-sql-3 } + expect: { status: passed } + - id: architecture-workspace-unit-1 + action: { verifier: api.golden.architecture-workspace-unit-1 } + expect: { status: passed } + - id: architecture-workspace-unit-2 + action: { verifier: api.golden.architecture-workspace-unit-2 } + expect: { status: passed } + - id: architecture-workspace-unit-3 + action: { verifier: api.golden.architecture-workspace-unit-3 } + expect: { status: passed } + - id: architecture-workspace-sql-1 + action: { verifier: api.golden.architecture-workspace-sql-1 } + expect: { status: passed } + - id: architecture-workspace-sql-2 + action: { verifier: api.golden.architecture-workspace-sql-2 } + expect: { status: passed } + - id: architecture-workspace-sql-3 + action: { verifier: api.golden.architecture-workspace-sql-3 } + expect: { status: passed } + - id: architecture-workspace-sql-4 + action: { verifier: api.golden.architecture-workspace-sql-4 } + expect: { status: passed } + - id: architecture-workspace-sql-5 + action: { verifier: api.golden.architecture-workspace-sql-5 } + expect: { status: passed } + - id: architecture-workspace-sql-6 + action: { verifier: api.golden.architecture-workspace-sql-6 } + expect: { status: passed } + - id: architecture-workspace-sql-7 + action: { verifier: api.golden.architecture-workspace-sql-7 } + expect: { status: passed } + - id: architecture-workday-terminal-1 + action: { verifier: agent.golden.architecture-workday-terminal-1 } + expect: { status: passed } + - id: architecture-workday-terminal-2 + action: { verifier: agent.golden.architecture-workday-terminal-2 } + expect: { status: passed } + - id: architecture-workday-terminal-3 + action: { verifier: agent.golden.architecture-workday-terminal-3 } + expect: { status: passed } + - id: architecture-workday-terminal-4 + action: { verifier: agent.golden.architecture-workday-terminal-4 } + expect: { status: passed } + - id: architecture-workday-terminal-5 + action: { verifier: agent.golden.architecture-workday-terminal-5 } + expect: { status: passed } + - id: architecture-workday-recovery-1 + action: { verifier: agent.golden.architecture-workday-recovery-1 } + expect: { status: passed } + - id: architecture-workday-recovery-2 + action: { verifier: agent.golden.architecture-workday-recovery-2 } + expect: { status: passed } + - id: architecture-cancellation-sql-1 + action: { verifier: api.golden.architecture-cancellation-sql-1 } + expect: { status: passed } + - id: architecture-cancellation-sql-2 + action: { verifier: api.golden.architecture-cancellation-sql-2 } + expect: { status: passed } + - id: architecture-cancellation-sql-3 + action: { verifier: api.golden.architecture-cancellation-sql-3 } + expect: { status: passed } + - id: architecture-cancellation-sql-4 + action: { verifier: api.golden.architecture-cancellation-sql-4 } + expect: { status: passed } + - id: architecture-cancellation-sql-5 + action: { verifier: api.golden.architecture-cancellation-sql-5 } + expect: { status: passed } + - id: architecture-recovery-unit-1 + action: { verifier: api.golden.architecture-recovery-unit-1 } + expect: { status: passed } + - id: architecture-recovery-unit-2 + action: { verifier: api.golden.architecture-recovery-unit-2 } + expect: { status: passed } + - id: architecture-recovery-sql-1 + action: { verifier: api.golden.architecture-recovery-sql-1 } + expect: { status: passed } + - id: architecture-recovery-sql-2 + action: { verifier: api.golden.architecture-recovery-sql-2 } + expect: { status: passed } + - id: architecture-provider-settlement-existing-1 + action: { verifier: api.golden.architecture-provider-settlement-existing-1 } + expect: { status: passed } + - id: architecture-provider-settlement-existing-2 + action: { verifier: api.golden.architecture-provider-settlement-existing-2 } + expect: { status: passed } + - id: architecture-provider-settlement-existing-3 + action: { verifier: api.golden.architecture-provider-settlement-existing-3 } + expect: { status: passed } + - id: architecture-provider-accounting-unit-1 + action: { verifier: api.golden.architecture-provider-accounting-unit-1 } + expect: { status: passed } + - id: architecture-provider-accounting-unit-2 + action: { verifier: api.golden.architecture-provider-accounting-unit-2 } + expect: { status: passed } + - id: architecture-provider-accounting-unit-3 + action: { verifier: api.golden.architecture-provider-accounting-unit-3 } + expect: { status: passed } + - id: architecture-provider-accounting-unit-4 + action: { verifier: api.golden.architecture-provider-accounting-unit-4 } + expect: { status: passed } + - id: architecture-provider-accounting-unit-5 + action: { verifier: api.golden.architecture-provider-accounting-unit-5 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-1 + action: { verifier: api.golden.architecture-provider-accounting-sql-1 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-2 + action: { verifier: api.golden.architecture-provider-accounting-sql-2 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-3 + action: { verifier: api.golden.architecture-provider-accounting-sql-3 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-4 + action: { verifier: api.golden.architecture-provider-accounting-sql-4 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-5 + action: { verifier: api.golden.architecture-provider-accounting-sql-5 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-6 + action: { verifier: api.golden.architecture-provider-accounting-sql-6 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-7 + action: { verifier: api.golden.architecture-provider-accounting-sql-7 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-8 + action: { verifier: api.golden.architecture-provider-accounting-sql-8 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-9 + action: { verifier: api.golden.architecture-provider-accounting-sql-9 } + expect: { status: passed } + - id: architecture-provider-accounting-sql-10 + action: { verifier: api.golden.architecture-provider-accounting-sql-10 } + expect: { status: passed } + - id: architecture-settlement-unit-7 + action: { verifier: api.golden.architecture-settlement-unit-7 } + expect: { status: passed } + - id: architecture-settlement-sql-9 + action: { verifier: api.golden.architecture-settlement-sql-9 } + expect: { status: passed } + - id: architecture-settlement-unit-1 + action: { verifier: api.golden.architecture-settlement-unit-1 } + expect: { status: passed } + - id: architecture-settlement-unit-2 + action: { verifier: api.golden.architecture-settlement-unit-2 } + expect: { status: passed } + - id: architecture-settlement-unit-3 + action: { verifier: api.golden.architecture-settlement-unit-3 } + expect: { status: passed } + - id: architecture-settlement-unit-4 + action: { verifier: api.golden.architecture-settlement-unit-4 } + expect: { status: passed } + - id: architecture-settlement-unit-5 + action: { verifier: api.golden.architecture-settlement-unit-5 } + expect: { status: passed } + - id: architecture-settlement-unit-6 + action: { verifier: api.golden.architecture-settlement-unit-6 } + expect: { status: passed } + - id: architecture-settlement-sql-1 + action: { verifier: api.golden.architecture-settlement-sql-1 } + expect: { status: passed } + - id: architecture-settlement-sql-2 + action: { verifier: api.golden.architecture-settlement-sql-2 } + expect: { status: passed } + - id: architecture-settlement-sql-3 + action: { verifier: api.golden.architecture-settlement-sql-3 } + expect: { status: passed } + - id: architecture-settlement-sql-4 + action: { verifier: api.golden.architecture-settlement-sql-4 } + expect: { status: passed } + - id: architecture-settlement-sql-5 + action: { verifier: api.golden.architecture-settlement-sql-5 } + expect: { status: passed } + - id: architecture-settlement-sql-6 + action: { verifier: api.golden.architecture-settlement-sql-6 } + expect: { status: passed } + - id: architecture-settlement-sql-7 + action: { verifier: api.golden.architecture-settlement-sql-7 } + expect: { status: passed } + - id: architecture-settlement-sql-8 + action: { verifier: api.golden.architecture-settlement-sql-8 } + expect: { status: passed } + - id: architecture-usage-pages-1 + action: { verifier: api.golden.architecture-usage-pages-1 } + expect: { status: passed } + - id: architecture-usage-pages-2 + action: { verifier: api.golden.architecture-usage-pages-2 } + expect: { status: passed } + - id: architecture-usage-pages-3 + action: { verifier: api.golden.architecture-usage-pages-3 } + expect: { status: passed } + - id: architecture-assignment-pages-1 + action: { verifier: api.golden.architecture-assignment-pages-1 } + expect: { status: passed } + - id: architecture-assignment-pages-2 + action: { verifier: api.golden.architecture-assignment-pages-2 } + expect: { status: passed } + - id: architecture-workday-observation-pages + action: { verifier: api.golden.architecture-workday-observation-pages } + expect: { status: passed } + - id: architecture-workday-observation-unavailable + action: { verifier: api.golden.architecture-workday-observation-unavailable } + expect: { status: passed } + - id: architecture-admission-replay-unit-1 + action: { verifier: api.golden.architecture-admission-replay-unit-1 } + expect: { status: passed } + - id: architecture-admission-replay-unit-2 + action: { verifier: api.golden.architecture-admission-replay-unit-2 } + expect: { status: passed } + - id: architecture-admission-replay-unit-3 + action: { verifier: api.golden.architecture-admission-replay-unit-3 } + expect: { status: passed } + - id: architecture-admission-replay-unit-4 + action: { verifier: api.golden.architecture-admission-replay-unit-4 } + expect: { status: passed } + - id: architecture-admission-replay-unit-5 + action: { verifier: api.golden.architecture-admission-replay-unit-5 } + expect: { status: passed } + - id: architecture-admission-replay-unit-6 + action: { verifier: api.golden.architecture-admission-replay-unit-6 } + expect: { status: passed } + - id: architecture-admission-replay-unit-7 + action: { verifier: api.golden.architecture-admission-replay-unit-7 } + expect: { status: passed } + - id: architecture-admission-replay-unit-8 + action: { verifier: api.golden.architecture-admission-replay-unit-8 } + expect: { status: passed } + - id: architecture-admission-replay-unit-9 + action: { verifier: api.golden.architecture-admission-replay-unit-9 } + expect: { status: passed } + - id: architecture-admission-replay-native-1 + action: { verifier: api.golden.architecture-admission-replay-native-1 } + expect: { status: passed } + - id: architecture-admission-replay-native-2 + action: { verifier: api.golden.architecture-admission-replay-native-2 } + expect: { status: passed } + - id: architecture-admission-replay-native-3 + action: { verifier: api.golden.architecture-admission-replay-native-3 } + expect: { status: passed } + - id: architecture-admission-replay-native-4 + action: { verifier: api.golden.architecture-admission-replay-native-4 } + expect: { status: passed } + - id: architecture-admission-replay-native-5 + action: { verifier: api.golden.architecture-admission-replay-native-5 } + expect: { status: passed } + - id: architecture-admission-replay-native-6 + action: { verifier: api.golden.architecture-admission-replay-native-6 } + expect: { status: passed } + - id: architecture-admission-replay-native-7 + action: { verifier: api.golden.architecture-admission-replay-native-7 } + expect: { status: passed } + - id: architecture-admission-replay-native-8 + action: { verifier: api.golden.architecture-admission-replay-native-8 } + expect: { status: passed } + - id: architecture-decision-proposal-unit-no-substitute + action: { verifier: api.golden.architecture-decision-proposal-unit-no-substitute } + expect: { status: passed } + - id: architecture-decision-review-unit-complete + action: { verifier: api.golden.architecture-decision-review-unit-complete } + expect: { status: passed } + - id: architecture-decision-review-unit-required + action: { verifier: api.golden.architecture-decision-review-unit-required } + expect: { status: passed } + - id: architecture-decision-review-unit-positions + action: { verifier: api.golden.architecture-decision-review-unit-positions } + expect: { status: passed } + - id: architecture-decision-review-unit-disposition + action: { verifier: api.golden.architecture-decision-review-unit-disposition } + expect: { status: passed } + - id: architecture-decision-review-unit-maker + action: { verifier: api.golden.architecture-decision-review-unit-maker } + expect: { status: passed } + - id: architecture-decision-review-unit-conflict + action: { verifier: api.golden.architecture-decision-review-unit-conflict } + expect: { status: passed } + - id: architecture-decision-review-unit-time + action: { verifier: api.golden.architecture-decision-review-unit-time } + expect: { status: passed } + - id: architecture-decision-review-native-complete + action: { verifier: api.golden.architecture-decision-review-native-complete } + expect: { status: passed } + - id: architecture-decision-review-native-positions + action: { verifier: api.golden.architecture-decision-review-native-positions } + expect: { status: passed } + - id: architecture-decision-review-native-required + action: { verifier: api.golden.architecture-decision-review-native-required } + expect: { status: passed } + - id: architecture-decision-review-native-conflict + action: { verifier: api.golden.architecture-decision-review-native-conflict } + expect: { status: passed } + - id: architecture-decision-review-native-maker + action: { verifier: api.golden.architecture-decision-review-native-maker } + expect: { status: passed } + - id: architecture-decision-review-native-time + action: { verifier: api.golden.architecture-decision-review-native-time } + expect: { status: passed } + - id: architecture-decision-review-native-denial + action: { verifier: api.golden.architecture-decision-review-native-denial } + expect: { status: passed } + - id: architecture-decision-review-native-predecessor + action: { verifier: api.golden.architecture-decision-review-native-predecessor } + expect: { status: passed } + - id: architecture-decision-proposal-native-no-substitute + action: { verifier: api.golden.architecture-decision-proposal-native-no-substitute } + expect: { status: passed } + - id: architecture-decision-proposal-native-stale + action: { verifier: api.golden.architecture-decision-proposal-native-stale } + expect: { status: passed } + - id: execution-decision-producer-unit-1 + action: { verifier: api.golden.execution-decision-producer-unit-1 } + expect: { status: passed } + - id: execution-decision-atomic-unit + action: { verifier: api.golden.execution-decision-atomic-unit } + expect: { status: passed } + - id: execution-decision-workspace-unit + action: { verifier: api.golden.execution-decision-workspace-unit } + expect: { status: passed } + - id: execution-decision-demand-unit + action: { verifier: api.golden.execution-decision-demand-unit } + expect: { status: passed } + - id: execution-decision-producer-native-1 + action: { verifier: api.golden.execution-decision-producer-native-1 } + expect: { status: passed } + - id: execution-provider-offer-unit-1 + action: { verifier: api.golden.execution-provider-offer-unit-1 } + expect: { status: passed } + - id: execution-provider-offer-unit-2 + action: { verifier: api.golden.execution-provider-offer-unit-2 } + expect: { status: passed } + - id: architecture-readiness-complete + action: { verifier: api.golden.architecture-readiness-complete } + expect: { status: passed } + - id: architecture-readiness-required + action: { verifier: api.golden.architecture-readiness-required } + expect: { status: passed } + - id: architecture-readiness-malformed + action: { verifier: api.golden.architecture-readiness-malformed } + expect: { status: passed } + - id: architecture-readiness-estimates + action: { verifier: api.golden.architecture-readiness-estimates } + expect: { status: passed } + - id: architecture-readiness-dependencies + action: { verifier: api.golden.architecture-readiness-dependencies } + expect: { status: passed } + - id: architecture-readiness-draft + action: { verifier: api.golden.architecture-readiness-draft } + expect: { status: passed } + - id: architecture-readiness-native-optional + action: { verifier: api.golden.architecture-readiness-native-optional } + expect: { status: passed } + - id: architecture-readiness-native-custody + action: { verifier: api.golden.architecture-readiness-native-custody } + expect: { status: passed } + - id: architecture-readiness-native-dependencies + action: { verifier: api.golden.architecture-readiness-native-dependencies } + expect: { status: passed } + - id: architecture-readiness-native-denial + action: { verifier: api.golden.architecture-readiness-native-denial } + expect: { status: passed } + - id: architecture-calibration-sql-scope + action: { verifier: api.golden.architecture-calibration-sql-scope } + expect: { status: passed } + - id: architecture-calibration-sql-malformed + action: { verifier: api.golden.architecture-calibration-sql-malformed } + expect: { status: passed } + - id: architecture-closeout-unit-failed + action: { verifier: api.golden.architecture-closeout-unit-failed } + expect: { status: passed } + - id: architecture-closeout-unit-cancelled + action: { verifier: api.golden.architecture-closeout-unit-cancelled } + expect: { status: passed } + - id: architecture-closeout-unit-stale + action: { verifier: api.golden.architecture-closeout-unit-stale } + expect: { status: passed } + - id: architecture-closeout-unit-single + action: { verifier: api.golden.architecture-closeout-unit-single } + expect: { status: passed } + - id: architecture-closeout-unit-time + action: { verifier: api.golden.architecture-closeout-unit-time } + expect: { status: passed } + - id: architecture-closeout-sql-failed + action: { verifier: api.golden.architecture-closeout-sql-failed } + expect: { status: passed } + - id: architecture-closeout-sql-cancelled + action: { verifier: api.golden.architecture-closeout-sql-cancelled } + expect: { status: passed } + - id: architecture-closeout-sql-stale + action: { verifier: api.golden.architecture-closeout-sql-stale } + expect: { status: passed } + - id: architecture-closeout-sql-single + action: { verifier: api.golden.architecture-closeout-sql-single } + expect: { status: passed } + - id: architecture-closeout-sql-settlement + action: { verifier: api.golden.architecture-closeout-sql-settlement } + expect: { status: passed } + - id: architecture-closeout-sql-time + action: { verifier: api.golden.architecture-closeout-sql-time } + expect: { status: passed } + - id: architecture-reporting-rename + action: { verifier: api.golden.architecture-reporting-rename } + expect: { status: passed } + - id: architecture-closeout-selection + action: { verifier: api.golden.architecture-closeout-selection } + expect: { status: passed } + - id: architecture-reporting-event-denial + action: { verifier: api.golden.architecture-reporting-event-denial } + expect: { status: passed } + - id: architecture-activity-event-scope + action: { verifier: api.golden.architecture-activity-event-scope } + expect: { status: passed } + - id: architecture-disabled-reporting + action: { verifier: api.golden.architecture-disabled-reporting } + expect: { status: passed } + - id: architecture-closeout-sql + action: { verifier: api.golden.architecture-closeout-sql } + expect: { status: passed } + - id: architecture-event-sql + action: { verifier: api.golden.architecture-event-sql } + expect: { status: passed } + - id: verification-prerequisite-custody + action: { verifier: api.golden.verification-prerequisite-custody } + expect: { status: passed } + - id: review-calibration-no-floor + action: { verifier: api.golden.review-calibration-no-floor } + expect: { status: passed } + - id: review-history-scope + action: { verifier: api.golden.review-history-scope } + expect: { status: passed } + - id: governance-review-not-dispatched + action: { verifier: api.golden.governance-review-not-dispatched } + expect: { status: passed } + - id: transaction-reprojection + action: { verifier: api.golden.transaction-reprojection } + expect: { status: passed } + - id: transaction-retry-denial + action: { verifier: api.golden.transaction-retry-denial } + expect: { status: passed } + - id: transaction-inherited-denial + action: { verifier: api.golden.transaction-inherited-denial } + expect: { status: passed } + - id: invocation-terminal-returned + action: { verifier: api.golden.invocation-terminal-returned } + expect: { status: passed } + - id: invocation-terminal-failed + action: { verifier: api.golden.invocation-terminal-failed } + expect: { status: passed } + - id: invocation-terminal-cancelled + action: { verifier: api.golden.invocation-terminal-cancelled } + expect: { status: passed } + - id: invocation-terminal-foreign-team + action: { verifier: api.golden.invocation-terminal-foreign-team } + expect: { status: passed } + - id: invocation-terminal-foreign-invocation + action: { verifier: api.golden.invocation-terminal-foreign-invocation } + expect: { status: passed } + - id: invocation-terminal-leased + action: { verifier: api.golden.invocation-terminal-leased } + expect: { status: passed } + - id: progress-postgres-custody + action: { verifier: api.golden.progress-postgres-custody } + expect: { status: passed } + - id: preparation-progress + action: { verifier: api.golden.preparation-progress } + expect: { status: passed } + - id: preparation-no-commit-wait + action: { verifier: api.golden.preparation-no-commit-wait } + expect: { status: passed } + - id: provider-progress-authority + action: { verifier: api.golden.provider-progress-authority } + expect: { status: passed } + - id: provider-terminal-projection + action: { verifier: api.golden.provider-terminal-projection } + expect: { status: passed } + - id: terminal-projection-fatal + action: { verifier: api.golden.terminal-projection-fatal } + expect: { status: passed } + - id: terminal-projection-replay + action: { verifier: api.golden.terminal-projection-replay } + expect: { status: passed } + - id: progress-idempotency + action: { verifier: api.golden.progress-idempotency } + expect: { status: passed } + - id: workday-lifecycle-projection + action: { verifier: api.golden.workday-lifecycle-projection } + expect: { status: passed } + - id: progress-token-denial + action: { verifier: api.golden.progress-token-denial } + expect: { status: passed } + - id: late-planning-round + action: { verifier: api.golden.late-planning-round } + expect: { status: passed } + - id: fluid-planning-window + action: { verifier: api.golden.fluid-planning-window } + expect: { status: passed } + - id: unusable-execution-window + action: { verifier: api.golden.unusable-execution-window } + expect: { status: passed } + - id: short-productive-window + action: { verifier: api.golden.short-productive-window } + expect: { status: passed } + - id: admission-source-custody-leased + action: { verifier: api.golden.admission-source-custody-leased } + expect: { status: passed } + - id: admission-source-custody-pending + action: { verifier: api.golden.admission-source-custody-pending } + expect: { status: passed } + - id: admission-source-custody-completed + action: { verifier: api.golden.admission-source-custody-completed } + expect: { status: passed } + - id: terminal-scoped-planning + action: { verifier: api.golden.terminal-scoped-planning } + expect: { status: passed } + - id: incomplete-scoped-planning + action: { verifier: api.golden.incomplete-scoped-planning } + expect: { status: passed } + - id: reviewed-allocation-history + action: { verifier: api.golden.reviewed-allocation-history } + expect: { status: passed } + - id: expired-allocation-history + action: { verifier: api.golden.expired-allocation-history } + expect: { status: passed } + - id: availability-open-assignment-locks + action: { verifier: api.golden.availability-open-assignment-locks } + expect: { status: passed } + - id: availability-open-reservation-locks + action: { verifier: api.golden.availability-open-reservation-locks } + expect: { status: passed } + - id: availability-assignment-locks + action: { verifier: api.golden.availability-assignment-locks } + expect: { status: passed } + - id: availability-reservation-locks + action: { verifier: api.golden.availability-reservation-locks } + expect: { status: passed } + - id: availability-accounting-serialization + action: { verifier: api.golden.availability-accounting-serialization } + expect: { status: passed } + - id: operator-phase-postgres + action: { verifier: api.golden.operator-phase-postgres } + expect: { status: passed } + - id: operator-phase-closeout + action: { verifier: api.golden.operator-phase-closeout } + expect: { status: passed } + - id: operator-phase-no-fabrication + action: { verifier: api.golden.operator-phase-no-fabrication } + expect: { status: passed } + - id: operator-phase-early-denial + action: { verifier: api.golden.operator-phase-early-denial } + expect: { status: passed } + - id: operator-phase-acting-denial + action: { verifier: api.golden.operator-phase-acting-denial } + expect: { status: passed } + - id: operator-phase-fluid-denial + action: { verifier: api.golden.operator-phase-fluid-denial } + expect: { status: passed } + - id: operator-phase-provider-denial + action: { verifier: api.golden.operator-phase-provider-denial } + expect: { status: passed } + - id: admitted-discussion-binding + action: { verifier: api.golden.admitted-discussion-binding } + expect: { status: passed } + - id: discussion-binding-foreign-team + action: { verifier: api.golden.discussion-binding-foreign-team } + expect: { status: passed } + - id: discussion-binding-wrong-reservation + action: { verifier: api.golden.discussion-binding-wrong-reservation } + expect: { status: passed } + - id: discussion-binding-wrong-invocation + action: { verifier: api.golden.discussion-binding-wrong-invocation } + expect: { status: passed } + - id: discussion-binding-terminal + action: { verifier: api.golden.discussion-binding-terminal } + expect: { status: passed } + - id: discussion-binding-bound-other + action: { verifier: api.golden.discussion-binding-bound-other } + expect: { status: passed } + - id: concurrent-terminal-revisions + action: { verifier: api.golden.concurrent-terminal-revisions } + expect: { status: passed } + - id: phase-before-tick + action: { verifier: api.golden.phase-before-tick } + expect: { status: passed } + - id: phase-after-tick + action: { verifier: api.golden.phase-after-tick } + expect: { status: passed } + - id: phase-task-timeout-denial + action: { verifier: api.golden.phase-task-timeout-denial } + expect: { status: passed } + - id: phase-fluid-planning-denial + action: { verifier: api.golden.phase-fluid-planning-denial } + expect: { status: passed } + - id: phase-authority-denial + action: { verifier: api.golden.phase-authority-denial } + expect: { status: passed } + - id: phase-before-tick-postgres + action: { verifier: api.golden.phase-before-tick-postgres } + expect: { status: passed } + - id: phase-after-tick-postgres + action: { verifier: api.golden.phase-after-tick-postgres } + expect: { status: passed } + - id: phase-real-timeout-postgres + action: { verifier: api.golden.phase-real-timeout-postgres } + expect: { status: passed } + - id: phase-real-overrun-postgres + action: { verifier: api.golden.phase-real-overrun-postgres } + expect: { status: passed } + - id: active-window-production + action: { verifier: api.golden.active-window-production } + expect: { status: passed } + - id: active-window-simulation + action: { verifier: api.golden.active-window-simulation } + expect: { status: passed } + - id: active-window-rollover + action: { verifier: api.golden.active-window-rollover } + expect: { status: passed } + - id: active-window-exhaustion + action: { verifier: api.golden.active-window-exhaustion } + expect: { status: passed } + - id: continuation-history + action: { verifier: api.golden.continuation-history } + expect: { status: passed } + - id: continuation-denial + action: { verifier: api.golden.continuation-denial } + expect: { status: passed } + - id: continuation-freshness + action: { verifier: api.golden.continuation-freshness } + expect: { status: passed } + - id: bounded-planning-node-id + action: { verifier: api.golden.bounded-planning-node-id } + expect: { status: passed } + - id: retired-graph-estimate-migration + action: { verifier: api.golden.retired-graph-estimate-migration } + expect: { status: passed } + - id: early-external-approval + action: { verifier: api.golden.early-external-approval } + expect: { status: passed } + - id: estimate-finalizes-approval + action: { verifier: api.golden.estimate-finalizes-approval } + expect: { status: passed } + - id: fluid-phase + action: { verifier: api.golden.fluid-phase } + expect: { status: passed } + - id: external-approval + action: { verifier: api.golden.external-approval } + expect: { status: passed } + - id: parallel-proposals + action: { verifier: api.golden.parallel-proposals } + expect: { status: passed } + - id: reporter-carry-forward + action: { verifier: api.golden.reporter-carry-forward } + expect: { status: passed } + - id: canonical-adapter-headroom + action: { verifier: api.golden.canonical-adapter-headroom } + expect: { status: passed } + - id: total-admission-ceiling + action: { verifier: api.golden.total-admission-ceiling } + expect: { status: passed } + - id: planning-communication-turn + action: { verifier: api.golden.planning-communication-turn } + expect: { status: passed } + - id: proposal-review-source + action: { verifier: api.golden.proposal-review-source } + expect: { status: passed } + - id: proposal-review-binding + action: { verifier: api.golden.proposal-review-binding } + expect: { status: passed } + - id: timeout-report-grace + action: { verifier: api.golden.timeout-report-grace } + expect: { status: passed } + - id: immutable-public-source + action: { verifier: api.golden.public-exact-source } + expect: { status: passed } + - id: moving-public-source + action: { verifier: api.golden.public-moving-source } + expect: { status: passed } + - id: planning-source-quota + action: { verifier: api.golden.planning-source-quota } + expect: { status: passed } + - id: public-source-custody-failure + action: { verifier: api.golden.public-source-custody-failure } + expect: { status: passed } + - id: public-source-authority-selection + action: { verifier: api.golden.public-source-authority-selection } + expect: { status: passed } + - id: public-source-pin-denial + action: { verifier: api.golden.public-source-pin-denial } + expect: { status: passed } + - id: estimate-lease-reconciliation + action: { verifier: api.golden.estimate-lease-reconciliation } + expect: { status: passed } + - id: estimate-lease-denial + action: { verifier: api.golden.estimate-lease-denial } + expect: { status: passed } + - id: maintenance-failure-isolation + action: { verifier: api.golden.maintenance-failure-isolation } + expect: { status: passed } + - id: maintenance-retry + action: { verifier: api.golden.maintenance-retry } + expect: { status: passed } + - id: content-receipt + action: { verifier: api.golden.content-receipt } + expect: { status: passed } + - id: content-exact-path + action: { verifier: api.golden.content-exact-path } + expect: { status: passed } + - id: content-readback-denial + action: { verifier: api.golden.content-readback-denial } + expect: { status: passed } + - id: response-integration-order + action: { verifier: api.golden.response-integration-order } + expect: { status: passed } + - id: recursive-workspace-reference + action: { verifier: api.golden.recursive-workspace-reference } + expect: { status: passed } + - id: send-completion-boundary + action: { verifier: api.golden.send-completion-boundary } + expect: { status: passed } + - id: published-reply-failure + action: { verifier: api.golden.published-reply-failure } + expect: { status: passed } + - id: estimate-merge + action: { verifier: api.golden.estimate-merge } + expect: { status: passed } + - id: response-authority + action: { verifier: api.golden.response-authority } + expect: { status: passed } + - id: response-race + action: { verifier: api.golden.response-race } + expect: { status: passed } + - id: response-sql-authority + action: { verifier: api.golden.response-sql-authority } + expect: { status: passed } + - id: response-continuation + action: { verifier: api.golden.response-continuation } + expect: { status: passed } + - id: estimate-ownership + action: { verifier: api.golden.estimate-ownership } + expect: { status: passed } + - id: estimate-target + action: { verifier: api.golden.estimate-target } + expect: { status: passed } + - id: estimate-reviewer + action: { verifier: api.golden.estimate-reviewer } + expect: { status: passed } + - id: estimate-completeness + action: { verifier: api.golden.estimate-completeness } + expect: { status: passed } + - id: estimating-participants + action: { verifier: api.golden.estimating-participants } + expect: { status: passed } + - id: estimating-missing-only + action: { verifier: api.golden.estimating-missing-only } + expect: { status: passed } + - id: estimating-six-owners + action: { verifier: api.golden.estimating-six-owners } + expect: { status: passed } + - id: estimating-target-selection + action: { verifier: api.golden.estimating-target-selection } + expect: { status: passed } + - id: review-no-planning + action: { verifier: api.golden.review-no-planning } + expect: { status: passed } - id: authority-gate action: { verifier: api.golden.authority-gate } expect: { status: passed } diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index d6a0fcbb..65f720e8 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -1,6 +1,3 @@ -Warning: truncated output (original token count: 81322) -Total output lines: 4796 - schemaVersion: treeseed.guarantee-verifiers/v1 ownerPackage: "@treeseed/api" verifiers: @@ -453,7 +450,3896 @@ verifiers: kind: vitestCase ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts - testName: derives native budget identity from the canonical provide…66322 tokens truncated…le: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: derives native budget identity from the canonical provider and adapter without rewriting native limits or observations + api.golden.execution-native-budget-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: native provider budget readback retains canonical SQL provider and adapter identity and denies foreign or suspended membership without financial writes + api.golden.execution-workload-endpoint-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/accounts/workloads/registration.test.ts + testName: retains canonical endpoint validation across package schema versions and compiles its full owning plan strictly + api.golden.execution-workload-descriptor-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/accounts/migration/identity-migration-configuration.test.ts + testName: rejects malformed canonical issuer and resource descriptors without leaking native URL parser errors + api.golden.execution-workload-endpoint-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/accounts/workloads/registration-postgres.test.ts + testName: binds both digests, preserves IDs, rejects human/revoked state and rolls back a batch + api.golden.execution-profile-cutover-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts + testName: "uses only governed canonical activity profiles rather than retired default prompts authority presets and assignment intent reconstruction" + api.golden.execution-chat-permissions-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts + testName: "never grants retired TreeDX assignment content or operational tools" + api.golden.execution-chat-parameters-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/policy/chat-activity-profile-policy.test.ts + testName: "preserves provider-neutral execution and capability settings from the agent profile" + api.golden.execution-chat-profile-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts + testName: "native public profile query retains renamed governed chat instructions permissions and execution parameters without a runtime default or authority preset" + api.golden.execution-agent-selection-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: "validates before normalization and preserves omitted selection" + api.golden.execution-agent-selection-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "real public preflight preserves canonical normalized agent selection and denies malformed mixed members without native authority repair" + api.golden.execution-recurring-numeric-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: denies coerced recurrence cadence and state versions before writes while retaining omitted defaults and exact numeric authority + api.golden.execution-recurring-numeric-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: real recurring schedule persistence denies coerced numerical authority without native writes and retains default explicit and stale-version behavior + api.golden.execution-canonical-optionality-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: owning SQL retains canonical optional condition data and condition capability declarations without granting assignable authority + api.golden.execution-output-retirement-grant-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: uses the exact Book and frozen grant without admitting a retired node output selector + api.golden.execution-output-retirement-projection-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: rejects retired work-item output selectors before projection without changing exact governed source or configured profile authority + api.golden.execution-output-retirement-sql-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: native graph cutover removes output selector storage and denies represented selector inputs without writes before exact replay + api.golden.execution-output-retirement-postgres-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: full PostgreSQL cutover removes duplicated output storage while independent graph reads and concurrent replay preserve exact authority + api.golden.execution-work-item-slugs-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "native exact Proposal intake retains canonical dotted underscored and nested work-item identities and dependency bytes while denying malformed committed slugs without repair" + api.golden.execution-node-conditions-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "real graph reconciliation denies missing assignable condition and review-pair fields before persistence while retaining exact native condition authority for unchanged replay" + api.golden.execution-assignment-ownership-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/provider-assignment-activity-custody.test.ts + testName: "requires the exact provider team and membership for assignment ownership without rewriting absent malformed or foreign authority" + api.golden.execution-assignment-ownership-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "authenticated owning assignment reads and ordinary event writes deny a foreign membership without repairing native authority before unchanged exact retry" + api.golden.execution-dependency-endpoint-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "native governed Note authoring denies every missing exact dependency endpoint field without source or SQL repair before unchanged committed link input retry" + api.golden.execution-work-item-review-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "real exact proposal intake denies missing review cycles and unreviewed estimate authority while retaining original committed denial history before bounded review retry" + api.golden.execution-ready-proposal-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "real exact proposal intake refuses ready or decided missing summary plan or independent estimates without repairing indexed source bytes before unchanged ready retry" + api.golden.execution-report-subject-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "real governed report Note authoring retains exact workday subject bytes after repeated missing or malformed authority denial without false publication or charges" + api.golden.execution-terminal-priority-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "reconciles every recovered terminal pair priority without changing issued node authority or reopening terminal history" + api.golden.execution-terminal-priority-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "native terminal graph reconciliation publishes changed and omitted priorities through independent pools without rewriting historical authority or retrying terminal work" + api.golden.execution-node-authority-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "owning graph reconciliation denies overlong class and duplicated exact node authority before SQL persistence while retaining the original graph for unchanged retry" + api.golden.execution-decision-conditions-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "real governed Decision authoring denies contradictory class dispositions and missing approval positions without draft mutation before unchanged exact retry" + api.golden.execution-work-item-inventory-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "real executable proposal intake retains invalid committed work-item inventories through repeated denial before exact bounded source retry" + api.golden.execution-profile-signal-cutover-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/agents/agent-definition-source.test.ts + testName: "retains exact governed profile validation and denies retired signal fields without producing a second signal-reference authority" + api.golden.execution-profile-inventory-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "real governed YAML profile authoring retains native draft custody across empty inventory and producer review denial before exact renamed execution profile write" + api.golden.execution-note-identity-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "denies malformed governed Note identities and duplicate exact subject authority without normalizing the supplied relation" + api.golden.execution-note-identity-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "real TreeDX authoring denies malformed Note identities and duplicate subject authority across unchanged retries before exact original publication bytes" + api.golden.execution-identifier-inventory-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "rejects malformed canonical capability and predecessor identifiers before any SQL with exact owning failure and immutable inputs" + api.golden.execution-identifier-inventory-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "real owning admission denies malformed capability and predecessor identifiers and retains exact native state across unchanged retries" + api.golden.execution-failure-attribution-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/communication/terminal-invocation-reconciliation.test.ts + testName: "retains exact terminal failure attribution with readable project and agent fallbacks without replacing failed inputs" + api.golden.execution-failure-attribution-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response-postgres.test.ts + testName: "real PostgreSQL terminal reconciliation preserves exact failed actor attribution and one unchanged event across replay" + api.golden.execution-signal-cutover-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/provider-assignment-operations.test.ts + testName: "exposes no retired frozen signal publication operation while retaining ordinary provider execution and event bindings" + api.golden.execution-signal-cutover-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "authenticated native HTTP rejects the retired frozen signal route without SQL mutation before unchanged ordinary claim" + api.golden.execution-tool-grant-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "rejects undeclared tool-group authority through the canonical assignment validator before any SQL with caller bytes retained" + api.golden.execution-tool-grant-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "real owning admission denies undeclared tool-group authority before SQL and preserves failed inputs across exact retry" + api.golden.execution-reference-inventory-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "rejects duplicate canonical assignment and result references through owning validators before SQL without normalizing supplied authority" + api.golden.execution-reference-inventory-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "real owning admission rejects duplicated canonical references before writes and retains invalid input across exact retries" + api.golden.execution-agent-snapshot-diagnostics-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/team-clone-source-snapshot.test.ts + testName: "fails closed instead of silently dropping an invalid definition" + api.golden.execution-agent-snapshot-diagnostics-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "native exact Agent snapshots retain owning YAML diagnostics and invalid committed bytes before unchanged valid source retry" + api.golden.execution-qualified-selection-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/living-execution-assignment-paths.test.ts + testName: "ranks only fully provider-qualified candidates and records the exact eligible inventory without changing rejected high-priority input" + api.golden.execution-predecessor-missing-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "denies a required native predecessor without a canonical owning result instead of dropping it from the candidate inventory" + api.golden.execution-predecessor-lineage-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "keeps foreign predecessor Git citations readable without selecting their commits as the primary source lineage" + api.golden.execution-predecessor-decision-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "binds cross-project predecessor queries to each owning node Decision and revision rather than filtering them by the dependent Decision" + api.golden.execution-publication-branch-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/publication-scope.test.ts + testName: "denies moved stale and failed published branch indexes before manifest publication while retaining exact commit indexing and supplied authority" + api.golden.execution-decision-demand-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/executable-proposal-source.test.ts + testName: "denies accepted demand without native Decision authority while retaining the failed revision and supplied bytes" + api.golden.execution-decision-workspace-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts + testName: "retains the original open workspace journal and close failure after native Decision readback instead of reporting successful closure" + api.golden.execution-decision-atomic-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts + testName: "keeps the reserved Decision and native identity when atomic projection fails without accepting or separately emitting an event" + api.golden.execution-unchanged-content-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "retains an exact unchanged governed content retry without sending an empty native patch or inventing an application receipt" + api.golden.execution-usage-seconds-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "retains separately measured infrastructure time and rejects contradictory native second measurements without rewriting either input" + api.golden.execution-usage-seconds-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "owning SQL readback preserves contradictory native measurements and returns only an explicit consistent zero-active retry without charging infrastructure" + api.golden.execution-availability-offer-readback-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: "retains every canonical executable offer and exact runtime build in public availability readback without rewriting stored authority" + api.golden.execution-primary-source-reader-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "derives primary source identity from the verified project repository rather than its database row or foreign citation order" + api.golden.execution-primary-source-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "selects only the explicit primary repository for writes in either citation order and denies absent or ambiguous primary authority without rewriting inputs" + api.golden.execution-primary-source-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native compiler admission preserves only primary Git writes and exact foreign read citations through reservation concurrent replay and denied authority" + api.golden.execution-proposal-evaluation-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "owning native proposal evaluation denies incomplete plans and exact unresolved feedback before electorate or decision writes without rewriting retained history" + api.golden.execution-proposal-evaluation-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/governance-service.test.ts + testName: "retains exact authorized evaluation and accepted-decision recovery while denying missing or malformed readiness before mutation" + api.golden.execution-usage-clock-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "requires a valid stored usage timestamp without rewriting bytes or charging elapsed infrastructure time as active work" + api.golden.execution-usage-clock-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "owning SQL usage reads retain malformed clock history and admit only an explicit valid-clock retry" + api.golden.execution-schedule-update-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "rejects a lost conditional schedule update from its own SQL result without certifying another writers matching version" + api.golden.execution-workspace-response-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts + testName: "denies a changed native workspace identity after successful verification before any success audit or receipt and admits only the unchanged exact retry" + api.golden.execution-terminal-orphan-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-terminalization-graph-custody.test.ts + testName: "retains an orphan active graph node as unfinished even when no assignment row remains" + api.golden.execution-issued-priority-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native graph reprioritization changes future scheduling only while issued canonical attempt reservation and exact admission replay remain frozen" + api.golden.execution-priority-storage-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "decodes exact persisted safe integer priority without coercing malformed storage or inventing omitted authority" + api.golden.execution-priority-storage-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "native owning SQL preserves optional safe integer priorities and exact dependency provenance while invalid writes retain the complete graph" + api.golden.execution-session-registration-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "identical callback registrations retain independent release ownership without deleting their shared team or reviving a released registration" + api.golden.execution-session-registration-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-registration-postgres.test.ts + testName: "one native listener preserves identical callback registrations independently through stale release retry and final durable channel cleanup" + api.golden.execution-postgres-prerequisite-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: "complete provider verification inherits the existing disposable PostgreSQL authority before any native suite or coded scene without a second database binding" + api.golden.execution-native-treedx-prerequisite-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: "complete provider suites provision the exact native TreeDX engine and original signed bootstrap before verification and retain explicit cleanup after scenes" + api.golden.execution-compiler-prerequisite-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: "provider compiler preflights strict diagnostics before replacing held outputs instead of accepting transpile-only declarations" + api.golden.execution-compiler-prerequisite-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: "native original provider compiler denies invalid typed inputs without replacing candidate bytes and admits only a valid controlled retry" + api.golden.execution-lease-clocks-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lease-authority.test.ts + testName: "rejects expired malformed and coerced reservation workspace and availability clocks against the unchanged original current time" + api.golden.execution-recovery-unknown-usage-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts + testName: "late recovery retains unknown executed usage and the original attempt without a fabricated zero settlement or a reopened ready node" + api.golden.execution-admission-explanation-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-admission.test.ts + testName: "claims the node, reservation, and immutable attempt in one transaction without legacy demand/allocation authority" + api.golden.execution-poll-token-custody-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "current access token custody rejects withdrawn missing and malformed durable token authority before synthesis reads or writes without changing the principal" + api.golden.execution-credential-audit-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts + testName: "credential and membership audit retries preserve their original scoped identity clock metadata and failure without independent reads or rewriting another operation" + api.golden.execution-registration-audit-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "registration audit retries retain one committed request identity original clock and exact conditional write bytes without independent reads or changing inputs and the original failure cause" + api.golden.canonical-source-ordinal-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "binds canonical source authorization to the unchanged frozen ordinal rather than incrementing an operational lifecycle counter" + api.golden.canonical-source-ordinal-denial-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "denies a moved missing malformed or mismatched canonical source ordinal before credential acquisition without rewriting failed inputs" + api.golden.execution-unfinished-handoff-live-1: + kind: nodeTestCase + ownerPackage: "@treeseed/api" + testFile: tests/acceptance/execution-schema.ts + testName: "Actual original model clocks failed verification and exact governed pending work bind an authorized unfinished draft before the unchanged deadline without a falsely passed replay" + api.golden.execution-work-priority-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "projects governed work-item integer priorities unchanged onto both review-pair nodes without bypassing approval dependencies or permission ceilings" + api.golden.execution-work-priority-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "native exact governed Proposal bytes produce the same canonical work-item priority on Actor and Reviewer nodes without making blocked work ready" + api.golden.execution-node-priority-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "binds changed canonical priority to the same semantic node revision while preserving running authority blocked dependencies and exact replay" + api.golden.execution-selection-producer-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "native original scheduler applies provider hard gates before weighted priority selection and retains the exact eligible input beside one atomic admission" + api.golden.execution-node-priority-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "native graph publication retains canonical integer priorities through independent public reads and matching concurrent replay without changing readiness or grants" + api.golden.execution-selection-input-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native admission retains exact original selector inputs in one allocation explanation and denies changed replay history without replacing candidate reservation or financial bytes" + api.golden.execution-protected-observation-live-1: + kind: nodeTestCase + ownerPackage: "@treeseed/api" + testFile: tests/acceptance/execution-schema.ts + testName: "Actual managed model execution retains encrypted original action observations for every enabled activity and independently binds first final and intervening clocks without public transcript leakage" + api.golden.execution-protected-observation-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts + testName: "native original event persistence encrypts exact ordinary executor evidence and retains replay conflict and interrupted-write custody without plaintext public events or financial writes" + api.golden.execution-protected-observation-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/provider-assignment-timestamp.test.ts + testName: "refuses protected ordinary execution evidence when encryption or exact current lease authority is unavailable without writing public events or hiding caller bytes" + api.golden.execution-retired-mode-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts + testName: "rejects retired mode-run identity before any settlement or assignment lookup" + api.golden.execution-retired-mode-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "native original accounting denies every own retired mode-run value before changing any assignment reservation measurement counter or ledger and retains an unchanged original settlement retry" + api.golden.execution-clean-schema-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "full native migration initialization removes every named retired execution authority while original graph writes and independent read-only retries retain exact custody" + api.golden.execution-clean-schema-live-1: + kind: nodeTestCase + ownerPackage: "@treeseed/api" + testFile: tests/acceptance/execution-schema.ts + testName: "Actual managed execution uses the complete clean migration inventory and exact canonical assignment rows without retired scheduling authorities or read-time repair" + api.golden.execution-proposal-blockers-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/governance-service.test.ts + testName: "denies proposal evaluation with unresolved exact blockers or an unready executable plan before the owning decision mutation without repairing supplied readiness" + api.golden.execution-continuation-returned-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: "native original settlement permits released returned history without rewriting its failed result and denies retained leases or unsettled reservations on the same immutable lineage" + api.golden.execution-integration-identity-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts + testName: "preserves explicit integration authority and one exact base when the governed class using the same Releaser handler is renamed" + api.golden.execution-predecessor-lineage-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "retains only an unambiguous acyclic predecessor lineage without replacing contradictory duplicate result identities" + api.golden.execution-predecessor-lineage-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "native exact proposal context preserves the primary source lineage while foreign predecessor citations remain read-only evidence in either reference order" + api.golden.execution-weighted-opportunity-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts + testName: "native independent PostgreSQL readers retain committed seconds while weighted opportunity follows only exact ready graph demand across simulation and production" + api.golden.execution-qualification-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts + testName: "enforces the declared qualification tier and unique current suite receipt even when invalid qualification is genuinely signed by the registered input key" + api.golden.execution-repeating-planning-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts + testName: "repeats beyond two planning rounds without duplicating an active turn or refreshing the original policy and deadline" + api.golden.execution-repeating-planning-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-node-history-native.test.ts + testName: "native original planning ticks retain an interrupted generation and repeat beyond two rounds without duplicate nodes events or financial writes" + api.golden.execution-settlement-postgres-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/postgres.test.ts + testName: "serializes competing claims and rolls back without orphan reservations or duplicate charges" + api.golden.execution-final-admission-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "denies conflicting or malformed immutable provider execution bindings before SQL without turning a collaborator error into an authority refusal" + api.golden.execution-final-admission-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native final admission refuses changed ready-node authority and conflicting provider execution bindings without counter reservation proxy or assignment residue" + api.golden.execution-retained-quota-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: "denies malformed retained shared model and capability observations before renamed fresh or unhealthy publications can conceal prior authority" + api.golden.execution-pending-subscription-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "abort during pending subscription releases the late listener without another lease and preserves the original response and fresh retry" + api.golden.execution-pending-subscription-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "authenticated abort during pending original subscription retains native pending custody and admits only a fresh authorized retry after releasing the late listener" + api.golden.execution-continuation-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: "retains each terminal custody status and the exact original sixty-four-record lineage while denying a sixty-fifth record or cycle" + api.golden.execution-continuation-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: "denies malformed persisted continuation parameters and parent identities instead of converting them into a settled root or another identifier" + api.golden.execution-continuation-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: "native original continuation reader retains exact terminal lineage bytes and rejects corrupt ancestry without writes or manufacturing settled authority" + api.golden.execution-accounting-continuity-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: "rejects nonboolean accounting health at both shared model and capability scopes without rewriting prior reports" + api.golden.execution-accounting-continuity-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-accounting.test.ts + testName: "compares every retained shared model report after adapter renaming without resetting usage or suppressing unhealthy regression" + api.golden.execution-accounting-continuity-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts + testName: "native PostgreSQL retains closed shared model history across membership restart and rejects malformed or regressed reports before publication" + api.golden.execution-archived-profile-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "excludes archived profile authority without weakening validation of active or paused configured agents" + api.golden.execution-archived-profile-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "native public profile inspection retains archived SQL history while admitting only current canonical definitions and denying reactivated malformed authority" + api.golden.execution-handler-inspection-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "inspects exact renamed YAML handler origins prompts context and permissions without deriving execution authority" + api.golden.execution-handler-inspection-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "denies missing project principal team permission and unknown handler inspection without reading or rewriting configured authority" + api.golden.execution-handler-inspection-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "includes handlers from every original class page and refuses a missing tail instead of presenting partial inspection as complete" + api.golden.execution-handler-inspection-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "native public operation inspection reads persisted renamed handlers and preserves every represented execution and profile row through denial and retry" + api.golden.execution-handler-inspection-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/agents/handler-inspection.test.ts + testName: "native original SQL pagination exposes the handler beyond two hundred classes without creating execution or replacing persisted profiles" + api.golden.execution-diagnostic-replay-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies every changed omitted or null diagnostic counter and accounting descriptor on the same usage identity" + api.golden.execution-diagnostic-replay-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "public diagnostic replay rejects every changed counter and descriptor while retaining original failed usage and terminal settlement" + api.golden.architecture-dependency-bootstrap-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original committed identity rotation replay preserves the same missing audit failure and recovers the exact original actor version and clock without rotating or consuming proofs again" + api.golden.architecture-dependency-bootstrap-postgres-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL late identity rotation audit failure retains committed keys proofs and revocation then current bearer replay recovers one original audit without rewriting failed history" + api.golden.architecture-dependency-bootstrap-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original access token authority admits the current signed identity version but denies stale and future versions under the same current key before nonce consumption or token lookup" + api.golden.architecture-dependency-bootstrap-postgres-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL two key identity rotation admits the current signed version and denies stale future and old key token proofs without consuming authority or rewriting independent history" + api.golden.architecture-dependency-approval-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original rejection validates key reason and missing foreign terminal authority before any review write and retains exact caller inputs" + api.golden.architecture-dependency-approval-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original rejection preserves the same late audit failure and recovers one missing audit on exact terminal replay without repeating its conditional transition" + api.golden.architecture-dependency-operator-postgres-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL rejection commits only exact terminal review audit and confirmation then refuses changed authority and approval while preserving immutable replay" + api.golden.architecture-dependency-operator-postgres-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL late rejection audit failure retains terminal request and consumed confirmation then exact fresh confirmation recovers one missing audit with no enrollment or history rewrite" + api.golden.architecture-dependency-bootstrap-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original first credential repository keeps conditional authorization and credential in one pending batch with exact inputs and propagates the same native boundary failure before readback" + api.golden.architecture-dependency-bootstrap-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original committed credential replay must propagate a missing audit write failure then recover that exact audit without reissuing or rewriting the approved authority" + api.golden.architecture-dependency-bootstrap-postgres-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL overlapping first exchanges share one credential authorization and audit with two independently blocked native transactions and exact replay history" + api.golden.architecture-dependency-bootstrap-postgres-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL late credential audit failure retains issued authority and secret custody then fresh nonce replay recovers one missing audit without hiding the failed footprint" + api.golden.architecture-dependency-bootstrap-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original bootstrap proof verification binds each exchange and token stage to its exact body route identity and unchanged expiry without accepting crossover" + api.golden.architecture-dependency-bootstrap-postgres-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine authenticated PostgreSQL enrollment exchanges its first credential issues a signed token and uses the real bearer to rotate authority with exact immutable replay and independent history" + api.golden.architecture-dependency-bootstrap-postgres-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL credential insertion failure rolls back original authorization and credential together retains the consumed proof and admits only a fresh nonce retry within the same stage expiry" + api.golden.architecture-dependency-operator-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts + testName: "original operator authentication intersects local authority with signed scopes and preserves the exact client and expiry without trusting issuer roles" + api.golden.architecture-dependency-operator-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts + testName: "original operator authentication rejects wrong issuer audience signature expiry unmapped and ambiguous identities without manufacturing local authority" + api.golden.architecture-dependency-operator-postgres-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated operator resource approval enrolls a genuinely signed registration once with original confirmation SQL and independent PostgreSQL readback" + api.golden.architecture-dependency-operator-postgres-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current operator resource authentication and local scope or team revocation deny approval without enrollment and retain the exact native confirmation footprint" + api.golden.architecture-dependency-operator-postgres-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated approval confirmation rejects changed arguments client signature and operation before native enrollment then admits only the unchanged original request" + api.golden.architecture-dependency-approval-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original approval denies missing foreign terminal and elapsed request inputs before enrollment or audit without rewriting authority" + api.golden.architecture-dependency-approval-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original approval rejects a lost conditional transition or foreign winning key without recording a successful approval audit" + api.golden.architecture-dependency-approval-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "original approval denies missing foreign rejected and cancelled genuine registration requests preserving all terminal history and enrollment authority" + api.golden.architecture-dependency-approval-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "original approval expires a supplied elapsed genuine request without enrollment or audit and repeated denial retains exactly the original expiry transition" + api.golden.architecture-dependency-approval-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "competing original approve reject and cancel operations have one durable winner audit and immutable enrollment across distinct and reused review keys" + api.golden.architecture-dependency-approval-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "empty original approval key denies with the owning governance error before any repository reads writes or authority mutation" + api.golden.architecture-dependency-approval-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original approval repository binds request membership and pending authorization in one batch before readback preserving inputs and the same failure cause" + api.golden.architecture-dependency-approval-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "original approval of a genuinely registered identity creates exactly one membership and pending credential authorization with exact replay and changed alias conflict" + api.golden.architecture-dependency-approval-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "concurrent same key original approvals return one immutable membership authorization and audit without duplicate enrollment or financial mutation" + api.golden.architecture-dependency-approval-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "native membership insertion failure rolls back the original approval request membership authorization transaction before same facts retry creates one enrollment" + api.golden.architecture-dependency-approval-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-native.test.ts + testName: "native late approval audit failure retains committed membership and pending authorization before exact same key retry recovers one missing audit without rewriting failed history" + api.golden.architecture-dependency-registration-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "concurrent original rate consumptions retain their own exact batch outcomes when over limit completion precedes exact limit admission" + api.golden.architecture-dependency-registration-native-10: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "concurrent distinct signed public registrations share the final original rate slot admitting exactly one identity while retaining denied nonce counters and immutable replay history" + api.golden.architecture-dependency-registration-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "original rate repository rejects missing truncated malformed and coerced counter batch observations without treating them as admission or rewriting inputs" + api.golden.architecture-dependency-registration-native-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "native late rate update interruption rolls back every original bucket mutation but retains consumed proof before fresh proof same facts retry admits one new request" + api.golden.architecture-dependency-registration-native-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "native original rate repository resets before and exact expiry only retaining later buckets original windows and whole registration history across repeated consumption" + api.golden.architecture-dependency-registration-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "original rate repository admits exact limit and reports every exceeded dimension from the same batch while preserving inputs and original batch failures" + api.golden.architecture-dependency-registration-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "signed public registration denies each exhausted original rate dimension retaining consumed nonce exact counters and prior request while original replay cannot consume more authority" + api.golden.architecture-session-subscription-unit-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "concurrent first registrations remain pending through shared acquisition and LISTEN activation then route original team notifications and release only the last registration" + api.golden.architecture-session-subscription-postgres-10: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "native occupied listener pool queues one shared initial acquisition for concurrent team registrations and completed subscriptions own the original channel before independent delivery" + api.golden.architecture-session-subscription-unit-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "new same and foreign team registrations survive an in flight last unsubscribe channel cleanup and delayed old releases cannot remove current notification delivery" + api.golden.architecture-session-subscription-postgres-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "native queued listener SQL overlaps last unsubscribe and same plus foreign team reacquisition without stale release channel loss or callback revival" + api.golden.architecture-session-subscription-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "listener failure automatically reacquires one original channel for existing registrations without a new subscriber and stale failed client errors cannot release the replacement" + api.golden.architecture-session-subscription-postgres-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "native listener disconnection automatically restores existing team registrations without a new subscriber preserves independent durable delivery and releases only the final current channel" + api.golden.architecture-session-subscription-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "concurrent first subscriptions share one acquisition rejection cause remove every denied callback and healthy concurrent retry retains only its new registrations" + api.golden.architecture-session-subscription-postgres-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "concurrent first native subscriptions share the original LISTEN rejection cause release one acquired client and concurrent retry restores only newly admitted team callbacks" + api.golden.architecture-session-subscription-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "stale repeated last unsubscribe cannot remove a later same team subscription or revive the released callback during original local publication" + api.golden.architecture-session-subscription-postgres-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "stale repeated last unsubscribe after native channel release cannot unbind later same team delivery and final current release retains durable history without callback revival" + api.golden.architecture-session-subscription-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "listener error releases only the failed client retains registered callbacks and stale duplicate error cannot reset the healthy replacement after original subscription retry" + api.golden.architecture-session-subscription-postgres-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "exact fresh native listener backend disconnection retains durable missed notification history and original subscription retry restores registered team delivery without leaked client custody" + api.golden.architecture-session-subscription-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "acquired client LISTEN failure retains the original error returns exactly the acquired client and removes the denied callback before later local publication" + api.golden.architecture-session-subscription-postgres-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "native acquired client aborted transaction rejects original LISTEN without leaked callbacks or pool custody and same service retry resumes independent durable delivery" + api.golden.architecture-session-subscription-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-authority.test.ts + testName: "declared database listener acquisition failure retains its original error removes the unacquired listener and never fabricates local subscription success" + api.golden.architecture-session-subscription-postgres-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "independent native notifications retain exact durable team events deduplicate repeated notices and release the original database channel only after the final subscriber" + api.golden.architecture-session-subscription-postgres-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "native event insert interruption retains all earlier durable history emits no false notification and original retry adds exactly one event without changing graph or finance" + api.golden.architecture-session-subscription-postgres-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/realtime/architecture/session-subscription-postgres.test.ts + testName: "actual native connection acquisition denial is not successful local fallback and retains healthy independent delivery without leaked callbacks or durable event loss" + api.golden.architecture-dependency-longpoll-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "original availability context admits one millisecond before expiry and rejects exact or later expiry without writes clock widening or input mutation" + api.golden.architecture-dependency-longpoll-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "public wait longer than original availability naturally expires without claim financial mutation or deadline extension and released callbacks cannot revive it" + api.golden.architecture-dependency-longpoll-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "caller mutation after subscription cannot rebind later owning polls or rewrite the caller object and released wake callbacks cannot revive the request" + api.golden.architecture-dependency-longpoll-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "genuinely authenticated owning longpoll freezes each original request field across caller mutation native event wake natural completion and immutable durable readback" + api.golden.architecture-dependency-longpoll-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "public malformed coerced negative and oversized wait inputs deny before reconciliation lease subscription and all auth neutral durable writes" + api.golden.architecture-dependency-longpoll-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "natural fractional public wait completion retains the original pending attempt finance and request then releases its subscription without abort or revival" + api.golden.architecture-dependency-longpoll-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "malformed coerced negative and oversized wait authority denies before reconciliation lease or subscription without rewriting inputs" + api.golden.architecture-dependency-longpoll-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-authority.test.ts + testName: "preaborted caller returns the empty original poll envelope before reconciliation lease or subscription and retains inputs" + api.golden.architecture-dependency-longpoll-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "durable foreign team foreign purpose and matching wake events never rebind the frozen foreign lane or revive an unsubscribed public poll" + api.golden.architecture-dependency-longpoll-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "token membership provider and stale foreign or malformed session changes during the actual wait fence further work and release the original subscription" + api.golden.architecture-dependency-longpoll-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-longpoll-native.test.ts + testName: "native synthesis audit interruption after public subscription retains pending custody releases exactly once and original bounded retry preserves all failed history" + api.golden.architecture-dependency-revocation-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-authority.test.ts + testName: "empty credential and membership revocation keys deny before all original repository reads and writes without input rewriting" + api.golden.architecture-dependency-revocation-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-authority.test.ts + testName: "missing empty and unknown membership identities deny credential and leave operations with original governance errors and no writes" + api.golden.architecture-dependency-revocation-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "first concurrent original credential revocation commits one immutable credential token fence and audit while retaining pending assignment and finance" + api.golden.architecture-dependency-revocation-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "foreign team member credential and missing authenticated leave authority deny after genuine issued token baseline with whole auth neutral state unchanged" + api.golden.architecture-dependency-revocation-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "actual credential revocation racing authenticated poll cannot admit a new lease after the committed token fence and retains any original claim custody" + api.golden.architecture-dependency-revocation-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "native credential token update interruption rolls back the whole revocation transaction and exact original key retry fences once without deleting history" + api.golden.architecture-dependency-revocation-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "late credential revocation audit interruption retains exact revoked credential tokens and same key recovery records only the missing audit" + api.golden.architecture-dependency-revocation-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "actual authenticated membership leave settles only unstarted pending authority once retains both predecessor results and denies all old bearer polling" + api.golden.architecture-dependency-revocation-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-revocation-native.test.ts + testName: "membership leave token interruption retains committed revoked membership and rolls back credential token batch before same frozen owning input recovery closes pending work once" + api.golden.architecture-dependency-registration-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "actual registration proof binds the exact public identity name capabilities supply metadata route audience and original clock without rewriting inputs" + api.golden.architecture-dependency-registration-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-authority.test.ts + testName: "changed registration name capabilities supply metadata identity route audience signature and exact expiry deny original verification without input rewriting" + api.golden.architecture-dependency-registration-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "actual signed public registration creates one exact pending identity request nonce rate footprint and audit without approval credential token or financial authority" + api.golden.architecture-dependency-registration-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "missing foreign disabled malformed and changed signed public registration authority denies after a genuine positive baseline without new admission nonce rate or finance" + api.golden.architecture-dependency-registration-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "first concurrent same key registrations and exact fresh proof replay preserve one immutable request audit and identity while changed body conflicts" + api.golden.architecture-dependency-registration-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "concurrent actual key rotation fences old generation admission or cancels its committed pending request without granting membership credentials or finance" + api.golden.architecture-dependency-registration-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "native registration insert interruption rolls back new identity request but retains consumed nonce and rate history before fresh proof same key retry admits once" + api.golden.architecture-dependency-registration-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-registration-native.test.ts + testName: "late registration audit interruption preserves pending request exact identity nonce and rate footprint before same key replay recovers one missing audit" + api.golden.architecture-dependency-credential-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts + testName: "actual exchange proof verification preserves the exact approved request issuance key path audience and original clock claims" + api.golden.architecture-dependency-credential-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-authority.test.ts + testName: "foreign request changed issuance key route audience and expired signed exchange authority deny without input rewriting" + api.golden.architecture-dependency-credential-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts + testName: "actual authenticated credential rotation and signed exchange issue one exact generation and its token polls the unchanged dependency attempt" + api.golden.architecture-dependency-credential-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts + testName: "missing unapproved foreign revoked stale and malformed public exchange authority denies without credential issuance or financial changes" + api.golden.architecture-dependency-credential-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts + testName: "concurrent same key exchanges and fresh nonce replay retain one exact credential while duplicate nonce and different issuance key cannot reveal another" + api.golden.architecture-dependency-credential-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts + testName: "native credential insert interruption rolls back authorization consumption but retains proof nonce before same key fresh signed retry commits once" + api.golden.architecture-dependency-credential-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-credential-native.test.ts + testName: "late credential audit interruption preserves issued authorization revealed credential and nonce before exact same key fresh proof recovers one missing audit" + api.golden.architecture-dependency-identity-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-authority.test.ts + testName: "original membership projection preserves exact configured identity key version team and status without rewriting source rows" + api.golden.architecture-dependency-identity-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-authority.test.ts + testName: "missing malformed coerced identity version key membership and status projections deny without source mutation" + api.golden.architecture-dependency-identity-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts + testName: "actual two proof public rotation revokes old tokens and newly signed issuance polls the unchanged original dependency attempt" + api.golden.architecture-dependency-identity-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts + testName: "invalid missing mismatched and stale rotation proofs deny with original identity nonce token audit and assignment custody retained" + api.golden.architecture-dependency-identity-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts + testName: "concurrent competing public rotation keys commit one version and same key authenticated replay retains exact rotation nonce and audit history" + api.golden.architecture-dependency-identity-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts + testName: "late rotation audit failure retains committed identity revoked tokens and both nonces before authenticated same key recovery creates one missing audit" + api.golden.architecture-dependency-identity-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/credentials/dependency-identity-native.test.ts + testName: "native identity update interruption rolls back rotation nonces and token revocation before exact original signed retry commits once" + api.golden.architecture-dependency-token-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts + testName: "original proof verification binds exact key fingerprint method path audience body and original expiry without rewriting inputs" + api.golden.architecture-dependency-token-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts + testName: "changed signed body route audience key algorithm signature and malformed proof encoding deny before producing verified authority" + api.golden.architecture-dependency-token-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-authority.test.ts + testName: "original token validity accepts only exact integer bounds and rejects invalid numbers without changing the default" + api.golden.architecture-dependency-token-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts + testName: "actual signed public issuance persists one original nonce token audit and authenticates the unchanged dependency attempt through public polling" + api.golden.architecture-dependency-token-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts + testName: "invalid credentials signed request mutations moved identity and revoked membership deny issuance without nonce token audit or assignment changes" + api.golden.architecture-dependency-token-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts + testName: "original nonce replay denies while concurrent fresh signed retries of one issuance key return one immutable token and audit" + api.golden.architecture-dependency-token-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/tokens/dependency-token-native.test.ts + testName: "late issuance audit interruption retains original token nonce and pending assignment before same key fresh proof recovers exactly one missing audit" + api.golden.architecture-dependency-public-poll-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-authority.test.ts + testName: "only the original provider bearer grammar reaches authentication and never rewrites the presented secret" + api.golden.architecture-dependency-public-poll-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-authority.test.ts + testName: "authentication errors never invoke the downstream provider handler or install an admitted identity" + api.golden.architecture-dependency-public-poll-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "real token authentication and public catalog return the exact leased attempt with both predecessor results and no finance rewrite" + api.golden.architecture-dependency-public-poll-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "missing wrong revoked expired malformed and insufficient token authorities cannot claim or mutate assignment finance and history" + api.golden.architecture-dependency-public-poll-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "concurrent authenticated public requests produce one immutable claim and retain exact dependency reservation context" + api.golden.architecture-dependency-public-poll-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "preaborted public polling cannot reconcile synthesize claim or subscribe after the caller has withdrawn authority" + api.golden.architecture-dependency-public-poll-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "public lease update failure retains pending custody and original failed history before identical request retry within the same deadline" + api.golden.architecture-dependency-public-poll-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-public-poll-native.test.ts + testName: "aborted empty longpoll releases its original event subscription without another synthesis lease or charge and later events cannot revive it" + api.golden.architecture-dependency-poll-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts + testName: "missing and insufficient provider poll scope deny before any assignment authority is returned" + api.golden.architecture-dependency-poll-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts + testName: "coerced empty fractional and nonfinite explicit lease seconds deny instead of creating authority from malformed poll input" + api.golden.architecture-dependency-poll-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "original synthesis recovery and lease retain the exact admitted attempt and both dependency results within the original authority deadline" + api.golden.architecture-dependency-poll-expiry-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-authority.test.ts + testName: "revalidates original provider availability after asynchronous synthesis before recovery explanations or lease writes" + api.golden.architecture-dependency-poll-expiry-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "real original synthesis crossing unchanged availability expiry cannot create a late lease explanation or financial mutation on either requested lane" + api.golden.architecture-dependency-poll-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "concurrent original polls grant one lease token and runner without duplicating or rewriting the admitted dependency reservation" + api.golden.architecture-dependency-poll-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "foreign missing closed and malformed availability authorities deny original poll before any lease or synthesis audit mutation" + api.golden.architecture-dependency-poll-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "late native lease update interruption preserves original pending custody and synthesis history before identical-input bounded retry" + api.golden.architecture-dependency-lease-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts + testName: "pending preparation retains a valid original authority window and cannot bypass its exact expired deadline" + api.golden.architecture-dependency-lease-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts + testName: "missing malformed and nonfinite lease clocks deny rather than treating unknown timing as unlimited authority" + api.golden.architecture-dependency-lease-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-authority.test.ts + testName: "actual preparation retries preserve the original authority expiry and reject malformed signed preparation clocks without rewriting the envelope" + api.golden.architecture-dependency-lease-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "actual account reservation workday proxy and availability reads retain the exact admitted dependency context without new financial writes" + api.golden.architecture-dependency-lease-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "foreign team provider membership and unavailable identity deny through original SQL joins without changing admitted custody" + api.golden.architecture-dependency-lease-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "missing inactive and expired exact reservation proxy workday and availability authority deny the owning SQL lease gate" + api.golden.architecture-dependency-lease-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "malformed authoritative session reservation and proxy clocks and unknown current time deny without granting unbounded lease authority" + api.golden.architecture-dependency-lease-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/leasing/dependency-lease-native.test.ts + testName: "rotated availability retains only the same unexpired supplied lease and explicit closed-session or expired-lease requests stay denied" + api.golden.architecture-dependency-admission-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "denies missing extra duplicate and reused predecessor result identities before any admission write" + api.golden.architecture-dependency-admission-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "denies failed malformed and Actor self-review predecessor inputs before any admission write" + api.golden.architecture-dependency-admission-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-authority.test.ts + testName: "denies missing exact predecessor read authority rather than admitting a stripped dependency context" + api.golden.architecture-dependency-admission-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "initial owning admission freezes both exact predecessor results with one dependent reservation and unchanged supplied review history" + api.golden.architecture-dependency-admission-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "missing failed malformed and duplicate supplied predecessor contexts deny initial native admission without orphan financial or proxy writes" + api.golden.architecture-dependency-admission-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "changed predecessor status revision result and review disposition after readiness deny the final native admission fence" + api.golden.architecture-dependency-admission-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "concurrent exact and competing native dependent claims retain one immutable dependency snapshot and one reservation before read-only replay" + api.golden.architecture-dependency-admission-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/admission/dependency-admission-native.test.ts + testName: "late native dependent assignment insertion interruption rolls back the reservation and retries identical dependency custody without deleting predecessor history" + api.golden.architecture-relation-scheduling-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "retains both exact predecessor results as read context while granting writes only to the original sole primary Git workspace" + api.golden.architecture-relation-scheduling-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "denies secondary content writes and every permission outside the exact configured dependent profile before assignment construction" + api.golden.architecture-relation-scheduling-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "denies malformed failed and duplicate predecessor records rather than freezing incomplete or contradictory dependency evidence" + api.golden.architecture-relation-scheduling-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "denies elapsed original workday and stale provider observation without extending the dependent estimate window or changing predecessor custody" + api.golden.architecture-relation-scheduling-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "actual native Note publication blocks the dependent ready-node query before any successful independent predecessor input exists" + api.golden.architecture-relation-scheduling-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "actual original graph SQL and native exact profile proposal reads retain both cross-project Actor and Reviewer results despite distinct accepted Decision ownership" + api.golden.architecture-relation-scheduling-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "failed cancelled running and Actor-only supplied predecessor states cannot make the native dependent candidate eligible" + api.golden.architecture-relation-scheduling-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "missing disabled unpinned and moved native profile authority denies candidate retrieval without durable assignment reservation or financial mutation" + api.golden.architecture-relation-scheduling-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-native.test.ts + testName: "concurrent and repeated actual native candidate reads preserve exact dependency results original graph and financial history without creating a claim" + api.golden.architecture-relation-publication-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts + testName: "denies missing unknown cancelled and failed publication custody before any native connection" + api.golden.architecture-relation-publication-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts + testName: "denies absent unapproved and moved exact review commit without converting admission into an independent Actor review" + api.golden.architecture-relation-publication-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-authority.test.ts + testName: "denies both explicit production and every declared main ref before publication or indexing even with otherwise approved inputs" + api.golden.architecture-relation-publication-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts + testName: "denies empty missing foreign and stale submission authority without native commit or queued publication" + api.golden.architecture-relation-publication-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts + testName: "concurrent native submissions retain one original admitted change exact commit and queued publication without duplicate operation or proposal rewrite" + api.golden.architecture-relation-publication-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts + testName: "ordinary submission and actual runner publish the native exact Note then owning graph persistence exposes the independent reviewer dependency gate" + api.golden.architecture-relation-publication-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts + testName: "actual native staging movement after submission denies compare and swap publication without false manifest success or changed original candidate" + api.golden.architecture-relation-publication-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-publication-native.test.ts + testName: "late original publication audit interruption preserves native published commit immutable manifest and failed runner history before exact recovery replay" + api.golden.architecture-relation-authoring-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "serializes the canonical Note link through one original changeset with byte exact patch hash base ref and compare and swap authority" + api.golden.architecture-relation-authoring-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "denies malformed empty unknown relation and extra endpoint fields in the existing canonical Note schema without rewriting proposal authorities" + api.golden.architecture-relation-authoring-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "rejects duplicate changeset paths and preserves no newline deletion and exact input replay using the original patch implementation" + api.golden.architecture-relation-authoring-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-authority.test.ts + testName: "requires both graph and search exact committed source closure and preserves failed native graph job disposition instead of reporting completion" + api.golden.architecture-relation-authoring-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "creates and replays one governed native workspace writes canonical relation bytes and reads original exact draft without changing proposal endpoints" + api.golden.architecture-relation-authoring-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "denies missing malformed empty unsupported relation and unsafe path writes before native draft or original SQL custody changes" + api.golden.architecture-relation-authoring-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "denies missing foreign and stale author authority and rejects updates after actual native workspace closure without widening the original scope" + api.golden.architecture-relation-authoring-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "concurrent identical native edits retain one original version transition and exact relation bytes without duplicate successful custody or financial rows" + api.golden.architecture-relation-authoring-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "native exact relation commit graph and search refresh feed the owning dependency loader with raw byte provenance and unchanged proposal endpoints" + api.golden.architecture-relation-authoring-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-authoring-native.test.ts + testName: "late actual audit insertion failure retains native written bytes and recoverable original draft without false publication finance or successful replay" + api.golden.architecture-relation-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts + testName: "binds the sole cross-project edge to the exact note and approved reviewer without merging project authority or limits" + api.golden.architecture-relation-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts + testName: "rejects every endpoint identity revision digest commit path anchor model and store drift instead of silently dropping the dependency" + api.golden.architecture-relation-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts + testName: "rejects reciprocal cross-project cycles while duplicate identical relation replay produces one stable edge" + api.golden.architecture-relation-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-authority.test.ts + testName: "keeps dependent work blocked through failed cancelled or unapproved precursor candidates and releases only the successful independent review" + api.golden.architecture-relation-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "loads signed exact relation authority and persists separate project nodes with the independent reviewer gate and note provenance" + api.golden.architecture-relation-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "retains the digest of exact untrimmed note bytes and denies mismatched returned note path rather than inventing content custody" + api.golden.architecture-relation-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "denies unpinned malformed truncated and missing graph authorities before any graph persistence" + api.golden.architecture-relation-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "denies missing foreign and path-excluded endpoint library bindings without reading a note or changing owning graph history" + api.golden.architecture-relation-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "denies moved missing foreign project and unlinked exact note replies and rejects stale endpoint digest at the owning projector" + api.golden.architecture-relation-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "native graph and note HTTP denial unavailable reset and malformed responses retain original authority and retry without phantom SQL success" + api.golden.architecture-relation-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/relations/relation-native.test.ts + testName: "concurrent exact intake replay and late SQL interruption preserve one relation edge with rollback and exact retry readback" + api.golden.architecture-cross-project-proxy-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts + testName: "selects each sole exact secondary grant without rewriting its sibling commit or original primary authority" + api.golden.architecture-cross-project-proxy-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts + testName: "denies duplicate exact grants and ambiguous omitted selectors rather than granting the first entry" + api.golden.architecture-cross-project-proxy-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts + testName: "denies foreign missing moved and workspace secondary authority without widening to primary commits or produced history" + api.golden.architecture-cross-project-proxy-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-authority.test.ts + testName: "denies revoked expired and malformed explicit handle clocks for exact reads without accepting unknown time as active" + api.golden.architecture-cross-project-proxy-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "returns exact secondary bytes with independently verified narrow signed scope for each selected commit and path" + api.golden.architecture-cross-project-proxy-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "denies missing foreign moved and out of path secondary grants before upstream while retaining durable denial audit and frozen finance" + api.golden.architecture-cross-project-proxy-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "revoked expired and malformed handle authority cannot be bypassed by a different secondary repository identity" + api.golden.architecture-cross-project-proxy-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "denies released elapsed unknown clock foreign provider and missing scope authority before secondary HTTP without rewriting the original attempt" + api.golden.architecture-cross-project-proxy-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "secondary read grants never authorize workspace creation writes or a foreign repository even with a provider write token" + api.golden.architecture-cross-project-proxy-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "duplicate exact grants and conflicting path authority deny rather than signing the first secondary entry" + api.golden.architecture-cross-project-proxy-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "denied unavailable reset malformed and preaborted native reads never create successful audit finance or widened retry authority" + api.golden.architecture-cross-project-proxy-native-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "repeated and concurrent exact secondary reads preserve one frozen authority with distinct actual proxy audits and no assignment or financial mutation" + api.golden.architecture-cross-project-proxy-native-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/authority/architecture/cross-project-proxy-native.test.ts + testName: "native audit persistence interruption fails the public read and retry retains the same scope without false successful history or financial mutation" + api.golden.architecture-record-custody-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "exposes one exact canonical settlement for completed and failed attempts without translating legacy ledger truth" + api.golden.architecture-record-custody-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "reads supplied native measurements and distinct operational ledger authority without mutating financial or frozen assignment bytes" + api.golden.architecture-record-custody-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "denies absent operator and foreign project evidence before returning any settlement while retaining all original financial tables" + api.golden.architecture-record-custody-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "requires explicit scoped terminal pages and rejects malformed cursors rather than presenting a partial ledger as complete" + api.golden.architecture-start-authority-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts + testName: "requires one exact immutable library commit and denies absent malformed or moving revision authority without changing inputs" + api.golden.architecture-start-authority-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts + testName: "resolves selected project shares once and denies foreign or duplicate alias allocation without manufacturing another authority" + api.golden.architecture-start-authority-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts + testName: "preserves identical public manual and nested recurring intent mode selection and original time authority" + api.golden.architecture-start-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "preflights exact governed intent without starting a workday or mutating graph assignment reservation or financial authority" + api.golden.architecture-start-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "starts one native planning graph with exact frozen YAML context mode and original clocks then replays without another event or charge" + api.golden.architecture-start-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "denies absent principal foreign team missing digest and conflicting idempotent start without new scheduling or accounting truth" + api.golden.architecture-start-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "rejects membership revocation and moved profile library or policy authority between preflight and start with immutable original receipts" + api.golden.architecture-start-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "denies missing denied unavailable malformed and moved native content resolution without a successful start receipt or widened original window" + api.golden.architecture-start-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "retains a native started run after late receipt interruption and retries the same admission without duplicate graph events or financial mutation" + api.golden.architecture-start-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "retains required event failure history and refuses to replay a failed partial admission as a successful native start" + api.golden.architecture-start-native-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "starts the first recurring workday through real preflight native content graph and event persistence then retains exact intent on replay" + api.golden.architecture-start-native-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "concurrent native recurring ticks have one first-start receipt and one graph event history without double successful admission" + api.golden.architecture-start-native-10: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "denies initial admission after the original productive window has elapsed without a new deadline or successful start receipt" + api.golden.architecture-recurring-intent-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "retains one execution mode and exact governed intent without derived capacity or duplicate scheduling policy" + api.golden.execution-recurrence-numbers-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "denies coerced recurrence cadence and state versions before writes while retaining omitted defaults and exact numeric authority" + api.golden.execution-recurrence-numbers-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "real recurring schedule persistence denies coerced numerical authority without native writes and retains default explicit and stale-version behavior" + api.golden.architecture-recurring-intent-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "denies every retired capacity publication provider and time-tier field instead of manufacturing workday authority" + api.golden.architecture-recurring-intent-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "denies foreign malformed and contradictory intent clocks constraints and modes without a usable schedule" + api.golden.architecture-recurring-intent-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-intent.test.ts + testName: "rejects corrupt stored schedule states and noncanonical intents rather than exposing a successful partial record" + api.golden.architecture-recurring-replay-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "persists one high-level recurring intent with exact mode and no duplicate derived capacity authority" + api.golden.architecture-recurring-replay-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "replays the existing canonical start receipt into the same workday without another preflight run reservation or assignment" + api.golden.architecture-recurring-replay-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "concurrent conflicting schedule edits have one version winner without losing the original immutable intent or running workday" + api.golden.architecture-recurring-replay-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "late native receipt-link interruption retains prior start truth and retries without duplicate dispatch or financial mutation" + api.golden.architecture-recurring-replay-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/recurring-persistence.test.ts + testName: "foreign paused and future schedules cannot start work or rewrite existing workday custody" + api.golden.architecture-profile-inventory-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts + testName: "reads arbitrary complete stored profiles and compiled-handler selections through owning SQL without runtime role configuration" + api.golden.architecture-profile-inventory-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts + testName: "public profile inventory includes the last class after the original two hundred row page rather than silently hiding governed agents" + api.golden.architecture-profile-inventory-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts + testName: "denies malformed duplicate and forbidden stored profile authority instead of returning a partial successful inventory" + api.golden.architecture-profile-inventory-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/profile-inventory.test.ts + testName: "public profile query denies missing principal missing project and unknown compiled handler without SQL mutation" + api.golden.execution-graph-watch-cursor-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts + testName: "requires exact nonnegative safe integer watch cursor strings before reading history without normalizing malformed input" + api.golden.architecture-graph-watch-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts + testName: "returns exact hundred tail and explicit terminal watch pages with foreign team isolation and unchanged SQL" + api.golden.architecture-graph-watch-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/graph-watch.test.ts + testName: "denies absent principal and malformed watch cursors rather than silently restarting from old history" + api.golden.architecture-terminal-race-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "concurrent matching completions publish one canonical result and one graph transition without another settlement" + api.golden.architecture-terminal-race-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "simultaneous completion and failure have one winner while every original native measurement and attempt remains unchanged" + api.golden.architecture-terminal-race-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "simultaneous completion and bounded return cannot both transition or overwrite their predecessor candidate" + api.golden.architecture-terminal-race-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "operator cancellation request and provider terminal return release once without erasing previously settled work" + api.golden.architecture-terminal-race-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "terminal reporting races with native recovery selection without returning productive authority or charging twice" + api.golden.architecture-terminal-race-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "rejects stale node and graph revisions before completing against rewritten operational authority" + api.golden.architecture-terminal-race-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "native late result-write interruption rolls back the transition while preserving prior settlement and exact retry input" + api.golden.architecture-terminal-race-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-races.test.ts + testName: "expired productive authority never accepts a late success even with matching settled usage and a still-present candidate" + api.golden.architecture-initial-admission-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "claims one ready node with exact frozen authority one reservation and unchanged original caps" + api.golden.architecture-initial-admission-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "denies non-ready stale and foreign node claims without orphan reservation assignment or proxy" + api.golden.architecture-initial-admission-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "matching and competing concurrent node claims retain one durable attempt and one counter reservation" + api.golden.architecture-initial-admission-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "denies exhausted supply and concurrency without enlarging existing hard limits or original deadlines" + api.golden.architecture-initial-admission-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "rolls back late native proxy failure and retries the same immutable admission without residue" + api.golden.architecture-initial-admission-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "denies allocator mismatch malformed concurrency and expired productive windows before native writes" + api.golden.architecture-counter-scope-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts + testName: "shares exact host model capability day counters across teams without changing supplied authority" + api.golden.architecture-counter-scope-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts + testName: "separates provider model capability and day without creating a second accounting authority" + api.golden.architecture-counter-scope-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/counter-scope.test.ts + testName: "denies missing capabilities foreign models and malformed counter ceilings" + api.golden.execution-graph-digest-guard-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "binds every graph mutation to its exact winning digest even when competing revisions share the same publication clock" + api.golden.architecture-living-graph-postgres-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "serializes conflicting graph writers across independent connection pools with exact winning nodes and edges" + api.golden.architecture-living-graph-postgres-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "matching concurrent graph writes have one durable revision and repeated independent reads remain unchanged" + api.golden.architecture-living-graph-postgres-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-postgres.test.ts + testName: "late native SQL interruption rolls back all graph records before another independent writer retries exact authority" + api.golden.architecture-living-graph-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "unions profile and work-item provenance without allowing actor completion to bypass independent review" + api.golden.architecture-living-graph-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "rejects cycles missing work items denied permissions and foreign team inputs without changing sources" + api.golden.architecture-living-graph-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "preserves all running node authority while changed source creates a later immutable revision" + api.golden.architecture-living-graph-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "advances the same rejected pair once and blocks further revisions at the accepted review bound" + api.golden.architecture-living-graph-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "keeps one team graph and exact project identities deterministic under source permutation" + api.golden.architecture-living-graph-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-contract.test.ts + testName: "requires exact cross-project relation endpoints and rejects moved commit digest revision path and anchor" + api.golden.architecture-living-graph-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "persists one team graph with independent reviewed dependencies and exact provenance readback" + api.golden.architecture-living-graph-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "releases downstream SQL readiness only after independent reviewer completion and preserves the prior candidate" + api.golden.architecture-living-graph-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "read-only node explanation filtered views repeated reads and watch cursors never mutate owning SQL" + api.golden.architecture-living-graph-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "denies missing principal and foreign team node lookup with unchanged graph and assignments" + api.golden.architecture-living-graph-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "rejects stale competing revision writers without overwriting the winning graph or appending duplicate history" + api.golden.architecture-living-graph-sql-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "rolls back a late SQL edge failure and retries the exact projection without orphan nodes or revision residue" + api.golden.architecture-living-graph-sql-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/living/living-graph-integration.test.ts + testName: "persists a bounded request-changes revision on the same pair without unblocking downstream or modifying assignment history" + api.golden.architecture-completion-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts + testName: "retains a complete arbitrary-class frozen attempt and valid exact result unchanged" + api.golden.architecture-completion-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/completion-clock.test.ts + testName: "denies before-start and past-original-deadline result timestamps using the same complete frozen authority" + api.golden.architecture-completion-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "denies completed result clocks outside the immutable attempt and actual reporting interval without state mutation" + api.golden.architecture-completion-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "retains canonical completed result after public exactly-once settlement and replays without another charge" + api.golden.architecture-completion-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "denies completion before public settlement without creating a result or rewriting financial authority" + api.golden.architecture-completion-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "denies noncompleted result status and wrong completion owner token or deadline without changing stored authority" + api.golden.architecture-return-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "advances the retryable returned node revision without rewriting its historical assignment attempt" + api.golden.architecture-return-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "settles measured returned work exactly once and releases its consumed reservation before another attempt" + api.golden.architecture-return-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "retains wrong-owner token and expired-return denials without changing graph or financial authority" + api.golden.architecture-return-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "commits one returned transition and graph revision for concurrent matching reports and read-only replay" + api.golden.architecture-terminal-performance-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts + testName: "retains supplied measured terminal time and arbitrary class without rewriting the frozen assignment" + api.golden.architecture-terminal-performance-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts + testName: "denies unknown terminal measurements after execution started instead of synthesizing zero usage" + api.golden.architecture-terminal-performance-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts + testName: "denies coerced or negative measured seconds instead of converting them into successful performance facts" + api.golden.architecture-terminal-report-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "preserves the immutable attempt ordinal when a terminal report releases its lease and retains measured settlement" + api.golden.architecture-terminal-report-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "does not certify terminal revocation while the independently read exact workspace remains open" + api.golden.architecture-terminal-report-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "retains foreign-owner and wrong-token denials and matching terminal replay without another charge" + api.golden.architecture-terminal-report-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "rolls back a late SQL authority-revocation failure and retries terminal reporting without another settlement charge" + api.golden.architecture-workspace-identity-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts + testName: "retains exact open and closed resource reads without mutating the requested project binding" + api.golden.architecture-workspace-identity-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts + testName: "denies missing foreign or malformed workspace identity even when the repository matches" + api.golden.architecture-workspace-identity-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-identity.test.ts + testName: "retains foreign-repository and denied-upstream controls without exposing raw upstream text" + api.golden.architecture-workspace-readback-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts + testName: "reads exact open and closed resources repeatedly and concurrently without changing assignment finance" + api.golden.architecture-workspace-readback-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts + testName: "denies foreign and missing workspace identities rather than returning foreign authority with a success receipt" + api.golden.architecture-workspace-readback-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treedx/workspaces/architecture/workspace-readback-persistence.test.ts + testName: "denies missing principal binding and foreign repository before publishing a successful workspace receipt" + api.golden.architecture-workspace-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts + testName: "does not treat denied or unidentified upstream 404 errors as confirmed workspace absence" + api.golden.architecture-workspace-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts + testName: "requires no remote closure for an assignment that owns no TreeDX workspace" + api.golden.architecture-workspace-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup.test.ts + testName: "rejects missing mismatched or still-open close responses while retaining exact closed replay authority" + api.golden.architecture-workspace-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "does not turn an unidentified upstream 404 denial into durable workspace closure" + api.golden.architecture-workspace-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "closes the exact remote workspace before durable proxy revocation and retains settlement through replay" + api.golden.architecture-workspace-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "keeps explicit already-absent closure idempotent through the actual HTTP error contract" + api.golden.architecture-workspace-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "does not skip an open workspace merely because its SQL capability handle is already revoked" + api.golden.architecture-workspace-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "retries an interrupted operator close through workday cleanup even after durable capability revocation" + api.golden.architecture-workspace-sql-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "rejects a still-open success response instead of certifying closure without authoritative resource agreement" + api.golden.architecture-workspace-sql-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/workspace-cleanup-persistence.test.ts + testName: "retains recoverable workspace custody when the configured library binding is unavailable" + agent.golden.architecture-workday-terminal-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "preserves an unexpired provider lease while cancelling only unclaimed nodes in its workday" + agent.golden.architecture-workday-terminal-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "refuses unknown productive usage at the workday boundary instead of writing zero and declaring closure" + agent.golden.architecture-workday-terminal-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "preserves measured settlement and immutable attempts through repeated terminal cleanup" + agent.golden.architecture-workday-terminal-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "retains already durable measurements across a real transition SQL interruption and retry" + agent.golden.architecture-workday-terminal-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "does not report complete cleanup while an orphan running graph node remains" + agent.golden.architecture-workday-recovery-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/recovery-persistence.test.ts + testName: "does not execute deadline recovery before the original authority deadline or mutate scoped rows" + agent.golden.architecture-workday-recovery-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/recovery-persistence.test.ts + testName: "reports corrupt old-run provenance while closing another settled run and preserves both outcomes on retry" + api.golden.architecture-cancellation-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "requests active lease cancellation without terminalizing releasing or rewriting its immutable attempt" + api.golden.architecture-cancellation-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "replays terminal cancellation without replacing measured settlement or releasing counters twice" + api.golden.architecture-cancellation-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "refuses unknown productive usage instead of fabricating a zero settlement during terminal cancellation" + api.golden.architecture-cancellation-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "retains durable measured settlement when workspace cleanup is interrupted and retried" + api.golden.architecture-cancellation-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "denies foreign team missing idempotency and completed assignment cancellation without accounting mutation" + api.golden.architecture-recovery-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-authority.test.ts + testName: "does not authorize a zero-cost safe retry when an execution clock started but terminal usage is unknown" + api.golden.architecture-recovery-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-authority.test.ts + testName: "preserves no-execution retry and financial uncertainty side-effect result and bounded failover denials" + api.golden.architecture-recovery-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts + testName: "leaves executing leases available only for bounded terminal reporting without granting productive time" + api.golden.architecture-recovery-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery-persistence.test.ts + testName: "reconciles a preparation-only expired lease without rewriting its attempt and settles the released reservation once" + api.golden.architecture-provider-settlement-existing-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts + testName: "rejects retired mode-run identity before any settlement or assignment lookup" + api.golden.architecture-provider-settlement-existing-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts + testName: "settles conversation usage without inventing a returned checkpoint or completing before its result" + api.golden.architecture-provider-settlement-existing-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-assignment-settlement.test.ts + testName: "does not invoke conversation closeout for ordinary workday settlement" + api.golden.architecture-provider-accounting-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts + testName: "retains exact configured attempt and measured input without mutating the caller" + api.golden.architecture-provider-accounting-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts + testName: "denies coercible measured seconds and attempt values before calling the settlement owner" + api.golden.architecture-provider-accounting-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts + testName: "denies a provider principal conflicting with the frozen assignment owner even within its membership" + api.golden.architecture-provider-accounting-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts + testName: "denies unknown and terminal accounting modes on the nonterminal report boundary" + api.golden.architecture-provider-accounting-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting.test.ts + testName: "denies missing credentials scopes and unknown membership assignments without calling accounting" + api.golden.architecture-provider-accounting-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "preserves incremental measurements and charges one aggregate across repeated concurrent public reports" + api.golden.architecture-provider-accounting-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies coerced public measurement or attempt values before any accounting row is committed" + api.golden.architecture-provider-accounting-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies foreign provider ownership despite matching membership and preserves all accounting rows" + api.golden.architecture-provider-accounting-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies unknown or terminal nonterminal-report modes instead of silently storing informational usage" + api.golden.architecture-provider-accounting-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies a terminal aggregate below measured incremental seconds while retaining those measurements" + api.golden.architecture-provider-accounting-sql-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies aggregate token underreporting rather than dropping known incremental provider counts" + api.golden.architecture-provider-accounting-sql-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "replays a cleanup release without replacing the prior real measured aggregate or charging again" + api.golden.architecture-provider-accounting-sql-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "refuses zero cleanup settlement when accepted incremental work remains unaccounted" + api.golden.architecture-provider-accounting-sql-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "denies unauthenticated underscoped and foreign membership reports without changing original SQL" + api.golden.architecture-provider-accounting-sql-10: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/provider-accounting-persistence.test.ts + testName: "retains a matching incremental replay after settlement but denies new late usage without residue" + api.golden.architecture-settlement-unit-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies a first report substituting an execution provider outside the frozen selection" + api.golden.architecture-settlement-sql-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "denies first terminal report executor substitution before durable usage or counter attribution" + api.golden.architecture-settlement-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "preserves exact arbitrary-class attempt and measured input while identifying one matching report" + api.golden.architecture-settlement-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies changed durable attempt and scalar measurement on an otherwise identical retry" + api.golden.architecture-settlement-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies coerced attempt identities rather than treating strings as the frozen attempt number" + api.golden.architecture-settlement-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies changed native measurement or provider model authority on an idempotent report" + api.golden.architecture-settlement-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies incomplete frozen attempt authority before preparing terminal measurement persistence" + api.golden.architecture-settlement-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "denies malformed native measured units before they can become null or coerced stored values" + api.golden.architecture-settlement-sql-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "settles repeated and concurrent matching terminal reports once with exact native usage and immutable authority" + api.golden.architecture-settlement-sql-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "denies foreign identity changed attempt and conflicting scalar retries without altering any durable accounting row" + api.golden.architecture-settlement-sql-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "rejects changed native usage and provider model replay instead of silently retaining incompatible measured authority" + api.golden.architecture-settlement-sql-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "rolls back real late SQL failure including usage counters and claim then permits one clean retry" + api.golden.architecture-settlement-sql-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "records supplied terminal overrun truth without raising hard limits or charging a replay twice" + api.golden.architecture-settlement-sql-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "denies incomplete frozen attempt instead of committing unattributed terminal measurements" + api.golden.architecture-settlement-sql-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "denies coerced attempt identity before charging a reservation through actual SQL" + api.golden.architecture-settlement-sql-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-persistence.test.ts + testName: "denies corrupt native units rather than durably writing negative coerced or null measurements" + api.golden.architecture-usage-pages-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "reads all measured usage beyond page one with exact project workday cursor and immutable repeated reads" + api.golden.architecture-usage-pages-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "denies missing authority corrupt native JSON and invalid pages while preserving explicit empty terminal evidence" + api.golden.architecture-usage-pages-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/usage-observation-persistence.test.ts + testName: "rejects corrupt stored creation clocks and zero measured productive time instead of returning valid-looking evidence" + api.golden.architecture-assignment-pages-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/assignment-observation-persistence.test.ts + testName: "reads every creation-ordered and identity-tied page including a failed tail with exact workday and team scope" + api.golden.architecture-assignment-pages-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/assignment-observation-persistence.test.ts + testName: "returns explicit empty terminal authority and denies unauthenticated or invalid cursor and page requests" + api.golden.architecture-workday-observation-pages: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts + testName: "retains every event beyond the first show page through actual cursor reads without database mutation" + api.golden.architecture-workday-observation-unavailable: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts + testName: "distinguishes observed empty scheduling from unavailable SQL and denies missing scope or malformed cursors" + api.golden.architecture-admission-replay-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "returns an identical replay without rewriting the original input or stored snapshot" + api.golden.architecture-admission-replay-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to grant or mutable workspace" + api.golden.architecture-admission-replay-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to profile handler or parameters" + api.golden.architecture-admission-replay-unit-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to source and Decision authority" + api.golden.architecture-admission-replay-unit-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to provider build and original deadline" + api.golden.architecture-admission-replay-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to graph context and predecessor custody" + api.golden.architecture-admission-replay-unit-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects replay changes to accepted estimate or reserved limit" + api.golden.architecture-admission-replay-unit-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects a replay by an unrelated team or capacity provider" + api.golden.architecture-admission-replay-unit-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "rejects an identity already bound to another node revision" + api.golden.architecture-admission-replay-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "replays exact persisted custody repeatedly and concurrently without changing six owning SQL tables or their required original accounting history" + api.golden.architecture-admission-replay-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed grant or mutable workspace against actual stored custody" + api.golden.architecture-admission-replay-native-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed profile handler or parameters against actual stored custody" + api.golden.architecture-admission-replay-native-4: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed source and Decision authority against actual stored custody" + api.golden.architecture-admission-replay-native-5: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed provider build and original deadline against actual stored custody" + api.golden.architecture-admission-replay-native-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed graph context and predecessor custody against actual stored custody" + api.golden.architecture-admission-replay-native-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies changed accepted estimate or reserved limit against actual stored custody" + api.golden.architecture-admission-replay-native-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts + testName: "denies unrelated authenticated team and provider while preserving persisted authority" + api.golden.architecture-decision-proposal-unit-no-substitute: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts + testName: "denies an operational proposal snapshot without governed classed Decision authority" + api.golden.architecture-decision-review-unit-complete: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "accepts complete classed authority for arbitrary configured reviewing identity without input mutation" + api.golden.architecture-decision-review-unit-required: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "denies absent or malformed class, method, decision-maker and authority evidence" + api.golden.architecture-decision-review-unit-positions: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "requires signed positions for approval and vote methods, not a method label alone" + api.golden.architecture-decision-review-unit-disposition: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "does not turn a rejected work-review Decision into request-changes" + api.golden.architecture-decision-review-unit-maker: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "requires exact decision-maker evidence from the assigned governed reviewing profile" + api.golden.architecture-decision-review-unit-conflict: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "denies conflicting exact review Decisions rather than selecting the first returned disposition" + api.golden.architecture-decision-review-unit-time: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-authority.test.ts + testName: "denies review evidence produced before admission or after the returned result" + api.golden.architecture-decision-review-native-complete: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "reads exact committed authority, approval and vote evidence repeatedly and concurrently without mutation" + api.golden.architecture-decision-review-native-positions: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "rejects method labels without exact signed positions through native content readback" + api.golden.architecture-decision-review-native-required: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "denies missing and malformed classed authority from actual committed YAML without changing SQL" + api.golden.architecture-decision-review-native-conflict: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "rejects conflicting committed dispositions instead of treating reference order as authority" + api.golden.architecture-decision-review-native-maker: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "denies committed evidence attributed to a different reviewing identity" + api.golden.architecture-decision-review-native-time: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "rejects stale or future committed Decision times relative to the original review assignment and result" + api.golden.architecture-decision-review-native-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "denies moved and forbidden source readback without changing persisted authority" + api.golden.architecture-decision-review-native-predecessor: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/review-decision-native.test.ts + testName: "does not approve a stale candidate outside immutable predecessor result identities" + api.golden.architecture-decision-proposal-native-no-substitute: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "does not substitute an accepted SQL row and exact proposal bytes for a governed classed Decision" + api.golden.architecture-decision-proposal-native-stale: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "retains fail-closed moved proposal revision, digest and superseded Decision controls in owning SQL" + api.golden.execution-decision-producer-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/decision-execution-plan-authority.test.ts + testName: "decision creation replay rejects retained foreign stale rejected and superseded authority before returning or rewriting an existing decision" + api.golden.execution-decision-replay-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "original decision creation replay denies retained foreign stale rejected and superseded SQL authority without rewriting history" + api.golden.execution-decision-producer-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-native.test.ts + testName: "original governance acceptance publishes one native classed Decision for the exact proposal and preserves that content and original history through decision creation replay" + api.golden.execution-provider-offer-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "denies missing malformed and legacy partial provider offers before constructing an immutable governed assignment" + api.golden.execution-provider-utc-allocation-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/workspaces/architecture/relation-scheduling-authority.test.ts + testName: "retains the original UTC day and phase bounds for positive whole-second supply and denies subsecond supply without changing governed inputs" + api.golden.execution-provider-offer-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts + testName: "rejects missing malformed mixed and duplicate offer inventories before open or refresh can publish partial supply" + api.golden.architecture-readiness-complete: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "admits complete arbitrary-class work without changing authored scope or estimates" + api.golden.architecture-readiness-required: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "denies every missing work-item authority even when both estimates are present" + api.golden.architecture-readiness-malformed: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "denies malformed scope review bounds and retired work-item fields without rewriting input" + api.golden.architecture-readiness-estimates: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "requires positive integer expected maximum and reviewer estimates with no coercion or minimum field" + api.golden.architecture-readiness-dependencies: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "requires unique local acyclic work dependencies rather than manufacturing a graph from estimates" + api.golden.architecture-readiness-draft: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/ready-proposal.test.ts + testName: "keeps structurally valid estimate-free drafts outside executable demand" + api.golden.architecture-readiness-native-optional: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "admits canonical optional-capability omission instead of imposing a second proposal schema" + api.golden.architecture-readiness-native-custody: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "replays complete native proposal source without rewriting content estimates or SQL authority" + api.golden.architecture-readiness-native-dependencies: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "denies duplicate dangling and cyclic governed work at the actual SQL source boundary" + api.golden.architecture-readiness-native-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-native-readiness.test.ts + testName: "keeps denied moved and digest-mismatched exact HTTP reads closed without mutating persisted source" + api.golden.architecture-calibration-sql-scope: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/calibration-persistence.test.ts + testName: "selects exactly the latest twenty eligible same-scope measurements without changing SQL or workday authority" + api.golden.architecture-calibration-sql-malformed: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/calibration-persistence.test.ts + testName: "denies malformed selected estimate bytes rather than turning stored SQL history into an admitted deadline" + api.golden.architecture-closeout-unit-failed: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: "retains failed Reporter failure evidence without ending a workday that has no closeout report" + api.golden.architecture-closeout-unit-cancelled: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: "retains cancelled Reporter failure evidence without ending a workday that has no closeout report" + api.golden.architecture-closeout-unit-stale: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: "retains stale Reporter failure evidence without ending a workday that has no closeout report" + api.golden.architecture-closeout-unit-single: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: "ends only after Reporter completion and reservation settlement" + api.golden.architecture-closeout-unit-time: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: "rejects future-completion Reporter evidence despite a completed graph node" + api.golden.architecture-closeout-sql-failed: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "retains failed Reporter failure through SQL without an unreported ended workday" + api.golden.architecture-closeout-sql-cancelled: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "retains cancelled Reporter failure through SQL without an unreported ended workday" + api.golden.architecture-closeout-sql-stale: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "retains stale Reporter failure through SQL without an unreported ended workday" + api.golden.architecture-closeout-sql-single: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "persists exactly one canonical workday report from the completed result without a plural authority map" + api.golden.architecture-closeout-sql-settlement: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "does not end or publish a report while its actual reservation remains consuming" + api.golden.architecture-closeout-sql-time: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts + testName: "denies future result completion at the real SQL closeout boundary" + api.golden.architecture-reporting-rename: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts + testName: "projects reporting from a governed profile independently of the agent class name" + api.golden.architecture-closeout-selection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts + testName: "rejects ambiguous closeout selection instead of manufacturing multiple workday reports" + api.golden.architecture-reporting-event-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts + testName: "never invents a reporting lifecycle dependency from an agent name or another activity" + api.golden.architecture-activity-event-scope: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts + testName: "applies a declared lifecycle dependency only to its scheduled activity" + api.golden.architecture-disabled-reporting: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-projection.test.ts + testName: "does not manufacture reporting work for disabled profiles or mutate governed profile bytes" + api.golden.architecture-closeout-sql: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-persistence.test.ts + testName: "persists and read-backs renamed reporting readiness through the original closing transition" + api.golden.architecture-event-sql: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/architecture/workday-profile-persistence.test.ts + testName: "persists lifecycle edges only for the activity that declares them in YAML" + api.golden.verification-prerequisite-custody: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/publication.test.ts + testName: "declares exact recursive source custody and real PostgreSQL for the complete prerequisite suite before capacity scenes" + api.golden.review-calibration-no-floor: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: "calibrates exact review history without inventing a minimum allocation floor" + api.golden.review-history-scope: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts + testName: "uses only proposal-governance history for proposal reviews, never paired-review duration" + api.golden.governance-review-not-dispatched: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts + testName: "does not admit a separate proposal Reviewer in either phase" + api.golden.transaction-reprojection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts + testName: "reprojects only the rolled-back graph operations against the committed revision" + api.golden.transaction-retry-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts + testName: "fails closed on unrelated uniqueness errors and bounded repeated contention" + api.golden.transaction-inherited-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/assignments/assignment-graph-transition-retry.test.ts + testName: "propagates an inherited transaction failure without reusing its aborted connection" + api.golden.invocation-terminal-returned: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: returned" + api.golden.invocation-terminal-failed: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: failed" + api.golden.invocation-terminal-cancelled: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: cancelled" + api.golden.invocation-terminal-foreign-team: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: foreign-team" + api.golden.invocation-terminal-foreign-invocation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: foreign-invocation" + api.golden.invocation-terminal-leased: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rebinds only its own terminal conversation attempt: leased" + api.golden.progress-postgres-custody: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress-postgres.test.ts + testName: "retains captured preparation evidence and ordered replay without duplicate discussion commits" + api.golden.preparation-progress: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "persists all captured EJ preparation stages without waiting for TreeDX projection" + api.golden.preparation-no-commit-wait: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "does not put a delayed discussion commit on the preparation critical path" + api.golden.provider-progress-authority: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "keeps routine provider progress in its one authoritative workday event stream" + api.golden.provider-terminal-projection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "preserves terminal and diagnostic warning discussion projection with exact durable content" + api.golden.terminal-projection-fatal: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "keeps required terminal projection failure fatal rather than returning a false receipt" + api.golden.terminal-projection-replay: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "replays required terminal projection after a durable event survived a failed discussion commit" + api.golden.progress-idempotency: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "retains durable progress idempotency and rejects changed evidence" + api.golden.workday-lifecycle-projection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "preserves ordinary workday lifecycle projection and activity mirror exclusion" + api.golden.progress-token-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/provider-progress.test.ts + testName: "still rejects transient token deltas before durable insertion" + api.golden.late-planning-round: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts + testName: "captured EI third round preserves deadlines and creates only usable new rounds" + api.golden.fluid-planning-window: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/planning-round-window.test.ts + testName: "fluid planning after initial phase preserves deadlines and creates only usable new rounds" + api.golden.unusable-execution-window: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/execution-window-replay.test.ts + testName: "rejects captured EI sub-second execution rather than starting a model that cannot close out" + api.golden.short-productive-window: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/execution-window-replay.test.ts + testName: "preserves a short but productive window outside the existing closeout reserve" + api.golden.reviewed-allocation-history: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts + testName: "retains only exact approved Actor history after graph retirement" + api.golden.expired-allocation-history: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts + testName: "calibrates productive deadline expiration, not uncertain lease recovery" + api.golden.availability-assignment-locks: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts + testName: publishes while a concurrent assignment write holds a dependent provider row + api.golden.availability-reservation-locks: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts + testName: publishes while a concurrent reservation write holds a dependent provider row + api.golden.availability-accounting-serialization: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts + testName: serializes observations across memberships before validation and publication + api.golden.availability-open-assignment-locks: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts + testName: opens availability while an assignment FK write holds a dependent provider row + api.golden.availability-open-reservation-locks: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-locks-postgres.test.ts + testName: opens availability while a reservation FK write holds a dependent provider row + api.golden.operator-phase-postgres: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts + testName: settles actual returned pre-model phase cancellation once without late completion, cap expansion or approval + api.golden.operator-phase-closeout: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: normalizes a claimed returned turn without replacing the provider closure or measured usage + api.golden.operator-cancellation-measurement-unit: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: denies missing malformed and incomplete measured usage before cancelling a released productive attempt + api.golden.operator-phase-no-fabrication: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: does not invent isolation teardown when the provider supplied no receipt + api.golden.operator-phase-early-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: preserves ordinary cancellation for earlier despite a planning-looking reason or key + api.golden.operator-phase-acting-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: preserves ordinary cancellation for acting despite a planning-looking reason or key + api.golden.operator-phase-fluid-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: preserves ordinary cancellation for fluid despite a planning-looking reason or key + api.golden.operator-phase-provider-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/providers/assignments/operator-planning-cancel.test.ts + testName: preserves ordinary cancellation for wrong-provider despite a planning-looking reason or key + api.golden.admission-source-custody-leased: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: preserves source custody when a losing admission reaches an existing leased assignment + api.golden.admission-source-custody-pending: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: preserves source custody when a losing admission reaches an existing pending assignment + api.golden.admission-source-custody-completed: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: preserves source custody when a losing admission reaches an existing completed assignment + api.golden.admitted-discussion-binding: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "does not let a denied admission steal the invocation before the winning assignment exists" + api.golden.discussion-binding-foreign-team: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rejects mismatched conversation admission authority: foreign-team" + api.golden.discussion-binding-wrong-reservation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rejects mismatched conversation admission authority: wrong-reservation" + api.golden.discussion-binding-wrong-invocation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rejects mismatched conversation admission authority: wrong-invocation" + api.golden.discussion-binding-terminal: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rejects mismatched conversation admission authority: terminal" + api.golden.discussion-binding-bound-other: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts + testName: "rejects mismatched conversation admission authority: bound-other" + api.golden.concurrent-terminal-revisions: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/persistence/concurrent-results-postgres.test.ts + testName: "commits five simultaneous results against reconciliation without duplicate or lost revisions" + api.golden.phase-before-tick: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts + testName: cancels the captured timeout when its phase ends before periodic cancellation + api.golden.phase-after-tick: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts + testName: recognizes phase cancellation after the periodic request without trusting a provider request + api.golden.phase-task-timeout-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts + testName: preserves earlier task expiration and acting failures + api.golden.phase-fluid-planning-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts + testName: keeps fluid planning and non-timeout failures unchanged + api.golden.phase-authority-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/assignments/planning-boundary-cancellation.test.ts + testName: does not infer phase cancellation from missing or malformed authority + api.golden.phase-before-tick-postgres: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts + testName: settles actual phase timeout before periodic cancellation once without late completion, cap expansion or approval + api.golden.phase-after-tick-postgres: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts + testName: settles actual phase stop after periodic cancellation once without late completion, cap expansion or approval + api.golden.phase-real-timeout-postgres: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts + testName: settles actual 12 seconds once without late completion, cap expansion or approval + api.golden.phase-real-overrun-postgres: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts + testName: settles actual 25 seconds once without late completion, cap expansion or approval + api.golden.active-window-production: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts + testName: does not precharge unused infrastructure watchdog time in production + api.golden.active-window-simulation: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts + testName: does not precharge unused infrastructure watchdog time in simulation + api.golden.active-window-rollover: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts + testName: clamps after real preparation without crossing the UTC accounting day + api.golden.active-window-exhaustion: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/admission/assignment-active-window.test.ts + testName: defers after authority is exhausted without changing provider supply + api.golden.continuation-history: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: derives a bounded exact lineage from existing records without another ledger + api.golden.continuation-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/workdays/continuation.test.ts + testName: rejects retained leases, unsettled reservations, cycles, unknown decisions and project expansion + api.golden.continuation-freshness: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph-persistence.test.ts + testName: preserves exact completed history only for explicit continuation, never fresh simulation or changed authority + api.golden.explicit-proposal-selection: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: keeps one or several explicit proposals while ignoring unrelated open proposals + api.golden.terminal-scoped-planning: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: stops regenerating terminal explicit proposal and decision scope without shortening the planning phase + api.golden.incomplete-scoped-planning: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: keeps incomplete scoped proposals planning even when exact executable-plan parsing is not ready + api.golden.unscoped-proposal-discovery: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: adds a newly created proposal owner and Reviewer to the next round without replacing the frozen planning agents + api.golden.decision-proposal-selection: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: keeps decision-only continuation planning scoped without rediscovering unrelated proposals + api.golden.decision-proposal-denial: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: fails closed on missing or foreign-team decision planning scope before proposal discovery + api.golden.source-pin-field-comparison: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/workspaces/source-pin.test.ts + testName: compares exact pin fields independent of serialized key order and rejects changed or missing custody + api.golden.source-pin-mutation-denied: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: rejects a public pin that no longer matches the immutable assignment SHA + api.golden.project-library-binding: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: keeps the assignment project library binding distinct from Team Library context + api.golden.project-workspace-write: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: writes planning content to its project library while retaining Team Library as read-only context + api.golden.cross-project-write-denied: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: rejects a writable TreeDX source bound to another project library + api.golden.provider-usage-deadlock-retry: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/postgres-batch-retry.test.ts + testName: settles five concurrent usage-like batches despite repeated deadlocks + api.golden.provider-usage-deadlock-bound: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/postgres-batch-retry.test.ts + testName: bounds SQL batch deadlock retries without retrying unrelated failures + api.golden.bounded-planning-node-id: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: admits a long governed proposal without exceeding the planning node ID bound + api.golden.retired-graph-estimate-migration: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/graph/migrations/retired-graph-estimate-minimum.test.ts + testName: removes only the retired minimum from persisted graph estimates and replays as a noop + api.golden.early-external-approval: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/governance/proposals/early-external-approval.test.ts + testName: records external approval without creating an unestimated decision + api.golden.estimate-finalizes-approval: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: finalizes only a matching external approval after all owner and reviewer estimates arrive + api.golden.fluid-phase: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: continues or resumes planning when no approved acting node is ready + api.golden.external-approval: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/living-workday-lifecycle.test.ts + testName: keeps planning a fully estimated ready proposal until external approval yields acting work + api.golden.parallel-proposals: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: projects concurrent same-project proposal estimates against distinct exact sources + api.golden.reporter-carry-forward: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: lets Reporter close the workday while selected decision work carries forward + api.golden.canonical-adapter-headroom: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts + testName: derives five-slot remaining headroom from canonical adapter worker counts on open and refresh + api.golden.total-admission-ceiling: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: uses the total five-slot ceiling rather than remaining headroom for atomic admission + api.golden.planning-communication-turn: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: gives planning discussion the policy turn ceiling without changing acting chat allocation + api.golden.proposal-review-source: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "admits unbound decision work without a separate proposal Reviewer" + api.golden.proposal-review-binding: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph-persistence.test.ts + testName: "binds selected proposal work and its accepted decision to one simulation" + api.golden.proposal-review-phase: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts + testName: "does not admit a separate proposal Reviewer in either phase" + api.golden.proposal-review-accounting: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/scheduling/proposal-review-phase.test.ts + testName: "charges paired work review to acting" + api.golden.proposal-review-supply: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/allocation-inputs.test.ts + testName: "counts shared proposal work through real PostgreSQL graph custody, not only workday-owned nodes" + api.golden.proposal-review-window: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/assignment-attempt-builder.test.ts + testName: "allocates a paired work review from the acting window without a minimum floor" + api.golden.proposal-review-phase-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-admission.test.ts + testName: "fails closed when an assignment has no allocator-issued active phase" + api.golden.timeout-report-grace: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/assignment-recovery-service.test.ts + testName: "keeps productive expiry distinct from bounded provider timeout reporting" + api.golden.public-exact-source: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "uses the immutable public source SHA without consuming anonymous GitHub REST quota" + api.golden.public-moving-source: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "resolves public moving refs with API-only custody and reuses the immutable pin" + api.golden.planning-source-quota: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "does not exhaust anonymous quota across repeated planning source authorizations" + api.golden.public-source-custody-failure: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "supports public moving refs without a configured connection, but never retries a failed managed lookup anonymously" + api.golden.public-source-authority-selection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-credential-authority.test.ts + testName: "permits anonymous public metadata only when no unpinned managed authority exists" + api.golden.public-source-pin-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workspaces/source-workspace-service.test.ts + testName: "rejects a public pin that no longer matches the immutable assignment SHA" + api.golden.estimate-lease-reconciliation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "re-reads and merges distinct class estimates after a concurrent TreeDX branch lease" + api.golden.owner-estimate-graph: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "allows an owner estimate after its own planning turn without waiting for unrelated agents" + api.golden.estimate-lease-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "fails closed on non-lease conflicts and exhausted assignment time" + api.golden.maintenance-failure-isolation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-maintenance.test.ts + testName: "reconciles running graphs after each housekeeping failure and preserves diagnostics" + api.golden.maintenance-retry: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-maintenance.test.ts + testName: "retries after a failed sweep without overlapping maintenance passes" + api.golden.content-exact-path: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts + testName: "delegates the exact validated Note commit and path without collection-wide authoring access" + api.golden.content-receipt: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts + testName: "produces the integration receipt only from exact readable result content" + api.golden.content-readback-denial: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/assignment-content-readback.test.ts + testName: "rejects wrong commit, absent path, and unreadable content without a receipt" + api.golden.response-integration-order: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/communication/terminal-invocation-reconciliation.test.ts + testName: "waits for content integration after canonical completion, then delivers the durable response" + api.golden.recursive-workspace-reference: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/assignment-result-completion.test.ts + testName: "accepts exact TreeDX discussion output under a recursive workspace grant" + api.golden.send-completion-boundary: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/communication/completion/send-completion.test.ts + testName: "does not treat published content as completion while the assignment runs" + api.golden.published-reply-failure: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/communication/completion/send-completion.test.ts + testName: "reports partial rather than complete for a mixed terminal result" + api.golden.estimate-merge: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "merges only the assigned estimate while preserving another completed estimate" + api.golden.estimate-ownership: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "rejects unrelated content and lets a later class-owned planning turn refine its estimate" + api.golden.estimate-target: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "rejects missing, mistargeted, or changed work items" + api.golden.estimate-reviewer: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "merges Reviewer estimates for every work item without replacing actor estimates" + api.golden.estimate-completeness: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "accepts one class contribution for multiple owned work items and rejects a partial contribution" + api.golden.estimating-participants: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "automatically admits only proposal work owners and Reviewer to estimating; autonomous planning remains valid" + api.golden.estimating-missing-only: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "projects estimates only for missing owner and reviewer measurements" + api.golden.estimating-six-owners: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "projects six work-owner contributions, including multiple items for Engineer, and one Reviewer" + api.golden.estimating-target-selection: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "projects an explicitly selected estimating profile without falling back to planning" + api.golden.review-no-planning: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "does not manufacture subjectless planning rounds for a selected review activity" + api.golden.authority-gate: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts + testName: "retains resolved feedback conditions and blocks acting until questions and decision are complete" + api.golden.planning-authority: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "keeps policy authority stable across operational accounting and repeated rounds" + api.golden.planning-dependencies: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "projects dependency-ordered planning and closing Reporter work" + api.golden.estimate-preservation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "preserves all six golden owner estimates and six reviews regardless of Reviewer publication order" + api.golden.closed-authority: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts + testName: "rejects a racing estimator result before reading or writing a closed proposal" + api.golden.graph-generation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts + testName: "derives stable actor and reviewer nodes from each accepted work item" + api.golden.dependencies: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts + testName: "uses exact work-item and profile dependencies without changing estimates" + api.golden.research-parallel: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/living-execution-graph.test.ts + testName: "keeps reviewed Research parallel to the immediate engineering chain" + api.golden.exact-review: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/review-result.test.ts + testName: "accepts only an exact classed decision bound to the actor candidate" + api.golden.restart: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-recovery-graph-custody.test.ts + testName: "finds ready graph work and assignment evidence by the canonical workday IDs" + api.golden.recovery-isolation: + kind: vitestCase + ownerPackage: '@treeseed/api' + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-recovery-graph-custody.test.ts + testName: recovers later terminal workdays before reporting a corrupt historical assignment + api.golden.missing-result: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-assignment-evidence.test.ts + testName: "rejects a completed assignment missing its immutable result" + api.golden.admission-fence: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-admission-fence.test.ts + testName: "closes and reconciles the authoritative living plan before reporting admission closed" + api.golden.concurrency: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/concurrent-runs-postgres.test.ts + testName: "preserves production and simulation workdays when another workday or conversation starts" + api.golden.cancellation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/workday-terminalization-graph-custody.test.ts + testName: "cancels unclaimed graph nodes without touching retired demand rows" + api.golden.request-changes: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts + testName: "advances the same Actor and Reviewer pair when exact review requests changes" + api.golden.review-exhaustion: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts + testName: "blocks the same work item when its bounded review cycles are exhausted" + api.golden.fresh-simulation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts + testName: "counts only the current simulation workday when enforcing review cycles" + api.golden.revision-feedback: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "passes the prior exact Reviewer result to a revised Actor node" + api.golden.candidate-dependency: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "carries an approved Reviewer result and its exact Actor Git candidate to dependent work" + api.golden.profile-integrity: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "rejects a projected agent definition that differs from its exact TreeDX source" + api.golden.reporter-context: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/ready-execution-node.test.ts + testName: "loads every canonical workday attempt for Reporter instead of stopping at condition nodes" + api.golden.reporter-terminal-gate: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/graph/workday-execution-projector.test.ts + testName: "lets Reporter close the workday while selected decision work carries forward" + api.golden.response-authority: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response.test.ts + testName: "records the exact response without returning the assignment or revoking its lease" + api.golden.response-continuation: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/completed-response-continuation.test.ts + testName: "resumes the exact agent only after canonical completion and lease release" + api.golden.response-race: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response.test.ts + testName: "fails closed if concurrent lease loss prevents durable response attribution" + api.golden.architecture-dependency-approval-unit-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original rejection refuses a lost conditional transition or changed winning digest even when the winning key matches without recording a successful audit or rewriting inputs" + api.golden.architecture-dependency-operator-postgres-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL rejection wins natively blocked competing approval and changed reason races with exact key digest custody one audit no enrollment residue and immutable confirmed replay" + api.golden.architecture-dependency-approval-unit-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original approval refuses changed winning alias digest under the same key before audit and retains exact conditional enrollment inputs" + api.golden.architecture-dependency-operator-postgres-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL approval wins natively blocked rejection and changed alias races with exact enrollment digest audit and immutable confirmed replay" + api.golden.architecture-dependency-approval-unit-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-approval-authority.test.ts + testName: "original terminal rejection refuses unbound replay keys before transition or audit even when the requested reason matches the winner" + api.golden.architecture-dependency-operator-postgres-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL identical rejection races share one terminal result only for the bound key with one audit and no enrollment or unbound replay" + api.golden.architecture-dependency-operator-unit-3: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-authority.test.ts + testName: "original team management policy waits for the current membership read and cannot reuse earlier owner authority after revocation" + api.golden.architecture-dependency-operator-postgres-9: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/enrollment/dependency-operator-postgres.test.ts + testName: "current authenticated PostgreSQL review waits for native team policy and denies approval or rejection after membership revocation without a terminal transition" + api.golden.response-sql-authority: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/provider-discussion-response-postgres.test.ts + testName: "retains the exact live lease and blocks stale or cross-team response attribution in PostgreSQL" + api.golden.architecture-dependency-bootstrap-unit-6: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original identity rotation repository keeps both proofs evidence identity and token revocation in one exact pending batch and propagates the same interruption before unchanged retry readback" + api.golden.architecture-dependency-bootstrap-postgres-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL final token revocation interruption rolls back the entire identity rotation batch and admits the same original bearer proofs and key on retry without losing history" + api.golden.architecture-dependency-bootstrap-unit-7: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-authority.test.ts + testName: "original committed access token replay preserves the same missing audit interruption then recovers the original token actor metadata and issuance clock without creating or rewriting authority" + api.golden.architecture-dependency-bootstrap-postgres-8: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/bootstrap/dependency-bootstrap-postgres.test.ts + testName: "genuine enrolled PostgreSQL first access token audit failure retains the exact committed token and fresh nonce recovery restores one original issuance audit without reissuing or erasing failed history" + api.golden.architecture-decision-intent-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts + testName: "normalizes repeated public decision selectors in exact code point order without deriving authority or changing omitted planning controls" + api.golden.architecture-decision-intent-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-authority.test.ts + testName: "rejects every malformed mixed decision selector and named caller derived identity before normalization can discard it" + api.golden.architecture-decision-intent-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "real public preflight and nested schedule deny mixed malformed decision selectors and caller derived identities without native scheduling or financial writes" + api.golden.architecture-decision-intent-native-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "real persisted preflight binds exact intent and receipt hashes and refuses changed selection bytes before unchanged original start and replay" + api.golden.architecture-decision-selection-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: "requires every explicit decision selector to resolve before persisting even a planning-only or partially matched preflight" + api.golden.execution-selected-project-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: "denies a Decision outside the selected projects before reading its governed content or persisting preflight authority" + api.golden.architecture-start-custody-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: "denies expired original admission and every nonrunning retained run without a start receipt or changed authority" + api.golden.architecture-start-custody-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/selection-preflight.test.ts + testName: "binds preflight to exact project library and agent profile revisions before any start write" + api.golden.architecture-decision-selection-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "real public preflight refuses missing unaccepted foreign superseded and stale selected native governance rows without persisting a receipt or broadening planning authority" + api.golden.execution-policy-completeness-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "real public workday policy reads and preflight deny every missing stored policy field without inserting defaults or admission truth" + api.golden.execution-offer-selection-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts + testName: "freezes complete canonical supplied offer selection without changing scope quota or original assignment clocks on replay" + api.golden.execution-offer-selection-unit-2: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/offer-freeze.test.ts + testName: "denies changed malformed expired failed revoked or ambiguous supplied offer qualification before freezing an assignment without repairing any input" + api.golden.execution-offer-selection-native-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts + testName: "native canonical availability publication freezes exact executable supply and denies corrupted retained qualification before assignment with independent immutable SQL readback" + api.golden.execution-offer-signature-unit-1: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-initialization.test.ts + testName: "verifies the exact advertised conformance against the registered provider key before open or refresh and denies substituted signatures without publication or input repair" + api.golden.execution-settlement-record-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/settlement-authority.test.ts + testName: "requires the stored canonical settlement to agree with every owning ledger identity measurement and clock without repairing either representation" + api.golden.execution-settlement-record-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/accounting/architecture/public-record-custody.test.ts + testName: "denies absent malformed and moved stored canonical settlements without reconstructing or repairing retained financial history" + api.golden.execution-allocated-deadline-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/initial-admission.test.ts + testName: "native builder and admission retain the original phase deadline separately from allocated active time through exact reservation and concurrent replay" + api.golden.execution-capacity-error-status-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/capacity-query-operations.test.ts + testName: "retains every declared capacity error status and fails closed on malformed or undeclared statuses through the original catalog boundary" + api.golden.execution-admission-late-replay-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts + testName: "retains the exact concurrently committed admission after an absent first lookup and denies changed or missing late snapshots without writes" + api.golden.execution-admission-late-replay-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/admission/postgres.test.ts + testName: "serializes competing claims and rolls back without orphan reservations or duplicate charges" + api.golden.execution-project-inventory-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workday-project-policy.test.ts + testName: "owning workday project inventory excludes absent and deleted rows without repairing supplied project bytes or broadening team selection" + api.golden.execution-project-inventory-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts + testName: "native owning workday project inventory retains exact team rows excludes completed deletion and remains immutable across concurrent reads" + api.golden.execution-runner-close-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/runner-drain.test.ts + testName: "retains the original runner failure while draining a store whose supported close returns void" + api.golden.execution-runner-close-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/runner-drain.test.ts + testName: "native runner failure closes its actual PostgreSQL pool without replacing the failed registration or changing retained database truth" + api.golden.execution-runner-close-failure-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/runner-drain.test.ts + testName: "preserves runner failure and listener drain with missing asynchronous or throwing store close without repairing supplied custody" + api.golden.execution-publication-custody-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/knowledge-publication-transport.test.ts + testName: "owning publication reader preserves complete governed inputs and rejects missing malformed project entry and object custody without repair" + api.golden.execution-publication-custody-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/knowledge/knowledge-publication-transport.test.ts + testName: "native publication storage refuses malformed retained manifest bytes and admits only restored exact custody without changing published objects or revisions" + api.golden.execution-tool-failure-status-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts + testName: "preserves every supported capacity failure status including upstream bad gateway without coercing malformed authority" + api.golden.execution-tool-failure-status-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/treeai/proxy-operations.test.ts + testName: "native agent tool upstream bad gateway retains exact public failure and permits only a fresh unchanged retry" + api.golden.execution-governance-failure-status-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/catalog/database-capacity-error.test.ts + testName: "workday catalog retains supported governance failures and denies unsupported statuses without replacing the original cause" + api.golden.execution-electorate-scope-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/admin-voting.test.ts + testName: "denies every malformed persisted proposal scope before electorate policy reads or writes without normalizing authority" + api.golden.execution-electorate-scope-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "native electorate snapshot rejects each retained invalid proposal scope before policy or electorate writes through concurrent denial and exact retry" + api.golden.execution-electorate-readback-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/admin-voting.test.ts + testName: "denies missing electorate readback before evaluating votes or changing the retained proposal" + api.golden.execution-electorate-readback-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/governance/proposals/architecture/proposal-decision-denial-native.test.ts + testName: "native governance evaluation retains interrupted electorate history and rejects absent readback before a fresh unchanged retry can close the proposal" + api.golden.execution-schema-consumer-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/mcp/authorization-equivalence.test.ts + testName: "keeps provider and workday Standard Schema projections exact while native validation denies caller derived authority" + api.golden.execution-schema-consumer-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/mcp/authorization-equivalence.test.ts + testName: "real REST and MCP workday protocol consumers retain exact parsed inputs and deny malformed intent before the controlled handler" + api.golden.execution-http-method-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/accounts/identity/server-cutover.test.ts + testName: "classifies execution transport methods without inventing a body for GET or HEAD" + api.golden.execution-http-transport-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/accounts/identity/server-cutover.test.ts + testName: "native API listener preserves exact execution request bytes and headers through bodyless methods and retained downstream failure" + api.golden.execution-publisher-prerequisite-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/release/provider-prerequisites.test.ts + testName: "capacity candidate source delivery reuses the same complete native verification authority before sealing declared artifacts" + api.golden.execution-canonical-terminal-lifecycle-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts + testName: "advances only canonical terminal lifecycle metadata while preserving every frozen assignment field" + api.golden.execution-canonical-terminal-lifecycle-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "native terminal transitions persist canonical lifecycle metadata with exact frozen authority and immutable replay" + api.golden.execution-canonical-workday-stop-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "native workday stop advances canonical terminal metadata without changing admitted authority or replaying settlement" + api.golden.execution-canonical-lifecycle-clocks-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/living-execution-lifecycle.test.ts + testName: "canonical lifecycle advances preserve first execution and terminal clocks without manufacturing either during lease preparation" + api.golden.execution-canonical-operator-cancel-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts + testName: "native operator cancellation advances only canonical terminal metadata and retains exact failed history on replay" + api.golden.execution-canonical-start-clock-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-report-persistence.test.ts + testName: "native execution start records the original canonical running clock once and closeout cannot rewrite it or frozen authority" + api.golden.operator-unresolved-recovery-postgres-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts + testName: "native PostgreSQL public recovery rolls back an interrupted audit then serializes independent matching operator calls without measurements or historical rewrites" + api.golden.operator-unresolved-recovery-counter-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native unresolved recovery refuses an orphan counter claim rather than silently releasing an unaccounted reservation" + api.golden.operator-unresolved-recovery-workspace-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-workspace.test.ts + testName: "native unresolved recovery denies open foreign and denied workspace readback then releases capacity only after exact native closure without usage" + api.golden.operator-unresolved-recovery-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts + testName: "requires team management before unresolved recovery and derives actor and operation identity only from authenticated context" + api.golden.operator-unresolved-recovery-input-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts + testName: "denies malformed version reason and every caller measurement or actor field before the owning recovery mutation" + api.golden.operator-unresolved-recovery-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native operator recovery releases only terminal capacity once and retains unresolved usage report and expired authority without a settlement" + api.golden.operator-unresolved-recovery-denial-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native recovery denies active foreign stale measured and mismatched reservation authority without changing retained history" + api.golden.operator-unresolved-recovery-overlap-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native overlapping recoveries produce one retained audit and one terminal counter release without rewriting usage" + api.golden.operator-unresolved-recovery-interruption-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native late audit interruption rolls back capacity release and exact retry preserves the original failed output" + api.golden.execution-canonical-claim-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/execution/architecture/initial/polling/dependency-poll-native.test.ts + testName: "native claim advances only canonical leased status without inventing execution clocks or changing dependency authority" + api.golden.operator-unknown-terminal-time-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-performance.test.ts + testName: "requires actual time for an operator-action recovery even when its original active clock never started" + api.golden.operator-unknown-terminal-time-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/workdays/lifecycle/architecture/terminalization-persistence.test.ts + testName: "native deadline terminalization retains unknown operator-action usage and every original budget claim without fabricating zero settlement" + api.golden.operator-settlement-dispute-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts + testName: "keeps settlement dispute authority server derived and rejects every caller hold refund settlement or measurement before recovery" + api.golden.operator-settlement-dispute-authority-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts + testName: "requires exact original deadline zero identities and absent active clock without treating native or malformed facts as disputable" + api.golden.operator-settlement-dispute-postgres-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts + testName: "native PostgreSQL settlement dispute restores only original holds after atomic audit rollback and independent matching calls without rewriting zero history" + api.golden.operator-settlement-dispute-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native recovery disputes only original automatic zero settlement and restores original period holds once while retaining all failed and accounting bytes" + api.golden.operator-settlement-dispute-denial-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts + testName: "native settlement dispute rejects measured foreign moved corrupt and unrelated settlements or claims without accounting changes" + api.golden.operator-settlement-dispute-read-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery.test.ts + testName: "reads the exact operator audit for released or disputed consumed reservation authority without invoking productive lifecycle operations" + api.golden.operator-settlement-dispute-read-native: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-native.test.ts testName: "native provider read exposes only matching disputed consumed recovery audit and retains original zero settlement and restored claims through repeated reads" api.golden.installed-assets-interruption-native: kind: vitestCase From 2f1d78269e65c7537c733522724b5933aebf1bc2 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:17:35 -0400 Subject: [PATCH 17/35] test: retain native provider closure audit in canonical closeout fixture --- .../architecture/workday-closeout-persistence.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts b/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts index 98bf1472..e6b5c949 100644 --- a/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts +++ b/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts @@ -149,13 +149,17 @@ describe('canonical single report at the real lifecycle and SQL boundary', () => try { const run = (await reads.get('team', 'workday'))!; const original = structuredClone(run); - const ddl=splitPostgresSqlStatements(readFileSync('drizzle/control-plane/0000_control_plane.sql','utf8')).filter(sql=>sql.startsWith('CREATE TABLE "capacity_provider_availability_sessions" ('));expect(ddl).toHaveLength(1);await db.exec(ddl[0]!); + const statements=splitPostgresSqlStatements(readFileSync('drizzle/control-plane/0000_control_plane.sql','utf8')); + for(const table of ['capacity_provider_availability_sessions','capacity_audit_events']){const ddl=statements.filter(sql=>sql.startsWith('CREATE TABLE "'+table+'" ('));expect(ddl).toHaveLength(1);await db.exec(ddl[0]!); } for(const id of ['sdk-session','unrelated-session'])await query('INSERT INTO capacity_provider_availability_sessions (id,membership_id,team_id,capacity_provider_id,status,opened_at,refreshed_at,expires_at,available_from,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,?)',[id,'membership','team','provider','open',now,now,'2099-10-02T21:01:00.000Z',now,now,now]); await query("UPDATE capacity_provider_assignments SET provider_session_id='sdk-session' WHERE id='assignment-report'"); const unrelated=(await query("SELECT * FROM capacity_provider_availability_sessions WHERE id='unrelated-session'")).rows; const result = await advanceLivingWorkday(store as never, run, now); expect((await query("SELECT status,closed_at FROM capacity_provider_availability_sessions WHERE id='sdk-session'")).rows).toEqual([{status:'closed',closed_at:now}]); expect((await query("SELECT * FROM capacity_provider_availability_sessions WHERE id='unrelated-session'")).rows).toEqual(unrelated); + const availabilityAudit=(await query("SELECT * FROM capacity_audit_events ORDER BY id")).rows;expect(availabilityAudit).toHaveLength(1); + expect(availabilityAudit[0]).toMatchObject({id:'sdk-session:1:closed',team_id:'team',capacity_provider_id:'provider',membership_id:'membership',actor_type:'system',actor_id:null,action:'provider.availability.updated',resource_type:'provider-availability-session',resource_id:'sdk-session',idempotency_key:'1:closed',created_at:now}); + expect(JSON.parse(String(availabilityAudit[0]!.metadata_json))).toMatchObject({availabilitySessionId:'sdk-session',sequence:1,status:'closed',openedAt:now,refreshedAt:now,closedAt:now}); expect(result).toMatchObject({ status: 'completed', plan: { state: 'ended', reportRef } }); expect(run).toEqual(original); const rows = (await query('SELECT parameters_json,report_refs_json FROM capacity_workday_runs')).rows; @@ -176,6 +180,7 @@ describe('canonical single report at the real lifecycle and SQL boundary', () => const repeated = await advanceLivingWorkday(store as never, settled, now); expect((await query("SELECT status,closed_at FROM capacity_provider_availability_sessions WHERE id='sdk-session'")).rows).toEqual([{status:'closed',closed_at:now}]); expect(repeated.changed).toBe(false); + expect((await query("SELECT * FROM capacity_audit_events ORDER BY id")).rows).toEqual(availabilityAudit); expect((await query('SELECT COUNT(*)::int AS count FROM capacity_workday_runs')).rows).toEqual([{ count: 1 }]); } finally { await db.close(); } }); From 76ad92ec2a8695ff052850e5dbd1ab7b86fdf42f Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:18:50 -0400 Subject: [PATCH 18/35] test: assert the existing deterministic capacity audit identity --- .../graph/architecture/workday-closeout-persistence.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts b/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts index e6b5c949..9c875786 100644 --- a/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts +++ b/tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts @@ -158,7 +158,7 @@ describe('canonical single report at the real lifecycle and SQL boundary', () => expect((await query("SELECT status,closed_at FROM capacity_provider_availability_sessions WHERE id='sdk-session'")).rows).toEqual([{status:'closed',closed_at:now}]); expect((await query("SELECT * FROM capacity_provider_availability_sessions WHERE id='unrelated-session'")).rows).toEqual(unrelated); const availabilityAudit=(await query("SELECT * FROM capacity_audit_events ORDER BY id")).rows;expect(availabilityAudit).toHaveLength(1); - expect(availabilityAudit[0]).toMatchObject({id:'sdk-session:1:closed',team_id:'team',capacity_provider_id:'provider',membership_id:'membership',actor_type:'system',actor_id:null,action:'provider.availability.updated',resource_type:'provider-availability-session',resource_id:'sdk-session',idempotency_key:'1:closed',created_at:now}); + expect(availabilityAudit[0]).toMatchObject({id:createHash('sha256').update('provider.availability.updated:sdk-session:1:closed').digest('base64url'),team_id:'team',capacity_provider_id:'provider',membership_id:'membership',actor_type:'system',actor_id:null,action:'provider.availability.updated',resource_type:'provider-availability-session',resource_id:'sdk-session',idempotency_key:'1:closed',created_at:now}); expect(JSON.parse(String(availabilityAudit[0]!.metadata_json))).toMatchObject({availabilitySessionId:'sdk-session',sequence:1,status:'closed',openedAt:now,refreshedAt:now,closedAt:now}); expect(result).toMatchObject({ status: 'completed', plan: { state: 'ended', reportRef } }); expect(run).toEqual(original); From 1dfc15e998b57b179e4c6ccb344233ea5bf772c7 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:55:12 -0400 Subject: [PATCH 19/35] test: reproduce exact native availability fault function grammar before another full run --- .../ontology/availability-history.test.ts | 18 ++++++++++++++++++ .../ontology/availability-postgres.test.ts | 3 ++- .../fixtures/availability-observation.ts | 4 ++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 53f656e5..0e3ae44d 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -1,3 +1,5 @@ +import {PGlite} from '@electric-sql/pglite'; +import {availabilityObservationFaultSql} from './fixtures/availability-observation.ts'; import {observeAvailabilitySession} from '../../../../../src/api/capacity/repositories/accounts/availability-observation.ts'; import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {expect,it,vi} from 'vitest'; @@ -46,3 +48,19 @@ it('public capacity audit preserves raw records and complete cursor pagination i const second=await query.audit(principal,'team',{limit:1,cursor:first.page.nextCursor});expect(second.items).toEqual([rows[1]]);expect(second.page.hasMore).toBe(false);expect(second.page.nextCursor).toBeNull(); expect(all.mock.calls[1]![0]).toContain('id < ?');expect(all.mock.calls[1]![1]).toContain('audit-b'); }); + +it('executes the exact owning native availability fault SQL with missing interrupted and altered audit writes before original source retry',async()=>{ + const database=new PGlite();try{ + await database.exec('CREATE TABLE capacity_audit_events (action TEXT NOT NULL, metadata_json TEXT NOT NULL)'); + for(const mode of ['missing','interrupted','altered']as const){ + await database.exec(availabilityObservationFaultSql(mode)); + await database.exec('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()'); + const insert=()=>database.query('INSERT INTO capacity_audit_events (action,metadata_json) VALUES ($1,$2)',['provider.availability.updated','{"original":true}']); + try{if(mode==='interrupted')await expect(insert()).rejects.toThrow('retained native availability observation interruption');else await insert();expect((await database.query('SELECT * FROM capacity_audit_events')).rows).toEqual(mode==='altered'?[{action:'provider.availability.updated',metadata_json:'{}'}]:[]);} + finally{await database.exec('DROP TRIGGER retained_availability_observation_fault ON capacity_audit_events; DROP FUNCTION retained_availability_observation_fault(); DELETE FROM capacity_audit_events');} + } + await database.query('INSERT INTO capacity_audit_events (action,metadata_json) VALUES ($1,$2)',['provider.availability.updated','{"original":true}']);expect((await database.query('SELECT * FROM capacity_audit_events')).rows).toEqual([{action:'provider.availability.updated',metadata_json:'{"original":true}'}]); + }finally{await database.close();} + // Controlled PostgreSQL grammar in WASM is a focused check, never native + // concurrency, complete prerequisite or managed evidence. +}); diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index bbfc7e35..1f358482 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -1,3 +1,4 @@ +import {availabilityObservationFaultSql} from './fixtures/availability-observation.ts'; import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {providerAccountingStatus} from '../../../../../src/api/control-plane/repositories/providers/provider-runtime-service.ts'; import { randomUUID, generateKeyPairSync, createHash } from 'node:crypto'; @@ -191,7 +192,7 @@ describe('provider accounting in disposable PostgreSQL', () => { Object.assign(originalHealth.modelUsage,{healthy:false}); const refreshBefore=structuredClone(refreshInput),failedAvailability:Array<{mode:string;cause:unknown;unchanged:boolean}>=[]; for(const mode of ['missing','interrupted','altered']){ - await f.left.pool.query("CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":mode==='altered'?"NEW.metadata_json = '{}'; RETURN NEW;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"); + await f.left.pool.query(availabilityObservationFaultSql(mode)); await f.left.pool.query('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()'); let cause:unknown; try{await service.refresh(principal,opened.id,refreshInput);}catch(error){cause=error;} diff --git a/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts b/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts new file mode 100644 index 00000000..6bcc6fca --- /dev/null +++ b/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts @@ -0,0 +1,4 @@ +/** Original owning fault SQL, shared by grammar regression and native PostgreSQL. */ +export function availabilityObservationFaultSql(mode:'missing'|'interrupted'|'altered'):string{ + return "CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":mode==='altered'?"NEW.metadata_json = '{}'; RETURN NEW;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"; +} From cfad9ddaade0ed5898d6b72a15fbfc8874794d70 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:56:12 -0400 Subject: [PATCH 20/35] test: preserve exact PostgreSQL function delimiters in shared native audit fault SQL --- .../capacity/ontology/fixtures/availability-observation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts b/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts index 6bcc6fca..b693982a 100644 --- a/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts +++ b/tests/unit/control-plane/capacity/ontology/fixtures/availability-observation.ts @@ -1,4 +1,4 @@ /** Original owning fault SQL, shared by grammar regression and native PostgreSQL. */ export function availabilityObservationFaultSql(mode:'missing'|'interrupted'|'altered'):string{ - return "CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":mode==='altered'?"NEW.metadata_json = '{}'; RETURN NEW;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $"; + return "CREATE OR REPLACE FUNCTION retained_availability_observation_fault() RETURNS trigger LANGUAGE plpgsql AS $availability$ BEGIN IF NEW.action='provider.availability.updated' THEN "+(mode==='missing'?"RETURN NULL;":mode==='altered'?"NEW.metadata_json = '{}'; RETURN NEW;":"RAISE EXCEPTION 'retained native availability observation interruption';")+" END IF; RETURN NEW; END $availability$"; } From 000fe68f96deaa9ff0d498329824c6ee886c45f6 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:57:38 -0400 Subject: [PATCH 21/35] test: select original native fault SQL grammar before provider acceptance components --- .../agent/golden/scenes/component-boundaries.scene.yaml | 3 +++ guarantees/verifiers/golden.verifiers.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index 35aa3d64..94f51698 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -2840,3 +2840,6 @@ workflow: - id: capacity-audit-pagination-unit action: { verifier: api.golden.capacity-audit-pagination-unit } expect: { status: passed } + - id: provider-availability-fault-sql-unit + action: { verifier: api.golden.provider-availability-fault-sql-unit } + expect: { status: passed } diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index df106597..8c009960 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -4814,3 +4814,8 @@ verifiers: ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts testName: "public capacity audit preserves raw records and complete cursor pagination including equal-clock identities" + api.golden.provider-availability-fault-sql-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "executes the exact owning native availability fault SQL with missing interrupted and altered audit writes before original source retry" From 2288d30d909745d419908345e367cb715f0a8ff6 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:58:32 -0400 Subject: [PATCH 22/35] ci: reproduce owning availability audit failures before the complete verification suite --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 3095569e..44467e4a 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -95,7 +95,7 @@ jobs: - name: Build public API exports before native acceptance consumer regression run: npm run build:dist - name: Reproduce native lease transition history before complete verification - run: node node_modules/vitest/vitest.mjs run --config ./vitest.control-plane.config.ts tests/unit/control-plane/capacity/execution/admission/postgres.test.ts tests/unit/control-plane/release/provider-prerequisites.test.ts tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-observation-postgres.test.ts tests/unit/control-plane/capacity/execution/graph/persistence/concurrent-results-postgres.test.ts tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts tests/unit/control-plane/providers/assignments/architecture/recovery/recovery-observation-postgres.test.ts tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts tests/unit/control-plane/capacity/workdays/lifecycle/concurrent-runs-postgres.test.ts tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts tests/unit/control-plane/capacity/execution/architecture/initial/admission/session-authority-unit.test.ts tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts tests/unit/control-plane/capacity/planning/estimate-source-native.test.ts tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts tests/unit/control-plane/capacity/execution/architecture/initial/admission/resource-closure-unit.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-status-history-postgres.test.ts tests/unit/control-plane/capacity/accounting/architecture/accounting-history-postgres.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-review-exhaustion-postgres.test.ts tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-node-history-native.test.ts tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts tests/unit/control-plane/capacity/execution/scheduling/planning/planning-window-evidence.test.ts tests/unit/control-plane/capacity/execution/scheduling/planning/planning-phase-native.test.ts tests/unit/control-plane/capacity/execution/admission/closeout/closeout-admission.test.ts tests/unit/control-plane/capacity/workdays/lifecycle/workday-lifecycle-observations.test.ts tests/unit/control-plane/capacity/execution/reporting/report-context-scope.test.ts tests/unit/control-plane/capacity/execution/reporting/report-context-lifecycle.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-status-history.test.ts tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts + run: node node_modules/vitest/vitest.mjs run --config ./vitest.control-plane.config.ts tests/unit/control-plane/capacity/execution/admission/postgres.test.ts tests/unit/control-plane/release/provider-prerequisites.test.ts tests/unit/control-plane/providers/assignments/lifecycle/architecture/terminal-observation-postgres.test.ts tests/unit/control-plane/capacity/execution/graph/persistence/concurrent-results-postgres.test.ts tests/unit/control-plane/providers/assignments/architecture/recovery/operator-recovery-postgres.test.ts tests/unit/control-plane/providers/assignments/architecture/recovery/recovery-observation-postgres.test.ts tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-start-native.test.ts tests/unit/control-plane/capacity/workdays/lifecycle/concurrent-runs-postgres.test.ts tests/unit/control-plane/capacity/execution/graph/architecture/workday-closeout-persistence.test.ts tests/unit/control-plane/capacity/execution/architecture/initial/admission/session-authority-unit.test.ts tests/unit/control-plane/capacity/planning/assignment-estimate-integration.test.ts tests/unit/control-plane/capacity/planning/estimate-source-native.test.ts tests/unit/control-plane/providers/assignments/architecture/cancellation-persistence.test.ts tests/unit/control-plane/capacity/execution/architecture/initial/admission/resource-closure-unit.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-status-history-postgres.test.ts tests/unit/control-plane/capacity/accounting/architecture/accounting-history-postgres.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-review-exhaustion-postgres.test.ts tests/unit/control-plane/capacity/workdays/scheduling/architecture/workday-node-history-native.test.ts tests/unit/control-plane/capacity/execution/admission/discussion-binding.test.ts tests/unit/control-plane/capacity/execution/architecture/admission-replay-authority.test.ts tests/unit/control-plane/capacity/execution/architecture/admission-replay-native.test.ts tests/unit/control-plane/capacity/execution/admission/timeout-postgres.test.ts tests/unit/control-plane/capacity/execution/scheduling/planning/planning-window-evidence.test.ts tests/unit/control-plane/capacity/execution/scheduling/planning/planning-phase-native.test.ts tests/unit/control-plane/capacity/execution/admission/closeout/closeout-admission.test.ts tests/unit/control-plane/capacity/workdays/lifecycle/workday-lifecycle-observations.test.ts tests/unit/control-plane/capacity/execution/reporting/report-context-scope.test.ts tests/unit/control-plane/capacity/execution/reporting/report-context-lifecycle.test.ts tests/unit/control-plane/capacity/execution/architecture/monitoring/node-status-history.test.ts tests/unit/control-plane/capacity/execution/graph/architecture/workday-observation-persistence.test.ts tests/unit/control-plane/capacity/ontology/availability-history.test.ts tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts - run: npm run verify:direct - name: Verify real PostgreSQL backup-writer migration closure run: npx vitest run --config vitest.control-plane.config.ts tests/unit/control-plane/services/live/replication-migration-postgres.test.ts From e02db3ecf4381799a8c35bda041e0fe4afc79498 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 01:58:51 -0400 Subject: [PATCH 23/35] test: retain exact discriminated native fault modes under strict TypeScript --- .../capacity/ontology/availability-postgres.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 1f358482..e06a96a1 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -191,7 +191,7 @@ describe('provider accounting in disposable PostgreSQL', () => { if(!originalHealth)throw new Error('Original configured health observation required'); Object.assign(originalHealth.modelUsage,{healthy:false}); const refreshBefore=structuredClone(refreshInput),failedAvailability:Array<{mode:string;cause:unknown;unchanged:boolean}>=[]; - for(const mode of ['missing','interrupted','altered']){ + for(const mode of ['missing','interrupted','altered']as const){ await f.left.pool.query(availabilityObservationFaultSql(mode)); await f.left.pool.query('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()'); let cause:unknown; From d7e82b2bb5f6e5e88c125cc92ebf86c776b4076c Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:12:33 -0400 Subject: [PATCH 24/35] test: reproduce unobserved runtime availability expiry and original clock loss --- .../ontology/availability-history.test.ts | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 0e3ae44d..96ff47aa 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -1,3 +1,4 @@ +import {maintainCapacityRuntimeRetention} from '../../../../../src/api/capacity/services/runtime/runtime-retention-service.ts'; import {PGlite} from '@electric-sql/pglite'; import {availabilityObservationFaultSql} from './fixtures/availability-observation.ts'; import {observeAvailabilitySession} from '../../../../../src/api/capacity/repositories/accounts/availability-observation.ts'; @@ -7,7 +8,9 @@ import {AvailabilitySessionRepository,type AvailabilitySessionWrite} from '../.. import type {CapacityGovernanceDatabase,CapacityDatabaseOperation} from '../../../../../src/api/capacity/database.ts'; import {canonicalOfferBuildInput} from '../execution/fixtures/assignment-attempt-fixtures.ts'; -it('publishes the committed provider availability transition into existing scoped capacity audit history without private adapter observations',async()=>{ +vi.mock('../../../../../src/api/capacity/transaction.ts',()=>({capacityTransaction:async(database:CapacityGovernanceDatabase,apply:(value:CapacityGovernanceDatabase)=>Promise)=>apply(database)})); + +function availabilityHistoryInput(){ const at='2026-10-17T00:00:00.000Z',provider=canonicalOfferBuildInput(at).providers[0]!; const input:AvailabilitySessionWrite={id:'session',membershipId:'membership',teamId:'team',providerId:'provider',environment:'local',sequence:1, openedAt:at,refreshedAt:at,expiresAt:'2026-10-17T00:01:00.000Z',availableFrom:at,availableUntil:null, @@ -15,9 +18,14 @@ it('publishes the committed provider availability transition into existing scope observations:{credential:'PRIVATE_ADAPTER_OBSERVATION'},accountingObservation:{modelUsage:{day:'2026-10-17',observedAt:at,healthy:true,activeSeconds:0,reservedSeconds:0},capabilityUsage:{}}}], capabilities:provider.capabilities,nativeLimits:{},runnerPressure:{},constraints:{},metadata:{}}; const row={id:input.id,membership_id:input.membershipId,team_id:input.teamId,capacity_provider_id:input.providerId,status:'open',sequence:1, - opened_at:at,refreshed_at:at,expires_at:input.expiresAt,available_from:at,available_until:null,closed_at:null, + opened_at:at,refreshed_at:at,expires_at:input.expiresAt,available_from:at,available_until:null,closed_at:null as string|null, execution_providers_json:JSON.stringify(input.executionProviders),capabilities_json:JSON.stringify(input.capabilities), native_limits_json:'{}',runner_pressure_json:'{}',constraints_json:'{}',metadata_json:'{}'}; + return {at,input,row}; +} + +it('publishes the committed provider availability transition into existing scoped capacity audit history without private adapter observations',async()=>{ + const {at,input,row}=availabilityHistoryInput(); const operations:CapacityDatabaseOperation[]=[],before=structuredClone(input); const all=vi.fn().mockResolvedValue([]); const database:CapacityGovernanceDatabase={ensureInitialized:vi.fn(async()=>{}),run:vi.fn(async(query:string,params:unknown[]=[])=>{operations.push({query,params});if(query.includes('INSERT INTO capacity_audit_events')){const [id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;all.mockResolvedValue([{id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at}]);}}), @@ -64,3 +72,18 @@ it('executes the exact owning native availability fault SQL with missing interru // Controlled PostgreSQL grammar in WASM is a focused check, never native // concurrency, complete prerequisite or managed evidence. }); + +it('retains each actual runtime expiry in the original availability audit clock and reports only newly expired sessions through unchanged replay',async()=>{ + const {at,row:original}=availabilityHistoryInput(),now='2026-10-17T00:02:00.000Z',session={...original},audits:Array>=[]; + const expire=()=>{if(!['open','draining'].includes(session.status)||session.expires_at>now)return[];session.status='expired';session.closed_at=now;return[{id:session.id,team_id:session.team_id}];}; + const database:CapacityGovernanceDatabase={ensureInitialized:async()=>{}, + first:async>(query:string):Promise=>{const value=query.includes('COUNT(*)')?{total:query.includes('capacity_provider_availability_sessions')&&['open','draining'].includes(session.status)?1:0}:structuredClone(session);return value as T;}, + all:async>(query:string):Promise=>{const values=query.startsWith('UPDATE capacity_provider_availability_sessions')?expire():query.includes('capacity_audit_events')?structuredClone(audits):[];return values as T[];}, + run:async(query,params=[])=>{if(query.includes('INSERT INTO capacity_audit_events')){const[id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;audits.push({id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at});}}, + batch:async operations=>{if(operations.some(value=>value.query.includes("SET status = 'expired'")&&value.query.includes('capacity_provider_availability_sessions')))expire();return operations.map(()=>({results:[]}));}}; + const result=await maintainCapacityRuntimeRetention(database,now);expect(result.expiredAvailabilitySessions).toBe(1);expect(audits).toHaveLength(1); + expect(audits[0]).toMatchObject({created_at:now,resource_id:session.id,idempotency_key:'1:expired'});expect(JSON.parse(String(audits[0]!.metadata_json))).toMatchObject({status:'expired',closedAt:now,refreshedAt:at}); + const held=structuredClone({session,audits});expect((await maintainCapacityRuntimeRetention(database,now)).expiredAvailabilitySessions).toBe(0);expect({session,audits}).toEqual(held); + // Transaction mechanics and independent native concurrency are covered by + // the owning PostgreSQL case; this unit controls only the database protocol. +}); From 5008687ee61c7c617765c93bfc52155ce0d432e5 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:13:11 -0400 Subject: [PATCH 25/35] test: require transactional native expiry observation rollback competing sweeps and unchanged public history --- .../ontology/availability-postgres.test.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index e06a96a1..0bff08a9 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -1,3 +1,4 @@ +import {maintainCapacityRuntimeRetention} from '../../../../../src/api/capacity/services/runtime/runtime-retention-service.ts'; import {availabilityObservationFaultSql} from './fixtures/availability-observation.ts'; import {createCapacityQueryService} from '../../../../../src/api/control-plane/repositories/capacity/capacity-query-service.ts'; import {providerAccountingStatus} from '../../../../../src/api/control-plane/repositories/providers/provider-runtime-service.ts'; @@ -224,6 +225,24 @@ describe('provider accounting in disposable PostgreSQL', () => { const closed = await snapshot(f.right); await expect(compile()).rejects.toMatchObject({ status: 409, code: 'provider_synthesis_session_not_open' }); expect(await snapshot(f.left)).toEqual(closed); expect(input).toEqual(inputBefore); expect(original).toEqual(before); + const due=await service.open(principal,{...structuredClone(input),ttlSeconds:30});const unrelated=await service.open(qualificationPrincipal,{...structuredClone(qualifiedInput),ttlSeconds:300});if(!due||!unrelated)throw new Error('Original due and unrelated live sessions required'); + const expiryAt=new Date(Date.parse(due.expiresAt)+1).toISOString(),beforeExpiry=await snapshot(f.right);expect(Date.parse(expiryAt)).toBeLessThan(Date.parse(unrelated.expiresAt)); + const retainedExpiryFailures:Array<{mode:string;message:string}>=[]; + for(const mode of ['missing','interrupted','altered']as const){ + await f.left.pool.query(availabilityObservationFaultSql(mode));await f.left.pool.query('CREATE TRIGGER retained_availability_observation_fault BEFORE INSERT ON capacity_audit_events FOR EACH ROW EXECUTE FUNCTION retained_availability_observation_fault()');let failure:unknown; + try{await maintainCapacityRuntimeRetention(store,expiryAt);}catch(error){failure=error;} + finally{await f.left.pool.query('DROP TRIGGER retained_availability_observation_fault ON capacity_audit_events');await f.left.pool.query('DROP FUNCTION retained_availability_observation_fault()');} + expect(failure).toBeInstanceOf(Error);if(mode!=='interrupted')expect(failure).toMatchObject({code:'provider_availability_observation_conflict'});expect(await snapshot(f.left)).toEqual(beforeExpiry);expect(await snapshot(f.right)).toEqual(beforeExpiry);retainedExpiryFailures.push({mode,message:String(failure)}); + } + const expired=await Promise.all([maintainCapacityRuntimeRetention(store,expiryAt),maintainCapacityRuntimeRetention(peer,expiryAt)]);expect(expired.map(value=>value.expiredAvailabilitySessions).sort()).toEqual([0,1]); + const retainedExpiry=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE action='provider.availability.updated' AND resource_id=$1 ORDER BY created_at,id",[due.id])).rows;expect(retainedExpiry).toHaveLength(2); + const expiry=retainedExpiry.filter(value=>value.idempotency_key===due.sequence+':expired');expect(expiry).toHaveLength(1);expect(expiry[0].created_at).toBe(expiryAt);expect(JSON.parse(String(expiry[0].metadata_json))).toMatchObject({availabilitySessionId:due.id,status:'expired',sequence:due.sequence,closedAt:expiryAt,refreshedAt:due.refreshedAt}); + const expiredSession=await service.get(principal.teamId,due.id);expect(expiredSession).toMatchObject({status:'expired',sequence:due.sequence,closedAt:expiryAt});expect(await service.get(qualificationPrincipal.teamId,unrelated.id)).toEqual(unrelated); + const query=createCapacityQueryService(store),publicHistory:Array>=[];let auditCursor:string|undefined; + for(let pageNumber=0;pageNumber<40;pageNumber++){const page=await query.audit(f.principal,'team',{limit:2,cursor:auditCursor});publicHistory.push(...page.items);if(!page.page.hasMore){expect(page.page.nextCursor).toBeNull();break;}if(!page.page.nextCursor)throw new Error('Original expiry audit continuation missing');auditCursor=page.page.nextCursor;} + expect(publicHistory).toEqual((await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE team_id='team' ORDER BY created_at DESC,id DESC")).rows); + const afterExpiry=await snapshot(f.right);expect(await snapshot(f.left)).toEqual(afterExpiry);expect((await maintainCapacityRuntimeRetention(store,expiryAt)).expiredAvailabilitySessions).toBe(0);expect(await service.close(principal,due.id)).toEqual(expiredSession);expect(await snapshot(f.right)).toEqual(afterExpiry);expect(await snapshot(f.left)).toEqual(afterExpiry); + console.log(JSON.stringify({retainedExpiryFailures,expiredAvailabilitySessions:expired.map(value=>value.expiredAvailabilitySessions),unrelatedRetained:true,unchangedExpiryReplay:true})); // Original services, full migrations, two PostgreSQL pools and exact // persisted bytes. Supplied identity/conformance are not bearer auth, // native qualification, live model work or atomic assignment admission. From 1c1d46febdb7a2587499c17430134a18a26b3a84 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:13:25 -0400 Subject: [PATCH 26/35] fix: retain actual availability expiry and its original terminal clock in the owning transaction --- .../accounts/availability-observation.ts | 2 +- .../runtime/runtime-retention-service.ts | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/api/capacity/repositories/accounts/availability-observation.ts b/src/api/capacity/repositories/accounts/availability-observation.ts index a3476072..30d9f1d3 100644 --- a/src/api/capacity/repositories/accounts/availability-observation.ts +++ b/src/api/capacity/repositories/accounts/availability-observation.ts @@ -10,7 +10,7 @@ const healthy=(value:unknown):boolean|null=>{if(value===undefined||value===null) /** Existing audit is observation history; the session remains the supply authority. */ export async function observeAvailabilitySession(database:CapacityGovernanceDatabase,session:ProviderAvailabilitySession):Promise{ - const now=session.status==='closed'?session.closedAt:session.refreshedAt; + const now=(session.status==='closed'||session.status==='expired')?session.closedAt:session.refreshedAt; const clocks=[session.openedAt,session.refreshedAt,session.expiresAt,session.snapshot.availableFrom,...(session.closedAt?[session.closedAt]:[]),...(session.snapshot.availableUntil?[session.snapshot.availableUntil]:[])]; if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value))&&new Date(value).toISOString()===value)||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original lifecycle clocks and measured worker quantities required.',500); diff --git a/src/api/capacity/services/runtime/runtime-retention-service.ts b/src/api/capacity/services/runtime/runtime-retention-service.ts index 60d45418..542c795f 100644 --- a/src/api/capacity/services/runtime/runtime-retention-service.ts +++ b/src/api/capacity/services/runtime/runtime-retention-service.ts @@ -1,3 +1,7 @@ +import {capacityTransaction} from '../../transaction.ts'; +import {AvailabilitySessionRepository} from '../../repositories/accounts/availability-session.ts'; +import {observeAvailabilitySession} from '../../repositories/accounts/availability-observation.ts'; +import {CapacityGovernanceError} from '../../database.ts'; import type { CapacityGovernanceDatabase } from '../../database.ts'; export interface CapacityRuntimeRetentionResult { @@ -21,28 +25,25 @@ export async function maintainCapacityRuntimeRetention( database: CapacityGovernanceDatabase, now = new Date().toISOString(), ): Promise { + return capacityTransaction(database,async database=>{ const [ expiredAccessTokens, - expiredAvailabilitySessions, expiredRegistrationRequests, deletedProofNonces, deletedRateLimitBuckets, ] = await Promise.all([ count(database, `SELECT COUNT(*) AS total FROM capacity_provider_access_tokens WHERE status = 'active' AND expires_at <= ?`, now), - count(database, `SELECT COUNT(*) AS total FROM capacity_provider_availability_sessions WHERE status IN ('open', 'draining') AND expires_at <= ?`, now), count(database, `SELECT COUNT(*) AS total FROM capacity_provider_registration_requests WHERE status = 'pending' AND expires_at <= ?`, now), count(database, `SELECT COUNT(*) AS total FROM capacity_provider_proof_nonces WHERE expires_at <= ?`, now), count(database, `SELECT COUNT(*) AS total FROM capacity_provider_registration_rate_limits WHERE expires_at <= ?`, now), ]); + const changed=await database.all<{id:string;team_id:string}>(`UPDATE capacity_provider_availability_sessions SET status = 'expired', closed_at = COALESCE(closed_at, ?), updated_at = ? WHERE status IN ('open', 'draining') AND expires_at <= ? RETURNING id,team_id`,[now,now,now]); + const expiredAvailabilitySessions=changed.length; await database.batch([ { query: `UPDATE capacity_provider_access_tokens SET status = 'expired', expired_at = COALESCE(expired_at, ?), updated_at = ? WHERE status = 'active' AND expires_at <= ?`, params: [now, now, now], }, - { - query: `UPDATE capacity_provider_availability_sessions SET status = 'expired', closed_at = COALESCE(closed_at, ?), updated_at = ? WHERE status IN ('open', 'draining') AND expires_at <= ?`, - params: [now, now, now], - }, { query: `UPDATE capacity_provider_registration_requests SET status = 'expired', updated_at = ? WHERE status = 'pending' AND expires_at <= ?`, params: [now, now], @@ -56,11 +57,14 @@ export async function maintainCapacityRuntimeRetention( params: [now], }, ]); + for(const value of changed){const session=await new AvailabilitySessionRepository(database).get(value.team_id,value.id);if(!session||session.status!=='expired')throw new CapacityGovernanceError('provider_availability_observation_conflict','Original expired session is unavailable.',500);await observeAvailabilitySession(database,session);} return { expiredAccessTokens, expiredAvailabilitySessions, + expiredAvailabilitySessions, expiredRegistrationRequests, deletedProofNonces, deletedRateLimitBuckets, }; + }); } From e92ca2160e501bf80254c8d50764f18a64d4541b Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:14:02 -0400 Subject: [PATCH 27/35] acceptance: select the owning expiry regression and retain strict terminal observation typing --- .../agent/golden/scenes/component-boundaries.scene.yaml | 5 +++++ guarantees/verifiers/golden.verifiers.yaml | 5 +++++ .../capacity/services/runtime/runtime-retention-service.ts | 1 - 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index 94f51698..554efeb6 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -2843,3 +2843,8 @@ workflow: - id: provider-availability-fault-sql-unit action: { verifier: api.golden.provider-availability-fault-sql-unit } expect: { status: passed } + - id: provider-availability-expiry-unit + action: + verifier: api.golden.provider-availability-expiry-unit + expect: + status: passed diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index 8c009960..7987922a 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -4819,3 +4819,8 @@ verifiers: ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts testName: "executes the exact owning native availability fault SQL with missing interrupted and altered audit writes before original source retry" + api.golden.provider-availability-expiry-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "retains each actual runtime expiry in the original availability audit clock and reports only newly expired sessions through unchanged replay" diff --git a/src/api/capacity/services/runtime/runtime-retention-service.ts b/src/api/capacity/services/runtime/runtime-retention-service.ts index 542c795f..bf93956c 100644 --- a/src/api/capacity/services/runtime/runtime-retention-service.ts +++ b/src/api/capacity/services/runtime/runtime-retention-service.ts @@ -61,7 +61,6 @@ export async function maintainCapacityRuntimeRetention( return { expiredAccessTokens, expiredAvailabilitySessions, - expiredAvailabilitySessions, expiredRegistrationRequests, deletedProofNonces, deletedRateLimitBuckets, From 841b281a13e2cd8df398cfe007d7559b2ed3ea85 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:15:39 -0400 Subject: [PATCH 28/35] test: reject terminal expiry clocks before original supply expiration and retain native rollback --- .../capacity/ontology/availability-history.test.ts | 3 ++- .../capacity/ontology/availability-postgres.test.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 96ff47aa..6c72f633 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -77,12 +77,13 @@ it('retains each actual runtime expiry in the original availability audit clock const {at,row:original}=availabilityHistoryInput(),now='2026-10-17T00:02:00.000Z',session={...original},audits:Array>=[]; const expire=()=>{if(!['open','draining'].includes(session.status)||session.expires_at>now)return[];session.status='expired';session.closed_at=now;return[{id:session.id,team_id:session.team_id}];}; const database:CapacityGovernanceDatabase={ensureInitialized:async()=>{}, - first:async>(query:string):Promise=>{const value=query.includes('COUNT(*)')?{total:query.includes('capacity_provider_availability_sessions')&&['open','draining'].includes(session.status)?1:0}:structuredClone(session);return value as T;}, + first:async>(query:string):Promise=>{const value:Record=query.includes('COUNT(*)')?{total:query.includes('capacity_provider_availability_sessions')&&['open','draining'].includes(session.status)?1:0}:structuredClone(session);return value as T;}, all:async>(query:string):Promise=>{const values=query.startsWith('UPDATE capacity_provider_availability_sessions')?expire():query.includes('capacity_audit_events')?structuredClone(audits):[];return values as T[];}, run:async(query,params=[])=>{if(query.includes('INSERT INTO capacity_audit_events')){const[id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at]=params;audits.push({id,team_id,capacity_provider_id,membership_id,actor_type,actor_id,action,resource_type,resource_id,request_id,idempotency_key,metadata_json,created_at});}}, batch:async operations=>{if(operations.some(value=>value.query.includes("SET status = 'expired'")&&value.query.includes('capacity_provider_availability_sessions')))expire();return operations.map(()=>({results:[]}));}}; const result=await maintainCapacityRuntimeRetention(database,now);expect(result.expiredAvailabilitySessions).toBe(1);expect(audits).toHaveLength(1); expect(audits[0]).toMatchObject({created_at:now,resource_id:session.id,idempotency_key:'1:expired'});expect(JSON.parse(String(audits[0]!.metadata_json))).toMatchObject({status:'expired',closedAt:now,refreshedAt:at}); + const bad=await new AvailabilitySessionRepository(database).get(session.team_id,session.id);if(!bad)throw new Error('Original expired session required');bad.closedAt=at;const writes=audits.length;await expect(observeAvailabilitySession(database,bad)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(audits).toHaveLength(writes); const held=structuredClone({session,audits});expect((await maintainCapacityRuntimeRetention(database,now)).expiredAvailabilitySessions).toBe(0);expect({session,audits}).toEqual(held); // Transaction mechanics and independent native concurrency are covered by // the owning PostgreSQL case; this unit controls only the database protocol. diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 0bff08a9..23e949b1 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -234,6 +234,9 @@ describe('provider accounting in disposable PostgreSQL', () => { finally{await f.left.pool.query('DROP TRIGGER retained_availability_observation_fault ON capacity_audit_events');await f.left.pool.query('DROP FUNCTION retained_availability_observation_fault()');} expect(failure).toBeInstanceOf(Error);if(mode!=='interrupted')expect(failure).toMatchObject({code:'provider_availability_observation_conflict'});expect(await snapshot(f.left)).toEqual(beforeExpiry);expect(await snapshot(f.right)).toEqual(beforeExpiry);retainedExpiryFailures.push({mode,message:String(failure)}); } + await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET closed_at=$1 WHERE id=$2',[due.refreshedAt,due.id]);const malformedExpiry=await snapshot(f.right);await expect(maintainCapacityRuntimeRetention(store,expiryAt)).rejects.toMatchObject({code:'provider_availability_observation_invalid'});expect(await snapshot(f.left)).toEqual(malformedExpiry);expect(await snapshot(f.right)).toEqual(malformedExpiry); + // Restore only the deliberately corrupted source clock; no failed observation is removed. + await f.left.pool.query('UPDATE capacity_provider_availability_sessions SET closed_at=NULL WHERE id=$1',[due.id]);expect(await snapshot(f.right)).toEqual(beforeExpiry); const expired=await Promise.all([maintainCapacityRuntimeRetention(store,expiryAt),maintainCapacityRuntimeRetention(peer,expiryAt)]);expect(expired.map(value=>value.expiredAvailabilitySessions).sort()).toEqual([0,1]); const retainedExpiry=(await f.right.pool.query("SELECT * FROM capacity_audit_events WHERE action='provider.availability.updated' AND resource_id=$1 ORDER BY created_at,id",[due.id])).rows;expect(retainedExpiry).toHaveLength(2); const expiry=retainedExpiry.filter(value=>value.idempotency_key===due.sequence+':expired');expect(expiry).toHaveLength(1);expect(expiry[0].created_at).toBe(expiryAt);expect(JSON.parse(String(expiry[0].metadata_json))).toMatchObject({availabilitySessionId:due.id,status:'expired',sequence:due.sequence,closedAt:expiryAt,refreshedAt:due.refreshedAt}); From 59d0f45386536542c508cf996fba02a5a22452f0 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:16:03 -0400 Subject: [PATCH 29/35] fix: reject malformed terminal expiry before any retained observation write --- .../capacity/repositories/accounts/availability-observation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/capacity/repositories/accounts/availability-observation.ts b/src/api/capacity/repositories/accounts/availability-observation.ts index 30d9f1d3..58118ad0 100644 --- a/src/api/capacity/repositories/accounts/availability-observation.ts +++ b/src/api/capacity/repositories/accounts/availability-observation.ts @@ -12,7 +12,7 @@ const healthy=(value:unknown):boolean|null=>{if(value===undefined||value===null) export async function observeAvailabilitySession(database:CapacityGovernanceDatabase,session:ProviderAvailabilitySession):Promise{ const now=(session.status==='closed'||session.status==='expired')?session.closedAt:session.refreshedAt; const clocks=[session.openedAt,session.refreshedAt,session.expiresAt,session.snapshot.availableFrom,...(session.closedAt?[session.closedAt]:[]),...(session.snapshot.availableUntil?[session.snapshot.availableUntil]:[])]; - if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value))&&new Date(value).toISOString()===value)||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) + if(!clocks.every(value=>typeof value==='string'&&Number.isFinite(Date.parse(value))&&new Date(value).toISOString()===value)||Date.parse(session.openedAt)>Date.parse(session.refreshedAt)||Date.parse(session.expiresAt)<=Date.parse(session.refreshedAt)||session.closedAt&&Date.parse(session.closedAt)Number.isSafeInteger(value)&&value>=0)) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original lifecycle clocks and measured worker quantities required.',500); if(!now||!Number.isFinite(Date.parse(now))||!Number.isSafeInteger(session.sequence)||session.sequence<1) throw new CapacityGovernanceError('provider_availability_observation_invalid','Original availability identity sequence and clock required.',500); From d02a6d5e86aaf7e71a24caa70acfbccd1b029b4c Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:17:34 -0400 Subject: [PATCH 30/35] test: reproduce stale availability claim mutating original capability offer bytes --- .../ontology/availability-history.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 6c72f633..7a05acca 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -1,3 +1,5 @@ +import {upsertCapacityExecutionProviderOperations} from '../../../../../src/api/capacity/repositories/capacity/providers/execution-provider.ts'; +import {translateControlPlaneSqlToPostgres} from '../../../../../src/api/support/control-plane-postgres.ts'; import {maintainCapacityRuntimeRetention} from '../../../../../src/api/capacity/services/runtime/runtime-retention-service.ts'; import {PGlite} from '@electric-sql/pglite'; import {availabilityObservationFaultSql} from './fixtures/availability-observation.ts'; @@ -88,3 +90,18 @@ it('retains each actual runtime expiry in the original availability audit clock // Transaction mechanics and independent native concurrency are covered by // the owning PostgreSQL case; this unit controls only the database protocol. }); + +it('retains exact capability offer bytes on stale foreign or terminal availability publication before original guarded retry',async()=>{ + const {at,input}=availabilityHistoryInput(),database=new PGlite(),later='2026-10-17T00:00:10.000Z';try{ + await database.exec("CREATE TABLE capacity_provider_availability_sessions (id TEXT,membership_id TEXT,team_id TEXT,sequence INTEGER,status TEXT);CREATE TABLE execution_capability_offers (capacity_provider_id TEXT,execution_provider_id TEXT,offer_id TEXT,offer_digest TEXT,offer_json TEXT,status TEXT,last_seen_at TEXT,PRIMARY KEY(capacity_provider_id,offer_id));INSERT INTO capacity_provider_availability_sessions VALUES ('session','membership','team',2,'open')"); + const base={providerId:input.providerId,executionProviders:input.executionProviders,providerNativeLimits:input.nativeLimits,createdAt:at},guard={sessionId:'session',membershipId:'membership',teamId:'team',expectedSequence:2}; + const publish=async(value:Parameters[0])=>{const operations=upsertCapacityExecutionProviderOperations(value).filter(item=>item.query.startsWith('INSERT INTO execution_capability_offers'));expect(operations).toHaveLength(1);for(const operation of operations)await database.query(translateControlPlaneSqlToPostgres(operation.query),operation.params);}; + await publish(base);const held=(await database.query('SELECT * FROM execution_capability_offers')).rows; + for(const denied of[{...guard,expectedSequence:1},{...guard,sessionId:'foreign'},{...guard,membershipId:'foreign'},{...guard,teamId:'foreign'}]){await publish({...base,createdAt:later,availabilityGuard:denied});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} + for(const status of['closed','expired','draining']){await database.query('UPDATE capacity_provider_availability_sessions SET status=$1',[status]);await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} + await database.query("UPDATE capacity_provider_availability_sessions SET status='open'");await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held.map(value=>({...value,last_seen_at:later}))); + await database.query("UPDATE execution_capability_offers SET status='context_overflow'");const exact=(await database.query('SELECT * FROM execution_capability_offers')).rows;await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(exact); + }finally{await database.close();} + // Real generated SQL grammar and owning guards, with controlled local data; + // independent PostgreSQL contention remains the original native case. +}); From 1d5d831b687dc7617e31c57c9f95f7d705d69462 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:18:01 -0400 Subject: [PATCH 31/35] fix: bind capability offer publication to the existing availability sequence claim --- .../agent/golden/scenes/component-boundaries.scene.yaml | 5 +++++ guarantees/verifiers/golden.verifiers.yaml | 5 +++++ .../repositories/capacity/providers/execution-provider.ts | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index 554efeb6..2a6cfbff 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -2848,3 +2848,8 @@ workflow: verifier: api.golden.provider-availability-expiry-unit expect: status: passed + - id: provider-availability-offer-guard-unit + action: + verifier: api.golden.provider-availability-offer-guard-unit + expect: + status: passed diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index 7987922a..0fbdca7e 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -4824,3 +4824,8 @@ verifiers: ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts testName: "retains each actual runtime expiry in the original availability audit clock and reports only newly expired sessions through unchanged replay" + api.golden.provider-availability-offer-guard-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "retains exact capability offer bytes on stale foreign or terminal availability publication before original guarded retry" diff --git a/src/api/capacity/repositories/capacity/providers/execution-provider.ts b/src/api/capacity/repositories/capacity/providers/execution-provider.ts index 8255f811..62db15a6 100644 --- a/src/api/capacity/repositories/capacity/providers/execution-provider.ts +++ b/src/api/capacity/repositories/capacity/providers/execution-provider.ts @@ -156,7 +156,7 @@ export function upsertCapacityExecutionProviderOperations(input: { }) : []; const offerOperations: CapacityDatabaseOperation[] = Array.isArray(entry.offers) ? entry.offers.map((offerValue) => { const offer = record(offerValue); - return { query: `INSERT INTO execution_capability_offers (capacity_provider_id,execution_provider_id,offer_id,offer_digest,offer_json,status,last_seen_at) VALUES (?,?,?,?,?,'active',?) ON CONFLICT (capacity_provider_id,offer_id) DO UPDATE SET execution_provider_id=EXCLUDED.execution_provider_id,offer_digest=EXCLUDED.offer_digest,offer_json=EXCLUDED.offer_json,status=CASE WHEN execution_capability_offers.status='context_overflow' AND execution_capability_offers.offer_digest=EXCLUDED.offer_digest THEN 'context_overflow' ELSE 'active' END,last_seen_at=EXCLUDED.last_seen_at`, params: [input.providerId,id,String(offer.offerId),String(offer.offerDigest),JSON.stringify(offer),input.createdAt] }; + return { query: `INSERT INTO execution_capability_offers (capacity_provider_id,execution_provider_id,offer_id,offer_digest,offer_json,status,last_seen_at) SELECT ?,?,?,?,?,'active',?${guardClause} ON CONFLICT (capacity_provider_id,offer_id) DO UPDATE SET execution_provider_id=EXCLUDED.execution_provider_id,offer_digest=EXCLUDED.offer_digest,offer_json=EXCLUDED.offer_json,status=CASE WHEN execution_capability_offers.status='context_overflow' AND execution_capability_offers.offer_digest=EXCLUDED.offer_digest THEN 'context_overflow' ELSE 'active' END,last_seen_at=EXCLUDED.last_seen_at`, params: [input.providerId,id,String(offer.offerId),String(offer.offerDigest),JSON.stringify(offer),input.createdAt,...guardParams] }; }) : []; return [executionProviderOperation, ...laneOperations, ...offerOperations]; }); From ffcad8374927f2d3ef8ee3cf2ba2912a2dd7116c Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:19:03 -0400 Subject: [PATCH 32/35] test: type original SQL offer rows without changing native assertions --- .../capacity/ontology/availability-history.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 7a05acca..cc136dda 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -96,11 +96,11 @@ it('retains exact capability offer bytes on stale foreign or terminal availabili await database.exec("CREATE TABLE capacity_provider_availability_sessions (id TEXT,membership_id TEXT,team_id TEXT,sequence INTEGER,status TEXT);CREATE TABLE execution_capability_offers (capacity_provider_id TEXT,execution_provider_id TEXT,offer_id TEXT,offer_digest TEXT,offer_json TEXT,status TEXT,last_seen_at TEXT,PRIMARY KEY(capacity_provider_id,offer_id));INSERT INTO capacity_provider_availability_sessions VALUES ('session','membership','team',2,'open')"); const base={providerId:input.providerId,executionProviders:input.executionProviders,providerNativeLimits:input.nativeLimits,createdAt:at},guard={sessionId:'session',membershipId:'membership',teamId:'team',expectedSequence:2}; const publish=async(value:Parameters[0])=>{const operations=upsertCapacityExecutionProviderOperations(value).filter(item=>item.query.startsWith('INSERT INTO execution_capability_offers'));expect(operations).toHaveLength(1);for(const operation of operations)await database.query(translateControlPlaneSqlToPostgres(operation.query),operation.params);}; - await publish(base);const held=(await database.query('SELECT * FROM execution_capability_offers')).rows; - for(const denied of[{...guard,expectedSequence:1},{...guard,sessionId:'foreign'},{...guard,membershipId:'foreign'},{...guard,teamId:'foreign'}]){await publish({...base,createdAt:later,availabilityGuard:denied});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} - for(const status of['closed','expired','draining']){await database.query('UPDATE capacity_provider_availability_sessions SET status=$1',[status]);await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} - await database.query("UPDATE capacity_provider_availability_sessions SET status='open'");await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(held.map(value=>({...value,last_seen_at:later}))); - await database.query("UPDATE execution_capability_offers SET status='context_overflow'");const exact=(await database.query('SELECT * FROM execution_capability_offers')).rows;await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query('SELECT * FROM execution_capability_offers')).rows).toEqual(exact); + await publish(base);const held=(await database.query>('SELECT * FROM execution_capability_offers')).rows; + for(const denied of[{...guard,expectedSequence:1},{...guard,sessionId:'foreign'},{...guard,membershipId:'foreign'},{...guard,teamId:'foreign'}]){await publish({...base,createdAt:later,availabilityGuard:denied});expect((await database.query>('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} + for(const status of['closed','expired','draining']){await database.query('UPDATE capacity_provider_availability_sessions SET status=$1',[status]);await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query>('SELECT * FROM execution_capability_offers')).rows).toEqual(held);} + await database.query("UPDATE capacity_provider_availability_sessions SET status='open'");await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query>('SELECT * FROM execution_capability_offers')).rows).toEqual(held.map(value=>({...value,last_seen_at:later}))); + await database.query("UPDATE execution_capability_offers SET status='context_overflow'");const exact=(await database.query>('SELECT * FROM execution_capability_offers')).rows;await publish({...base,createdAt:later,availabilityGuard:guard});expect((await database.query>('SELECT * FROM execution_capability_offers')).rows).toEqual(exact); }finally{await database.close();} // Real generated SQL grammar and owning guards, with controlled local data; // independent PostgreSQL contention remains the original native case. From f8bf86416a9a7e0aeabdd5fca6094d110dfb14aa Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:21:01 -0400 Subject: [PATCH 33/35] test: require current availability claim before any provider projection or seed grant write --- .../capacity/ontology/availability-history.test.ts | 6 ++++++ .../capacity/ontology/availability-postgres.test.ts | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index cc136dda..56ee7380 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -105,3 +105,9 @@ it('retains exact capability offer bytes on stale foreign or terminal availabili // Real generated SQL grammar and owning guards, with controlled local data; // independent PostgreSQL contention remains the original native case. }); + +it('denies a missing current availability claim before every offer lane or seed grant mutation without changing original requests',async()=>{ + const {input}=availabilityHistoryInput(),before=structuredClone(input),first=vi.fn().mockResolvedValue(null),batch=vi.fn().mockResolvedValue([{results:[{id:input.id,sequence:2}]}]); + const database:CapacityGovernanceDatabase={ensureInitialized:async()=>{},first,batch,run:vi.fn(async()=>{}),all:vi.fn(async()=>[])},operations=[{query:'UPDATE capacity_grants SET updated_at=? WHERE id=?',params:[input.refreshedAt,'controlled-original-seed-grant']}],held=structuredClone(operations); + await expect(new AvailabilitySessionRepository(database).refresh(input,1,operations)).resolves.toBeNull();expect(batch).not.toHaveBeenCalled();expect(database.run).not.toHaveBeenCalled();expect(database.all).not.toHaveBeenCalled();expect(first).toHaveBeenCalledTimes(1);expect(first.mock.calls[0]![1]).toEqual([input.id,input.membershipId,input.teamId,input.providerId,1]);expect(first.mock.calls[0]![0]).toContain("status = 'open'");expect(first.mock.calls[0]![0]).toContain('FOR NO KEY UPDATE');expect(input).toEqual(before);expect(operations).toEqual(held); +}); diff --git a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts index 23e949b1..ef5d518f 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-postgres.test.ts @@ -35,6 +35,8 @@ describe('provider accounting in disposable PostgreSQL', () => { first: >(sql: string, params: unknown[] = []) => f.left.prepare(sql).bind(...params).first(), all: async >(sql: string, params: unknown[] = []) => (await f.left.prepare(sql).bind(...params).all()).results, batch: (operations: Array<{ query: string; params?: unknown[] }>) => f.left.batch(operations) }; + await f.left.pool.query("INSERT INTO projects (id,team_id,slug,name,created_at,updated_at) VALUES ('availability-seed-project','team','availability-seed-project','Controlled seed grant input',$1,$1)",[original.now]); + await f.left.pool.query("INSERT INTO capacity_grants (id,membership_id,capacity_provider_id,team_id,project_id,environment,status,metadata_json,created_at,updated_at) VALUES ('availability-seed-grant','membership','provider','team','availability-seed-project','local','active','{\"seedName\":\"controlled-native-publication\"}',$1,$1)",[original.now]); const principal = { teamId: 'team', membershipId: 'membership', capacityProviderId: 'provider' }; await f.left.pool.query("INSERT INTO teams (id,slug,name,created_at,updated_at) VALUES ('availability-other-team','availability-other-team','Unrelated observation input',$1,$1)",[original.now]); for(const[id,team,status]of[['availability-live','team','running'],['availability-ended','team','completed'],['availability-foreign','availability-other-team','running']]as const) @@ -74,7 +76,7 @@ describe('provider accounting in disposable PostgreSQL', () => { await observeAvailability([{sequence:opened.sequence,status:'open',at:opened.refreshedAt}]); const compileNow = new Date().toISOString(); const buildSource = { ...original, run: canonicalOfferBuildInput(compileNow).run, now: compileNow }; - const tables = ['capacity_audit_events','capacity_workday_runs','capacity_workday_events','capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', + const tables = ['capacity_audit_events','capacity_grants','capacity_workday_runs','capacity_workday_events','capacity_providers', 'capacity_provider_team_memberships', 'capacity_provider_availability_sessions', 'capacity_execution_providers', 'capacity_provider_lanes', 'execution_capability_offers', 'capacity_provider_assignments', 'capacity_reservations', 'capacity_usage_actuals', 'capacity_ledger_entries', 'capacity_operation_receipts']; const snapshot = async (database: typeof f.left) => { From c3024fc4075a87e97b45ffd9a4d86a8d47c7cc56 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:21:29 -0400 Subject: [PATCH 34/35] fix: validate and lock the current availability claim before any coupled provider mutation --- .../agent/golden/scenes/component-boundaries.scene.yaml | 5 +++++ guarantees/verifiers/golden.verifiers.yaml | 5 +++++ .../capacity/repositories/accounts/availability-session.ts | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml index 2a6cfbff..27c11f97 100644 --- a/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +++ b/guarantees/agent/golden/scenes/component-boundaries.scene.yaml @@ -2853,3 +2853,8 @@ workflow: verifier: api.golden.provider-availability-offer-guard-unit expect: status: passed + - id: provider-availability-current-claim-unit + action: + verifier: api.golden.provider-availability-current-claim-unit + expect: + status: passed diff --git a/guarantees/verifiers/golden.verifiers.yaml b/guarantees/verifiers/golden.verifiers.yaml index 0fbdca7e..dbbef52d 100644 --- a/guarantees/verifiers/golden.verifiers.yaml +++ b/guarantees/verifiers/golden.verifiers.yaml @@ -4829,3 +4829,8 @@ verifiers: ownerPackage: "@treeseed/api" testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts testName: "retains exact capability offer bytes on stale foreign or terminal availability publication before original guarded retry" + api.golden.provider-availability-current-claim-unit: + kind: vitestCase + ownerPackage: "@treeseed/api" + testFile: tests/unit/control-plane/capacity/ontology/availability-history.test.ts + testName: "denies a missing current availability claim before every offer lane or seed grant mutation without changing original requests" diff --git a/src/api/capacity/repositories/accounts/availability-session.ts b/src/api/capacity/repositories/accounts/availability-session.ts index 08cc5ddd..1fe56494 100644 --- a/src/api/capacity/repositories/accounts/availability-session.ts +++ b/src/api/capacity/repositories/accounts/availability-session.ts @@ -90,8 +90,9 @@ export class AvailabilitySessionRepository { async refresh(input: AvailabilitySessionWrite, expectedSequence: number, providerOperations: CapacityDatabaseOperation[]) { await this.database.ensureInitialized(); + const currentClaim=await this.database.first(`SELECT id FROM capacity_provider_availability_sessions WHERE id = ? AND membership_id = ? AND team_id = ? AND capacity_provider_id = ? AND sequence = ? AND status = 'open' FOR NO KEY UPDATE`,[input.id,input.membershipId,input.teamId,input.providerId,expectedSequence]); + if(!currentClaim)return null; const results = await this.database.batch([ - { query: `SELECT id FROM capacity_provider_availability_sessions WHERE id = ? AND membership_id = ? AND team_id = ? FOR NO KEY UPDATE`, params: [input.id, input.membershipId, input.teamId] }, ...providerOperations, { query: `UPDATE capacity_provider_availability_sessions SET sequence = sequence + 1, refreshed_at = ?, expires_at = ?, available_from = ?, available_until = ?, execution_providers_json = ?, capabilities_json = ?, native_limits_json = ?, runner_pressure_json = ?, constraints_json = ?, metadata_json = ?, updated_at = ? WHERE id = ? AND membership_id = ? AND team_id = ? AND capacity_provider_id = ? AND status = 'open' AND sequence = ? RETURNING id, sequence`, params: [input.refreshedAt, input.expiresAt, input.availableFrom, input.availableUntil, JSON.stringify(input.executionProviders), JSON.stringify(input.capabilities), JSON.stringify(input.nativeLimits), JSON.stringify(input.runnerPressure), JSON.stringify(input.constraints), JSON.stringify(input.metadata), input.refreshedAt, input.id, input.membershipId, input.teamId, input.providerId, expectedSequence] }, ]); From fdcbe12df635e289ec85346db896036f352ecebc Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Sat, 17 Oct 2026 02:22:35 -0400 Subject: [PATCH 35/35] test: retain the generic owning claim reader signature in the exact missing-row regression --- .../capacity/ontology/availability-history.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts index 56ee7380..aa1c82d2 100644 --- a/tests/unit/control-plane/capacity/ontology/availability-history.test.ts +++ b/tests/unit/control-plane/capacity/ontology/availability-history.test.ts @@ -108,6 +108,6 @@ it('retains exact capability offer bytes on stale foreign or terminal availabili it('denies a missing current availability claim before every offer lane or seed grant mutation without changing original requests',async()=>{ const {input}=availabilityHistoryInput(),before=structuredClone(input),first=vi.fn().mockResolvedValue(null),batch=vi.fn().mockResolvedValue([{results:[{id:input.id,sequence:2}]}]); - const database:CapacityGovernanceDatabase={ensureInitialized:async()=>{},first,batch,run:vi.fn(async()=>{}),all:vi.fn(async()=>[])},operations=[{query:'UPDATE capacity_grants SET updated_at=? WHERE id=?',params:[input.refreshedAt,'controlled-original-seed-grant']}],held=structuredClone(operations); + const database:CapacityGovernanceDatabase={ensureInitialized:async()=>{},first:async>(query:string,params?:unknown[]):Promise=>{await first(query,params);return null;},batch,run:vi.fn(async()=>{}),all:vi.fn(async()=>[])},operations=[{query:'UPDATE capacity_grants SET updated_at=? WHERE id=?',params:[input.refreshedAt,'controlled-original-seed-grant']}],held=structuredClone(operations); await expect(new AvailabilitySessionRepository(database).refresh(input,1,operations)).resolves.toBeNull();expect(batch).not.toHaveBeenCalled();expect(database.run).not.toHaveBeenCalled();expect(database.all).not.toHaveBeenCalled();expect(first).toHaveBeenCalledTimes(1);expect(first.mock.calls[0]![1]).toEqual([input.id,input.membershipId,input.teamId,input.providerId,1]);expect(first.mock.calls[0]![0]).toContain("status = 'open'");expect(first.mock.calls[0]![0]).toContain('FOR NO KEY UPDATE');expect(input).toEqual(before);expect(operations).toEqual(held); });