Skip to content

fix(config): strip _-prefixed doc keys from merged config#115

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/strip-underscore-keys-from-merged-config
Jun 23, 2026
Merged

fix(config): strip _-prefixed doc keys from merged config#115
fdaviddpt merged 1 commit into
mainfrom
fix/strip-underscore-keys-from-merged-config

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Closes #64.

config.example.json (_comments) and config.user.example.json (_purpose, _notes) flowed through the jq -s 'reduce ...' merge into the final REMEMBER_CONFIG. Harmless today, but would trip future schema / unknown-key validation.

Fix: append with_entries(select(.key | startswith("_") | not)) to the merge in scripts/lib-memory-dir.sh — strips top-level _* keys post-merge. Convention: _* keys are user-facing docs, never runtime data.

Tests

  • New test_underscore_keys_stripped (TDD: seen red before fix, green after)
  • Full suite: 477 passed, 41 skipped, 98% coverage

_comments/_purpose/_notes from example configs flowed through the jq
merge into REMEMBER_CONFIG. Filter top-level _* keys post-merge so
future schema/unknown-key validation isn't tripped. Convention: _* are
user-facing docs, never runtime data.

Co-Authored-By: Max <noreply>
@fdaviddpt fdaviddpt merged commit b880859 into main Jun 23, 2026
12 checks passed
@fdaviddpt fdaviddpt deleted the fix/strip-underscore-keys-from-merged-config branch June 23, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strip _-prefixed keys from merged config

1 participant