[codex] Add ULW resume snapshots#94
Conversation
|
Thanks for the PR! Changes to LazyCodex land through oh-my-openagent — could you open this against omo-codex over there instead? PRs in this repository can't be merged. This PR was closed because it changes source-code paths in this repository: If you're working with a coding agent, prompt it like this:
|
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| - | - | Generic High Entropy Secret | 0fd751e | plugins/omo/components/ulw-loop/test/snapshot-redaction.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Summary
Adds repo-native ULW resume snapshots and surfaces safe snapshot handoff context from
start-work-continuation.ulw-loopnow writes bounded, redacted.omo/ulw-loop[/<session-id>]/snapshots/latest.mdfiles after successful state mutations.latest.mdif refresh fails after a durable mutation.start-work-continuationreads only matching, relevant, safe snapshots and includes a bounded next-action block in the Stop hook directive.Why
codex resumecontinues prior Codex conversation state, but a fresh session may not have the previous transcript. This adds a repo-native task-state handoff so a new session can resume from ULW goal/criteria/evidence state without storing raw transcripts or secrets.Security and data minimization
Next Actiontext, including quote/backtick-wrapped role markers and override/tool-call bait.Validation
From
plugins/omo:Additional verification completed locally:
latest.mdon simulated snapshot refresh failure.Known pre-existing issue
The full
@code-yeongyu/codex-ulw-loopsuite is still red on main due to unrelated quality-gate fixture failures. I filed this separately as:The failure was observed on baseline
d4c4f05before this change and is isolated toquality-gate-doc.test.ts/quality-gate.test.tswith:This PR's focused/touched snapshot and start-work tests pass.
Summary by cubic
Adds repo-native ULW resume snapshots and surfaces a safe next-action handoff in the Start-work Stop hook so new Codex turns can resume without prior transcripts. This keeps handoff minimal, redacted, and bounded.
New Features
@code-yeongyu/codex-ulw-loop: Writes redacted, size-bounded snapshots at.omo/ulw-loop[/<session-id>]/snapshots/latest.mdafter successful mutations using temp-file+rename, preserving the previous snapshot on refresh failure.@code-yeongyu/codex-ulw-loop: Snapshots summarize goal status, criteria counts, pending items, short evidence excerpts, changed files (git porcelain), and one next action; secrets and injection text are stripped.@code-yeongyu/codex-start-work-continuation: Reads only matching, in-workspace snapshots and injects a minimal block with snapshot path and next action into the Stop-hook directive; ignores malformed, oversized, mismatched, or unsafe snapshots and falls back to Boulder-only context.Migration
ulw-loopcommands and the Stop hook consumes them automatically when safe.--session-idorOMO_ULW_LOOP_SESSION_IDto match the Codex session id; this complementscodex resumeand does not replace it.Written for commit 0fd751e. Summary will update on new commits.