vCard-only sync runs forever on an interval #25
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#25
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?
Parent: #1. Records: ADR 0004.
What to build
peoplemind sync --config …without--onceexits 2 withsync without --once needs a carddav or mailmind source(cli.py). A deployment with only vCard Sources therefore has no long-runningsynccontainer:/healthz/syncgoes stale afterapi.max_lag_secondsand the embedding worker never runs. The #9 acceptance run works around this with a test-only--onceoverride.run_foreverloop for vCard Sources too: re-import each configured file or directory on a[[sources]] interval_seconds(default 900, minimum 60, the CardDAV shape), skipping unchanged files by mtime and size so an unchanged pass writes nothing.cli.pywhen every Source is a vCard Source; keep it when there is no Source at all.run_forever, so it starts for vCard-only deployments once the refusal is gone.Acceptance criteria
syncwithout--onceand only vCard Sources stays up; a changed.vcfis picked up on the next interval and/healthz/syncstays green.changesrows and no feed events.--onceoverride.Blocked by
Filed by the architect at the #9 gate (2026-11-01), Open Risk 2.
⏸ SVD architect gate: dev/peoplemind-mcp#25 vcard-only-sync-runs-forever-on-an-interval
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:
20261101T205319Z-9b084172Held because: CLEAN but 3 open risk(s) (1 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
make test-integrationon the host. Expect test_compose_up_health_green_with_vcard_fixture and test_litestream_restore_passes_check to pass with the sync override removed, andcompose psduring the run to show sync as running, not exited. If the dispatch worktree has no engine, the PR must say 'integration deferred'. [verification]Change: 1. config.py: add
interval_seconds: int = Field(default=900, ge=60)to VCardSourceConfig (config.py:113-116), copied from CardDAVSourceConfig (config.py:127).2. vcard.py: give VCardSource._cards (vcard.py:124-156) an in-memory per-file cache keyed by Path and holding (st_mtime_ns, st_size, parsed cards, block_unreadable).
worker(sync.py:119-136, the pattern to mirror) to accept an optional prebuilt source. A prebuilt source waits its interval first. Start onesync-<name>thread per vCard Source alongside the carddav, mailmind and embed threads.not cfg.sources, printing 'Error: sync without --once needs a source'.Files:
src/peoplemind_mcp/config.py·src/peoplemind_mcp/sources/vcard.py·src/peoplemind_mcp/sync.py·src/peoplemind_mcp/cli.py·tests/test_vcard_sync.py·tests/test_config_cli.py·tests/test_carddav.py·tests/test_mailmind.py·tests/test_deploy.py·README.mdDecision: accept the 3 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-01-vcard-only-sync-runs-forever-on-an-interval.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-vcard-only-sync-runs-forever-on-an-interval.mdArchitect gate: CLEAN, approved for dispatch (2026-11-02)
Half-A run
20261101T205319Z-9b084172on main1ffffcb: verdict CLEAN, 0 blocking defects, no degraded or inconclusive lenses, complexity standard. Approved spec:2026-11-01-vcard-only-sync-runs-forever-on-an-interval.mdin the exhaust worktree, with eight Agent Adjustments.Shape.
VCardSourceConfiggainsinterval_seconds(default 900, minimum 60, the CardDAV line).VCardSourcecaches parsed cards per file by(st_mtime_ns, st_size)so an unchanged pass does onlystat, while every file's cards still enter the snapshot so Amendment 1 deletion detection keeps working.run_foreverstarts one worker per vCard Source (reusing the boot instance, wait first).cli.pyrefuses only with zero Sources. The #9 fixture drops its--onceoverride.Open risks ruled:
make test-integrationunder podman on a scratch worktree before merge, and checks thesynccontainer stays running.sync_logrow per vCard pass is kept so/healthz/syncstays green; "writes nothing" means nochangesrows and no feed events.Host baseline pasted (fast lane 151 passed, 2 skipped; static suite 252 passed).
tests/test_embed.pyjoins the write set only if itsrun_forevertest races.Operator: paste
svd:goto release Half-B.spec-verify-dispatch Half B for dev/peoplemind-mcp#25 vcard-only-sync-runs-forever-on-an-interval completed integration verify.
60114e330960114e3: absent60114e3: Forgejo commit statuses empty (absent, no CI history). Local: ruff, ruff format and mypy clean; 258 passed, 5 skipped, 4 deselected. Integration deferred to a container host.60114e3: The commit statuses endpoint for60114e3returned [] (authenticated read); no required check has any run in its history. No tracking pointer exists for this repo. — reported as absent, not blocking (gh#633)codex-svd ship --run-id 20261101T210627Z-63b362b7 --confirm-merge)