Wiki
  • Requirements
  • Flows
  • Tests
  • Change impact
  • Map
  • Architecture
  • Docs
  • API
  • SBOM

REQ-TYPE-001: Shared types is the leaf library — links nothing, everything links it¶

← Requirements

What it requires

  1. - src/types/CMakeLists.txt declares only spdlog PUBLIC and nlohmann_json PRIVATE; no entropic-* target appears in its target_link_libraries. - No header under include/entropic/types/ includes a vendor header other than spdlog (grep for nlohmann/, yaml-cpp/, llama.h yields only prose in comments). - GIVEN entropic.h (which transitively includes types/error.h and types/hooks.h) WHEN compiled as pure C99 THEN it compiles and the C handle/error/hook types and callbacks are visible. - The shared logging seam is usable by every library and routes per-handle: two registered handle log dirs receive only their own scope-bracketed lines, scopes nest and restore, and lines emitted outside any scope route to no handle file.
tier
NOT_RUN

Where it lives

  • src/types6

See it on the map

How it is met

implemented byresults (100 tests)HandleLogScopecurrent_handle_idgetregister_handle_logunregister_handle_log~HandleLogScope100 absent100 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

  • HandleLogScope src/types/logging.cpp:520
  • current_handle_id src/types/logging.cpp:511
  • get src/types/logging.cpp:211
  • register_handle_log src/types/logging.cpp:470
  • unregister_handle_log src/types/logging.cpp:500
  • ~HandleLogScope src/types/logging.cpp:530

Tests (100)

Reached through calls

100 tests: 100 absent

