Apply queued Actions on peoplemind sync --once #123
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
peoplemind sync --onceapplies queued Actions, the same as the long-runningsyncprocess.Context
graph.drain_actions, gate ruling 9 of the #78 spec). The worker runs only insidesync.run_forever(sync.py), becausecli.pyleft the #78 write set to keep it within the 16-file scope ceiling.cli._sync(cli.py:47-64) runs one source pass forsync --onceand calls no drain. A manualsync --oncetherefore leaves Actionsqueueduntil the next long-running pass.syncwithout--once(compose.yaml:5,deploy/k8s/base/deployment.yaml:59), so production is not affected.Scope
cli._sync, callgraph.drain_actionsafter the source passes, whencfg.authhas at least one write entry. Print the lines it returns.sync --onceoutput stays byte-identical.Acceptance criteria
peoplemind sync --onceisappliedafter it, and the command prints oneaction=N kind=K state=Sline for it.sync --onceoutput test passes unchanged.Blocked by
⏸ SVD architect gate: dev/people-mind-mcp#123 apply-queued-actions-on-peoplemind-sync-once
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261105T202741Z-635439a2Held because: CLEAN but 2 open risk(s) (1 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
3099b59, before the first edit, runuv run python3 -m pytest -m "not integration" tests/test_vcard_sync.py tests/test_config_cli.py tests/test_carddav.py tests/test_mailmind.py tests/test_mailpeer.py tests/test_embed.py tests/test_actions.pyand record the failure set. After the change, assert the set is unchanged and that both new -k sync_once tests pass. make check must be green in CI. [verification]Change: In cli._sync (src/people_mind_mcp/cli.py:47-64), after the source loop (ends line 58) and before sync.load_embedder (line 59), add the guarded drain mirroring sync.run_forever's startup drain at src/people_mind_mcp/sync.py:722-724:
if cfg.auth and cfg.auth.write_entries(): for action_line in drain_actions(conn, cfg, salt, now=now()): print(action_line). Extend the name import at cli.py:19 with drain_actions. Add no try: StoreError/sqlite3.Error reach main's existing handlers (cli.py:149-154). Replace README.md:79's "sync --once does not drain them" clause. Add two CLI tests to tests/test_actions.py: one uses seeded_store (auth=True) plus the alias() helper and expects oneaction=N kind=link.alias state=appliedline and state applied; one uses make_config() with no auth and expects no action= line and state queued.Files:
src/people_mind_mcp/cli.py·README.md·tests/test_actions.pyDecision: accept the 2 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-05-apply-queued-actions-on-peoplemind-sync-once.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-05-apply-queued-actions-on-peoplemind-sync-once.mdspec-verify-dispatch Half B for dev/people-mind-mcp#123 apply-queued-actions-on-peoplemind-sync-once completed integration verify.
cee336e0e7codex-svd ship --run-id 20261105T204446Z-08261838 --confirm-merge)