Repository navigation
refactor(migrate): move planner decision logic out of the skill prose into rules.json - #48
Merged
Merged
Conversation
Facundo Santiago (santiagxf)
requested a review
from Paul Yuknewicz (paulyuk)
November 15, 2026 06:12
…contract Explain the two-file pairing that describes the target platform: - capabilities.json: declares CLI commands pinned to a specific extension version - rules.json: maps APIM shapes to those capabilities with verdicts and plan item kinds Document how the planner uses both files, the version contract when capabilities change, the probe reconciliation, and what stays out of the code/instructions.
… rules The telemetry destination decision (item:telemetry/destination) is now fully specified in capabilities/rules.json rather than split between skill.md and the rules. Added to the telemetry rule: - Detailed consequences for each option (reuse, new, gateway-only, retain) - Note about ApplicationInsights exporter not being offered - Explicit prerequisite field (appinsights-otlp) - Prerequisites guide for each outcome Updated skill.md to reference the rules instead of prescribing behavior. This keeps decision logic in data files, not in LLM instructions.
Move three cases where platform knowledge and decision logic were prescribed
in skill.md to the rules.json data files instead:
1. resolve-models auto-execution:
- Added 'note' and 'autoResolvable' fields to the models rule for
unresolved/empty statuses, explaining why this is not a question
2. MCP tool discovery route preferences:
- Added 'toolDiscoveryGuidance' to the mcpServers runtimeOnly rule with
preferred route, fallback meaning, and communication guidance
3. publishable routes fact:
- Already in rules.json rationale; skill.md updated to reference it
rather than restating the platform fact
Updated skill.md to reference the rules instead of prescribing behavior.
Agents now derive this logic from the data files, not instructions.
Facundo Santiago (santiagxf)
force-pushed
the
cli-b30
branch
from
November 16, 2026 11:46
9664ffe to
6dd44ba
Compare
Facundo Santiago (santiagxf)
force-pushed
the
cli-b30
branch
from
November 16, 2026 12:03
6dd44ba to
92586eb
Compare
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.
Stacked 1 of 2. #53 builds on this branch.
Summary
Decision logic that the planner applies was written out in the migrate-apim skill's instructions as well as encoded in
rules.json. Two copies of the same rules drift. This moves the logic intorules.jsonand leaves the skill describing what the planner does rather than restating how it decides.Covers the telemetry rules and the asset rules for model APIs and MCP servers.
Also in this PR
ARCHITECTURE.mddocuments thecapabilities.json+rules.jsoncontract: what each file owns, which code reads it, and what has to change together.Verification
python -m pytest -q→ 466 passed.🤖 Generated with Claude Code