Skip to content

feat: narrative worklog - LLM session summaries#10

Merged
George-iam merged 1 commit intomainfrom
feat/narrative-worklog-20260406
Apr 6, 2026
Merged

feat: narrative worklog - LLM session summaries#10
George-iam merged 1 commit intomainfrom
feat/narrative-worklog-20260406

Conversation

@George-iam
Copy link
Copy Markdown
Contributor

Summary

  • Auditor now writes a compressed narrative summary of each session to .axme-code/worklog.md
  • Format matches the manually maintained WORKLOG.md in axme-local-internal: ## date -- Session ID: title + markdown bullet points
  • axme_context includes the last 5 entries from worklog.md so new sessions see recent history
  • Existing worklog.jsonl (machine events) is untouched

Changes

  • session-auditor.ts: new ###SESSION_SUMMARY### section in AUDIT_PROMPT, parsed into sessionSummary field, merged in chunked path
  • session-cleanup.ts: appends narrative entry to worklog.md after successful audit
  • context.ts: reads last 5 entries from worklog.md into axme_context output under "Recent Session History"

Test plan

  • 12/12 unit tests (parsing: full/empty/missing summary, context inclusion)
  • 7/7 E2E test with real LLM audit (worklog.md created with narrative content)
  • Build clean

Instead of machine-readable JSONL events, the auditor now writes a
compressed narrative summary of each session to .axme-code/worklog.md.
Format matches the manually maintained WORKLOG.md in axme-local-internal:
date, session ID, bullet points of what was built/fixed/verified.

Changes:
- AUDIT_PROMPT: new ###SESSION_SUMMARY### section (language matches session)
- session-auditor.ts: parse sessionSummary, merge in chunked path
- session-cleanup.ts: append entry to worklog.md after audit
- context.ts: include last 5 worklog entries in axme_context output

The existing worklog.jsonl remains for machine events (session_start/end).
worklog.md is the human-readable timeline for cross-session continuity.
@George-iam George-iam merged commit 48f7ef7 into main Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant