Wrap-Up

End-of-day sweep: pull all queued session snapshots into the log, check every project for missing documentation, commit everything.

Steps

  1. Resolve journal path:

    JORNAL="${JORNAL:-$HOME/para/areas/dev/gh/ak/journal}"
  2. 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
    
    ## Decisions
  3. Read $JORNAL/workqueue.md. If it doesn't exist or has no ## entries, skip to step 5.

  4. 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 ." c. Use the log entry format:

    ### 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:

  5. Read 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:

  6. For undocumented projects/areas: add a reminder to $JORNAL/inbox.md:

    - YYYY-MM-DD — [<slug>] has open tasks but no session logged today
  7. Clear the work queue — remove all entries dated on or before today. Entries dated after today are preserved as-is. Algorithm:

  8. Commit:

    cd "$JORNAL" && git add workqueue.md inbox.md areas/log/ projects/ areas/ && git commit -m "log: YYYY-MM-DD wrap-up"

Output format


Wrap-up: YYYY-MM-DD

Sessions processed (from work queue)

Undocumented projects (open tasks, no session today)

Inbox additions (if any)


Rules