feat(integrations): align agent guidance and tool routing - #1522
Open
knqiufan wants to merge 5 commits into
Open
feat(integrations): align agent guidance and tool routing#1522knqiufan wants to merge 5 commits into
knqiufan wants to merge 5 commits into
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 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 select exposed tools before loading a Skill. Inconsistent guidance can turn historical lookup into inventory, Source capture into a false Memory-save acknowledgement, or an ordinary handoff into an unintended durable commit. The system guidance, tool descriptions, and existing Skills must agree on intent, evidence, and authorization.
What changes are included in this PR?
Are there any user-facing changes?
Agents receive consistent guidance before and after Skill loading. A plain handoff request no longer implicitly requests a durable milestone in the Codex, Claude Code, or WorkBuddy Skill. Existing explicit durable requests remain supported without redundant confirmation. Tool names, HTTP fields, persisted formats, Scope boundaries, and host approval behavior are unchanged.
#1494 is already merged into master. D has independent scope; layered Skills remain E, and canonical naming/distribution remain owned by #1405 / #1410.
The bilingual evaluation record separates first-turn selection from multi-turn qualification. The 48/48 first-turn sample is not evidence of completed Handoff execution. The latest multi-turn observations total 64/96 across eight surfaces; incomplete carriers, invalid provenance, and unfinished native workflows remain unqualified, with every failure retained in the evidence. No commit call occurred in those observations, but early failures truncate their sequences. Model errors and missing-tool stress failures remain recorded; catalog evaluation with controlled results does not certify automatic Skill discovery or native execution in every host.
How was this change tested?
src scripts tests integrations. The local whole-workspacety-checkhook is excluded because it includes unrelated untracked personal documents and existing Windows-specific errors; CI runs the unmodified full quality checks.6237b2a9, including Python 3.11–3.14, SQLite/OceanBase acceptance, website, quality, all package checks, Linux, and Windows. The macOS native lifecycle job timed out waiting for the installed service, with empty output/error logs; the same runtime code passed in the preceding run. Cleanup erased the launchd registration and retry evidence before workflow diagnostics could inspect them. The diagnostic regression test passes locally, and the macOS native acceptance one3f41765passed with the original startup deadline and assertions. The intermittent startup timeout did not reproduce; its root cause remains unconfirmed. Future failures retain launchd state and retry evidence before cleanup.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 routing evaluations. Native execution and controlled-catalog measurements are reported separately.