End-of-day sweep: pull all queued session snapshots into the log, check every project for missing documentation, commit everything.
Resolve journal path:
JORNAL="${JORNAL:-$HOME/para/areas/dev/gh/ak/journal}"Get today's date and time. Derive log path:
$JORNAL/areas/log/YYYY/YYYY-MM/YYYY-MM-DD.md Create it if
missing using the daily log template:
# YYYY-MM-DD
## Focus
- what the day is about
## Log
## Tasks created
## DecisionsRead $JORNAL/workqueue.md. If it doesn't exist or
has no ## entries, skip to step 5.
Group workqueue entries by project slug (slug = last segment
after — in the ## header line). Date
handling: entries may span multiple days. For each slug group:
a. Synthesize all entries into a coherent arc summary. b. If all entries
are from today, append to today's log under ## Log. If any
entries are from prior days, label them as a backfill:
### Sessions HH:MM (<slug> — N sessions, backfilled from YYYY-MM-DD to YYYY-MM-DD)
And note in the output: "Backfilled N sessions from
### Sessions HH:MM (<slug> — N sessions)
- synthesized bullet points covering what changed across sessions
- **Arc:** what was accomplished overall
- **Next:** final continuation point
If ## Log does not exist in the file, append the section
header before the entry. d. Update projects/<slug>.md
or areas/<slug>.md (whichever exists) if tasks were
completed or created:
[x][ ][~] waiting itemsRead all project files: $JORNAL/projects/*.md (skip
_index.md). Read all area files:
$JORNAL/areas/*.md (skip _index.md). Slug =
filename without .md extension.
For each file, check:
[ ] tasks?### Session* (<slug> (any date in today's log, any
session count), OR was a workqueue entry for this slug processed in step
4?For undocumented projects/areas: add a reminder to
$JORNAL/inbox.md:
- YYYY-MM-DD — [<slug>] has open tasks but no session logged todayClear the work queue — remove all entries dated on or before today. Entries dated after today are preserved as-is. Algorithm:
## YYYY-MM-DD HH:MM — <slug> block: if
the date ≤ today, remove it (including its trailing
---).# Work Queue
Sessions captured with /next — processed by /close or /wrap-up.
---# Work Queue header is
never removed.Commit:
cd "$JORNAL" && git add workqueue.md inbox.md areas/log/ projects/ areas/ && git commit -m "log: YYYY-MM-DD wrap-up"Wrap-up: YYYY-MM-DD
Sessions processed (from work queue)
<slug>: N session(s) — one-line arc summary
(note if backfilled)Undocumented projects (open tasks, no session today)
<slug>: N open tasksInbox additions (if any)