fix(adapters): align CC Switch contract with read-only OBSERVE policy - #114
Merged
Conversation
- manifest: cc-switch writes=approval_required -> unavailable (its provider catalog / routing / auth state is user-private runtime state; the project observes health only, never writes routing config — five-dimension baseline #3) - registry: cc-switch operations narrowed to detect/capabilities/observe (no write implementation exists in real_adapters; OBSERVE policy) - registry: all source_ref entries switched to stable workflow-manifest.yaml#adapters.entries[id=...] references (removes positional-index drift)
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.
Summary
WL3-700 — resolve the CC Switch contract contradiction (subagent-identified
gap): the manifest claimed
writes: approval_requiredwhileconfig-ownership.jsonpolicy isOBSERVE, andreal_adapters.pyhas nowrite implementation at all.
Changes
workflow-manifest.yaml:cc-switch.writes→unavailable. CC Switch'sprovider catalog / routing / auth state is user-private runtime state;
the project observes health only and never writes routing config
(five-dimension baseline feat(observer,r2): read-only REST endpoints + 405 guard #3: official standard + user configuration wins).
adapter-registry.json:cc-switch.operationsnarrowed to[detect, capabilities, observe]— no write implementation exists.adapter-registry.json: allsource_refvalues now use stableworkflow-manifest.yaml#adapters.entries[id=...]references instead ofpositional indices (kills the -1 index drift the research subagent found).
Verification
ADAPTER_REGISTRY_PASS entries=9 available_hash=0 hash_unavailable=9 explicit_quarantine=trueCLIENT_NEUTRAL_MANIFEST_PASS adapters=9 first_class=4conformance, config ownership)
CURRENT_STATE_FRESHNESS_PASS