Repository navigation
feat!: drop priorKnowledge from describe_screen - #59
Draft
cryptotavares wants to merge 2 commits into
Draft
cryptotavares wants to merge 2 commits into
cryptotavares wants to merge 2 commits into
Conversation
describe_screen no longer calls KnowledgeStore.generatePriorKnowledge, which read past step files from disk on every call, and its result no longer has a `priorKnowledge` field. The field is also gone from StepRecordObservation, createDefaultObservation and the observation compaction/redaction code. The rest of the knowledge store stays until it is removed separately. BREAKING CHANGE: `describe_screen` results (and `DescribeScreenResult`, `StepRecordObservation`) no longer contain `priorKnowledge`. `createDefaultObservation` no longer takes a fourth `priorKnowledge` argument.
cryptotavares
added this pull request to stack #63
October 23, 2026 20:59
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
describe_screencalledknowledgeStore.generatePriorKnowledgeon every call (src/tools/discovery-tools.ts:168-188at 0.12.0). That read past step files fromtest-artifacts/llm-knowledge/and added apriorKnowledgeblock (related sessions, similar steps, suggested actions) of 3–5 kB to the output. No consumer reads the block. This is the first, smallest part of removing the knowledge store, split out so its cost can be measured on its own.describe_screenno longer callsgeneratePriorKnowledgeand no longer returnspriorKnowledge.priorKnowledgeis removed fromDescribeScreenResultandStepRecordObservation, from the 4thcreateDefaultObservationargument, from observation diffing (observation-compaction.ts) and from step redaction.SKILL.mdandREADME.mdare updated to match.Part of the mm CLI v2 effort: ticket
P1-03(Phase 1).Stacked on #58 (review that first).
Breaking changes
describe_screenresults (mm describe-screen) no longer containpriorKnowledge.DescribeScreenResultandStepRecordObservationtypes no longer havepriorKnowledge.createDefaultObservation(state, testIds, nodes)no longer takes a 4thpriorKnowledgeargument.Consumer impact
test/e2e/playwright/llm-workflow/rg priorKnowledge: 0 hits)tests/llm-workflow/rg priorKnowledge: 0 hits)Proof
Tested with yalc builds of the parent (
c87dbc3) and of this branch in the Extension (e2e test build 13.56.0, headless) and Mobile (dev client 8.19.0, iOS sim + Android emulator), on wallet home after unlock.priorKnowledgeindescribe-screen(ext / iOS / Android)describe-screenbytes p50, Extensiondescribe-screentoolMsp50, Extension (5 runs)describe-screentoolMsp50, Android (3 runs)generatePriorKnowledgealone, Mobile store (18 sessions, 31 MB)generatePriorKnowledgealone, Extension store (9 sessions, 1 MB)The iOS device bench was too noisy on this host (load average 11–19) to show the ~0.3 s gain:
observationMs, which this change does not touch, moved by the same amount astoolMs. The isolated timing of the removed call is the reliable number. Its cost grows with the history on disk.Transcripts
Unit tests