Decision Register¶
Every design decision recorded against apcore, in one table. A decision record explains why a rule exists; the rule itself is whatever protocol-spec.md and the feature documents say today. Decision records are history, not guidance; protocol-spec wins on any conflict.
Status: In force — resolved, and no later recorded decision replaces it · Amended — still in force, with a later change named in the cell · Superseded (in part) — (partly) replaced by the decision named · Resolved as — an open item that became the decision named · Proposed — not adopted.
Spec / release: v1.x.y is the protocol-spec version that carries the decision; 0.x.y is
the apcore release whose CHANGELOG.md records it, for decisions that predate per-decision spec
versions; — means the record names no version.
Records: 2026-05 log (D-01–D-65) · 2026-09 audit log (E-01–E-03) · config-surface log (D-66–D-73) · deep-chain log (D-74–D-128, O-1) · divergence log (D-129 onward) · CHANGELOG 0.22.0 (D-17–D-24, the executor and async-task hardening decisions, which have no log). Wave-2 decisions D-92–D-107 are recorded as paragraphs, so their links go to the section that holds them.
| ID | Decision | Status | Spec / release | Record |
|---|---|---|---|---|
| D-01 | Identity.type is free-form; well-known values are examples |
In force | — | 2026-05 log |
| D-02 | ApprovalStatus value is approved, not granted |
In force | — | 2026-05 log |
| D-03 | ApprovalRequest carries caller_id and action |
In force | v1.32.0 | 2026-05 log |
| D-04 | Error and audit wire format is snake_case | In force | — | 2026-05 log |
| D-05 | Module.stream() falls back to execute() |
In force | — | 2026-05 log |
| D-06 | No global multi_class_enabled toggle; per-class opt-in |
Superseded by D-107 | — | 2026-05 log |
| D-07 | The error is CallFrequencyExceededError |
In force | — | 2026-05 log |
| D-08 | RetryConfig.compute_delay_ms is the canonical name |
In force (implemented via D-49) | 0.20.0 | 2026-05 log |
| D-09 | No start() / stop() lifecycle; close() is Python-only |
In force | — | 2026-05 log |
| D-10 | TaskStore methods: save / get / list / delete / list_expired |
In force | 0.20.0 | 2026-05 log |
| D-11 | start_reaper(ttl_seconds, sweep_interval_ms) returns a ReaperHandle |
In force (implemented via D-42; scope clarified by E-01) | 0.20.0 | 2026-05 log |
| D-12 | Drop Python's TaskStatus.RETRYING |
In force | 0.20.0 | 2026-05 log |
| D-13 | Python TaskInfo.retry_count field name |
In force | 0.20.0 | 2026-05 log |
| D-14 | Rust RetryConfig default max_retries is 0 |
In force | 0.20.0 | 2026-05 log |
| D-15 | Registry.discover_multi_class is a method |
In force | 0.20.0 | 2026-05 log |
| D-16 | Rust Module.stream doc signature corrected |
In force | — | 2026-05 log |
| D-17 | TaskStore is async in every SDK |
In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-18 | cancel() is a real interrupt; TypeScript uses AbortController |
In force; refined by D-90 | 0.22.0 | CHANGELOG 0.22.0 |
| D-19 | call_with_trace shares call() error semantics |
In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-20 | Cancellation short-circuits the on_error chain |
In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-21 | The cancel token is checked at Step 2 and Step 8 | In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-22 | MiddlewareChainError is unwrapped before propagation |
In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-23 (2026-05 log) | RefResolver max-depth integration |
In force | — | 2026-05 log |
| D-23 (0.22.0) | get_status / list_tasks return shallow copies |
In force | 0.22.0 | CHANGELOG 0.22.0 |
| D-24 (2026-05 log) | update_config validates constraints and rolls back |
In force | — | 2026-05 log |
| D-24 (0.22.0) | Context.create() takes six caller-supplied fields |
In force; refined by D-99–D-103 | 0.22.0 | CHANGELOG 0.22.0 |
| D-25 | update_config raises CONFIG_KEY_RESTRICTED |
In force | 0.20.0 | 2026-05 log |
| D-26 | Identity equality is structural; hashability is per language | In force | — | 2026-05 log |
| D-27 | UsageCollector trend / period filtering / record timestamp | In force | 0.20.0 | 2026-05 log |
| D-28 | ContextLogger output schema aligned across SDKs |
In force | 0.20.0 | 2026-05 log |
| D-29 | EventEmitter.shutdown in every SDK |
In force | — | 2026-05 log |
| D-30 | pre_approval_hook is Python-only |
In force | 0.20.0 | 2026-05 log |
| D-31 | Discovery file extensions are per-language defaults | In force | 0.20.0 | 2026-05 log |
| D-32 | Discovery pipeline has eight stages in every SDK | In force (implemented via D-56) | 0.20.0 | 2026-05 log |
| D-33 | Trace context W3C alignment | In force | — | 2026-05 log |
| D-34 | Event naming canonicalization | In force | 0.20.0 | 2026-05 log |
| D-35 | Contextual auditing for control plane | In force; refined by D-93, D-118 | 0.20.0 | 2026-05 log |
| D-36 | Pipeline StepMiddleware | In force | 0.20.0 | 2026-05 log |
| D-37 | Pipeline configuration fail-fast | In force | 0.20.0 | 2026-05 log |
| D-38 | BatchSpanProcessor cross-SDK parity | In force | 0.20.0 | 2026-05 log |
| D-39 | StorageBackend cross-SDK abstraction | Amended by D-113 | 0.20.0 | 2026-05 log |
| D-40 | TS overrides persistence parity | In force | 0.20.0 | 2026-05 log |
| D-41 | Async middleware is detected by return value | In force | — | 2026-05 log |
| D-42 | Reaper signature alignment (D-11 closeout) | In force | — | 2026-05 log |
| D-43 | Granular reload via path_filter (Issue #45.4 closeout) |
In force; extended by D-111, D-112 | — | 2026-05 log |
| D-44 | Rust Config::reload_from_disk() (Issue #45.5 closeout) |
In force | — | 2026-05 log |
| D-45 | Error fingerprinting in ErrorHistory (Issue #43 §4 closeout) | In force | — | 2026-05 log |
| D-46 | Redaction configuration (Issue #43 §5 closeout) | Amended in v1.37.0 (§10.6.1 matching rules) | — | 2026-05 log |
| D-47 | OverridesStore cross-SDK trait/interface/protocol parity | In force | 0.20.0 | 2026-05 log |
| D-48 | Reaper sweep_interval_ms default alignment | In force | 0.20.0 | 2026-05 log |
| D-49 | D-08 follow-through: rename TS+Rust to canonical compute_delay_ms |
In force | 0.20.0 | 2026-05 log |
| D-50 | Rust trace inject inbound flag propagation | In force | 0.20.0 | 2026-05 log |
| D-51 | Trace inject malformed parent_id rejection | In force | 0.20.0 | 2026-05 log |
| D-52 | Rust pipeline ConfigurationError variant | In force | 0.20.0 | 2026-05 log |
| D-53 | TS redaction Config key alignment | In force | 0.20.0 | 2026-05 log |
| D-54 | sensitive_keys canonical default list |
Amended in v1.37.0 (_secret_* is an anchored pattern) |
0.20.0 | 2026-05 log |
| D-55 | UsageExporter push interface (#45 §3) |
In force | 0.20.0 | 2026-05 log |
| D-56 | TS _discoverDefault 8-stage refactor (D-32 follow-through) |
In force | 0.20.0 | 2026-05 log |
| D-57 | §4.6 reasoning / context / dry-run conventions | In force | 0.21.0 | 2026-05 log |
| D-58 | Stream chunks are objects | In force | 0.20.0 | 2026-05 log |
| D-59 | caller_id_for_unknown is the fixed @external |
In force | — | 2026-05 log |
| D-60 | ACL rules: insertion order, first match wins (no priority field) | In force | — | 2026-05 log |
| D-61 | Rust compute_delay_ms truncates to whole milliseconds |
In force | — | 2026-05 log |
| D-62 | ExtensionManager.apply() idempotency |
Superseded by D-78 | — | 2026-05 log |
| D-63 | ExtensionManager get / get_all / unregister in every SDK |
In force; refined by D-91, D-108, D-128 | — | 2026-05 log |
| D-64 | acl.root drives ACL discovery; default ./acl |
In force | 0.25.0 | 2026-05 log |
| D-65 | include: cross-file configuration composition |
Proposed — RFC not adopted | — | 2026-05 log |
| D-66 | ACL audit: the ACL file's audit: block is the home |
In force | v1.45.0 | config-surface log |
| D-67 | logging.level / logging.format withdrawn; logging is host-owned |
In force | v1.48.0 | config-surface log |
| D-68 | One tracing configuration surface, five keys wired | In force | v1.44.0 | config-surface log |
| D-69 | _config.allow_unknown implemented |
In force | v1.46.0 | config-surface log |
| D-70 | extensions.roots implemented with namespaces |
In force | v1.46.0 | config-surface log |
| D-71 | id_map.overrides wired from config |
In force | v1.46.0 | config-surface log |
| D-72 | pipeline.* wired from config |
In force | v1.43.0 | config-surface log |
| D-73 | A declared key must reach its mechanism from a Config |
In force | v1.47.0 | config-surface log |
| D-74 | Config.get("") is not an error |
In force | v1.49.0 | deep-chain log |
| D-75 | Executor.call must enforce the module-ID length bound at entry |
In force | v1.49.0 | deep-chain log |
| D-76 | ContextFactory.create_context(request) |
In force | v1.49.0 | deep-chain log |
| D-77 | Registry.describe returns a string; a structured override falls through |
In force | v1.49.0 | deep-chain log |
| D-78 | ExtensionManager.apply must not drain the store |
In force | v1.49.0 | deep-chain log |
| D-79 | A stalled topological sort is not a cycle | In force | v1.49.0 | deep-chain log |
| D-80 | The registry event set is closed, and file_changed is in it |
In force | v1.49.0 | deep-chain log |
| D-81 | TaskStoreError must reach the caller |
In force | v1.49.0 | deep-chain log |
| D-82 | list_tasks insertion order is normative |
In force | v1.49.0 | deep-chain log |
| D-83 | The published guard_call_chain signature is normative |
In force | v1.49.0 | deep-chain log |
| D-84 | A non-positive call-chain limit raises a typed error | In force | v1.49.0 | deep-chain log |
| D-85 | Malformed version constraints must be reportable | In force | v1.49.0 | deep-chain log |
| D-86 | Registry.register validation order |
In force | v1.49.0 | deep-chain log |
| D-87 | The ACL audit-block surface is a language idiom | In force | v1.49.0 | deep-chain log |
| D-88 | Index-keyed warning dedupe must be cleared on index shift | In force | v1.49.0 | deep-chain log |
| D-89 | Deprecation warning cadence | Amended in v1.59.0 | v1.49.0 | deep-chain log |
| D-90 | reset() must not substitute the cancellation handle |
In force | v1.49.0 | deep-chain log |
| D-91 | A removal method a host cannot call does not satisfy the contract | In force | v1.49.0 | deep-chain log |
| D-92 | TaskStoreError must exist before it can be raised |
In force | v1.50.0 | deep-chain log |
| D-93 | The contextual-audit redaction list is a superset with bare substrings | In force | v1.50.0 | deep-chain log |
| D-94 | Symlink confinement runs before the dir/file split | In force; extended by D-127 | v1.50.0 | deep-chain log |
| D-95 | A configuration dot-path addresses data, never the host object graph | In force | v1.50.0 | deep-chain log |
| D-96 | The approval gate fires on the union of module and descriptor | Superseded in part by D-125 | v1.50.0 | deep-chain log |
| D-97 | FunctionModule exposes binding-declared annotations through its accessors |
In force | v1.50.0 | deep-chain log |
| D-98 | $ref sibling keys are preserved |
In force | v1.50.0 | deep-chain log |
| D-99 | global_deadline is epoch seconds |
In force | v1.50.0 | deep-chain log |
| D-100 | The global_deadline field is the storage |
In force | v1.50.0 | deep-chain log |
| D-101 | The deadline belongs to the call tree | In force | v1.50.0 | deep-chain log |
| D-102 | A deserialized Context recomputes the deadline unconditionally | In force | v1.50.0 | deep-chain log |
| D-103 | A null identity stays null |
In force | v1.50.0 | deep-chain log |
| D-104 | Base document for a local #/… reference: file root, then schema node |
Amended by D-124 (fallback scoped) | v1.50.0 | deep-chain log |
| D-105 | The executor's ACL step takes the async path | In force | v1.50.0 | deep-chain log |
| D-106 | A p99 beyond the largest bucket is that bucket, not zero | In force | v1.50.0 | deep-chain log |
| D-107 | Per-class markers are the only multi-class opt-in | In force | v1.50.0 | deep-chain log |
| D-108 | An unknown extension point is an error; an empty one is not | In force | v1.51.0 | deep-chain log |
| D-109 | Only the healthy/degraded boundary is configurable | In force | v1.51.0 | deep-chain log |
| D-110 | project_name defaults to "apcore" |
In force | v1.51.0 | deep-chain log |
| D-111 | A bulk reload audits per module, with a correlation id | In force (audit schema corrected in v1.58.0) | v1.51.0 | deep-chain log |
| D-112 | A failed reload restores the previous module | In force | v1.51.0 | deep-chain log |
| D-113 | Storage-backend namespaces, and the omitted-argument default | In force | v1.51.0 | deep-chain log |
| D-114 | remove() clears the duplicate-identity entry |
In force | v1.51.0 | deep-chain log |
| D-115 | A malformed annotation value is tolerated and dropped | In force (authority line withdrawn 2026-09-17) | v1.51.0 | deep-chain log |
| D-116 | Circuit-breaker events carry the declared subscriber type | In force | v1.51.0 | deep-chain log |
| D-117 | Registered-namespace defaults do not answer for a legacy document | In force | v1.51.0 | deep-chain log |
| D-118 | An empty roles list is omitted from the audit snapshot |
In force | v1.51.0 | deep-chain log |
| D-119 | system.* modules declare open_world: false explicitly |
In force | v1.51.0 | deep-chain log |
| D-120 | Error timestamps are Z with millisecond precision |
In force | v1.51.0 | deep-chain log |
| D-121 | reload_dependents is deprecated for removal |
In force | v1.51.0 | deep-chain log |
| D-122 | shutdown() attempts every cancellation before it reports |
In force | v1.52.0 | deep-chain log |
| D-123 | A hot-reloaded module MUST NOT become visible before its on_load() has run |
In force | v1.52.0 | deep-chain log |
| D-124 | The node fallback is scoped to its own document | In force | v1.53.0 | deep-chain log |
| D-125 | D-96 binds every SDK and every governance reader | In force | v1.54.0 | deep-chain log |
| D-126 | A version_hint an implementation does not resolve by MUST NOT be silent |
In force | v1.55.0 | deep-chain log |
| D-127 | A symlink is recorded once, under its canonical real path | In force | v1.56.0 | deep-chain log |
| D-128 | unregister removes by identity, not equality |
In force | v1.57.0 | deep-chain log |
| D-129 | Providers reach the gate they configure | In force | v1.61.0 | divergence log |
| D-130 | configure cannot weaken a governance gate |
In force | v1.61.0 | divergence log |
| D-131 | Built-in logging middleware logs the captured values | In force | v1.61.0 | divergence log |
| D-132 | The specification follows three agreeing, correct implementations | In force | v1.62.0 | divergence log |
| D-153 | Managed lifecycle binds admission, cancellation, and recovery to a generation | Draft | — | Managed Module Lifecycle |
| D-154 | Capability discovery proves visibility before projecting metadata and rechecks access on every request | Draft | — | ACL-aware capability discovery |
| D-155 | Trusted identities attenuate explicit scopes, and scoped ACL grants and approval credentials bind to the current authority | Draft | — | Trusted identity delegation |
| E-01 | start_reaper starts synchronously; only stop() is awaited |
In force | — | 2026-09 audit log |
| E-02 | APCore.discover is sync in Python, async in TypeScript and Rust |
In force | — | 2026-09 audit log |
| E-03 | ACL(rules=[…]) validates every rule it is handed |
In force | v1.33.0 | 2026-09 audit log |
| O-1 | follow_symlinks does not reach files in two SDKs |
Resolved as D-127 | v1.56.0 | deep-chain log |
Numbering collisions¶
Some IDs were assigned more than once. Read a citation by its date and subject:
- D-17 – D-22. The executor and async-task hardening decisions of release 0.22.0 own these numbers (table above). Before 2026-05-26 the same numbers named six 2026-05 log entries, which were then renumbered: D-17→D-59, D-18→D-60, D-19→D-58, D-20→D-61, D-21→D-62, D-22→D-63. See the log's renumber note.
- D-23 and D-24. Never renumbered, so each has two meanings, both listed above: the 2026-05
log's
RefResolvermax depth (D-23) andupdate_configrollback (D-24), and release 0.22.0'sget_status/list_taskscopies (D-23) and six-parameterContext.create()(D-24). - D-24, a third use. SDK source comments and
features/registry-system.mdcite "D-24" for theRegistry.list(visibility=…)filter that defaults to["public"]. No decision record matches: neither recorded D-24 is about visibility.