tests: split checkpoint-save-resume into context-save + context-restore E2Es

Renames the combined E2E test to match the new skill split:
- checkpoint-save-resume → context-save-writes-file
  Extracts the Save flow from context-save/SKILL.md, asserts a file
  gets written with valid YAML frontmatter.
- New: context-restore-loads-latest
  Seeds two saved-context files with different YYYYMMDD-HHMMSS
  prefixes AND scrambled filesystem mtimes (so mtime DISAGREES with
  filename order). Hand-feeds the restore flow and asserts the newer-
  by-filename file is loaded. Locks in the "newest by filename prefix,
  not mtime" guarantee.

touchfiles.ts: old 'checkpoint-save-resume' key removed from both
E2E_TOUCHFILES and E2E_TIERS maps; new keys added to both. Leaving a
key in one map but not the other silently breaks test selection.

Golden baselines (claude/codex/factory ship skill) regenerated to match
the new preamble routing rules from the previous commit.
This commit is contained in:
Garry Tan
2026-04-18 16:42:52 +08:00
parent b9ebc1f3f2
commit daaec21c2c
5 changed files with 143 additions and 41 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ Key routing rules:
- Design system, brand → invoke design-consultation
- Visual audit, design polish → invoke design-review
- Architecture review → invoke plan-eng-review
- Save progress, checkpoint, resume → invoke checkpoint
- Save progress, save state, save my work → invoke context-save
- Resume, where was I, pick up where I left off → invoke context-restore
- Code quality, health check → invoke health
```
+2 -1
View File
@@ -205,7 +205,8 @@ Key routing rules:
- Design system, brand → invoke design-consultation
- Visual audit, design polish → invoke design-review
- Architecture review → invoke plan-eng-review
- Save progress, checkpoint, resume → invoke checkpoint
- Save progress, save state, save my work → invoke context-save
- Resume, where was I, pick up where I left off → invoke context-restore
- Code quality, health check → invoke health
```
+2 -1
View File
@@ -207,7 +207,8 @@ Key routing rules:
- Design system, brand → invoke design-consultation
- Visual audit, design polish → invoke design-review
- Architecture review → invoke plan-eng-review
- Save progress, checkpoint, resume → invoke checkpoint
- Save progress, save state, save my work → invoke context-save
- Resume, where was I, pick up where I left off → invoke context-restore
- Code quality, health check → invoke health
```