fix: regenerate cordis catalog and allowlist the diagnostic fixture
The subagent API surface change staled the committed catalog artifacts; the snapshot fixture agent is referenced only from its cordis.snapshot.yml, so knip learns it as an entry like its siblings.
This commit is contained in:
@@ -2099,22 +2099,28 @@ registerContinuableSetup(contribution: ContinuableSetupContribution): () => void
|
|||||||
async drainContinuableDescendants(parents: readonly Agent[]): Promise<void>
|
async drainContinuableDescendants(parents: readonly Agent[]): Promise<void>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumerate the parent's direct session-backed subagents from the
|
* Enumerate the parent's direct session-backed subagents without loading or
|
||||||
* live-preferred session corpus without loading or resuming an Agent. Session
|
* resuming an Agent and without any query seam: the listing merges the live
|
||||||
* query supplies lineage, candidate order, event reads, and live state; this
|
* session store with optional session persistence (live-preferred) and
|
||||||
* service interprets descriptor mode, activity, and per-child diagnostics
|
* serves each child's durable mode/label from the registered `subagent`
|
||||||
* without consulting Agent registrations, Activations, or providers.
|
* projection unit — the registry's watermark snapshot for a live child, one
|
||||||
|
* persistence inspection folded through the registry for a cold one. The
|
||||||
|
* projection fold is the single classification authority; per-child
|
||||||
|
* diagnostics relay a fold that served no identity or a failed inspection,
|
||||||
|
* never a list-time descriptor parse. Absent persistence, enumeration is
|
||||||
|
* live-only (a cold child cannot be resumed then either, so its absence is
|
||||||
|
* capability absence, not an error). This service consults no Agent
|
||||||
|
* registrations, Activations, or providers.
|
||||||
*
|
*
|
||||||
* The trace and exact descriptor read receive `signal`; the full event-list
|
* Every persistence read receives `signal`, and the listing rechecks
|
||||||
* read has no signal parameter, so the scan rechecks cancellation around
|
* cancellation around each of those awaits. Read rejections that settle
|
||||||
* every await and between candidates. Query rejections that settle after an
|
* after an abort become a stable `SubagentError` with code `CANCELLED`.
|
||||||
* abort become a stable `SubagentError` with code `CANCELLED`.
|
|
||||||
* @param parentSessionId - parent session whose direct children are listed.
|
* @param parentSessionId - parent session whose direct children are listed.
|
||||||
* @param signal - caller-owned cancellation forwarded where supported and
|
* @param signal - caller-owned cancellation forwarded to persistence reads
|
||||||
* observed around every query await.
|
* and observed around every read await.
|
||||||
* @returns children and per-child diagnostics in stable trace order.
|
* @returns children and per-child diagnostics ordered by `createdAt`, then id.
|
||||||
* @throws {@link SubagentError} when session query is unavailable or the
|
* @throws {@link SubagentError} when the projection registry or the session
|
||||||
* caller cancels the scan.
|
* store is not mounted, or the caller cancels the listing.
|
||||||
*/
|
*/
|
||||||
listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentListEntry[]>
|
listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentListEntry[]>
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
"entry": [
|
"entry": [
|
||||||
"headless-agent/tests/fixtures/cli-mock-llm.ts",
|
"headless-agent/tests/fixtures/cli-mock-llm.ts",
|
||||||
"headless-agent/tests/fixtures/semantic-checkpoint-agent.ts",
|
"headless-agent/tests/fixtures/semantic-checkpoint-agent.ts",
|
||||||
|
"headless-agent/tests/fixtures/subagent-diagnostic-agent.ts",
|
||||||
"headless-agent/tests/fixtures/subagent-inheritance-agent.ts",
|
"headless-agent/tests/fixtures/subagent-inheritance-agent.ts",
|
||||||
"headless-agent/tests/fixtures/workspace-context-resume-agent.ts",
|
"headless-agent/tests/fixtures/workspace-context-resume-agent.ts",
|
||||||
"headless-agent/tests/fixtures/goal-domain/seed-goal.ts",
|
"headless-agent/tests/fixtures/goal-domain/seed-goal.ts",
|
||||||
|
|||||||
@@ -938,7 +938,7 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
signature: 'listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentListEntry[]>',
|
signature: 'listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentListEntry[]>',
|
||||||
jsDoc: '/**\n * Enumerate the parent\'s direct session-backed subagents from the\n * live-preferred session corpus without loading or resuming an Agent. Session\n * query supplies lineage, candidate order, event reads, and live state; this\n * service interprets descriptor mode, activity, and per-child diagnostics\n * without consulting Agent registrations, Activations, or providers.\n *\n * The trace and exact descriptor read receive `signal`; the full event-list\n * read has no signal parameter, so the scan rechecks cancellation around\n * every await and between candidates. Query rejections that settle after an\n * abort become a stable `SubagentError` with code `CANCELLED`.\n * @param parentSessionId - parent session whose direct children are listed.\n * @param signal - caller-owned cancellation forwarded where supported and\n * observed around every query await.\n * @returns children and per-child diagnostics in stable trace order.\n * @throws {@link SubagentError} when session query is unavailable or the\n * caller cancels the scan.\n */',
|
jsDoc: '/**\n * Enumerate the parent\'s direct session-backed subagents without loading or\n * resuming an Agent and without any query seam: the listing merges the live\n * session store with optional session persistence (live-preferred) and\n * serves each child\'s durable mode/label from the registered `subagent`\n * projection unit — the registry\'s watermark snapshot for a live child, one\n * persistence inspection folded through the registry for a cold one. The\n * projection fold is the single classification authority; per-child\n * diagnostics relay a fold that served no identity or a failed inspection,\n * never a list-time descriptor parse. Absent persistence, enumeration is\n * live-only (a cold child cannot be resumed then either, so its absence is\n * capability absence, not an error). This service consults no Agent\n * registrations, Activations, or providers.\n *\n * Every persistence read receives `signal`, and the listing rechecks\n * cancellation around each of those awaits. Read rejections that settle\n * after an abort become a stable `SubagentError` with code `CANCELLED`.\n * @param parentSessionId - parent session whose direct children are listed.\n * @param signal - caller-owned cancellation forwarded to persistence reads\n * and observed around every read await.\n * @returns children and per-child diagnostics ordered by `createdAt`, then id.\n * @throws {@link SubagentError} when the projection registry or the session\n * store is not mounted, or the caller cancels the listing.\n */',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
signature: 'registerProvider(provider: SubagentProvider): () => void',
|
signature: 'registerProvider(provider: SubagentProvider): () => void',
|
||||||
|
|||||||
Reference in New Issue
Block a user