Skip to content

chore: Update knowledge base and persona config#695

Merged
JeanMertz merged 1 commit into
mainfrom
prr258
May 29, 2026
Merged

chore: Update knowledge base and persona config#695
JeanMertz merged 1 commit into
mainfrom
prr258

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

Adds a new "caller-context leak" anti-pattern to the code-comments knowledge file. Doc comments describe what a function promises to any caller; justifying that promise in terms of one specific caller's situation (e.g. --check mode, a wizard's flow) leaks context that the reader doesn't have. The contract should be stated on its own terms, with caller-specific reasoning reserved for a // comment at the call site. A good/bad example pair illustrates the distinction.

The forbidden-words list in the default persona is tightened: the escape clause ("unless there is a very good reason") is removed, and two new entries are added — load-bearing and *em dashes* — keeping the list consistent with observed failure patterns.

Also corrects the architecture knowledge file to reflect that JP is now developed by three human authors rather than one.

Adds a new "caller-context leak" anti-pattern to the code-comments
knowledge file. Doc comments describe what a function promises to any
caller; justifying that promise in terms of one specific caller's
situation (e.g. `--check` mode, a wizard's flow) leaks context that the
reader doesn't have. The contract should be stated on its own terms,
with caller-specific reasoning reserved for a `//` comment at the call
site. A good/bad example pair illustrates the distinction.

The forbidden-words list in the default persona is tightened: the escape
clause ("unless there is a very good reason") is removed, and two new
entries are added — `load-bearing` and `*em dashes*` — keeping the list
consistent with observed failure patterns.

Also corrects the architecture knowledge file to reflect that JP is now
developed by three human authors rather than one.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz changed the base branch from prr257 to main May 29, 2026 20:54
@JeanMertz JeanMertz merged commit e690438 into main May 29, 2026
14 checks passed
@JeanMertz JeanMertz deleted the prr258 branch May 29, 2026 21:25
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.

1 participant