Skip to content

night-shift: weekly self-review report generator (audit log + NIGHT_SHIFT.md) - #6

Merged
syzayd merged 1 commit into
masterfrom
night-shift/2026-07-28
Jul 30, 2026
Merged

night-shift: weekly self-review report generator (audit log + NIGHT_SHIFT.md)#6
syzayd merged 1 commit into
masterfrom
night-shift/2026-07-28

Conversation

@syzayd

@syzayd syzayd commented Jul 28, 2026

Copy link
Copy Markdown
Owner

What

src/personal_llm/review/self_review.py: generate_self_review reads a MemoryStore's audit trail (store.recent_audit, already populated by every existing ingest/ask/remember/... call) plus, if present, the ai-ecosystem Night Shift build log, and renders a deterministic markdown summary via render_self_review_markdown. No model call - different from review/weekly.py's proactive review, which reads memory content and calls a model for insights about what Zaid has been thinking about; this reads the system's own recent activity instead. parse_night_shift_log/recent_night_shift_entries split NIGHT_SHIFT.md on its own ## YYYY-MM-DD heading convention and filter to a day window. Wired to a new self-review CLI command and a night_shift_log_path config setting (defaults to ../NIGHT_SHIFT.md; degrades gracefully to an audit-only report if the sibling repo isn't checked out next to this one, rather than raising).

Why

PROJECT-GENESIS.md section 9 Tier 5 item 37 (aliased Tier 9 item 75); section 6 "AI that designs better AIs" names the audit log and NIGHT_SHIFT.md as its first two self-review data sources.

How verified

  • 19 new tests in tests/test_self_review.py (log-parsing, window filtering, audit summarization, deterministic rendering, real-MemoryStore integration).
  • Full suite: 143/143 green offline (was 124/124; full requirements.txt installed to run the real suite, not skip it).
  • Live-verified against the real ai-ecosystem/NIGHT_SHIFT.md - correctly parsed and day-window-filtered its actual dated entries end to end.
  • README updated: feature bullet, usage example, test-count badge (x2).

…HIFT.md)

What: src/personal_llm/review/self_review.py - generate_self_review reads a
MemoryStore's audit trail (store.recent_audit) plus, if present, the
ai-ecosystem Night Shift build log, and renders a deterministic markdown
summary via render_self_review_markdown. No model call, unlike review/weekly.py
(which reads memory content and calls a model for insights) - this reads the
system's own recent activity instead. parse_night_shift_log/
recent_night_shift_entries split NIGHT_SHIFT.md on its own "## YYYY-MM-DD"
heading convention and filter to a day window. Wired to a new self-review CLI
command and night_shift_log_path config setting (defaults to ../NIGHT_SHIFT.md,
degrades gracefully to an audit-only report if the sibling repo isn't checked
out next to this one).

Why: PROJECT-GENESIS.md section 9 Tier 5 item 37 (aliased Tier 9 item 75);
section 6 "AI that designs better AIs" names the audit log and NIGHT_SHIFT.md
as its first two self-review data sources.

Verified: 19 new tests (143/143 full suite green offline, up from 124, full
requirements.txt installed). Also live-verified against the real
ai-ecosystem/NIGHT_SHIFT.md - correctly parsed and window-filtered its real
dated entries.
@syzayd
syzayd merged commit ef5016b into master Jul 30, 2026
1 check passed
@syzayd
syzayd deleted the night-shift/2026-07-28 branch July 30, 2026 19:53
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.

2 participants