Skip to content

Validate memory consolidation artifacts before succeeding - #32193

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ac57b2ba9d062c5203ca51afd716795a91814bb3
Jul 10, 2026
Merged

Validate memory consolidation artifacts before succeeding#32193
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ac57b2ba9d062c5203ca51afd716795a91814bb3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 10, 2026

Copy link
Copy Markdown

Validate memory consolidation artifacts before succeeding

Why

A completed Phase 2 agent run does not guarantee that its required outputs were
created correctly. Treating a clean workspace as success can also preserve a
state where those outputs are missing.

What changed

  • Require MEMORY.md to be a file and memory_summary.md to start with v1
    before marking consolidation successful.
  • Fail completed runs with invalid artifacts without resetting the workspace
    baseline, allowing the job to be retried.
  • Run consolidation for a clean workspace when its required artifacts are
    invalid instead of taking the no-change success path.

Testing

Added coverage for rejecting an invalid summary and retrying a clean workspace
whose consolidation artifacts are missing.

## Why

A completed Phase 2 agent run does not guarantee that its required outputs were
created correctly. Treating a clean workspace as success can also preserve a
state where those outputs are missing.

## What changed

- Require `MEMORY.md` to be a file and `memory_summary.md` to start with `v1`
  before marking consolidation successful.
- Fail completed runs with invalid artifacts without resetting the workspace
  baseline, allowing the job to be retried.
- Run consolidation for a clean workspace when its required artifacts are
  invalid instead of taking the no-change success path.

## Testing

Added coverage for rejecting an invalid summary and retrying a clean workspace
whose consolidation artifacts are missing.

GitOrigin-RevId: ac57b2ba9d062c5203ca51afd716795a91814bb3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ac57b2ba9d062c5203ca51afd716795a91814bb3 branch from 6e02931 to 52c9605 Compare July 10, 2026 15:41
@copyberry
copyberry Bot merged commit 52c9605 into main Jul 10, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ac57b2ba9d062c5203ca51afd716795a91814bb3 branch July 10, 2026 15:42
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants