fix(doctrine): final-review wave — Supabase/functions pointers say Read before a new file, graphify/API/ship-feature wording
This commit is contained in:
1 parent
1c14e31db9
commit
789a2b2027
5 files changed
+16
-12
No files matched your search
+3
-2
@@ -284,5 +284,6 @@ office-hours…) are gone: use the fallback above, else say so.
|
||||
Threshold: graphify from 200 tracked code files, never below (banner line
|
||||
`graphify? N code files ≥ 200, no graph` informs, the user decides; never
|
||||
build or `graphify claude install` without that go). With a graph
|
||||
(`graphify-out/graph.json`): `graphify query` before raw grep,
|
||||
`graphify update .` after code edits; the session banner prints the rest.
|
||||
(`graphify-out/graph.json`): `graphify query` before raw grep on
|
||||
codebase-wide questions, `graphify update .` after code edits; the session
|
||||
banner prints the rest.
|
||||
@@ -256,7 +256,7 @@ if [ -n "$GRAPHIFY_HINT" ]; then
|
||||
fi
|
||||
# CLAUDE.global.md line-count guard (anti-regression, BDR-062): warn past
|
||||
# 320. BDR-125 phase 1 moved Design work, the graphify usage and the
|
||||
# architecture defaults to their carriers (333 → ~285 lines).
|
||||
# architecture defaults to their carriers.
|
||||
if [ -n "$REPO_DIR" ] && [ -f "$REPO_DIR/CLAUDE.global.md" ]; then
|
||||
_claude_lines=$(wc -l < "$REPO_DIR/CLAUDE.global.md")
|
||||
if [ "$_claude_lines" -gt 320 ]; then
|
||||
|
||||
@@ -44,6 +44,6 @@ CLI, systems and tooling; the exception stays scoped to the part that
|
||||
earned it.
|
||||
|
||||
## Web APIs — always versioned
|
||||
Every endpoint `/api/v1/...` from day one; breaking change → `v2`, the old
|
||||
version keeps working. Full rule: `~/.claude/rules/rest-api.md` § Versioning
|
||||
(loads on API files).
|
||||
Every endpoint `/api/v1/...` from day one, the router mirrors it
|
||||
(`api/v1/routes/`); breaking change → `v2`, the old version keeps working.
|
||||
Full rule: `~/.claude/rules/rest-api.md` § Versioning (loads on API files).
|
||||
@@ -39,8 +39,9 @@ never claimed done: write it as a manual step in the project's deploy notes.
|
||||
comments carry no token, hash, key or secret.
|
||||
|
||||
## 4. Supabase
|
||||
- RLS on every table, never a service_role or secret key client-side. Full
|
||||
domain: rules/supabase.md (loads on Supabase files).
|
||||
- RLS on every table, never a service_role or secret key client-side.
|
||||
Full domain: ~/.claude/rules/supabase.md; Read it before writing a
|
||||
migration, policy or client (a new file's Write loads no path rule).
|
||||
|
||||
## 5. SMS and email
|
||||
- Prior consent recorded per contact: who, when, channel, source, wording.
|
||||
@@ -49,5 +50,6 @@ never claimed done: write it as a manual step in the project's deploy notes.
|
||||
SMS says STOP, and a STOP reply is processed and stored automatically.
|
||||
|
||||
## 6. Cloud functions
|
||||
- Max instances and a timeout on every function, never a self-trigger. Full
|
||||
domain: rules/cloud-functions.md (loads on function files).
|
||||
- Max instances and a timeout on every function, never a self-trigger.
|
||||
Full domain: ~/.claude/rules/cloud-functions.md; Read it before
|
||||
writing a function (a new file's Write loads no path rule).
|
||||
@@ -111,8 +111,9 @@ not the raw request alone:
|
||||
Brainstorm WITHIN these — don't re-explore a direction an in-force BDR rejects or a
|
||||
BLK already closed."
|
||||
When the feature picks a language, a framework or an API shape, Read
|
||||
`~/.claude/lib/architecture-defaults.md` first and add its defaults to the
|
||||
in-force constraints.
|
||||
`~/.claude/lib/architecture-defaults.md` first and add to the in-force
|
||||
constraints the defaults whose Scope applies (an existing codebase keeps its
|
||||
language).
|
||||
Inject ONLY what constrains: the NON-BINDING count does NOT enter the brainstorm input
|
||||
(the injection inherits the OUTPUT filter — detail what binds, drop what doesn't).
|
||||
Consumption = INPUT INJECTION (we can't modify the external skill; we control its input).
|
||||
|
||||
Reference in new issue
Block a user