aboutsummaryrefslogtreecommitdiff
path: root/scripts/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-30 21:48:13 -0500
committerCraig Jennings <c@cjennings.net>2026-05-30 21:48:13 -0500
commit143feda0644d2289954b694f3ce4cee2fc74b808 (patch)
tree539452f3e7a47b24b2e9a0dd9a98e1e9c67f30a3 /scripts/tests
parent9a1bea9bfc066312bf9743dc23c88f191a36cc16 (diff)
downloadrulesets-143feda0644d2289954b694f3ce4cee2fc74b808.tar.gz
rulesets-143feda0644d2289954b694f3ce4cee2fc74b808.zip
feat(session-context): resolve the active path per AI_AGENT_ID
A single .ai/session-context.org races when two agents share a project: each agent's writes clobber the other's session log. I added .ai/scripts/session-context-path, which resolves the active path from AI_AGENT_ID: unset gives the legacy .ai/session-context.org singleton (so every existing one-agent session is unchanged), set gives .ai/session-context.d/<id>.org with the id sanitized to filename-safe characters. This is Codex's Phase 1 slice from the runtime-neutral spec: the race fix on its own, no broader refactor. startup.org's existence check and wrap-it-up.org's rename now resolve through the helper, each with a singleton fallback so older checkouts that haven't synced the script still work. Wrap folds the agent id into the archive name so two agents wrapping in the same minute don't collide. protocols.org documents the rule. Verified with 5 bats cases and a two-agent simulation showing distinct paths per id.
Diffstat (limited to 'scripts/tests')
0 files changed, 0 insertions, 0 deletions