Answer stability round 1: 0 🔴, 6 🟡; name no rung without evidence, test the prompt's task, premises and records and the replay's edges, and name a copy and its outcomes file in one module

This commit is contained in:
2026-10-15 09:16:11 +02:00
parent 5d49c24397
commit 015e39ae97
13 changed files with 94 additions and 36 deletions
+3 -3
View File
@@ -3,11 +3,11 @@ import os
import pathlib
import sys
from transcript_archive.location import chunk_folder
from transcript_archive.location import chunk_folder, outcomes_of
from failure import Failure
from transcript_archive.outcomes import FILE_SUFFIX, TASK
from file_writes import make_private, replace_file
from claude_code.session import session_files
from transcript_archive.outcomes import TASK
from utc_stamp import utc
@@ -23,7 +23,7 @@ def archive(project_archive: pathlib.Path, path: str, task: str, outcome: str, a
if sibling != path and (unkept := mirror(pathlib.Path(sibling), folder / "session" / os.path.basename(sibling))):
return unkept
copy = folder / f"{hashlib.sha256(raw).hexdigest()}.jsonl"
outcomes = copy.with_suffix(FILE_SUFFIX)
outcomes = outcomes_of(copy)
stamped = f"{utc(at)} {outcome}"
if copy.exists() and outcomes.exists():
return add_outcome(outcomes, stamped)