Skip to content

Commit 6f1e881

Browse files
committed
docs: include CLI diagnostic catalogue ownership
Signed-off-by: Bryan Bednarski <[email protected]>
1 parent efff8a8 commit 6f1e881

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

‎docs/reference/diagnostics.mdx‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,24 @@ operations across execution mechanisms. `PluginExecution` separately describes
310310
the observed execution mechanism when a producer can establish it.
311311

312312
Domain and family come from the individual catalogue entry. Success, failure,
313-
and notice describe the observation kind and do not determine its owner. Today,
314-
the three success codes belong to Logging, and the inheritance notice belongs
315-
to Plugin/Common. The selector methods match those entries explicitly so adding
316-
a new success or notice requires an intentional domain and family mapping.
313+
and notice describe the observation kind and do not determine its owner.
314+
`DiagnosticDomain::Cli` owns the current CLI entries:
315+
316+
- **Failures:** `cli.child.cleanup_failed`, `cli.upstream.response_failed`,
317+
`cli.command_failed`, `cli.configuration_failed`, `cli.gateway.bind_failed`,
318+
`cli.gateway.serve_failed`, `cli.acquire_failed`, `cli.child.spawn_failed`,
319+
`cli.child.wait_failed`, `cli.hook.forward_failed`, and
320+
`cli.upstream.transport_failed`.
321+
- **Successes:** `cli.upstream.headers_received`,
322+
`cli.upstream.body_completed`, `cli.child.cleaned`, `cli.command_completed`,
323+
`cli.gateway.bound`, `cli.gateway.stopped`, `cli.acquired`,
324+
`cli.child.spawned`, `cli.child.waited`, and `cli.hook.forwarded`.
325+
- **Notices:** `cli.nonzero_exit`, `cli.policy_rejected`, and `cli.child.exited`.
326+
327+
Logging owns its three success codes, while the configuration-inheritance
328+
notice belongs to Plugin/Common. The selector methods match each entry
329+
explicitly, so adding a success or notice requires an intentional domain and
330+
family mapping.
317331

318332
When integrating a producer that needs a new code, update its canonical name,
319333
domain, optional plugin family, catalogue listing, and selector tests together.
@@ -359,8 +373,9 @@ transport adapters must enforce their metadata and payload limits before
359373
materialization. The schema permits future names within a supported snapshot
360374
envelope; unsupported envelope versions still require negotiation.
361375

362-
The phase-one built-in catalogue contains logging failures/successes, six common
363-
plugin failures, and `ConfigurationInherited`. The inheritance notice records once per
376+
The active built-in catalogue contains the CLI failures, successes, and notices
377+
listed above; logging failures and successes; six common plugin failures; and
378+
`ConfigurationInherited`. The inheritance notice records once per
364379
contributing ambient file at configuration resolution, using a separate
365380
`plugin.configuration` recorder in the host's selected context. The explicitly
366381
supplied file is excluded from inheritance notices. This state-only producer

0 commit comments

Comments
 (0)