testresultlinked byimplementers exercisedcalls away
Lines emitted with no handle scope route nowhere by handle absentinferred4 of 6: current_handle_id, get, register_handle_log, unregister_handle_log1
HandleAwareSink::set_pattern propagates to registered handle sinksabsentinferred3 of 6: get, register_handle_log, unregister_handle_log1
Per-handle log scope routes session.log writes per handle absentinferred3 of 6: get, register_handle_log, unregister_handle_log1
setup_session + register_handle_log don't double-write absentinferred3 of 6: get, register_handle_log, unregister_handle_log1
HandleAwareSink::set_formatter is reachable via default loggerabsentinferred2 of 6: register_handle_log, unregister_handle_log1
HandleLogScope nests correctly (gh#59)absentinferred1 of 6: current_handle_id1
Logging initialization is idempotentabsentinferred1 of 6: get1
Named loggers are created on demandabsentinferred1 of 6: get1
Repeated get() returns the same loggerabsentinferred1 of 6: get1
add_file_sink attaches a file sink visible to subsequent loggersabsentinferred1 of 6: get1
log_content runs escape pipeline through a loggerabsentinferred1 of 6: get1
log_decision emits routing/decision telemetryabsentinferred1 of 6: get1
log_timing logs an operation durationabsentinferred1 of 6: get1
log_tokens reports tokens/sec, handling zero-time edge caseabsentinferred1 of 6: get1
set_console_enabled(false) strips stderr; get() strips for new loggersabsentinferred1 of 6: get1
set_console_enabled(true) is a no-opabsentinferred1 of 6: get1
Configure with null JSON returns errorabsentinferred2 of 6: register_handle_log, unregister_handle_log2
Double-configure on one handle is refusedabsentinferred2 of 6: register_handle_log, unregister_handle_log2
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred2 of 6: register_handle_log, unregister_handle_log2
Three handles can coexistabsentinferred2 of 6: register_handle_log, unregister_handle_log2
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred2 of 6: register_handle_log, unregister_handle_log2
Two handles configure independentlyabsentinferred2 of 6: register_handle_log, unregister_handle_log2
entropic_last_error returns per-handle state (v2.2.6)absentinferred2 of 6: register_handle_log, unregister_handle_log2
entropic_register_mcp_server on a configured handle absentinferred2 of 6: register_handle_log, unregister_handle_log2
entropic_run_messages with console logging disabled still absentinferred2 of 6: register_handle_log, unregister_handle_log2
entropic_seconds_since_last_activity returns 0 before any run absentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#144: concurrent bridge clients queue instead of racingabsentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#203: followup returns delegation_id and summary from real storageabsentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#204: an unservable http_port fails configure loudlyabsentinferred2 of 6: register_handle_log, unregister_handle_log2
gh#95: identity grammar: field constrains that tier's outputabsentinferred2 of 6: register_handle_log, unregister_handle_log2
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred2 of 6: register_handle_log, unregister_handle_log2
Create and destroy lifecycleabsentinferred1 of 6: unregister_handle_log2
Double destroy is safeabsentinferred1 of 6: unregister_handle_log2
entropic_destroy on NULL is a no-opabsentinferred1 of 6: unregister_handle_log2
gh#163 the three app_context no-body states are distinguishableabsentinferred1 of 6: get2
queue: NULL message argument is rejectedabsentinferred1 of 6: unregister_handle_log2
queue: NULL out-pointer on depth is rejectedabsentinferred1 of 6: unregister_handle_log2
queue: clear on unconfigured handle is OK no-opabsentinferred1 of 6: unregister_handle_log2
queue: depth on unconfigured handle reads zeroabsentinferred1 of 6: unregister_handle_log2
queue: enqueue on idle handle returns INVALID_STATEabsentinferred1 of 6: unregister_handle_log2
queue: observer registration is allowed pre-configureabsentinferred1 of 6: unregister_handle_log2
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred1 of 6: register_handle_log3
entropic_configure rejects NULL config_jsonabsentinferred1 of 6: register_handle_log3
entropic_configure rejects NULL handleabsentinferred1 of 6: register_handle_log3
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred1 of 6: register_handle_log3
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred1 of 6: register_handle_log3
entropic_configure_dir rejects NULL handleabsentinferred1 of 6: register_handle_log3
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred1 of 6: register_handle_log3
entropic_configure_from_file rejects NULL handleabsentinferred1 of 6: register_handle_log3
entropic_configure_from_file rejects NULL pathabsentinferred1 of 6: register_handle_log3
entropic_configure_from_file rejects missing fileabsentinferred1 of 6: register_handle_log3
entropic_last_error reflects most-recent operation failureabsentinferred1 of 6: register_handle_log3
gh#154 a tier grammar stem that cannot resolve YET still absentinferred1 of 6: register_handle_log3
gh#154 a tier grammar stem that resolves still configuresabsentinferred1 of 6: register_handle_log3
gh#154 a tier with no grammar is unaffectedabsentinferred1 of 6: register_handle_log3
gh#154 entropic_metrics_json carries a generations arrayabsentinferred1 of 6: register_handle_log3
gh#156 a frontmatter-less app_context fails configure absentinferred1 of 6: register_handle_log3
gh#156 a frontmatter-less constitution fails configure tooabsentinferred1 of 6: register_handle_log3
gh#156 a missing app_context path fails configureabsentinferred1 of 6: register_handle_log3
gh#156 a well-formed app_context file still configuresabsentinferred1 of 6: register_handle_log3
gh#156 app_context false still configuresabsentinferred1 of 6: register_handle_log3
gh#156 inline app_context content still configuresabsentinferred1 of 6: register_handle_log3
gh#158 entropic_interrupt_session targets exactly one runabsentinferred1 of 6: register_handle_log3
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred1 of 6: register_handle_log3
gh#163 entropic_configure_dir carries app_contextabsentinferred1 of 6: register_handle_log3
gh#163 entropic_configure_from_file carries app_contextabsentinferred1 of 6: register_handle_log3
gh#163 the object and false spellings survive configure_dir tooabsentinferred1 of 6: register_handle_log3
gh#164 entropic_release_model names an unknown tierabsentinferred1 of 6: register_handle_log3
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred1 of 6: register_handle_log3
gh#165 entropic_session_context_set guards its preconditionsabsentinferred1 of 6: register_handle_log3
gh#165 entropic_session_context_set refuses the running sessionabsentinferred1 of 6: register_handle_log3
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred1 of 6: register_handle_log3
gh#158: interrupting one session leaves the other runningabsentinferred1 of 6: register_handle_log4
gh#158: metrics and context reads are safe during live runsabsentinferred1 of 6: register_handle_log4
gh#158: two concurrent sessions do not bleed into each otherabsentinferred1 of 6: register_handle_log4
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred1 of 6: register_handle_log4
gh#165 + gh#164: release the weights, keep the conversationabsentinferred1 of 6: register_handle_log4
gh#165: a dropped session restored from JSON keeps answeringabsentinferred1 of 6: register_handle_log4
gh#166: two workspaces on one handle do not read each other's absentinferred1 of 6: register_handle_log4
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred1 of 6: register_handle_log4
gh#179: each workspace's sessions answer from its own app_context, absentinferred1 of 6: register_handle_log4
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred1 of 6: register_handle_log4
gh#194: a plain generation publishes the prefill it performedabsentinferred1 of 6: register_handle_log4
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred1 of 6: register_handle_log4
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred1 of 6: register_handle_log4
gh#214: a prompt that does not fit fails the turn, typedabsentinferred1 of 6: register_handle_log4
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred1 of 6: register_handle_log4
gh#217: release is refused while another session is decodingabsentinferred1 of 6: register_handle_log4
gh#93: autoparser family parses a multi-parameter tool callabsentinferred1 of 6: register_handle_log4
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred1 of 6: register_handle_log4
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred1 of 6: register_handle_log4
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred1 of 6: register_handle_log4
outside-root optional: a real model's reads outside its root absentinferred1 of 6: register_handle_log4
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred1 of 6: register_handle_log4
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred1 of 6: register_handle_log4
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred1 of 6: register_handle_log4
v2.14.5: a failed turn is an error carrying only its own textabsentinferred1 of 6: register_handle_log4

Flows through it

  • main (examples/headless/main.c)
  • main (examples/openai-server/src/main.cpp)

Raise an issue on GitHub

Wiki Generated by clew wiki from the repository's index