Skip to content

The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.

Observation writes: read the empty file before an editing tool fills it

Eoghan Hennc678d4c3ff0a
diff --git a/references/observation-log.md b/references/observation-log.md
index 2b8af32..7cceae5 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -1381,7 +1381,10 @@ it: the file is created, it looks superficially right, and parts of its
content have been replaced by the output of commands. Quote the delimiter
(`<<'OBS'`) whenever a shell write is genuinely the only path — a
`set -C` noclobber create has no editing-tool equivalent — and prefer the
-editing tool everywhere else. A quoted heredoc is exact only where the
+editing tool everywhere else. Where the editing tool refuses to write a
+file it has not read in the session, read the empty file the create just
+made before writing the body: the refusal is keyed on that state, and it
+reads like a harness fault rather than a consequence of the create. A quoted heredoc is exact only where the
shell receives the command as typed; on a host whose shell tool rewrites
it in transit (`environments.md`, "Windows hosts: what reaches the shell
and the file"), the body goes through the editing tool. Where the shell is that only path, write the