feat(integrations): align agent guidance and tool routing - #1522
Merged
Teingi merged 7 commits intoSep 15, 2026
Merged
Conversation
knqiufan
force-pushed
the
codex/align-powercontext-tool-routing
branch
from
September 9, 2026 03:28
1b114f5 to
5fb191f
Compare
knqiufan
force-pushed
the
codex/align-powercontext-tool-routing
branch
from
September 9, 2026 03:39
5fb191f to
98629ea
Compare
knqiufan
marked this pull request as ready for review
September 10, 2026 02:12
7 tasks
This was referenced Sep 14, 2026
Member
|
resolve conflicts |
Member
|
resolve conflicts |
This was referenced Sep 15, 2026
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 #1520. Implements D of #1450 without closing the parent tracker.
Rationale for this change
Agents see tools before loading a Skill. Conflicting guidance can turn a historical lookup into inventory, report Source capture as a saved Memory, or treat a temporary handoff as permission to commit a durable milestone. Guidance must describe the capabilities actually available in each host and distinguish a selected tool, a successful operation, and a truthful completion report.
What changes are included in this PR?
847203dc, including feat(dsh): expose observed recall and capture status through /pc #1600. Reflect the already-available Pi Topic Memory, candidate/artifact inspection, Work Contract, Handoff acknowledgement, and Task Outcome tools, plus OpenClaw's work tools. These tools are existing master capabilities, not newly introduced backend APIs in this PR.next_action, omissions, and OpenClaw's top-level Source ID. Rebuild checked-in bundles and regenerate OpenAPI descriptions.handoff.state[0].basis/evidence. Add regressions for false-positive acceptance and run native adapter regressions in package CI.Are there any user-facing changes?
Agents receive consistent intent and completion guidance before and after Skill loading. Ordinary handoff requests produce a temporary carrier; durable commits still require an explicit durable-milestone request. Existing tool names, HTTP field shapes, persisted formats, Scope isolation, and host authorization remain compatible. OpenAPI changes are descriptions only.
The bilingual qualification record and all 276 observations distinguish runtime evidence from model behavior. The current composite Handoff sample is 106/108 for valid sequences/carriers and 105/108 after explicit Codex reporting review. Two samples use verified facts without evidence; one strengthens “no code changes” into “no code changes required.” These remain failures. The failed-write/missing-tool sample is 16/24 after review, including all 12 failed-write cases correctly reporting no save. Missing-tool hallucinations and substitute-persistence suggestions remain unqualified.
These measurements do not certify automatic Skill discovery, real permissions in every host, or strict bare-carrier formatting; some replies include the complete carrier inside a response wrapper. Guidance is not an authorization mechanism. Layered Skills and naming/distribution remain separate workstreams.
How was this change tested?
uv run pytest tests/test_integration_guidance_evaluation.py tests/test_api_generation.py tests/test_api_contract.py tests/test_integration_manifest.py -q: 102 passed, including 28 evaluator regressions and real adapter request/response checks.uv run pytest tests/test_mcp.py tests/integrations/test_hermes_provider.py -q: 85 passed. JavaScript operation contract tests: 3 passed.ty-checkexcludes unrelated untracked personal files and existing Windows-only type errors; CI runs the normal quality job.281bec20: Python 3.11–3.14, SQLite/OceanBase acceptance, Linux/macOS/Windows native lifecycle, website and Windows link validation, all integration packages, quality, license, and CLA. Main CI run. CI success and the explicitly limited live-model qualification above are separate results.AI usage statement
OpenAI Codex (GPT-6 Astra) assisted with implementation, review, documentation, and tests. Step 3.7 Flash was used for recorded live-model evaluations. Transcript reporting review was performed by Codex, not a human reviewer. Native runtime execution, controlled adapter execution, and model-catalog measurements are distinguished in the evidence.