{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Canonical cross-SDK API surface for the shared AFDATA contract (protocol builders/reader, output, redaction, CLI primitives, core types). The closed-world CliSpec compiler and help-v2 are the only lifecycle/help contract; the Rust reference ships first. Skill administration, tracing, stream redirection, and the whole `document` module are Rust-only and outside this manifest, so the checked count is the shared contract, not the crate's full public surface. A null entry means that language has no required top-level export for the group; the note records the idiomatic equivalent or the deliberate contract gap. Reverse export checks still reject undeclared public symbols. Validated by scripts/validate_api_surface.py, wired into scripts/test.sh's static phase.",
"groups": [
{
"id": "json_result",
"kind": "fn",
"rust": "json_result",
"python": "json_result",
"typescript": "jsonResult",
"go": "NewJSONResult"
},
{
"id": "json_error",
"kind": "fn",
"rust": "json_error",
"python": "json_error",
"typescript": "jsonError",
"go": "NewJSONError"
},
{
"id": "json_progress",
"kind": "fn",
"rust": "json_progress",
"python": "json_progress",
"typescript": "jsonProgress",
"go": "NewJSONProgress"
},
{
"id": "json_log",
"kind": "fn",
"rust": "json_log",
"python": "json_log",
"typescript": "jsonLog",
"go": "NewJSONLog"
},
{
"id": "result_builder",
"kind": "type",
"rust": "ResultBuilder",
"python": "ResultBuilder",
"typescript": "JsonResultBuilder",
"go": "JSONResultBuilder"
},
{
"id": "error_builder",
"kind": "type",
"rust": "ErrorBuilder",
"python": "ErrorBuilder",
"typescript": "JsonErrorBuilder",
"go": "JSONErrorBuilder"
},
{
"id": "error_spec",
"kind": "type",
"rust": "ErrorSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only stable public domain-error declaration. It deliberately has no runtime diagnostic field."
},
{
"id": "error_catalog",
"kind": "type",
"rust": "ErrorCatalog",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only validated lookup table that builds protocol error events from ErrorSpec by stable code."
},
{
"id": "error_catalog_error",
"kind": "type",
"rust": "ErrorCatalogError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only duplicate/unknown/invalid catalog error."
},
{
"id": "progress_builder",
"kind": "type",
"rust": "ProgressBuilder",
"python": "ProgressBuilder",
"typescript": "JsonProgressBuilder",
"go": "JSONProgressBuilder",
"note": "Builders support explicit epoch-millisecond timestamps and current-time timestamps."
},
{
"id": "log_builder",
"kind": "type",
"rust": "LogBuilder",
"python": "LogBuilder",
"typescript": "JsonLogBuilder",
"go": "JSONLogBuilder",
"note": "Builders support explicit epoch-millisecond timestamps and current-time timestamps."
},
{
"id": "event",
"kind": "type",
"rust": "Event",
"python": "Event",
"typescript": "Event",
"go": "Event"
},
{
"id": "event_build_error",
"kind": "type",
"rust": "BuildError",
"python": "EventBuildError",
"typescript": "EventBuildError",
"go": "BuilderError"
},
{
"id": "log_level",
"kind": "type",
"rust": "LogLevel",
"python": "LogLevel",
"typescript": "LogLevel",
"go": "LogLevel"
},
{
"id": "validate_protocol_event",
"kind": "fn",
"rust": "validate_protocol_event",
"python": "validate_protocol_event",
"typescript": "validateProtocolEvent",
"go": "ValidateProtocolEvent"
},
{
"id": "validate_protocol_stream",
"kind": "fn",
"rust": "validate_protocol_stream",
"python": "validate_protocol_stream",
"typescript": "validateProtocolStream",
"go": "ValidateProtocolStream"
},
{
"id": "protocol_violation",
"kind": "type",
"rust": "ProtocolViolation",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only typed protocol-validation error (stable rule slug + JSON pointer + message) returned by validate_protocol_event/validate_protocol_stream. Python/TS/Go SDKs still surface validation failures as a plain message (ValueError / Error / error), not yet upgraded to the typed violation — a tracked cross-SDK gap."
},
{
"id": "build_cli_error",
"kind": "fn",
"rust": "build_cli_error",
"python": "build_cli_error",
"typescript": "buildCliError",
"go": "BuildCLIError"
},
{
"id": "decode_protocol_event",
"kind": "fn",
"rust": "decode_protocol_event",
"python": "decode_protocol_event",
"typescript": "decodeProtocolEvent",
"go": "DecodeProtocolEvent",
"note": "Reads base-profile events; strict validation remains a separate opt-in. DecodedError.retryable is nullable when absent."
},
{
"id": "event_decode_error",
"kind": "type",
"rust": "EventDecodeError",
"python": "EventDecodeError",
"typescript": "EventDecodeError",
"go": "EventDecodeError"
},
{
"id": "decoded_event",
"kind": "type",
"rust": "DecodedEvent",
"python": null,
"typescript": "DecodedEvent",
"go": "DecodedEvent",
"note": "Rust/TS/Go use a decoded-event enum/union/interface; Python returns one of DecodedResult/DecodedError/DecodedProgress/DecodedLog directly without a wrapping union type."
},
{
"id": "decoded_result",
"kind": "type",
"rust": "DecodedResult",
"python": "DecodedResult",
"typescript": "DecodedResult",
"go": "DecodedResult"
},
{
"id": "decoded_error",
"kind": "type",
"rust": "DecodedError",
"python": "DecodedError",
"typescript": "DecodedError",
"go": "DecodedError"
},
{
"id": "decoded_progress",
"kind": "type",
"rust": "DecodedProgress",
"python": "DecodedProgress",
"typescript": "DecodedProgress",
"go": "DecodedProgress"
},
{
"id": "decoded_log",
"kind": "type",
"rust": "DecodedLog",
"python": "DecodedLog",
"typescript": "DecodedLog",
"go": "DecodedLog"
},
{
"id": "render",
"kind": "fn",
"rust": "render",
"python": "render",
"typescript": "render",
"go": "Render",
"note": "The single value × format × options → String entry point. Replaces the former output_json/output_yaml/output_plain (+ _with_options) and cli_output/cli_output_with_options families. Rust/Go take an explicit OutputOptions argument (OutputOptions: Default); Python/TS keep it an optional keyword/parameter."
},
{
"id": "lint_value",
"kind": "fn",
"rust": "lint_value",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only in-process equivalent of `afdata lint` over a serialized JSON value."
},
{
"id": "lint_field_value",
"kind": "fn",
"rust": "lint_field_value",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only in-process lint for a value whose field name is supplied separately. Finding pointers are relative to the value."
},
{
"id": "lint_finding",
"kind": "type",
"rust": "LintFinding",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only typed lint finding."
},
{
"id": "lint_options",
"kind": "type",
"rust": "LintOptions",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only lint input and severity options."
},
{
"id": "lint_severity",
"kind": "type",
"rust": "LintSeverity",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only warning/error lint severity enum."
},
{
"id": "assert_strict_event",
"kind": "fn",
"rust": "assert_strict_event",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only test helper returning the strict protocol validation result."
},
{
"id": "assert_no_lint_findings",
"kind": "fn",
"rust": "assert_no_lint_findings",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only test helper returning all default lint findings as Err."
},
{
"id": "assert_no_lint_findings_with_options",
"kind": "fn",
"rust": "assert_no_lint_findings_with_options",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only configurable lint assertion helper."
},
{
"id": "assert_redaction_canary_absent",
"kind": "fn",
"rust": "assert_redaction_canary_absent",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only test helper that checks a unique canary is absent from final serialized output."
},
{
"id": "redaction_canary_error",
"kind": "type",
"rust": "RedactionCanaryError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only empty/exposed canary error."
},
{
"id": "redacted_value",
"kind": "fn",
"rust": "redacted_value",
"python": "redacted_value",
"typescript": "redactedValue",
"go": "RedactedValue"
},
{
"id": "redacted_value_at",
"kind": "fn",
"rust": null,
"python": "redacted_value_at",
"typescript": "redactedValueAt",
"go": null,
"note": "Rust Redactor::value_at and Go Redactor.ValueAt implement the same structural route contract. An element step has no index or identifier."
},
{
"id": "is_secret_path",
"kind": "fn",
"rust": null,
"python": "is_secret_path",
"typescript": "isSecretPath",
"go": null,
"note": "Rust Redactor::is_secret_path and Go Redactor.IsSecretPath implement the same path judgment."
},
{
"id": "redact_url_secrets",
"kind": "fn",
"rust": "redact_url_secrets",
"python": "redact_url_secrets",
"typescript": "redactUrlSecrets",
"go": "RedactURLSecrets"
},
{
"id": "redact_urls_in_text",
"kind": "fn",
"rust": "redact_urls_in_text",
"python": "redact_urls_in_text",
"typescript": "redactUrlsInText",
"go": "RedactURLsInText",
"note": "Explicit URL-only prose helper. It recognizes complete scheme-prefixed URL spans and delegates URL redaction; ordinary structured redaction never scans arbitrary prose."
},
{
"id": "redact_argv",
"kind": "fn",
"rust": "redact_argv",
"python": "redact_argv",
"typescript": "redactArgv",
"go": "RedactArgv",
"note": "Rust/Go also expose it as a configured Redactor method (.argv()/.Argv()) for custom secret_names/policy; Python/TS take secret_names/policy as keyword arguments, matching redacted_value/redact_url_secrets."
},
{
"id": "redactor",
"kind": "type",
"rust": "Redactor",
"python": null,
"typescript": null,
"go": "Redactor",
"note": "Rust/Go use a configured Redactor value (.value()/.url() or .Value()/.URL()) for custom secret_names/policy; Python/TS take secret_names/policy as keyword arguments directly on redacted_value/redact_url_secrets/OutputOptions instead of a separate type. Exact reveal names: Rust Redactor::reveal_names, Go Redactor.RevealNames, Python reveal_names (OutputOptions/keyword), TypeScript OutputOptions.redaction.revealNames; URL parameters and argv get no exemption."
},
{
"id": "redaction_policy",
"kind": "type",
"rust": "RedactionPolicy",
"python": "RedactionPolicy",
"typescript": "RedactionPolicy",
"go": "RedactionPolicy"
},
{
"id": "plain_style",
"kind": "type",
"rust": "PlainStyle",
"python": "PlainStyle",
"typescript": "PlainStyle",
"go": "PlainStyle"
},
{
"id": "output_options",
"kind": "type",
"rust": "OutputOptions",
"python": "OutputOptions",
"typescript": "OutputOptions",
"go": "OutputOptions"
},
{
"id": "normalize_utc_offset",
"kind": "fn",
"rust": "normalize_utc_offset",
"python": "normalize_utc_offset",
"typescript": "normalizeUtcOffset",
"go": "NormalizeUTCOffset"
},
{
"id": "is_valid_rfc3339_date",
"kind": "fn",
"rust": "is_valid_rfc3339_date",
"python": "is_valid_rfc3339_date",
"typescript": "isValidRfc3339Date",
"go": "IsValidRFC3339Date"
},
{
"id": "is_valid_rfc3339_time",
"kind": "fn",
"rust": "is_valid_rfc3339_time",
"python": "is_valid_rfc3339_time",
"typescript": "isValidRfc3339Time",
"go": "IsValidRFC3339Time"
},
{
"id": "is_valid_rfc3339",
"kind": "fn",
"rust": "is_valid_rfc3339",
"python": "is_valid_rfc3339",
"typescript": "isValidRfc3339",
"go": "IsValidRFC3339"
},
{
"id": "is_valid_bcp47",
"kind": "fn",
"rust": "is_valid_bcp47",
"python": "is_valid_bcp47",
"typescript": "isValidBcp47",
"go": "IsValidBCP47"
},
{
"id": "output_format",
"kind": "type",
"rust": "OutputFormat",
"python": "OutputFormat",
"typescript": "OutputFormat",
"go": "OutputFormat"
},
{
"id": "log_filters",
"kind": "type",
"rust": "LogFilters",
"python": "LogFilters",
"typescript": "LogFilters",
"go": "LogFilters"
},
{
"id": "cli_parse_output",
"kind": "fn",
"rust": "cli_parse_output",
"python": "cli_parse_output",
"typescript": "cliParseOutput",
"go": "CliParseOutput"
},
{
"id": "cli_parse_log_filters",
"kind": "fn",
"rust": "cli_parse_log_filters",
"python": "cli_parse_log_filters",
"typescript": "cliParseLogFilters",
"go": "CliParseLogFilters"
},
{
"id": "cli_emitter",
"kind": "type",
"rust": "CliEmitter",
"python": "CliEmitter",
"typescript": "CliEmitter",
"go": "CliEmitter"
},
{
"id": "output_to",
"kind": "type",
"rust": "OutputTo",
"python": "OutputTo",
"typescript": "OutputTo",
"go": "OutputTo"
},
{
"id": "parse_output_to",
"kind": "fn",
"rust": null,
"python": null,
"typescript": "parseOutputTo",
"go": "ParseOutputTo",
"note": "Rust/Python expose this as the OutputTo::parse associated function / OutputTo.parse classmethod, not a separate top-level export; Go/TS provide it as a free function."
},
{
"id": "cli_emitter_stream",
"kind": "fn",
"rust": null,
"python": null,
"typescript": null,
"go": "NewCliEmitterStream",
"note": "Go-only free constructor for the event-stream mode (every event, including error, to one writer); Rust/Python/TS construct via CliEmitter::stream / CliEmitter.stream, not separate top-level exports."
},
{
"id": "cli_emitter_finite",
"kind": "fn",
"rust": null,
"python": null,
"typescript": null,
"go": "NewCliEmitterFinite",
"note": "Go-only free constructor for the finite one-shot mode (result and raw bytes to the result writer, error/progress/log to the diagnostic writer); Rust/Python/TS construct via CliEmitter::finite / CliEmitter.finite / CliEmitter.finite, not separate top-level exports."
},
{
"id": "cli_emitter_from_output_to",
"kind": "fn",
"rust": null,
"python": null,
"typescript": null,
"go": "NewCliEmitterFromOutputTo",
"note": "Go-only free constructor that picks finite (split) or stream mode from a parsed OutputTo selector, wired to the process streams; Rust/Python/TS use the from_output_to / fromOutputTo method."
},
{
"id": "output_options_for_policy",
"kind": "fn",
"rust": null,
"python": null,
"typescript": "outputOptionsForPolicy",
"go": "OutputOptionsForPolicy",
"note": "Python exposes this as a classmethod (OutputOptions.for_policy). Rust has no such function: it implements `From<RedactionPolicy> for OutputOptions`, so the equivalent is `OutputOptions::from(policy)` or `policy.into()`."
},
{
"id": "cli_event_writer",
"kind": "type",
"rust": null,
"python": null,
"typescript": "CliEventWriter",
"go": null,
"note": "TS-only structural type for the writer CliEmitter accepts; Rust expresses the equivalent as a generic bound (W: Write), Python/Go accept any writable/file-like object without naming the shape."
},
{
"id": "json_value",
"kind": "type",
"rust": null,
"python": null,
"typescript": "JsonValue",
"go": null,
"note": "TS-only exported type alias for a JSON value. Rust uses serde_json::Value (from the serde_json crate, not this crate's own naming); Python/Go use the host language's dynamic Any/any."
},
{
"id": "cli_emitter_error",
"kind": "type",
"rust": "CliEmitterError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only: a typed write-failure error for CliEmitter. Python/TS/Go raise/return the host language's native I/O error instead."
},
{
"id": "build_cli_version",
"kind": "fn",
"rust": "build_cli_version",
"python": "build_cli_version",
"typescript": "buildCliVersion",
"go": "BuildCliVersion"
},
{
"id": "cli_render_version",
"kind": "fn",
"rust": "cli_render_version",
"python": "cli_render_version",
"typescript": "cliRenderVersion",
"go": "CliRenderVersion"
},
{
"id": "cli_spec",
"kind": "type",
"rust": "CliSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference compiler for cli-spec-v1; the other SDK compilers are intentionally deferred to the shared-fixture migration."
},
{
"id": "built_cli_spec",
"kind": "type",
"rust": "BuiltCliSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only validated cli-spec-v1 registry."
},
{
"id": "bound_cli_spec",
"kind": "type",
"rust": "BoundCliSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only registry with exact action-handler coverage."
},
{
"id": "bound_outcome",
"kind": "type",
"rust": "BoundOutcome",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only. What an argv resolved to, with the run branch already carrying its handler so dispatch cannot fail."
},
{
"id": "bound_invocation",
"kind": "type",
"rust": "BoundInvocation",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only. A resolved invocation plus its handler. `run` is infallible because the handler was bound during resolution by the registry that owns it, which is why no caller branches on a dispatch miss."
},
{
"id": "command_spec",
"kind": "type",
"rust": "CommandSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference cli-spec-v1 command declaration."
},
{
"id": "arg_spec",
"kind": "type",
"rust": "ArgSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference cli-spec-v1 argument declaration."
},
{
"id": "source_set",
"kind": "type",
"rust": "SourceSet",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference declaration of the value sources one cli-spec-v1 argument accepts."
},
{
"id": "source_scheme",
"kind": "type",
"rust": "SourceScheme",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference value-source scheme (env, file, stdin, fd, prompt)."
},
{
"id": "host_scheme",
"kind": "type",
"rust": "HostScheme",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference declaration of a value-source scheme the host parses and reads itself."
},
{
"id": "value_source",
"kind": "type",
"rust": "ValueSource",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference classified value source, read through the value_source module."
},
{
"id": "source_error",
"kind": "type",
"rust": "SourceError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference value-source failure: an unacceptable or malformed source, or one that could not be read."
},
{
"id": "arg_syntax",
"kind": "type",
"rust": "ArgSyntax",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference long-or-positional syntax model."
},
{
"id": "arg_value_type",
"kind": "type",
"rust": "ArgValueType",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference closed CLI argument type enum."
},
{
"id": "cli_value",
"kind": "type",
"rust": "CliValue",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference portable resolved CLI value."
},
{
"id": "combination",
"kind": "type",
"rust": "Combination",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference registered legal invocation shape."
},
{
"id": "fixed_value",
"kind": "type",
"rust": "FixedValue",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference scalar-or-one_of fixed enum constraint."
},
{
"id": "output_spec",
"kind": "type",
"rust": "OutputSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference closed raw/protocol output contract."
},
{
"id": "exit_code_spec",
"kind": "type",
"rust": "ExitCodeSpec",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference cli-spec-v1 declaration of an exit code the CLI defines beyond AFDATA's 0/1/2/4, so the rendered reference documents what the binary returns. Belongs to the CliSpec compiler, which the other SDKs intentionally defer (see cli_spec)."
},
{
"id": "output_lifecycle",
"kind": "type",
"rust": "OutputLifecycle",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference finite-or-stream lifecycle enum."
},
{
"id": "output_plan",
"kind": "type",
"rust": "OutputPlan",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only resolved output plan."
},
{
"id": "cli_outcome",
"kind": "type",
"rust": "CliOutcome",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only closed Run/Help/Version resolution outcome."
},
{
"id": "resolved_invocation",
"kind": "type",
"rust": "ResolvedInvocation",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only projected typed invocation."
},
{
"id": "resolved_docs",
"kind": "type",
"rust": "ResolvedDocs",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only resolved `--docs` request; carries the output plan, not rendered bytes."
},
{
"id": "resolved_help",
"kind": "type",
"rust": "ResolvedHelp",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only help-v2 outcome and output plan."
},
{
"id": "resolved_version",
"kind": "type",
"rust": "ResolvedVersion",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only version outcome and output plan."
},
{
"id": "cli_help_v2",
"kind": "type",
"rust": "CliHelpV2",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference cli-help-v2 model."
},
{
"id": "cli_error",
"kind": "type",
"rust": "CliError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only structured closed-world CLI error."
},
{
"id": "cli_error_rule",
"kind": "type",
"rust": "CliErrorRule",
"python": null,
"typescript": null,
"go": null,
"note": "Rust reference closed CLI error rule enum."
},
{
"id": "cli_spec_error",
"kind": "type",
"rust": "CliSpecError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only cli-spec-v1 build error."
},
{
"id": "build_afdata_cli",
"kind": "fn",
"rust": "build_afdata_cli",
"python": null,
"typescript": null,
"go": null,
"note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
},
{
"id": "cli_help_event",
"kind": "fn",
"rust": "cli_help_event",
"python": null,
"typescript": null,
"go": null,
"note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
},
{
"id": "cli_version_event",
"kind": "fn",
"rust": "cli_version_event",
"python": null,
"typescript": null,
"go": null,
"note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
},
{
"id": "cli_error_event",
"kind": "fn",
"rust": "cli_error_event",
"python": null,
"typescript": null,
"go": null,
"note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
},
{
"id": "cli_invocation_invalid_event",
"kind": "fn",
"rust": "cli_invocation_invalid_event",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only. The event for a program that misread its own resolved invocation (an argument id its combination does not declare). Dispatch itself cannot fail; `BoundCliSpec::resolve_from` binds the handler while resolving."
},
{
"id": "cli_shape",
"kind": "type",
"rust": "CliShape",
"python": null,
"typescript": null,
"go": null,
"note": "One legal shape inside a cli-help-v2 response. Rust-only, like the compiler that produces it."
},
{
"id": "render_cli_reference",
"kind": "fn",
"rust": "render_cli_reference",
"python": null,
"typescript": null,
"go": null,
"note": "Offline Markdown reference rendered from a built registry. Deliberately a separate capability rather than a help format, so the agent-facing discovery path stays minimal. Rust-only, like the compiler it reads."
},
{
"id": "synthetic_invocation",
"kind": "type",
"rust": "SyntheticInvocation",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only compiler-generated type-correct registry fixture."
},
{
"id": "cli_output_setup_failed_event",
"kind": "fn",
"rust": "cli_output_setup_failed_event",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only standard terminal error for output sink installation failure."
},
{
"id": "cli_output_write_failed_event",
"kind": "fn",
"rust": "cli_output_write_failed_event",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only standard terminal error for output write failure."
},
{
"id": "atomic_write",
"kind": "type",
"rust": "AtomicWrite",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only options of the one durable atomic file write: explicit unix mode bits and new-only."
},
{
"id": "cli_main",
"kind": "type",
"rust": "CliMain",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only registry CLI lifecycle entry: binds actions, resolves argv, runs a pre-sink check and the pure handler projection, installs file sinks, answers help/version/docs, runs the command with a plan-built emitter, and settles write failures. Rust-only, like the compiler it drives."
},
{
"id": "prepared_cli",
"kind": "type",
"rust": "PreparedCli",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only resolved command and process output sinks, with a separate emitter for each logical request."
},
{
"id": "run_with_plan",
"kind": "fn",
"rust": "run_with_plan",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only output half of CliMain for a plan resolved outside the registry."
},
{
"id": "cli_stop",
"kind": "type",
"rust": "CliStop",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only event and exit code that ends a registry CLI run before or instead of its own outcome."
},
{
"id": "cli_handler",
"kind": "type",
"rust": "CliHandler",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only type of a bound action handler: the pure projection from a resolved invocation to the program's command."
},
{
"id": "process_emitter",
"kind": "type",
"rust": "ProcessEmitter",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only alias for the process-wired CliEmitter CliMain hands to a command."
},
{
"id": "invocation_read_error",
"kind": "type",
"rust": "InvocationReadError",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only typed-read refusal on a resolved invocation: a program defect, reported as cli_invocation_invalid."
},
{
"id": "invocation_read_problem",
"kind": "type",
"rust": "InvocationReadProblem",
"python": null,
"typescript": null,
"go": null,
"note": "Rust-only classification of an InvocationReadError."
}
]
}