feat: add experimental greedy prepare_context (not C3) - #14
Open
guozhihao-224 wants to merge 3 commits into
Open
feat: add experimental greedy prepare_context (not C3)#14guozhihao-224 wants to merge 3 commits into
guozhihao-224 wants to merge 3 commits into
Conversation
…ch pits. Port Analyzer v1 and a node:sqlite runtime that can remember and FTS-search self-created databases, while refusing unstamped Python-like files and without claiming C3 or shared-database writes.
Expose loopback Fastify health, capabilities, and Memory routes through protocol validators, without claiming C3 or faking capture/vector success.
Pack FTS hits with core UTF-8 budgets into ready/empty PreparedContext, without claiming Python packer parity or C3.
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.
Summary
@powercontext/builtinwith a greedy UTF-8 budget (newlinejoin, no mid-entry truncation) and exposeExperimentalRuntime.prepare().POST /v1/context/prepareon the experimental subset Server and advertisepowercontext.prepared-context.v1in capabilities.status: empty,content: null;max_bytesbelow 512 is 422.This is not Python
PreparedContextpacking parity and not C3.Profile and parity
sqlite-ftssubset (not asqlite-fts/ C3 claim)prepare_contextonlyChecklist
contract/orconformance/snapshotspackages/protocol/src/generatedTest plan
pnpm format:writepnpm lintpnpm typecheckpnpm buildpnpm testpnpm generate:checkprepare_contextisreadyandcontent_bytesmatchesutf8ByteLengthempty/content: nullmax_bytes: 512→empty(no truncation)max_bytes: 511→ 422