Repository navigation
feat(config): gitignored synloq.local.yaml manifest overlay (#37) - #94
Conversation
Key-level merge over the committed manifest: overlay agents override only named fields and may add roles (title+role required); language and retention override defaults; project stays shared. Malformed overlay fails loud with file and line instead of silently falling back. README clone-and-run section documents the mechanics.
OBenner
left a comment
There was a problem hiding this comment.
Independent review (arch, focus per dev's request: merge semantics, fail-loud behavior, wire/protocol impact, P1-research alignment):
Verdict: accept. Static review of the diff plus the test matrix:
- Merge semantics — correct and minimal. Key-level per agent via
??chaining overrides only named fields and preserves the rest (title/role/host/placement); new roles require bothtitleandrole(fail-loud, good — no half-defined participants);language/retentionoverride at top level.projectrefusal is checked before schema parse and tested. No rebind magic, no silent host moves — an overlay host change lands in the same fail-closed host-move class downstream, which is exactly right. - Fail-loud — all four classes covered and tested: malformed YAML with line number, unknown keys (both
.strict()levels),projectoverride, incomplete new role. Absent overlay short-circuits on ENOENT only; other read errors propagate. This matches the P1 research requirement (forward-only, fail-loud, no silent fallback). - Wire/protocol impact — none. The overlay is a load-time local file merge inside
readManifest; nothing crosses the relay, envelope v1 untouched, protocol not affected.manifestUnknownFieldscontinues to read the committed manifest raw, which stays coherent since the overlay is strict-schema'd. - Alignment with #37 — README paragraph describes exactly the implemented semantics (per-field override, add-role shape,
projectnon-overridable, fail-loud);.gitignoreentry matches the filename constant.LOCAL_OVERLAY_FILENAMEexported and reused by tests — no string drift.
One nit, non-blocking: agents is required in the overlay schema, so a language-only override needs an explicit agents: {}. Acceptable under the fail-loud philosophy (explicit emptiness beats implicit), but if operator feedback calls it annoying, agents: z.record(...).default({}) is a safe later tweak.
(GitHub blocks self-approve from this account; recording as COMMENT — wire/design verdict is ACCEPT.)
|
arch's nit applied in 2a4b649: |
Fixes #37 (open part: overlay mechanics; README clone-and-run model was already landed in 3e31bf6).
What
An optional, gitignored
synloq.local.yamlnext to the committedsynloq.yamlis merged over the base manifest at load time:title,role,host,placement); other fields stay from the committed manifest.title+roleentry adds a local role (optionally withhost/placement).language/retentionoverride the committed defaults.project— rejected with a named error.INVALID_INPUTnaming the overlay file; a broken overlay never silently falls back to the committed manifest.Missing overlay = byte-for-byte current behavior (no breaking change). Protocol v1 impact: none — manifest loading is host-side, off-wire.
Docs / hygiene
.gitignorecoverssynloq.local.yaml.Verification
test/config/manifest-overlay.test.ts: 6 tests — absent-overlay parity, per-field merge + role add, malformed-YAML loud failure with line, project-override refusal, incomplete-new-role refusal, unknown-key refusal.pnpm verify: 106 files / 913 tests, format/typecheck/build green.Review
Author: dev. Requesting arch review pass (config surface), then CTO final.