Skip to content

feat(loop): a journal issue per day, with the body as the summary - #5

Merged
Ardnived merged 1 commit into
mainfrom
claude/daily-journal
Aug 30, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/daily-journal

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • One ops-journal issue per day, found by title and label instead of a hardcoded number in config
  • The issue body carries the day's rolling summary; comments stay the per-run append-only log
  • reflect now reads the week's open journals and closes them

Changes

  • workflow/skills/loop-run/SKILL.md — rung 6 rewritten; the addendum section is replaced by body-rewrite guidance
  • workflow/skills/reflect/SKILL.md — reads label:ops-journal is:open, closes them last
  • loop-config.json — journalIssue/journalIssueNote replaced by a journal block with no issue number in it

Contract impact

Changes the loop's own memory format. Brought forward from Phase 4 because closing the monthly journal (as requested) would otherwise leave rung 6 writing to a closed issue.

Test results

  • Lean gate: ✓ claude plugin validate ./workflow --strict passes

Manual verification

  1. Next loop run creates Ops journal — YYYY-MM-DD in claude-workflow, unassigned, labelled ops-journal
  2. A second run the same day appends a comment and rewrites the body rather than adding a second entry to it

Notes for reviewer

This retires the addendum rules. They existed only because the MCP surface can create comments but not edit them, so a correction could never be made where the reader looks. With the summary in the body, the loop corrects in place and the comment stands as the record of what that run believed at the time.

No issue number in config. The old design stored journalIssue: 2 and had rung 6 open next month's issue and edit the config in the same PR. Finding today's by title and label removes that whole path.

Closing the monthly journal forced this forward from Phase 4: rung 6 pointed at
a hardcoded `journalIssue: 2`, so closing that issue would have left the loop
with nowhere to write.

One issue per day, found by title and label rather than by a number in config —
so nothing needs updating when the day rolls over, and the old
"open next month's issue and edit the config in the same PR" dance disappears.
Created lazily: no issue on a day the loop does nothing. The date is a Vancouver
date, because keying to UTC splits each local day across two issues.

The real gain is that the body is editable and a comment is not. Comments stay
the append-only per-run log; the body is rewritten every run to hold the day's
rolling summary and, crucially, a current `Awaiting you`. That retires the
addendum machinery, which existed only because a correction could not be made
where the reader looks — the loop now fixes the summary in place and leaves the
comment as the historical record of what that run believed.

reflect reads `label:ops-journal is:open` for the week and closes them last,
after its PR is open: a crash midway should leave the journals intact, since
they are the only input it cannot reconstruct.

Co-Authored-By: Claude Opus 5 <[email protected]>
@Ardnived
Ardnived merged commit 342fdcc into main Aug 30, 2026
@Ardnived
Ardnived deleted the claude/daily-journal branch August 30, 2026 18:52
@Ardnived Ardnived mentioned this pull request Aug 30, 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