Skip to content

feat(context): add CPG-07 explicit sidecar composition gates - #22

Merged
Wibias merged 1 commit into
agent/context-projection-cp06from
agent/context-projection-cp07
Aug 16, 2026
Merged

feat(context): add CPG-07 explicit sidecar composition gates#22
Wibias merged 1 commit into
agent/context-projection-cp06from
agent/context-projection-cp07

Conversation

@Wibias

@Wibias Wibias commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stack CPG-07 on CPG-06.
  • Make live recovery eligibility depend on actual sidecar plans, not coarse parser/config markers.
  • Preserve the conservative rollout: active web-search, image, video, or vision sidecars suspend large-result recovery for that turn.
  • Verify compaction, continuation, retry/failover boundaries and raw-reasoning replay without merging recovery semantics into the existing media/web loops.

Scope decision after deep review

The original CP-07 roadmap called this stage "stateless sidecar composition". This PR intentionally implements the safe composition boundary, not a merged recovery+sidecar execution loop. Full recovery composition with web/media/vision is deferred until CPG-08 has live-provider task-quality, cost-per-success and latency evidence for the simpler stateless recovery path.

This narrowing is deliberate: implementing recovery inside multiple existing sidecar loops before the base recovery path clears its rollout gate would increase hidden-trajectory and stale-action risk without evidence that the extra complexity is justified. Until that gate passes, an actual active sidecar remains authoritative and large recovery fails open for that turn.

Why

CPG-06 intentionally over-suspended sidecars. CPG-07 refines this using the repository's real wsPlan, imgPlan, vidPlan, and visionPlan so unavailable/disabled sidecars do not create unnecessary cache boundaries, while active sidecars still fail open to their existing behaviour.

TDD

The first commit is RED and defines deterministic actual-plan composition-boundary semantics.

Future gate

Only after CPG-08 live evidence passes should a later revision of this stage add provider-private sequences such as recovery -> web search, web search -> recovery, recovery -> media, sidecar failure after recovery, and mixed real-tool regeneration. If that evidence does not pass, this conservative boundary is the intended final behaviour.

Stack

@github-actions

Copy link
Copy Markdown

Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the enhancement New feature or request label Aug 15, 2026
@github-actions github-actions Bot changed the title feat(context): add CP-07 explicit sidecar composition gates feat(context): add CPG-07 explicit sidecar composition gates Aug 16, 2026
@Wibias
Wibias force-pushed the agent/context-projection-cp06 branch from 8b9bfef to 8f32b98 Compare August 16, 2026 02:33
@Wibias
Wibias force-pushed the agent/context-projection-cp07 branch 3 times, most recently from e8dc275 to 9373c37 Compare August 16, 2026 02:42
@Wibias
Wibias merged commit 9373c37 into agent/context-projection-cp06 Aug 16, 2026
25 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant