# Changelog

## Score

- CAI 50 → 49 (-1.1)

## Lenses

- Code Health 82 → 82 (+0.0)
- Architecture 92 → 92 (-0.1)
- Maturity 85 → 92 (+6.5)
- Readiness 83 → 77 (-6.4)
- Security 93 → 92 (-0.5)
- Event-Driven 10 → 10 (+0.0)
- Event Sourcing 100 → 100 (+0.0)
- Performance 89 → 89 (+0.0)

## Resolved (31)

- ClassTooLong: EventBus (crates/astrid-events/src/bus.rs)
- Documentation: written for insiders (crates/astrid-kernel/README.md)
- Duplicate intent with different return types. `has_capability` returns a boolean, while `find_capability` returns the full token. This is a common pattern, but `find_capability` might be misleading if it only returns the token for checking purposes and doesn't imply usage/consumption. If `find_capability` is just a lookup, it should be named `get_capability` or `lookup_capability`. `has` is a predicate, `find` is a retrieval. This is acceptable, but `find` often implies 'find and use' in some contexts, whereas `get` is neutral. Given `AllowanceStore` uses `find_matching`, this is consistent with that module, but inconsistent with standard library conventions where `get` is lookup and `has` is boolean check.
- Duplicated block (5 lines × 2) (crates/astrid-storage/src/engine/durable/format/mod.rs)
- Edited copy of a member (13 corresponding lines) (scripts/musl_release_manifest.py)
- FileTooLong: src/bus.rs (crates/astrid-events/src/bus.rs)
- FileTooLong: src/platform_fs.rs (crates/astrid-core/src/platform_fs.rs)
- FunctionTooLong: astrid_config::loader::load_with_layout (crates/astrid-config/src/loader.rs)
- Hotspot: crates/astrid-cli/src/commands/doctor.rs (crates/astrid-cli/src/commands/doctor.rs)
- Hotspot: crates/astrid-cli/src/commands/wit.rs (crates/astrid-cli/src/commands/wit.rs)
- Hotspot: crates/astrid-core/src/capability_registry.rs (crates/astrid-core/src/capability_registry.rs)
- Hotspot: crates/astrid-storage/src/storage_model/mod.rs (crates/astrid-storage/src/storage_model/mod.rs)
- Hotspot: scripts/channel_metadata.py (scripts/channel_metadata.py)
- Inconsistent method naming for parameterized variants. The base method `append` likely uses a default or implicit principal. The variants use `_with_principal` and `_with_actor`. This is inconsistent with common Rust/Go patterns where the base method takes the most common parameters, and optional/extra parameters are handled via builder patterns or distinct names like `append_for_principal`. Here, `append_with_actor` includes `principal` as well, making the hierarchy confusing. Is `append` the 'simple' case? Does it assume a single principal? The naming doesn't clearly indicate the relationship between the three.
- Inconsistent naming for retrieving pending items. `DeferredResolutionStore` uses `get_pending` (singular return type `DeferredResolution`), while `ApprovalManager` uses `get_pending_resolutions` (plural name, but singular return type `DeferredResolution`). The plural name suggests a collection, but the return type is a single item. This is confusing.
- MethodTooLong: WorkspaceBranchStore.rename_batch (crates/astrid-storage/src/content/store/workspace/operations.rs)
- Near-duplicate member pair (50 shared lines) (crates/astrid-capsule/src/engine/wasm/host/process/mod.rs)
- No context/problem and no consequences/trade-offs; only a one-line decision with no rationale (changes/2113.fixed.md)
- No context/problem framing the decision (why trust must persist across reconnections/runtime restarts) and no consequences/trade-offs (changes/2120.fixed.md)
- No context/problem statement (why this authentication metadata visibility is needed) and no consequences/trade-offs (changes/2118.fixed.md)
- …and 11 more

## New (49)

