Repository navigation
feat(profiles): add cc-profile-config to show, choose and write routing profiles - #94
Conversation
…ng profiles Adds the cc-profile-config supporting skill and the runtime component profile_config.py. It shows the effective profiles (configured or default, roles, relative cost, read-only guarantee, executor availability), offers balanced cross-vendor, default and single-vendor presets or custom targets, validates Codex models and efforts against Codex's local models cache, and writes only code_cycle.profiles after --confirmed, preserving every other key and comment in .code-cycle.yml. The balanced presets keep the implementing vendor out of review, fallbacks included, and declare no fallback: availability is per executor, so a same-executor fallback is down with its primary and a cross-executor one would cross the split. auxiliary_tool stays on Codex because only Codex can confine a disposable workspace. cycle_status.py --profiles prints the same table. Closes #73
[CCR-20260925-001] · manual_reviewer · ?/?→? · ? · schema:1Review summaryCHANGES_REQUESTED for head Findings[REV-001] · medium · open · - · blocks:yes — Config writer follows a predictable temporary-file symlinkPath:
[REV-002] · medium · open · - · blocks:yes — Installer CI checks a PR-only skill against
|
[CCT-20260925-001] · manual_resolver · ?/?→? · ? · triaged:9178f47af7ad3a8ce039c4cb088eca26a08e1e54 · schema:1TriageEvery finding was classified against [REV-001] · medium · open · valid · blocks:yes — Config writer follows a predictable temporary-file symlinkPath: [REV-002] · medium · open · valid · blocks:yes — Installer CI checks a PR-only skill against
|
… installers against main's skills REV-001: write_declaration wrote to the predictable <config>.tmp with Path.write_text, which follows a planted symlink. It now creates a unique temporary file exclusively beside the config (tempfile.mkstemp), keeps the config's mode, replaces atomically and removes the temporary on failure. REV-002: the one-command installer steps download main but asserted this branch's EXPECTED_SKILLS, so any pull request adding a skill failed them. They now assert the skills main's tree ships; the local-install steps keep asserting EXPECTED_SKILLS.
[CCR-20260925-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260925-001] · manual_resolver · ?/?→? · ? · triaged:9178f47af7ad3a8ce039c4cb088eca26a08e1e54 · schema:1Resolution summaryRESOLVED. Head is now [REV-001] · medium · resolved · valid · blocks:yes — Config writer follows a predictable temporary-file symlinkPaths:
Regression test [REV-002] · medium · resolved · valid · blocks:yes — Installer CI checks a PR-only skill against
|
[CCR-20260925-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260925-001] · manual_resolver · ?/?→? · ? · triaged:9178f47af7ad3a8ce039c4cb088eca26a08e1e54 · schema:1[CCR-20260925-002] · manual_reviewer · ?/?→? · ? · schema:1Re-review summaryAPPROVED at current head Previous findings[REV-001] · medium · resolved · valid · blocks:yes — Config writer follows a predictable temporary-file symlinkCorrected and verified by execution. [REV-002] · medium · resolved · valid · blocks:yes — Installer CI checks a PR-only skill against
|
Closes #73 — #73
Changes
cc-profile-configand runtime componentscripts/profile_config.py(show | propose | write | presets), listed inscripts/runtime.manifest.ROLE_CANDIDATES), primary and fallback markedconfigordefault,PROFILE_COST, the read-only guarantee (enforcedfor Codex,detectedfor Claude, per Allow any executor in read-only roles through an isolated, verified review harness #72) and executor availability fromprobe().balanced-openai-implements,balanced-anthropic-implements,defaults,single-openai,single-anthropic. Custom targets are set with--set profile.primary|fallback=TARGET|none.parse_targetplusload_profiles, the executor/provider match, Codex model and effort checked against$CODEX_HOME/models_cache.json(reported as unchecked when the cache or a model list is missing), executors that aren't installed or authenticated, the workspace contract, and the implement/review split.--confirmed. It edits only thecode_cycle.profilesblock as text, so every other key and comment stays byte for byte. It declares only what differs from the defaults, verifies the result with PyYAML before an atomic replace, and refuses a proposal that has errors.cycle_status.py --profiles [--cwd]prints the effective table without an agent.cc-provider-bootstrapmentions the skill once when there is noprofilesblock. The skill is registered invalidate-package.pyandEXPECTED_SKILLS. README,docs/skills.md,docs/routing.md(new Changing profiles section),docs/configuration.md,docs/workflows.mdand CHANGELOG are updated.Decisions worth reviewing
route()checks availability per executor: a same-executor fallback is unavailable whenever its primary is, and a fallback on the other executor crosses the split. So an unavailable executor blocks the stage. A crossing target is refused unless--allow-cross-splitis passed, and then it is reported as a warning.single-anthropickeepsauxiliary_toolon Codex. Claude can't enforce thedisposablecontract ofverify/run, so those stages would block. The preset says so in its notes.cheap_coder/deep_coderagainstreviewer/senior_reviewer/security.coordinatorkeeps its default.Verification
python3 scripts/validate-package.py:VALID: 14 skills (6 cycle, 8 supporting).python3 -m unittest discover -s tests: 679 tests, OK. This includes the newtests/test_profile_config.py: every preset accepted byrun_cycle.plan_with_strategy, every role of every preset routing to an executor that honours its workspace policy, the split held with fallbacks included, crossing refused or allowed, catalog checks, write confirmation, comment-preserving insert/replace/remove round trip, andcycle_status --profiles.show,proposefor every preset, andwritefollowed bywrite --preset defaultson a copy of this repository's.code-cycle.yml, which restored the file byte for byte.