Skip to content

feat(context): add CPG-01 pure context projection planner - #16

Open
Wibias wants to merge 4 commits into
devfrom
agent/context-projection-cp01
Open

feat(context): add CPG-01 pure context projection planner#16
Wibias wants to merge 4 commits into
devfrom
agent/context-projection-cp01

Conversation

@Wibias

@Wibias Wibias commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Start CPG-01 of cache-preserving context projection with a test-first contract for the pure request-local projector/registry.
  • Keep canonical Responses history authoritative and require duplicate projection to preserve an earlier fully visible exact source.
  • Harden cancellation polling so mixed UTF-16 widths cannot skip abort checks.
  • Make duplicate receipts identify the exact source tool and occurrence when call ids repeat.
  • Cover a 10 MiB one-line tool result without canonical mutation.

Deep-review hardening

The hardening landed tests-first. The focused projector suite and full TypeScript typecheck passed before the clean branch history was restored.

The projector still fails open on scan-budget/cancellation boundaries, uses SHA-256 only for candidate bucketing plus strict string equality, and never mutates canonical context.

Verification

  • Original CPG-01 TDD contract remains before implementation.
  • Deep-review TDD commit: 6ac9642c7deb3c2a484d1f2ebaddf7a00714232f.
  • Hardened implementation head: 7d1523150d85986cfe7e29649df17386007ce2b5.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • No user-visible live behaviour is wired in CPG-01.
  • Security-sensitive changes were reviewed for bounded scans, cancellation, identity, and canonical immutability.

@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
@Wibias Wibias changed the title feat(context): add CP-01 pure context projection planner feat(context): add CPG-01 pure context projection planner Aug 16, 2026
@Wibias
Wibias force-pushed the agent/context-projection-cp01 branch 2 times, most recently from 86099f8 to d546383 Compare August 16, 2026 02:56
@Wibias
Wibias marked this pull request as ready for review August 16, 2026 03:13
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 89340286-1429-4f57-aa3c-e1b71ca023a6


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions
github-actions Bot force-pushed the agent/context-projection-cp01 branch from e38db91 to af83cb4 Compare August 16, 2026 04:58
@Wibias
Wibias force-pushed the agent/context-projection-cp01 branch from af83cb4 to 7d15231 Compare August 16, 2026 04:58
@Wibias
Wibias force-pushed the agent/context-projection-cp01 branch from 7d15231 to 966db71 Compare August 16, 2026 23:19
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