Skip to content

refactor: simplify runtime exports and mission usage snapshots - #163

Merged
lbx154 merged 1 commit into
devfrom
refactor/simplify-runtime-20260923
Sep 23, 2026
Merged

lbx154 merged 1 commit into
devfrom
refactor/simplify-runtime-20260923

Conversation

@lbx154

@lbx154 lbx154 commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Mission completion assembled totals and role details through separate ledger queries, so an append between those reads could produce an inconsistent receipt. Build both from one UsageLedger.records() result and remove the scalar accounting accessors and repeated event normalization.

Internal runtime callers now import helpers from their implementation modules. Remove unused private re-exports from the runtime and supervisor facades, retaining the entry points used by daemon configuration and the community vertical package. Flatten the redundant memory protocol inheritance and inline its one-use root resolver.

Net change from dev e92f27746: 411 fewer lines overall, including 451 fewer production Python lines. Tests retain the existing cost/daemon behavior checks and add a real-ledger regression that appends a record immediately after reading, proving completion totals and detail use one snapshot.

Validation: Ruff and git diff --check pass. Focused runtime/architecture/cost regressions pass after adapting their import targets; npm run check passes all 226 tests; the full Python regression in a fresh environment passes: 11,386 passed, 99 skipped. Documentation: update the runtime maintenance guide with the direct import and completion snapshot paths. CI/workflow: no workflow changes; require the existing Python suite and Linux/macOS/Windows TypeScript/ownership checks before merging. No deployment or service restart is included.

@lbx154
lbx154 merged commit 4d65e66 into dev Sep 23, 2026
6 checks passed
@lbx154
lbx154 deleted the refactor/simplify-runtime-20260923 branch September 23, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant