restore-packet.md

LEGACY ALIAS: session-packet.md compatibility copy

/home/matrix-lite/state/persistent-chat/restore-packet.md

Persistent Chat Session Packet

Generated: 2026-09-10T13:00:39.454357+00:00

Pinned state view

Persistent Chat Pinned State

Generated: 2026-09-10T13:00:39.439522+00:00

Runtime truth

Operating contract

Current conversation thread

Current thread / pending next action:

Active decisions

Structured decision state:

Structured file facts:

Open actions

Open actions summary:

Fresh notices

Notices (actionable):

Recent durable topics

Recent topics:

Persona / high-signal facts

Persona / high-signal durable facts (compact; search memory for specifics):

Memory/source pointers

Curator outputs:

Operational synthesis outputs:

Recent source freshness:

Use these pointers for full context; packet excerpts are intentionally capped.

Extended tools manifest

Extended tools (lazy proxy; not injected in normal turns):

Continuity summary

Structured decision state:

Tail policy

Raw Markdown
# Persistent Chat Session Packet

Generated: 2026-09-10T13:00:39.454357+00:00

## Pinned state view
# Persistent Chat Pinned State

Generated: 2026-09-10T13:00:39.439522+00:00

## Runtime truth
- backend: `direct_acp`
- session_label: `persistent-chat-20260805T100658Z`
- direct_acp_session_id: `ses_02e982155ffef3wgrZC7EBEqhb`
- configured_model: `openai/gpt-5.6-terra`
- direct_acp_session_updated_at: 2026-08-05T10:11:20.559958Z

## Operating contract
- OpenCode compaction is disabled for persistent-chat; loadSession provides ordinary transcript/tool continuity.
- Matrix-lite packets are pinned control/recovery state, not a duplicate transcript.
- Direct ACP uses same-room native approvals; root actions use privileged_broker_sudo_run with exact one-shot approval.
- Do not edit generated packet/status artifacts directly; edit source artifacts and let heartbeat regenerate packets.

## Current conversation thread
Current thread / pending next action:
- Latest user request: Not necessarily right next to the station, we could walk 5-15 min
- Latest assistant status: Best match: **Enjoy.Roastery**, **Rosenstraße 17** — about a **5-minute walk west of Hbf**. - **4.8★ (401 Google reviews)** - Proper coffee, sandwiches/panini, pastries, cake - Bright café; you order at the counter, not via table service - Open until **20:00** I can’t confirm a terminal/kiosk there, but it is counter-service and avoids the waiter dynamic. If you want to stay essentially at the station: **Mutterland Stammhaus**, Kirchenallee 19, is **4.4★ / 1,837 reviews** with much better foo…
- Recent actionable/status notes:

## Active decisions
Structured decision state:
- Observability timeline feature requests [active]: Implement a compact event timeline as a derived/indexed view of canonical persistent logs plus helper-only append support for agent/infrastructure events. Include user and assistant messages as compact/pointer-backed events, keep it rebuildable/idempotent with deterministic source ids, and aggregate existing recent-failures/context/reload/page/timer artifacts rather than creating a competing source of truth. Per-failure notices should be injected before the next model turn and consumed only after a successful final reply. Helper-first is the default for persistent-chat structured metadata. Defer ACPX session event_log exploration until after timeline/failure/context helpers. (files=/home/matrix-lite/app/matrix_lite/daemon.py, /home/matrix
- architecture-doc-created [active]: Created /home/matrix-lite/workspace/persistent-chat/architecture.md as human-readable architecture doc. Agents should update this file when architecture changes. Keep it human-readable for Gleb.
- Curation workflow directive [active]: User endorsed agent-proposed curation workflow: inventory candidates, process small batches, promote only durable preferences/corrections/operational directives, mark stale/noisy candidates via deterministic helper, update only source artifacts (curated-memory.md, curator-journal.md, semantic-candidates.jsonl, operational synthesis), never edit generated packets/status files or perpetual-log.jsonl.
- User compaction paranoia [active]: User is explicitly paranoid about compaction because they have seen agents lose the point when given a to-do after compaction. User is not sure current system captures everything; compaction can handle current topics but may lose nuanced instructions or the broader point.
Structured file facts:
- /home/matrix-lite/app/scripts/persistent-chat-memory
- /home/matrix-lite/app/scripts/persistent-chat-model-heartbeat
- /home/matrix-lite/xdg/persistent-chat/opencode/opencode.json

## Open actions
Open actions summary:
- [open] Continue the moodymoe-u8r YouTube archive locally from the existing resumable archive; 40 of 55 videos remain after server cookies repeatedly invalidated. (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-08-05T16-11-02Z.md)
- [open] Repair scheduled-worker model/config selection so operational synthesis does not invoke obsolete kimi-for-coding/k2p6; verify two consecutive successful worker runs afterward. (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-08-17T16-11-08Z.md)
- [open] Design and stage an isolated durable polling control plane before the native backend: persistent arbitrary-timing watchers, event queue, dedupe/debounce, retries/backoff, deadlines (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-09-02T22-11-04Z.md)
- [open] Review 13 open memory candidates and 1 needs_more_evidence semantic candidate before any promotion; latest curator heartbeat used deterministic no-sentinel fallback. (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-09-07T16-11-08Z.md)

## Fresh notices
Notices (actionable):
- 2026-09-09T22:11:08.042046Z [warning] Operational synthesis run failed or timed out: se","phase":"prompt_returned","elapsedMs":4314,"sessionId":"ses_f77c67defffefIvUDQjrgHmNyj","stopReason":"end_turn"} {"ts":"2026-09-09T22:11:07.971Z","event":"acp_phase","phase":"prompt_drain_done","elapsedMs":4817,"sessionId":"ses_f77c67defffefIvUDQjrgHmNyj","promptDrainMs":503} {"ts":"2026-09-09T22:11:07.971Z","event":"error","sessionId":"ses_f77c67defffefIvUDQjrgHmNyj","message":"OpenCode ACP prompt returned end_t (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-09-09T22-11-03Z.md)
- 2026-09-10T04:11:06.637389Z [warning] Operational synthesis run failed or timed out: se","phase":"prompt_returned","elapsedMs":4321,"sessionId":"ses_f767cec90ffey23hE4y5wgfz6L","stopReason":"end_turn"} {"ts":"2026-09-10T04:11:06.576Z","event":"acp_phase","phase":"prompt_drain_done","elapsedMs":4824,"sessionId":"ses_f767cec90ffey23hE4y5wgfz6L","promptDrainMs":503} {"ts":"2026-09-10T04:11:06.576Z","event":"error","sessionId":"ses_f767cec90ffey23hE4y5wgfz6L","message":"OpenCode ACP prompt returned end_t (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-09-10T04-11-01Z.md)
- 2026-09-10T10:11:24.176507Z [warning] Operational synthesis run failed or timed out: se","phase":"prompt_returned","elapsedMs":4167,"sessionId":"ses_f75331085ffekg0wd75YJ3J2P5","stopReason":"end_turn"} {"ts":"2026-09-10T10:11:24.115Z","event":"acp_phase","phase":"prompt_drain_done","elapsedMs":4670,"sessionId":"ses_f75331085ffekg0wd75YJ3J2P5","promptDrainMs":502} {"ts":"2026-09-10T10:11:24.116Z","event":"error","sessionId":"ses_f75331085ffekg0wd75YJ3J2P5","message":"OpenCode ACP prompt returned end_t (source: /home/matrix-lite/state/persistent-chat/operational-synthesis/reports/2026-09-10T10-11-19Z.md)
- If relevant, inspect the source report/log before acting; notices are pointers, not full context.

## Recent durable topics
Recent topics:
- **🟢 Context guard normal**: `context-guard.json` 2026-07-14T16:08:04Z stage=normal, metric=143273/1048576 (13.7% context, 13.9% usable), model=`openai/gpt-5.4`.
- **🟢 Curator caught up**: `curator-journal.md` last entry 2026-07-12T14:38:05Z reports 0 open candidates.
- **🔴 directed/index.json duplicate-notice re-inflation recurred again**: Update at 2026-07-14T10:16:05Z re-injected 9 duplicate/obsolete entries into `notices.jsonl`. This cycle pruned back to 7 canonical open notices. Existing hardening action (2026-06-27T10:11:05Z) remains open and should be prioritized.

## Persona / high-signal facts
Persona / high-signal durable facts (compact; search memory for specifics):
- **55812**: Locker code for GPU storage (context clarified 2026-05-17: locker at hostel, GPU inside, Frau Kilic approved apartment). Used as memory propagation test — mechanism confirmed working. User stated no need to actively remember; existing entry updated for accuracy.
- **Location**: Garching, Germany. Works near TUM campus.
- **Nationality**: Russian.
- **Comfort ritual**: Uncle Luu's Chinese fried noodles with chicken (food truck on TUM campus). Former daily routine; colleagues teased him for the consistency.
- **Music taste**: Industrial, dark ambient, EBM, neofolk, power noise. Attending WGT festival (May 21–25, 2026). Wide travel radius for shows — uses cheap German slow trains.

## Memory/source pointers
Curator outputs:
- curated memory: /home/matrix-lite/state/persistent-chat/curated-memory.md
- curator journal: /home/matrix-lite/state/persistent-chat/curator-journal.md
- model heartbeat status: /home/matrix-lite/state/persistent-chat/model-heartbeat.json
- semantic candidates: /home/matrix-lite/state/persistent-chat/semantic-candidates.jsonl

Operational synthesis outputs:
- latest scheduled synthesis: /home/matrix-lite/state/persistent-chat/operational-synthesis/latest.md
- latest directed synthesis: /home/matrix-lite/state/persistent-chat/operational-synthesis/directed/latest.md
- directed synthesis index: /home/matrix-lite/state/persistent-chat/operational-synthesis/directed/index.json
- actionable notices: /home/matrix-lite/state/persistent-chat/operational-synthesis/notices.jsonl
- findings: /home/matrix-lite/state/persistent-chat/operational-synthesis/findings.jsonl
- hypotheses: /home/matrix-lite/state/persistent-chat/operational-synthesis/hypotheses.jsonl
- actions: /home/matrix-lite/state/persistent-chat/operational-synthesis/actions.jsonl

Recent source freshness:
- latest scheduled synthesis updated 2026-09-10T10:11:24.168523+00:00
- latest directed synthesis updated 2026-06-10T10:13:38.884235+00:00
- curator journal updated 2026-09-07T16:07:14.109491+00:00
Use these pointers for full context; packet excerpts are intentionally capped.

## Extended tools manifest
Extended tools (lazy proxy; not injected in normal turns):
- Search: duckduckgo, searxng, brave-search via matrix_lite_extended_tools extended_tool_describe/call.
- Browser: playwright via proxy for interactive web/page inspection.
- Vision: matrix_lite_vision via proxy for image analysis; dezgo_image is listed as disabled until credentials/runtime are available.
- Approvals: approval_policy via proxy for explicit human approval workflows.
- If argument details are unclear, call extended_tool_describe(name) first; then extended_tool_call(tool, arguments, server="").
- Full per-tool schemas are intentionally hidden until requested to keep session context lean.

## Continuity summary
Structured decision state:
- Matrix-lite persistent-chat memory runtime [active]: Canonical persistent-chat memory now lives under /home/matrix-lite/state/persistent-chat; prompts/pages/runtime use Matrix-lite app/workspace paths, not legacy OpenClaw paths. Fast heartbeat produces packets; slow model heartbeat curates durable memory/reflection. (files=/home/matrix-lite/state/persistent-chat/perpetual-log.jsonl, /home/matrix-lite/app/scripts/persistent-chat-memory, /home/matrix-lite/app/scripts/persistent-chat-model-heartbeat, /home/matrix-lite/app/matrix_lite/daemon.py; verified=Fast heartbeat and prompt/page deployment verified after Matrix-lite migration cleanup.)

## Tail policy
- Normal continuity comes from OpenCode loadSession; this packet intentionally omits chat transcript tail.
- For exact chronology, inspect model-friendly log: /home/matrix-lite/state/persistent-chat/model-conversation-log.jsonl
- Canonical fallback log: /home/matrix-lite/state/persistent-chat/perpetual-log.jsonl