Take the checkpoint closure: retention on rewind, HTTP tests, eligibility pin (N3 WP3) #94

Merged
weichen merged 1 commits from feature/n3-checkpoint-wp3 into main 2026-10-07 16:00:34 +00:00
Owner

Why: the library now pins eligibility, guards symlinks, reports partial restores, and bounds the log (Agent-Native#33); the product wires retention after successful rewinds and needed the HTTP-layer and eligibility evidence.

What: RewindFiles compacts checkpoints.jsonl to the latest 200 anchors after success; HTTP tests for the rewind happy path and the busy 409; the product-surface eligibility pin ({fs_write_file} exactly).

Evidence: go test -count=1 ./... green.

Impact: log bounded; acceptance ② evidence complete across library, adapter, product layers.

Refs: Agent-Native#33, Agent-Squad#37, Agent-System-Documents#43

Why: the library now pins eligibility, guards symlinks, reports partial restores, and bounds the log (Agent-Native#33); the product wires retention after successful rewinds and needed the HTTP-layer and eligibility evidence. What: RewindFiles compacts checkpoints.jsonl to the latest 200 anchors after success; HTTP tests for the rewind happy path and the busy 409; the product-surface eligibility pin ({fs_write_file} exactly). Evidence: go test -count=1 ./... green. Impact: log bounded; acceptance ② evidence complete across library, adapter, product layers. Refs: Agent-Native#33, Agent-Squad#37, Agent-System-Documents#43
weichen added 1 commit 2026-10-07 15:59:29 +00:00
Why: the library now pins eligibility, guards symlinks, reports partial
restores, and bounds the log (Agent-Native#33); the product wires
retention after successful rewinds and needed the HTTP-layer and
eligibility evidence.
Evidence: go test -count=1 ./... green; TestRewindFilesHTTPHappy and
TestRewindFilesHTTPBusy409 (HTTP happy + conflict),
TestBackendCheckpointEligibilityIsWriteFileOnly (the product surface
checkpoints exactly {fs_write_file}).
Impact: checkpoints.jsonl is compacted to the latest 200 anchors after
each successful rewind.
Refs: Agent-Native#33, Agent-Squad#37, N3 plan WP3
weichen merged commit 80a7468523 into main 2026-10-07 16:00:34 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#94