You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(catalog): Plan 21 session-start dedup + Phase C sensors (#46)
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>
10. Read [agent/Protocols/scope-boundaries.md](scope-boundaries.md) — refresh what you own (if installed)
15
+
The session-context sensor injects the following at SessionStart: identity.md, memory.md, self-awareness.md, INDEX.md, Status.md, FieldNotes.md (when non-empty), Reports/Pending summary, and always-on Protocols (security, scope-boundaries). Health warnings (stale memory, Backlog P0, pending reports, log freshness) are also surfaced.
16
+
17
+
Your job:
18
+
19
+
1.**Address any flags** in the injected `memory.md` Flags section.
20
+
2.**Confirm work state** from `memory.md` — resume in-flight tasks or start fresh as appropriate.
21
+
3.**Act on health warnings** the sensor raised (stale memory, P0 items, pending reports).
22
+
4.**Process pending reports** by reading each file in `Reports/Pending/` (sensor gave summaries only).
25
23
26
24
> [!note]
27
-
> Paths like `INDEX.md`, `Playbook/`, `Logs/`, and `Reports/` refer to the project docs location configured during `bonsai init`. Check your workspace CLAUDE.md → External References for the exact paths.
28
-
> Backlog.md is a scan, not a full read — look for P0 items only. Full backlog review is handled by the backlog-hygiene routine.
25
+
> If the session-context sensor is NOT installed (headless agent), fall back to reading core files manually: identity, memory, self-awareness, INDEX, Status, then scan Backlog P0 and check Reports/Pending.
29
26
30
27
---
31
28
32
29
## Conditional (by task type)
33
30
34
31
### If executing a plan
35
32
36
-
- Read the assigned plan in full before writing any code
33
+
- Read the assigned plan in full before any dispatch
0 commit comments