Add session context state

This commit is contained in:
Oskar Kapala 2026-04-20 22:10:17 +02:00
parent 4064f38b28
commit 12397f6605
3 changed files with 39 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

View file

@ -1 +1,2 @@
Load SESSION_STATE below as full context. Treat it as authoritative memory. Continue work accordingly. Load SESSION_STATE below as full context. Treat it as authoritative memory. Continue work accordingly.
Load SESSION_STATE below as full context. Treat it as authoritative memory. Continue work accordingly

37
codex_context.yaml Normal file
View file

@ -0,0 +1,37 @@
SESSION_STATE:
meta:
goal: "Maintain compressed lossless session memory in ./codex_context.yaml"
environment:
cwd: "/home/oskar/projects/homelab-codex-ws"
shell: "zsh"
date: "2026-04-20"
tz: "Europe/Warsaw"
systems:
S1:
name: "session_state"
file: "./codex_context.yaml"
format: "YAML"
root: "SESSION_STATE"
ops:
save: "overwrite after every meaningful change/decision"
load: "on startup if file exists"
export: "print file content only"
import: "load user-provided YAML"
constraints:
- "lossless"
- "compressed"
- "valid_yaml"
- "no_fluff"
- "dedupe"
- "use_ids"
- "never_delete_unless_explicit"
- "no_confirm_on_save"
configs: {}
decisions:
D1: "No prior codex_context.yaml existed; initialized state file."
D2: "User requested commit; include current repo changes: ./codex_context.yaml, ./.gitignore, ./codex_context."
D3: "Git commit created with message: Add session context state."
todos:
T1: "For all future meaningful changes/decisions, update and overwrite ./codex_context.yaml."
T2: "DONE: Commit current changes."
issues: {}