openai/codex · error · anyhow::Error
memory summary artifact does not start with v1: {}
Error message
memory summary artifact does not start with v1: {} What it means
Error "memory summary artifact does not start with v1: {}" thrown in openai/codex.
Source
Thrown at codex-rs/memories/write/src/workspace.rs:75
let memory_path = root.join("MEMORY.md");
let memory_metadata = tokio::fs::metadata(&memory_path).await.with_context(|| {
format!(
"read consolidated memory artifact {}",
memory_path.display()
)
})?;
anyhow::ensure!(
memory_metadata.is_file(),
"consolidated memory artifact is not a file: {}",
memory_path.display()
);
let summary_path = root.join("memory_summary.md");
let summary = tokio::fs::read_to_string(&summary_path)
.await
.with_context(|| format!("read memory summary artifact {}", summary_path.display()))?;
anyhow::ensure!(
summary.lines().next() == Some("v1"),
"memory summary artifact does not start with v1: {}",
summary_path.display()
);
Ok(())
}
pub(crate) async fn remove_memory_symlinks(root: &Path) -> std::io::Result<usize> {
let mut directories = vec![root.to_path_buf()];
let mut removed = 0;
while let Some(directory) = directories.pop() {
let mut entries = tokio::fs::read_dir(directory).await?;
while let Some(entry) = entries.next_entry().await? {
let path = entry.path();
let file_type = entry.file_type().await?;
if file_type.is_symlink() {View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/memories/write/src/workspace.rs:75 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/b89c98caa9c58c10.
Report an issue: GitHub.