Reserve action and config as Source names #148
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#148
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?
What to build
Reserve
actionandconfigas names a Source cannot take.Local rows use
source='action', and Owner configuration rows useconfig.config.py:165and:172accept any name that matches the Source-name pattern, so a Source namedactionis possible. The #105 gate (ruling D6, operator word "Accept") found that manual Interactions are still safe, because theirevent:ref, NULLsource_recordand themessage:scope keep every Source-keyed delete away from them. Other local rows rely on the name alone.Acceptance criteria
actionorconfigwith a clear error at load.Blocked by
None.
Agent Brief
Category: enhancement
Summary: Configuration refuses a Source named
actionorconfig.Current behavior:
Every Source kind (
vcard,carddav,mailmind) accepts any name that matches the Source-name pattern^[a-z0-9][a-z0-9_-]{0,31}$. Two names already have a meaning in the store. Local rows written by Actions usesource = 'action'. Owner Handles from configuration usesource = 'config'. A Source with either name would share rows with them, and a Source-keyed delete or re-sync could remove local or Owner rows.The issue body names only the
vcardandcarddavmodels. ThemailmindSource model uses the same pattern, so it needs the same rule.Desired behavior:
Loading a configuration with a Source named
actionorconfig, of any kind, fails with aConfigError. The error names the offendingsources.<i>.namelocation, in the same style as the existing configuration errors. Every other valid name still loads.Key interfaces:
SourceConfig, the discriminated union of the three Source models: one shared reserved-name rule that covers all three kinds.Acceptance criteria:
vcard,carddavormailmindSource namedactionorconfigis refused at load with a clear error that names the location.Out of scope:
actionandconfigsource values.⏸ SVD architect gate: dev/people-mind-mcp#148 reserve-action-and-config-as-source-names
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
additive· dispatch effortlowRun:
20261107T215718Z-1745f447Held because: CLEAN but 3 open risk(s) (2 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
6aaedf9, before the first edit, run uv run python3 -m pytest tests/test_config_cli.py tests/test_carddav.py tests/test_server.py -m 'not integration' and then make check. After the change the failure set must be unchanged except for the new passing tests, and CI check must be green on the PR. [verification]Change: In src/people_mind_mcp/config.py, add RESERVED_SOURCE_NAMES = frozenset({"action", "config"}), a typed _unreserved_source_name(value: str) -> str that raises ValueError("reserved-source-name"), and SourceName = Annotated[str, Field(pattern=LABEL_PATTERN), AfterValidator(_unreserved_source_name)]. This mirrors the FeedConfig.consumers Annotated[str, Field(pattern=LABEL_PATTERN)] shape at config.py:146. Use name: SourceName in VCardSourceConfig (:165), CardDAVSourceConfig (:172) and MailmindSourceConfig (:191); the literal regexes at :165 and :172 are identical to LABEL_PATTERN. Import AfterValidator on the pydantic line at :9. A field-level validator puts the error at sources...name, which load_config (:242-255) already turns into ConfigError('config-validation', locations). load_config, cli, the store and every Source-name reader stay unchanged.
Files:
src/people_mind_mcp/config.py·tests/test_config_cli.pyDecision: 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-07-reserve-action-and-config-as-source-names.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-07-reserve-action-and-config-as-source-names.mdspec-verify-dispatch Half B for dev/people-mind-mcp#148 reserve-action-and-config-as-source-names completed integration verify.
1fa1c736a8python3 -m pytestfails collection without the project env (No module named phonenumbers); verified throughuv run, which provisions it.Co-Authored-By: gpt-6.1-terratrailer. This is not a blocker.codex-svd ship --run-id 20261107T222932Z-c6701772 --confirm-merge)