Native Observability v0.1 — Platform Guide
Status: PERMANENT PRODUCT DOCUMENTATION (OBS-IMPL-01 finalization; contract NC-01..NC-15 frozen at commit 36b79545, Git-resolvable (the campaign package was eliminated with the development documentation; this page and the landed implementation carry the current surface)).
Native Forma observability is the platform’s own inspection machinery: typed, verifiable PROJECTIONS of native carriers — never a second ontology, never semantic authority. Everything a consumer sees is an answer about carriers that exist, with an explicit availability and an explicit reason when the answer is not plainly available.
Architecture and direction of authority
native carriers (action journal, execution plane, state-commit coordinator,
claim lifecycle, observation admission, harness session
records, workspace manifests)
↓ (adapters live IN the core crate; carriers are referenced, never copied)
formasl-observability (projections + non-collapse fences)
↓
one query surface (Observatory)
↓ ↓
formasl observe (CLI) Semantic UI read-side (admitted, rendered)
+ product integrations (supply-network, airspace)
Authority direction: carriers own the facts; the observability core owns the projection vocabulary; consumers own their UX. No consumer mints authority; rendering never mints standing.
The query surface (Observatory)
| Query | Answers |
|---|---|
inspect(subject) | the subject projection (identity class, kind, owning subsystem, basis, standing-as-carried) |
relations(subject) | carried edges with family + endpoints + flags |
fences(subject) | MUST-NOT-COLLAPSE annotations (negative, never edges) |
trace(kind, subject) | six separate families: runtime, execution, dependency, derivation, provenance, causal-effect |
dependencies(subject) | dependency-family visibility |
history(subject, cutoff) | RECORDED-HISTORY-AT-T (later knowledge excluded and counted; semantic-state-at-T = undetermined; complete-world-as-of-t = forbidden) |
topology(static/runtime) | separate projections; never converted into each other |
evidence(subject) | twelve labeled link kinds (native / derivable / manual / absent) |
reactive_path(subject) | ingress observations carried; engine internals honestly PARTIAL with the bridge named |
agent_grounding_recorded(session) | NC-12 grounding from digest-chained session records |
capital_account(module) | NC-13 five-way: source reuse / semantic reuse / semantic composition / runtime sharing / storage sharing — independent answers, ABSENT/NONE first-class |
Every answer is Answer<T> with a 7-state availability: available, partial, ephemeral, derivable, unavailable, undetermined, forbidden — silence is never “complete”, PARTIAL never renders as absence, FORBIDDEN never renders as an error.
The CLI: formasl observe
formasl observe <ledger-file> --digest <sha256> --view subjects
formasl observe <ledger-file> --digest <sha256> --view inspect --key <native-key>
formasl observe <ledger-file> --digest <sha256> --view trace --key <native-key> --trace-kind all|runtime|execution|dependency|derivation|provenance|causal-effect
formasl observe <ledger-file> --digest <sha256> --view history --key <native-key> [--cutoff <ticks>@<domain>]
formasl observe <ledger-file> --digest <sha256> --view evidence --key <native-key>
formasl observe <ledger-file> --digest <sha256> --view topology [--topology-kind static|runtime]
formasl observe <ledger-file> --digest <sha256> --view fences --key <native-key>
Machine-consumable JSON; a corrupted digest fails closed (ledger-corrupted); an unknown key is a typed subject-unknown refusal — never an empty list.
Semantic UI read-side (admitted + rendered)
The read-side adapter (formasl-semantic-ui-observability) consumes the SAME observatory, projects a progressive-disclosure ladder (PRODUCT → WHY → SEMANTICS → RUNTIME/HISTORY → ARCHITECTURE → EVIDENCE), and reaches a REAL ReadViewAdmission through the sole admit_read gate over a natively-resolved declaration subject, then a REAL StructuredRenderer render. No new admission class; I/A/E carrier display stays excluded (R3-OBS-03b, typed limitation rendered); a basis that was never checked fails closed.
Programmatic shape: render_observation_view(sources, source_reference, revision, declaration, &observatory, &subject) → AdmittedRenderedView { admission_id, admission_class, renderer_identity, rendered_text }.
Product integrations (same core, domain-native UX)
- supply-network (enterprise): the governed rn01 flow runs through the production run entry; the execution request is recorded through
run_execution_request_ininto a caller-owned journal, opened into its operation, and dispatched through the real C1 plane; the observatory projects journal + plane and the tower inspects its own chain (witnesscrates/api/tests/supply_network_enterprise.rs). - airspace (materially different): the product owns its adapter (
crates/formasl-product-airspace/src/observability.rs) mapping its real effect ledger into standard event projections; per-callsign command streams over the same queries (witnesstests/observability_consumption.rs).
Agent grounding (NC-12)
Grounding projects REAL harness session records (digest chain VERIFIED first; corruption fails closed): objective, per-round prompt bindings, semantic references, model surfaces, governed attempts with typed outcomes, memory view, skill authority boundary. Laws carried by construction: AgentGrounding != ChainOfThought; reproducible != replayable (digest anchors survive; provider bytes do not → partial + replay-inputs-not-preserved).
Capital five-way (NC-13)
Five independent dimensions with evidence-backed verdicts; sibling evidence never promotes a dimension. The witnessed collapse-kill: source reuse PRESENT while semantic composition ABSENT and runtime sharing ABSENT — simultaneously, from independent evidence.
Durability
Durable promises live in the carriers’ own artifacts: action-journal snapshots decode fail-closed against their digest; harness sessions persist via RecordJournal; the execution-plane snapshot is its own carrier. The observatory itself keeps no store. Governance/in-memory substrates are honestly ephemeral. F12 (persistent DOC adapter) is NOT TRIGGERED.
Performance
Sources enumerate once at builder time; queries are lookups/filtered iterations over registered projections; runtime topology derives from the registered relation set; JSON only at render/export time. No per-inspect journal scans, no per-query topology rebuilds, no universal graph per subject, no duplicated semantic world.
Exclusions (open, never silently resolved)
R3-OBS-03(SUI-half): SUI admission-class coverage for observability views — REGISTERED-OPEN (smallest owner question in campaign record 14 §Q11); the read-side adapter is admission-ready but renders only through the authorized declaration-subject route.R3-OBS-03b: I/A/E carrier display in SUI — EXCLUDED from v0.1, rendered as a typed limitation.F12: NOT TRIGGERED.
Campaign and decision history: Git-resolvable at commit 660426b2e056257056c54c73ed8dca429fe44419 (contract 13; waves 18–20; remediation 22; finalization 23 — campaign package eliminated).