docs(agents): capture review-derived coding patterns - #2951
Merged
Conversation
Codify recurring findings from the personal-archiving reviews (context permission attribute, node_type string vs int, per-user resolved API state, migration naming, access-loss cleanup, portable upserts, Vue 3 store guards) so future changes follow them from the start. Assisted-by: ClaudeCode:claude-fable-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
blizzz
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends AGENTS.md with coding patterns distilled from the review feedback by @enjeck and @samin-z on the personal-archiving PR #2476, so future contributions get these details right from the start instead of rediscovering them in review.
Added to the Architecture Patterns section:
typeParam: 'context', never an integerNODE_TYPE_CONTEXT.tables_shares.node_typestores strings while other tables store integer constants; always convert viaConversionHelper, never compare directly.PermissionsServicefirst.IDBConnection::setValues()instead of read-modify-write or vendor-specific SQL.Added to the Frontend section:
findIndex()results against-1in Pinia store actions; on Vue 3, direct array index assignment is reactive, so nosplice()workarounds.🖼️ Screenshots
Not applicable — documentation-only change (AGENTS.md).
🏁 Checklist
/backport to stableX.X🤖 AI (if applicable)
AI disclosure: This change was AI-assisted — written with Claude Code (model
claude-fable-5) and reviewed by the human contributor before submission.🤖 Generated with Claude Code