Agent Maintenance and Sync
Use this page as the operational contract for maintainers and automation agents.
Scope
In scope:
- CLI command contracts
- MCP tool contracts
- first-party skill contract metadata
Note: "skill contract metadata" here refers to internal identifiers in src/integrations/skills/registry.ts (for example ideon-write-primary).
This is separate from the external installable skill package at ideon-cli-skill/.
Out of scope:
- Cursor integrations
- VS Code integrations
Mandatory Same-Change Rule
When a CLI command contract changes, update all affected artifacts in the same change:
- CLI command behavior and flag parsing.
- MCP tool input/output contract surfaces.
- skill contract metadata surfaces.
- command reference docs and examples.
- localized docs parity pages.
A change is incomplete if exported CLI, MCP, and skill contracts are not synchronized.
Required Validation
Run these checks before merge:
npm run lint
npm run build
npm run test:coverage
npm run docs:build
The lint sequence includes check:sync, which validates contract parity.
Drift Signals
Common drift indicators:
- CLI enum values updated but MCP schema enums unchanged.
- required CLI args changed but skill required fields unchanged.
- command docs list flags that code no longer accepts.
Reviewer Checklist
Block merge if any answer is no:
- Were all changed CLI arguments mirrored in MCP and skill contracts?
- Did the integration sync checker pass?
- Were docs updated in English and zh-Hans?
- Are unsupported runtime boundaries still explicit?