Repository navigation
Description
Task ID or area
GH-C07
Technical direction
Core control-plane hardening
Intent
I want to claim an existing task
Summary
I would like to take the smallest current-main slice of GH-C07: characterize concurrent writes to one Goal's Todo state so an add and an update cannot silently lose each other.
The contributor board predates part of the current implementation. add_goal_todo and update_goal_todo now both hold exclusive_file_lock across their read-modify-write sections, while the global registry already has dedicated serialization coverage. The remaining bounded gap is a deterministic regression that drives the real Todo writers against the same state file and proves the per-Goal lock is the shared authority boundary.
Proposed scope
In scope:
- Add one deterministic concurrent add/update regression against a synthetic
ACTIVE_GOAL_STATE.md. - Exercise the real
add_goal_todoandupdate_goal_todoentry points, not a duplicate test implementation. - Prove both accepted mutations remain in the final state with no duplicate Todo identity or lost update.
- If the regression exposes a narrow locking defect, fix it once at the existing shared Todo write boundary.
Out of scope:
- New storage abstractions, lock implementations, revision protocols, or public CLI options.
- Broad refresh/history refactors; those should be separate slices after current-main characterization.
- Changes to Todo selection, claim, lease, validation, quota, or lifecycle semantics.
- Private fixtures, raw sessions, benchmark runs, or external services.
Intended base branch
main
Relevant files or commands
loopx/todos.pyloopx/file_lock.pytests/test_global_registry_write_serialization.py- Focused Todo concurrency test under
tests/
Validation plan
- Run the new concurrency regression repeatedly to check determinism.
- Run the focused Todo test module(s) covering add/update behavior.
python3 -m py_compile loopx/todos.pyloopx canary premerge --from-git-diffgit diff --check
Public/private boundary
- This issue does not include private benchmark traces, verifier output, credentials, internal document links, raw agent sessions, or local runtime state.
- I will not run or duplicate maintainer-owned benchmark cases unless a maintainer explicitly splits out a public task.
I will wait for maintainer confirmation or assignment before implementation.
Activity