chore(memory): LRN-114 worktree loss, durable worktree, V1-2.6 execution ledger
This commit is contained in:
1 parent
8343528be9
commit
7bf1404946
6 files changed
+104
-4
No files matched your search
@@ -785,3 +785,9 @@ Supersedes [[LRN-102]].
|
||||
2. Storage duplicate upload: answers HTTP 400 with body `statusCode: "409"` (KeyAlreadyExists), not HTTP 409. Delete of missing object likewise HTTP 400 + `statusCode` 404. Test/client must read body `statusCode`; any other 400 still fails.
|
||||
3. Sandbox suites share one stack: e2e:shell seeds content-addressed drawings + working copies that later `test` cases meet (duplicate upload, `working_copy.exists`), so a case green only from 2nd run or only after another suite hides defects. Gate run = fresh stack (`db:sandbox down` + `up fresh`), order `test-db → e2e:shell → test`, each case robust to state the earlier suites leave; never re-run until green.
|
||||
**Apply**: never cite TOTP span as a guarantee (measured fact + version); Storage error handling reads body `statusCode`; V1-2.6+ gates start from fresh sandbox in that order, report state-dependent failures instead of masking them.
|
||||
|
||||
## LRN-114 — Worktree in session scratchpad dies with harness cleanup; durable path + tracked ledger (2026-11-04)
|
||||
- **Context**: V1-2 worktree lived in a past session's scratchpad (`/tmp/claude-1000/<project>/<session>/scratchpad/v1-2`). 2026-11-04 13:08 harness cleanup of ended sessions removed it (and other old session dirs) mid V1-2.6 execution.
|
||||
- **Lost**: uncommitted lot H work, uncommitted lot G review fix, git-ignored SDD workspace (briefs, reports, rulings ledger). **Kept**: every commit — pushed by gitflow hooks (origin at 8343528).
|
||||
- **Pattern**: long-running worktree → durable path outside `/tmp` and outside session dirs (now `/home/bchanot/Documents/faunosteo-v1-2`). Rulings, contract changes, findings and resume checkpoints → git-tracked file, committed + pushed after each validated lot. Scratch (SDD briefs/reports) may stay ignored; nothing needed to resume lives only there or in an agent's context.
|
||||
- **Recovery recipe**: `git worktree list --porcelain` → `git worktree prune --dry-run --verbose` (only entries whose dir is gone; check their commits reachable from a branch) → `git worktree prune` → `git worktree add <durable path> <existing branch>` → HEAD = origin, tree clean → `pnpm install --offline`, `pnpm wasm:build` (ignored build outputs).
|
||||
Reference in new issue
Block a user