Skip to main content

Session Log Manager - Consolidated daily session logging with ISO timestamps.

Creates and appends to daily session logs (UTC-based), tracks session UUIDs, and auto-classifies after updates.

Usage: python3 session_log_manager.py append "Fixed cart API" --issue "..." --fix "..." python3 session_log_manager.py new-session "Commerce API Fixes" python3 session_log_manager.py view --date today python3 session_log_manager.py view --date 2025-12-30

File: session_log_manager.py

Functions

get_utc_now()

Get current UTC datetime.

get_iso_timestamp()

Get ISO 8601 timestamp in UTC.

get_utc_date()

Get current UTC date as YYYY-MM-DD.

find_coditect_root()

Find the coditect-rollout-master root directory.

get_log_dir()

Get the session logs directory, creating if needed.

get_log_path(date)

Get path to session log for given date (default: today UTC).

generate_session_id()

Generate a new session UUID.

create_frontmatter(date)

Create frontmatter for a new session log.

update_frontmatter_timestamp(content)

Update the 'updated' timestamp in frontmatter.

add_session_to_frontmatter(content, session_id, focus)

Add a new session to the frontmatter sessions list.

new_session(focus, classify)

Start a new session in today's log.

append_entry(message, issue, root_cause, fix, files, deployed, classify)

Append an entry to today's session log.

view_log(date)

View the session log for a given date.

run_classify(log_path)

Run /classify on the session log to update frontmatter.

main()

No description

Usage

python session_log_manager.py