Add plan-only semantic GC candidate reporting#228
Open
ictechgy wants to merge 6 commits into
Open
Conversation
Introduce a default-off caller-declared mark-and-sweep planner with strict graph validation, non-actionable candidate reporting, exact fallback metadata, deterministic output, synchronized packaging, and contract-focused regression coverage. Constraint: Keep semantic-gc plan-only with no deletion, omission, content reads, provider calls, runtime verbs, new binary, or release-surface expansion Confidence: high Scope-risk: experimental and default-off Directive: Preserve graph-evaluation suppression, declared-null protected policy, and non-authorization invariants Tested: semantic-gc 19/19; proof regression 12/12; prepublish 787/787; release smoke; sync check; py_compile; git diff --check; code-reviewer APPROVE; architect APPROVED Not-tested: live receipt/provenance verification and actual context omission are intentionally out of scope
Round 1/5; blocker fingerprint: HIGH|maintainability|research/experimental-token-reduction-radar.md|semantic-GC inventory and closer|section appended after conclusion and omitted from inventory. Constraint: ultra-review-loop requires one verified atomic commit per fix group Confidence: high Scope-risk: narrow Directive: Keep future edits limited to the blocker fingerprint unless a later review expands scope Tested: python3 -m unittest tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_docs_parity Not-tested: full prepublish suite deferred until all round-one blocker groups are committed
Round 1/5; blocker fingerprint: HIGH|testability|tests/test_context_guard_kit.py|candidate safety and two-phase blocked status|safety blockers lacked explicit no-action assertions. Constraint: ultra-review-loop requires one verified atomic commit per fix group Confidence: high Scope-risk: narrow Directive: Keep future edits limited to the blocker fingerprint unless a later review expands scope Tested: python3 -m unittest tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_candidate_safety tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_two_phase_validation Not-tested: full prepublish suite deferred until all round-one blocker groups are committed
Round 2/5; blocker fingerprint: HIGH|correctness|context-guard-kit/experimental_registry.py|semantic-gc human-review acknowledgement candidate condition|registry wording broader than candidate-conditional enforcement. Constraint: ultra-review-loop requires one verified atomic commit per fix group Confidence: high Scope-risk: narrow Directive: Keep future edits limited to the blocker fingerprint unless a later review expands scope Tested: python3 -m unittest tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_registry_and_surface tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_acknowledgement_invariants; python3 scripts/sync_plugin_copies.py --write Not-tested: full prepublish suite deferred until the round-two blocker group is committed
Round 3/5; blocker fingerprint: HIGH|maintainability|README.md|semantic-GC section after License|experimental block follows license. Constraint: ultra-review-loop requires one verified atomic commit per fix group Confidence: high Scope-risk: narrow Directive: Keep future edits limited to the blocker fingerprint unless a later review expands scope Tested: python3 -m unittest tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_docs_parity; git diff --check Not-tested: full prepublish suite deferred until all round-three blocker groups are committed
Round 3/5; blocker fingerprint: HIGH|reliability|context-guard-kit/experimental_registry.py|blocked plan exit code contract|blocked status exits zero without an explicit machine contract. Constraint: ultra-review-loop requires one verified atomic commit per fix group Confidence: high Scope-risk: narrow Directive: Keep future edits limited to the blocker fingerprint unless a later review expands scope Tested: python3 -m unittest tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_registry_and_surface tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_ready_for_plan_review_contract tests.test_context_guard_kit.ClaudeTokenKitTests.test_experimental_semantic_gc_acknowledgement_invariants; python3 scripts/sync_plugin_copies.py --write Not-tested: full prepublish suite deferred until all round-three blocker groups are committed
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.
Ralplan summary
Add a default-off, high-risk, plan-only
context-guard experiments plan semantic-gcsurface. The command evaluates a bounded caller-declared graph with iterative mark-and-sweep semantics and reports non-actionable unreachable candidates only.Acceptance boundaries
null, uses conservative effective deny, and blocks readinesscandidate_replacementis alwaysnullImplementation
Changed files
context-guard-kit/experimental_registry.pyplugins/context-guard/bin/context-guard-experimentstests/test_context_guard_kit.pyREADME.md,README.ko.mdcontext-guard-kit/README.mdplugins/context-guard/README.md,plugins/context-guard/README.ko.mdresearch/experimental-token-reduction-radar.mdVerification
python3 scripts/prepublish_check.py: 787/787 passedpython3 scripts/release_smoke.py: OKpy_compile, andgit diff --check: passedRisks and follow-ups