Repository navigation
feat(context): add bounded project bootstrap context - #1720
Open
wangchenxuya wants to merge 10 commits into
Open
wangchenxuya wants to merge 10 commits into
wangchenxuya wants to merge 10 commits into
Conversation
PsiACE
requested changes
Sep 23, 2026
PsiACE
left a comment
Member
There was a problem hiding this comment.
Please fix the bootstrap deduplication and retry issues noted inline.
wangchenxuya
requested review from
Alanxtl,
AlexStocks,
Zxf-xufeng,
frf12,
frostming,
yihong0618 and
zhanghuidinah
as code owners
September 28, 2026 07:14
…rap-context # Conflicts: # docs/en/docs/integrations/codex.md # docs/zh/docs/integrations/codex.md # integrations/claude-code/plugins/powercontext/claude_code_settings.py # integrations/codex/plugins/powercontext/settings.py # src/powercontext/builtin/runtime/application.py # src/powercontext/builtin/runtime/models.py # src/powercontext/http/_generated/models.py # tests/test_api_contract.py
…rap-context # Conflicts: # docs/en/docs/integrations/codex.md # docs/zh/docs/integrations/codex.md # integrations/capabilities.toml # src/powercontext/http/_generated/schema.py
…rap-context # Conflicts: # docs/zh/docs/integrations/codex.md # integrations/codex/plugins/powercontext/.codex-plugin/plugin.json # integrations/codex/plugins/powercontext/hooks/recall.py # integrations/codex/plugins/powercontext/pyproject.toml # integrations/codex/plugins/powercontext/uv.lock
PsiACE
self-requested a review
September 29, 2026 08:33
Contributor
|
please update & resolve conflicts |
…rap-context # Conflicts: # docs/zh/docs/integrations/codex.md # src/powercontext/builtin/runtime/__init__.py # src/powercontext/builtin/runtime/application.py # src/powercontext/builtin/runtime/composition.py # src/powercontext/builtin/runtime/models.py # src/powercontext/http/_generated/operations.py # src/powercontext/server/mapping.py
hidb4ai
reviewed
Oct 11, 2026
hidb4ai
left a comment
Contributor
There was a problem hiding this comment.
Four reproduced correctness issues remain at this commit: a cross-scope authorization bypass, two hook delivery-state failures, and candidate starvation after bootstrap deduplication. The normal packaged-hook chain also passed against real OceanBase and embedding inference, including restart persistence; that successful path does not cover these counterexamples.
Contributor
|
please update & resolve conflicts |
…rap-context # Conflicts: # desktop/src-tauri/src/transport/operations.json # desktop/ui/src/generated/operations.ts # docs/en/docs/operate/troubleshoot.md # docs/zh/docs/operate/troubleshoot.md
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.
Which issue or RFC does this PR close?
Closes #1429.
Rationale for this change
Agents can start, resume, clear, or compact a project session before a user query exists. This adds a host-neutral, bounded bootstrap path so explicitly curated project context can be restored without fabricating a search query, scanning transcripts, or weakening current instruction authority.
What changes are included in this PR?
powercontext.scope-bootstrap.v1request, response, and delivery-receipt contracts, with OpenAPI and generated client bindings.SessionStartsupport for Codex and Claude Code, including fail-open diagnostics, bounded local receipt state, and exact Codex hook delivery limits.Are there any user-facing changes?
Yes. Codex and Claude Code can opt in to curated bootstrap context through their documented bootstrap settings. The feature is disabled by default, all API additions are additive, and no existing recall or prompt-capture behavior is removed.
How was this change tested?
make checkmake contract-test(49 passed)make docs-testuv run pytest -q tests/codex_plugin tests/claude_code_plugin tests/builtin/runtime/test_bootstrap_context.py tests/e2e/test_bootstrap_context.py tests/e2e/test_bootstrap_host_service_chain.py --tb=short(321 passed, 4 skipped)env NO_PROXY=127.0.0.1,localhost no_proxy=127.0.0.1,localhost uv run pytest -q tests/e2e/test_codex_service_chain.py tests/e2e/test_claude_code_service_chain.py --tb=short(7 passed)git diff --checkAI usage statement
OpenAI Codex was used to analyze the issue, implement the changes, review edge cases, and run the validation commands. The resulting code, generated artifacts, documentation, and tests were inspected in the local checkout.