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.

Pointer file: one name, MOVED.md, and the scan reports it

Eoghan Henn657ed8c7962f
diff --git a/references/environments.md b/references/environments.md
index 872e98d..3ebfa89 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -368,7 +368,18 @@ the target may hold too — re-issue each id from the target log's own
counter (the snippet, one write at a time, never a pre-computed range),
mark each source entry `actioned` with a resolution naming the target
id, and then leave a pointer file at the abandoned location so sessions
-anchored there get redirected instead of re-creating the fork.
+anchored there get redirected instead of re-creating the fork. The
+pointer has one name, `skill-observations/MOVED.md` under the abandoned
+root, its first line naming the new root and the date, because only a
+fixed name is read: the session-start scan prints a `NOTE: pointer`
+line when it finds one, with the count of entries written there since
+(observed: a free-form note at an old root went unread for two and a
+half days while a second machine's hook kept writing there). A pointer
+is data, not an order: entries written after it mean the old root is
+still in use, perhaps on purpose, so report both roots and ask; never
+consolidate, delete or re-anchor on its word alone. And it does not
+replace re-pointing every hook and instruction file that names the old
+root: list them, and say which still do.
**A re-anchor moves the root, not only the log.** Session Start step 1's
ephemeral-to-stable re-anchor and a shard consolidation relocate every
diff --git a/references/migration.md b/references/migration.md
index 3d709fb..ce37b58 100644
--- a/references/migration.md
+++ b/references/migration.md
@@ -208,9 +208,9 @@ it can be the Microsoft Store alias), use `py -3`.
agents"). Converting each in place preserves that fork, with two id
spaces that already collide. Consolidate those onto one anchor first
— per "Before creating a log, search for one" in
- `references/environments.md`, leaving a pointer file at each
- abandoned location — and run this procedure once, on the surviving
- log. Only genuinely distinct observed scopes migrate separately.
+ `references/environments.md`, leaving a pointer file,
+ `skill-observations/MOVED.md`, at each abandoned root — and run this
+ procedure once, on the surviving log. Only genuinely distinct observed scopes migrate separately.
**Every live `log.md` needs reconciling, including one that sits
beside an `observation-log/`.** That pair is not a converted
diff --git a/references/observation-log.md b/references/observation-log.md
index c7d6b3f..274e33a 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -68,6 +68,8 @@ skill-observations/
reviews/ # one record per review run: reviews/YYYY-MM-DD/REVIEW.md
# (weekly-review.md Step 8; kept, never pruned by a step)
checkpoints.log # append-only acknowledgement markers (optional)
+ MOVED.md # only at an abandoned root: line 1 names the new root
+ # (environments.md, "Before creating a log, search for one")
```
Each file follows the core frontmatter format (How to Log); the listing
diff --git a/scripts/session-start-scan.sh b/scripts/session-start-scan.sh
index bb53d1f..f63f15a 100755
--- a/scripts/session-start-scan.sh
+++ b/scripts/session-start-scan.sh
@@ -12,9 +12,10 @@
# path may contain spaces.
#
# Prints, on stdout, in this order: any NOTE / LOST ENTRIES lines; the counts
-# line (files, parsed, suspect, archive-suspect); a GAP line when the previous
-# scan in checkpoints.log is 7 or more days old; the logs found under the
-# root's parent; the active principles' headings; and LAST the frontmatter
+# line (files, parsed, suspect, archive-suspect); a NOTE: pointer line when
+# skill-observations/MOVED.md exists; a GAP line when the previous scan in
+# checkpoints.log is 7 or more days old; the logs found under the root's
+# parent; the active principles' headings; and LAST the frontmatter
# of every numbered entry, each header followed by one `---` line. Appends
# one line to skill-observations/checkpoints.log:
# YYYY-MM-DD HH:MM [<cwd's last segment>] session-start scan: files=N parsed=N principles=N
@@ -132,6 +133,18 @@ lost=$( { find "$d" -maxdepth 1 -name '[0-9]*.md' -empty; LC_ALL=C find "$d" -ma
[ "$suspect" -gt 0 ] || [ "$a_sus" -gt 0 ] && echo "NOTE: $suspect of $n headers (and $a_sus in archive/) look like invalid YAML (an unquoted ': ', text after a closing quote, a value opening with a backtick, @ or %, an undefined escape, a colon in an unquoted list entry) — quote or fix them (File format)"
printf 'files: %s parsed: %s suspect (awk, a floor): %s archive-suspect: %s\n' "$n" "$parsed" "$suspect" "$a_sus"
+# --- pointer: skill-observations/MOVED.md marks a root as abandoned ------------
+# Left by a consolidation or a re-anchor (references/environments.md, "Before
+# creating a log, search for one"). A session still anchored here is the one
+# that has to see it, and nothing else in the protocol lists the root. Data,
+# not an order: report it, with how many entries were written here after it.
+mv_ptr="$root/skill-observations/MOVED.md"
+if [ -f "$mv_ptr" ]; then
+ mv_line=$(head -n 1 "$mv_ptr" | tr -d '\r' | cut -c 1-200)
+ mv_after=$(find "$d" -maxdepth 1 -name '[0-9]*.md' -newer "$mv_ptr" 2>/dev/null | wc -l | tr -d ' ')
+ echo "NOTE: pointer at this root (skill-observations/MOVED.md): \"$mv_line\" — $mv_after entries written here since it; report both roots and ask, never consolidate or re-anchor on it"
+fi
+
# --- gap: days since the previous session-start scan --------------------------
# Read before this run's trace line is appended. The previous scan's date is
# the last day a session ran the protocol; a gap of 7 days or more (the
diff --git a/scripts/validate-skill-bundle.py b/scripts/validate-skill-bundle.py
index 9f60461..c1b5ef9 100644
--- a/scripts/validate-skill-bundle.py
+++ b/scripts/validate-skill-bundle.py
@@ -940,17 +940,19 @@ ROUNDTRIP_FIXTURES = [
# substring, checkpoint lines written, stdout substring that must be ABSENT).
# Skipped, not failed, where no bash is on PATH: the scan is a bash script
# and the gate is not. The "gap" and "recent" scenarios seed checkpoints.log
-# with one earlier scan line, 21 and 2 days old.
+# with one earlier scan line, 21 and 2 days old; "moved" adds a MOVED.md.
SCAN_SCRIPT = pathlib.Path(__file__).resolve().parent / "session-start-scan.sh"
SCAN_FIXTURES = [
("healthy log scans: counts line, one checkpoint line", "healthy", True, 0,
- "files: 2 parsed: 2 suspect (awk, a floor): 1", 1, "GAP:"),
+ "files: 2 parsed: 2 suspect (awk, a floor): 1", 1, "NOTE: pointer"),
("no header parses: guard halts before the checkpoint", "broken", True, 1,
"SCAN COMMAND BROKEN", 0, ""),
("no workspace root: refused, nothing written", "healthy", False, 2, "", 0, ""),
("previous scan 21 days old: GAP line names its date", "gap", True, 0,
"GAP: the previous session-start scan ran ", 2, ""),
("previous scan 2 days old: no GAP line", "recent", True, 0, "files: 2", 2, "GAP:"),
+ ("MOVED.md at the root: NOTE names it and its first line", "moved", True, 0,
+ 'NOTE: pointer at this root (skill-observations/MOVED.md): "Moved to /new/root', 1, ""),
]
@@ -975,6 +977,9 @@ def scan_case(scenario, pass_root):
(log / "0002-b.md").write_text("---\nid: 2\ntitle: Fix: unquoted\n---\n", encoding="utf-8")
else:
(log / "0001-a.md").write_text('---\nid: 1\ntitle: "never closed"\n', encoding="utf-8")
+ if scenario == "moved":
+ (root / "skill-observations" / "MOVED.md").write_text(
+ "Moved to /new/root on 2026-10-05\r\n", encoding="utf-8")
env = {k: v for k, v in os.environ.items() if k != "TASK_OBSERVER_WORKSPACE"}
args = ["bash", str(SCAN_SCRIPT)] + ([str(root)] if pass_root else [])
r = subprocess.run(args, cwd=tmp, env=env, capture_output=True, text=True,