Plan 21: session-start context dedup + Phase C sensors#46
Merged
Conversation
Cuts session-start context redundancy and completes Plan 08 Phase C: - session-context sensor now filters memory/session-start protocols (duplicates of sensor-injected content), skips empty FieldNotes, summarizes pending reports instead of full-cat, drops misfired end-of-session reminder block, and scopes to SessionStart matcher startup|resume|clear so /compact can be handled by a separate sensor. - session-start protocol rewritten to assume sensor did the heavy lifting — no more 10-step re-read list. - context-guard gains verify + plan pattern detection with word-boundary (not end-anchored) regex; planning reminder suppressed when wrap-up already fired to avoid triple-stacking. - new compact-recovery sensor (matcher=compact) re-injects minimal context (Quick Triggers + Work State) after /compact, <2000 chars in normal conditions. - station self-awareness.md trimmed: durable UX preferences moved to memory.md Feedback section where they structurally belong. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
LastStep
added a commit
that referenced
this pull request
Apr 21, 2026
Session log for Plan 21 shipped via PR #46. Updated backlog: session-start payload research item revised with Plan 21 progress + remaining optimization ideas; new P3 research entry for Plan 08 C3 with explicit revisit criteria. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
LastStep
added a commit
that referenced
this pull request
Apr 22, 2026
Strip 13 inline `<!-- resolved -->` HTML comments from Backlog.md + delete the duplicated/already-resolved "Pre-release docs audit" entry (now in StatusArchive Resolutions section) + remove obsolete "Re-plan Phase C" item (shipped 2026-04-21 via Plan 21 / PR #46). StatusArchive.md gains a "Resolved Backlog Items" section listing all 14 resolutions with provenance (PR + plan + scope). Backlog.md is ~10% lighter and only carries actionable open items. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Session-start context dedup + Plan 08 Phase C sensors (compact-recovery, context-guard verify/plan patterns). Cuts redundant protocol dumps, fixes session-context misfire, and moves UX prefs to memory.md Feedback where they belong.
Changes
catalog/sensors/session-context/session-context.sh.tmpl— drop end reminder, filter empty FieldNotes, summarize Reports, filter memory/session-start protocolscatalog/sensors/session-context/meta.yaml— add matcher=startup|resume|clearcatalog/protocols/session-start/session-start.md— rewrite (short, assumes sensor did the work)catalog/sensors/context-guard/context-guard.sh.tmpl— add verify + plan pattern detectioncatalog/sensors/compact-recovery/meta.yaml— NEWcatalog/sensors/compact-recovery/compact-recovery.sh.tmpl— NEWstation/agent/Core/self-awareness.md— drop User Preferences sectionstation/agent/Core/memory.md— UX preferences moved under Feedbackstation/agent/Sensors/*+station/agent/Protocols/session-start.md+station/.claude/settings.json+station/CLAUDE.md— regenerated bybonsai updatePlan
station/Playbook/Plans/Active/21-session-start-dedup-and-phase-c-sensors.md
Verification