- Change coupling: capsule.rs ↔ manifest_gate.rs (crates/astrid-capsule/src/capsule.rs)
- Classify ADR enforcement: 2182.fixed (changes/2182.fixed.md)
- Classify ADR enforcement: 2186.security (changes/2186.security.md)
- Classify ADR enforcement: 2188.fixed (changes/2188.fixed.md)
- Classify ADR enforcement: 2191.fixed (changes/2191.fixed.md)
- Classify ADR enforcement: 2194.fixed (changes/2194.fixed.md)
- Classify ADR enforcement: 2198.fixed (changes/2198.fixed.md)
- Classify ADR enforcement: 2202.fixed (changes/2202.fixed.md)
- Classify ADR enforcement: 2208.fixed (changes/2208.fixed.md)
- Classify ADR enforcement: 2209.fixed (changes/2209.fixed.md)
- Classify ADR enforcement: 2209.security (changes/2209.security.md)
- Classify ADR enforcement: 2214.fixed (changes/2214.fixed.md)
- Classify ADR enforcement: 2243.fixed (changes/2243.fixed.md)
- Classify ADR enforcement: 2287.fixed (changes/2287.fixed.md)
- Classify ADR enforcement: 2319.fixed (changes/2319.fixed.md)
- Duplicated block (10 lines × 2) (crates/astrid-cli/src/commands/daemon/temporary.rs)
- Duplicated block (14 lines × 2) (crates/astrid-capsule/src/engine/wasm/host/process/mod.rs)
- Duplicated block (19 lines × 2) (crates/astrid-core/src/platform_fs/macos_acl.rs)
- Edited copy of a member (13 corresponding lines) (scripts/musl_release_manifest.py)
- Hotspot: crates/astrid-cli/src/commands/setup.rs (crates/astrid-cli/src/commands/setup.rs)
- …and 29 more

## Changes since last survey

- 27 commits — 6 feature/other, 21 fixes

## By area

- (root) — 9 commits
- crates/astrid-capsule — 5 commits
- crates/astrid-storage — 2 commits
- .github/workflows — 1 commit
- changes/2135.fixed.md — 1 commit
- changes/2144.fixed.md — 1 commit
- changes/2191.fixed.md — 1 commit
- changes/2194.fixed.md — 1 commit
- crates/astrid-cli — 1 commit
- crates/astrid-config — 1 commit
- crates/astrid-core — 1 commit
- crates/astrid-events — 1 commit
- crates/astrid-kernel — 1 commit
- crates/astrid-workspace — 1 commit

## Notable commits

- fix: fix(capsule): bound profile invalidation memory during agent churn (#2189)
- fix: fix(capsule): retire compiled cache keys after final runtime release (#2199)
- fix: fix(cli): allow separate OS users to share the temporary directory (#2133)
- fix: fix(cli): release provisioning flock when its guard ends (#2193)
- fix: fix(config): load canonical user configuration consistently
- fix: fix(core): use captured descriptors for macOS private-path ACL checks
- fix: fix(deps): update Rustls to 0.23.46 security patch (#2134)
- fix: fix(deps): update Wasmtime security patch to 48.0.6 (#2142)
- fix: fix(events): admit scope before retaining delivery snapshots (#2203)
- fix: fix(ipc): report nested capsule delivery failures (#2129)
- fix: fix(mcp): report correlated invocation failures promptly (#2122)
- fix: fix(release): embed selected source commit in CLI builds (#2125)
- fix: fix(runtime): avoid repeated cleanup decoding and release start fences (#2209)
- fix: fix(security): apply ctutils constant-time repair (#2246)
- fix: fix(security): apply patched runtime and trust dependencies (#2187)
- fix: fix(storage): avoid redundant cache owner-index copies (#2195)
- fix: fix(storage): make index and fallback volume recovery linear (#2184)
- fix: fix(storage): preserve populated workspace renames (#2138)
- fix: fix(storage): retire principal KV after identity unlink (#2215)
- fix: fix(workspace): allow metadata traversal to authorized script roots (#2136)
- …and 7 more
