Change feed slice B: legend cap, Python pin, config inode, NUL paths and the #54 notes #65
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#65
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?
Slice B of #54. The #54 spec cut the issue into two slices because the whole issue writes about 21 files, over the 16-file limit. #54 closes with slice A (the feed ack lock, secret-value comparison, ruling 2B, the doc items and test gaps 14 to 19). The items below are copied from #54 unchanged. Spec it after slice A merges, because it rewrites
store.py,views.py,startup.pyandtests/test_server.py, which slice A also writes.Should fix
row()caps each cell atLEGEND_CHARS, not the line. A feed page of 100 events from 100 senders gives one legend line of about 6,700 characters; the transcript legend_legendhas the same property. Check this against the README page budget and decide on a cap with a+Ncell.requires-python = ">=3.12"admits 3.13, wherePath.resolve()does not raise on a symlink loop. The image and.python-versionpin 3.12. On 3.13 a looped secret path answerssecret-unreadable, or nothing under a verb that does not open it, and thesecret-path-invalidtest and sentence no longer hold. No path leaks. Fix: pin<3.13, or detectELOOPwithos.statinload_config._refuse_shared_secret_files, or document the limit.store.pathcrashessyncwith a traceback (store.pycreate_private, raised fromopen_writer). This is older than PR #53. CatchValueErrorthere, and checktombstone_pathtoo.Notes
feed_needs_authadds a second, falsefeedlocation when[auth]itself fails validation.kit/secrets.py); README says "owner-only file". This is a*secret*path: operator surface.start < floor) correctly does not. The ADR wording only.Scope notes
kit/secrets.py, a*secret*path. Its merge is T4. The Kubernetes pod copies secrets through init containers (deploy/k8s/base/messagesmind.yaml:27-48), so an owner rule must hold for those copies too.feed_needs_authnote may already be fixed (config.py:211-213). Prove it with a test, or close the note.Acceptance criteria
The operator accepted these decisions on 2026-11-16 ("Yes, do it your way"). Both blockers, #54 and #69, are closed. This issue is now ready for an agent.
Triage decisions (2026-11-16)
Items
views.py:383) and the transcript legend (_legend) atLEGEND_HANDLES(12) handles, with a+Ncell for the rest. Speakers on the page are named first. Add a test: a feed page of 100 events from 100 senders stays inside the READMEmessages_changesbudget. Trade-off accepted: on a page with more than 12 senders, the extra senders show only aspN.requires-python = ">=3.12". Detect a symlink loop withos.stat(ELOOP) wherever a secret path is resolved, and refuse it withsecret-path-invalid. A test makes a looped secret path and asserts the code on the running Python._refuse_shared_secret_files(startup.py). A secret that is a hard link of the config file is refused withsecret-file-sharedand namesconfig.tombstone_pathandtombstone_export_pathincluded. The refusal uses a named code and the config location.checkandsyncboth refuse it, with no traceback.Notes
feed_needs_authfalse location. Add a test that an invalid[auth]gives only theauthlocation. If the test passes on the current code, the note is closed.syncwriter checkpoints. The spec must show that the WAL still has a bound whensyncis not running.start < floor) is correct. Do not edit the ADR. The draft below is for the operator and mind-spec to ratify.ADR wording draft (not applied)
Current text:
Proposed text:
Scope
docs/adr/or.woodpecker/.Blocked by
startup.py; ordered first at the #68 triage)Filed under: operator word "accept / apply svd:go on #54" sha256:bafef2a74a6e
The operator accepted these decisions on 2026-11-16 ("Yes, do it your way"). Both blockers, #54 and #69, are closed. This issue is now ready for an agent.
Decisions
Items
views.py:383) and the transcript legend (_legend) atLEGEND_HANDLES(12) handles, with a+Ncell for the rest. Speakers on the page are named first. Add a test: a feed page of 100 events from 100 senders stays inside the READMEmessages_changesbudget. Trade-off accepted: on a page with more than 12 senders, the extra senders show only aspN.requires-python = ">=3.12". Detect a symlink loop withos.stat(ELOOP) wherever a secret path is resolved, and refuse it withsecret-path-invalid. A test makes a looped secret path and asserts the code on the running Python._refuse_shared_secret_files(startup.py). A secret that is a hard link of the config file is refused withsecret-file-sharedand namesconfig.tombstone_pathandtombstone_export_pathincluded. The refusal uses a named code and the config location.checkandsyncboth refuse it, with no traceback.Notes
feed_needs_authfalse location. Add a test that an invalid[auth]gives only theauthlocation. If the test passes on the current code, the note is closed.syncwriter checkpoints. The spec must show that the WAL still has a bound whensyncis not running.start < floor) is correct. Do not edit the ADR. The draft below is for the operator and mind-spec to ratify.ADR wording draft (not applied)
Current text:
Proposed text:
Scope
docs/adr/or.woodpecker/.⏸ SVD architect gate: dev/messages-mind-mcp#65 change-feed-slice-b-legend-cap-python-pin-config-inode-nul-p
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
substrate· dispatch efforthighRun:
20261115T235304Z-c5d85334Held because: CLEAN but 6 open risk(s) (2 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Item 8: in views.changes (views.py:381-383) name sorted(speakers)[:LEGEND_HANDLES] and append a '+N' cell. This mirrors the +N tail of _legend (views.py:209-212). In _legend (views.py:198-212), cap named speakers at LEGEND_HANDLES (lowest ids), fill with non-speaking members, and make +N count the members and speakers it does not name. Output is byte-identical at 12 speakers or fewer. Item 9: after secret.resolve() in load_config (config.py:258-265), call os.stat and refuse errno ELOOP with secret-path-invalid. Also make startup._refuse_shared_secret_files (startup.py:72-78) raise secret-path-invalid on ELOOP instead of continuing. requires-python stays >=3.12. Item 10: _refuse_shared_secret_files(cfg, config_path) adds os.stat(config_path) dev/ino as 'config' to held, so a hard link answers secret-file-shared at config,. start() passes config_path, and the only other caller, tests/test_config_cli.py:350, is updated. Item 11: an after-mode field_validator on StoreConfig (config.py:55-60) refuses a NUL in path, tombstone_path and tombstone_export_path. It maps to config-validation at store. through the existing ValidationError mapping (config.py:246-255), before host.report, open_writer or path_stat. store.py gets no item-11 change. WAL note: in store._open_guarded (store.py:266-283), run PRAGMA wal_autocheckpoint=0 for open_positions only, before set_authorizer (the guard denies PRAGMA), following the shape of the busy parameter. The close-time checkpoint is kept as the bound when sync is stopped. Docs: README:34/352/399 and SECURITY.md:5/37/64 sentences (the legend cap, the hard link of the config, the symlink loop, the prune clock known limit, no positions auto-checkpoint). Every sentence the doc tests already assert stays as it is.
Files:
src/messages_mind_mcp/views.py·src/messages_mind_mcp/config.py·src/messages_mind_mcp/startup.py·src/messages_mind_mcp/store.py·README.md·SECURITY.md·tests/test_views.py·tests/test_server.py·tests/test_config_cli.py·tests/test_store.py·tests/test_feed.pyDecision: accept the 6 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-16-change-feed-slice-b-legend-cap-python-pin-config-inode-nul-p.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-change-feed-slice-b-legend-cap-python-pin-config-inode-nul-p.mdspec-verify-dispatch Half B for dev/messages-mind-mcp#65 change-feed-slice-b-legend-cap-python-pin-config-inode-nul-p completed integration verify.
e2dd63ce5ae2dd63c; the runner should re-poll.codex-svd ship --run-id 20261116T001024Z-0e6c9321 --confirm-merge)