Conversation
Centralize Metal residency policy, enforce coordinated shutdown deadlines and signal supervision, gate direct LLM operations during maintenance, and preserve update-hook exit codes.\n\nRefs: qmdfix-runtime-metal-shutdown-pr1-rm7
Apply one stable expansion policy to fresh and cached results, and reject shutdown/caller aborts at expensive search boundaries.\n\nRefs: qmdfix-search-bounds-cancellation-pr2-h98
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.
Dependency
Draft: depends on #912. Until #912 merges, GitHub will also show its runtime commits in this PR. After it merges, this diff reduces to the search-policy and cancellation changes below.
Summary
Expansion policy
The policy preserves source order and keeps:
lex,vec,hyde)(type, normalized text)pairsNormalization trims, collapses whitespace, and compares case-insensitively. Unknown types and empty text are rejected. The same policy runs after both cache reads and fresh generation, before any search fanout.
Cancellation
Search observes the existing PR1 session abort signal plus an optional caller signal. Checks sit around the expensive boundaries:
vectorSearchQueryresolves the effective LLM, so stores without an attached LLM still observe shutdown from the default instance.Verification
Before rebasing onto the latest
main:After stacking on the rebased #912 head:
npm run lintnpm run test:typesNo production QMD collection or index is used by these tests.