Dashboard › opencode-lore › Distillation
9a82736b-0c04-435c-a075-dfe7844368ea["lore_tm_v1_Y6iab42aoWg1tuHLmlfJ18XHnEYpIXlmuJ98N4HqwT0","lore_tm_v1_nonzp66RtVb8JmemThZnO1jH2gO51AA87RdmDGwG4Os","lore_tm_v1_rWDMVPuu2g66GzElag7bc6HDVKLuAJymvTvO9pi-Z0k","lore_tm_v1_LRZ_wDP-Gpy9nFsdc5decF33L2Zg6sBdtMOaC3A9_nk","lore_tm_v1_FDdjPMj30w_Mcd06qpfMg086lUzCutztylGMigNTPJc","lore_tm_v1_bEDMiGIRTZRI9KoJtom0oVT1YWDlf4eAetT0A5VhPqM","lore_tm_v1_fxEtshqAMFK9Cww1hxTGgTPuPeaCw15c3-J7gGfHHjw","lore_tm_v1_nhjdZ2pdT6vEWm6RJZb2sNzrGlJa1ZIz75_FHQTEfBI","lore_tm_v1_hHvqKmkzkB8iLSEe36itjyWjHv-BEfZxUnNLfuC_ZMc","lore_tm_v1_nIaTqP63lfG4Z2gtiDWK2aFLyF7SX6jRA5WtyJJaxBI"]
Date: Sep 16, 2026
DO-NOT-MERGE for candidate unznwpyl / ab979df5cddfec3952680e423e39564664e881fe based directly on main@origin / 2cbf40060c67df229731cf1b9e34d5bf22ec2145; clean empty child was npkrwpky / c518e49f.53ea2616ed8429b1392937d82acdeff5323759cb5247fa5e1709f2544ec6461f, bundle SHA-256 matched ffc32be52e490a976caff4e324691940856a47c4f38bb0e66dc50a0c93a22aed, beginning/end identities and state matched, and no files or VCS state were changed.packages/gateway/src/pipeline.ts:11511-11520 remaps transactional events after recall, but principal events emitted at packages/gateway/src/pipeline.ts:11584-11604 remain unchanged.packages/gateway/src/pipeline.ts:10149-10158 compares the source itemβs map position before and after hiding recall rather than comparing the already-emitted coordinate with the public coordinate. With visible source index 7 followed by recall index 9, both maps assign source 7 to public position 0, so recall is accepted despite the client already receiving output_index: 7.output_index: 7, the synthetic anchor at public index 1, and continuation at public index 2, while the terminal output placed IDs at dense array positions 0, 1, and 2; terminal compaction occurs at packages/gateway/src/pipeline.ts:9879-9950 and 9851-9859.packages/gateway/test/openai-responses-recall-aware-stream.test.ts:2673-2753, late sparse recall at :5788-5826, and deferred sparse output at :5867-5928 do not call expectVisibleOutputIndicesToMatchTerminal() from lines 86-107; therefore their assertions pass with incorrect coordinates, do not fail on base, and do not prove the new guard. The supplied 40/40 property evidence also omitted this sequence.expectVisibleOutputIndicesToMatchTerminal() to all 3 sparse tests; and prove failure when either principal remapping or the reindex guard is removed.pipeline.ts:10340-10350 and 10983-10989; continuation-index overflow checking before the first recall side effect at pipeline.ts:10608-10620; lower-index late recall failure before recall execution with fixed output: [] through pipeline.ts:11762-11767 and 11829-11853; generic remapping of transactional continuation frames before sequence numbering at pipeline.ts:9963-10003 and 11516-11520; semantic-field allowlisting and validated incomplete reasons in terminal rebuilding at pipeline.ts:9837-9865; enqueue bookkeeping only after successful delivery at pipeline.ts:10038-10063; and projection bounded by existing frame, retained-state, stream-byte, and transactional-byte limits.Fix sparse principal Responses projection with fail-first and mutation proof β in progress, high; 2. Revalidate, freeze, and review corrected projection candidate β pending, high; 3. Finish provider failure exhaustive validation and independent reviews β pending, high; 4. Resolve accumulation correctness findings in additive child β pending, high; 5. Resolve recovery review findings and revalidate β pending, high; 6. Push reviewed candidates and update/create focused pull requests β pending, high.unznwpyl / ab979df5 to preserve review evidence and workspace isolation./home/byk/Code/opencode-lore-responses-projection-fix from frozen parent unznwpyl / ab979df5cddf (fix(responses): project hidden output consistently). Initial empty working copy was ozrmvotw / f3590a18; the workspace added 1072 files with 0 modified and 0 removed, and had no working-copy changes.npkrwpkyowmx / c518e49ffd2e was empty, conflict-free, and described as verify projection fix on current main; unrelated bookmark fix/responses-private-references remained conflicted.fix(responses): stabilize sparse principal projection; empty conflict-free working copy ozrmvotwxzuy / a41d9ec5642e remained based on unznwpyl / ab979df5cddf.packages/core/test/setup.ts, never the production DB.CHANGELOG.md manually edited because Craft handles both automatically.postResponse; the corresponding invariant is documented at packages/gateway/src/pipeline.ts:10340.@loreai/core at packages/core/ is the shared memory engine for DB, distillation, knowledge/LTM, recall, gradient context management, and prompts; @loreai/gateway at packages/gateway/ is the transparent LLM proxy and lore CLI; @loreai/opencode at packages/opencode/ is the OpenCode plugin adapter using @opencode-ai/plugin; and @loreai/pi at packages/pi/ is the Pi coding-agent extension adapter.packages/core/src/ltm.ts: categories are decision, pattern, preference, architecture, and gotcha; fields include id (UUIDv7), project_id, category, title, content (maximum 1200 characters), confidence (0.0β1.0), and cross_project.packages/core/src/db.ts; knowledge CRUD packages/core/src/ltm.ts; distillation packages/core/src/distillation.ts; context management packages/core/src/gradient.ts (largest file, approximately 1950 lines); recall/search packages/core/src/recall.ts and packages/core/src/search.ts; prompts packages/core/src/prompt.ts; file sync packages/core/src/agents-file.ts; curator packages/core/src/curator.ts; configuration loader packages/core/src/config.ts for .lore.json; gateway server packages/gateway/src/server.ts; compaction intercept packages/gateway/src/compaction.ts; LLM proxy pipeline packages/gateway/src/pipeline.ts; CLI commands packages/gateway/src/cli/; and OpenCode hooks packages/opencode/src/index.ts.packages/gateway/script/build.ts produces a CJS bundle, script/bundle.ts creates a standalone binary, and core build script packages/core/script/build.ts produces Node.js-compatible CJS output.