Dashboard › opencode-lore › Distillation
52bf7daf-d14b-4afa-a15e-9583ebf7c614["lore_tm_v1_4fFfFhDqFvuFmEyX9siXvhV-EeQ_nMO6MCZtJm6vcg8","lore_tm_v1_cUPAmBWBG65b9PijnYL9BJn-rd3gJdmW8ggiXfKO8Bg","lore_tm_v1_F0j6twZtQWTfm-9gEGg6tRxbf9fRC_mRILzwk5pHihs","lore_tm_v1_FacZCitpOJgEwwCfAUTO0GluH3zexqc_pz_ALb8lGT4","lore_tm_v1_aZI6qicePUn2bnJWAkN35SjZTn3MXujjQh2jXSCSoIw","lore_tm_v1_T7qnavmB3V5dwTfiZaYeXidSX-dduLBGMzPQxu7e3ZE"]
Date: Sep 16, 2026
lore recall --project /home/byk/Code/opencode-lore --scope project ... or local /ui/search if needed./home/byk/Code/opencode-lore-recall-recovery/AGENTS.md requires tests to use a temporary SQLite DB through packages/core/test/setup.ts, never the production DB./home/byk/Code/opencode-lore-recall-recovery/AGENTS.md says never manually bump versions or edit CHANGELOG.md; Sentry Craft handles both automatically.quality/REVIEW.md requires every defect found by adversarial review to receive a deterministic regression test in the same PR that fails on the base branch, passes on the fix, and drives the real precondition rather than artificially constructing state.pnpm test, pnpm run typecheck, pnpm run lint, and pnpm run format:check; verify exit codes because a blank output tail may conceal lint/format failures; run property tests Γ10; confirm the working tree remains unmodified using hashes; and report per-point PASS / FAIL / CONCERN / MUST-FIX verdicts with file:line evidence plus an overall MERGE / DO-NOT-MERGE verdict.NOT EXISTS, latest <> 'upsert', and content-match guards. Every skip branch should have a test that makes it skip something incorrectly and proves the defect is prevented.TypeError in strict mode rather than silently corrupting shared caches.db().query monkeypatches are shadowed by the tracing Proxy; SQL-counting tests must use log.registerSink({ withDbSpan }).package.json scripts include "test": "vitest run" with "pretest": "pnpm --filter @loreai/gateway run bundle", "typecheck": "pnpm -r run typecheck", "lint": "oxlint --type-aware", "format:check": "oxfmt --check", "premutation": "pnpm --filter @loreai/gateway run bundle", and "mutation": "stryker run".packages/gateway/src/pipeline.ts:10258-10272 calls applyResponsesEvent(state, event, parsed), then passes an accepted Codex quota event through appendCodexRateLimitEvent(publicCodexRateLimits, acceptedCodexRateLimit); publicData is the canonical JSON.stringify(publicCodexRateLimit) only when that shared public accumulator accepts the event, otherwise it remains the original data.publicCodexRateLimits in packages/gateway/src/pipeline.ts:10264-10269 introduces a public-output accumulator distinct from the internal per-state state.codexRateLimits, providing a place to enforce a combined quota-metadata budget across principal and continuation streams.packages/gateway/src/pipeline.ts:10309-10350 suppresses events belonging to recall items or unresolved tool identities while still byte-counting them. It encodes hidden events with formatResponsesEvent(event, data), tracks deferredBytes, hiddenRecallBytes, and per-index unresolvedToolBytes, and throws SSEStreamLimitError("recall stream exceeded deferred event limit") when maxDeferredBytes or maxHiddenRecallBytes is exceeded.