Repository navigation
docs: correct C-126 — the rule IS in the document, and a negative grep was taken as evidence - #373
Merged
Merged
Conversation
…p was taken as evidence
The views-appwrite session corrected this within the day. The rule
"Assert the value that arrives, never that a name exists" is §3.1 rule 2 of
docs/ADRs/platform/key_inventory_and_rotation.md, in the body, at the commit this
register pinned. Verified here before correcting: line 195 at 419b6e9, line 210 at
23cdf21, so the entry now cites the section and rule number and forbids citing a
line number.
Why it was recorded as a commit subject instead. The search was
`git grep -n "assert the value that arrives"` — case-sensitive, for the wording of
the commit SUBJECT ("not that a name exists"), against a body that says "NEVER that
a name exists" and starts the rule with a capital A. Two near misses in one command,
returning a confident "no match" on text that was there. That is rule 2 restated as
a search: the command reported on the name of the thing rather than the thing. The
defect recorded is not the wrong citation; it is that a negative grep result was
taken as evidence.
Two things on that branch since the pin change what this entry must say:
- d1d43cb attaches a PROHIBITION to rule 2 — verification must not render the value,
and a digest is not an escape hatch, because a short secret's digest is
brute-forceable. This matters for us specifically: assert_env_declared is safe to
log precisely because it never reads the value, and a well-meant change applying
rule 2 without the prohibition would remove that. Verified today that we already
satisfy it and that test_the_environment_refusal_logs_names_and_never_values pins
the consequence with a sentinel secret — and recorded that the test guards the
OUTPUT, not the property.
- 48f3747 adds the COUNTERWEIGHT — applying rule 3 destroys information, since a
mistyped key and an unset key then arrive as the same absence (views-models C-202).
This entry endorsed the unset on the asymmetry argument, so it must carry the price
of that endorsement rather than recommend the rule alone.
23cdf21 records this repository's structural immunity as a guard shape to copy, for
the reason this entry already gave: it parses rather than greps, and the shell's grep
skips .gitignore-matched paths. Our own mis-citation is that hazard in milder form.
The count of four instances stays relayed, not checked. We have measured two.
views-appwrite reports checking two itself at views-models d05f050d and labels the
rest read, so nobody has claimed four as measured.
No code change. Suite unchanged: 654 passed, 3 skipped, 41 xfailed, 1 pre-existing
failure (the poetry.lock drift, views-models#757). Ruff clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
views-appwrite added our generalisation to §3.1 as `8c6685a`: "a negative result from a search is evidence about the search, not about the code." Verified here at that commit WITH A POSITIVE CONTROL, case-insensitively, on a short distinctive fragment — which is the practice the lesson prescribes, and the practice whose absence produced the mis-citation this entry records. That session reports it closed a gap in its own records: the grep-skips-.gitignore note was filed as a tooling quirk and §3.1 as a credential hazard, and they are one shape. Both near misses are recorded there, theirs and ours, on the grounds that one alone reads as carelessness and two read as a mechanism. Same reason this entry keeps its own. Pin 23cdf21 -> 8c6685a; "three further commits" -> five. Re-checked here rather than relayed: §3.1's heading (line 145) and rule 2's numbering (line 210) are unchanged across all five commits since the original pin — only line numbers moved, which is why this entry already forbids citing one. No code change, no new ask: this rides on the existing PR #373. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
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.
No code change. Corrections to register entry C-126, all made the same day the entry landed, after the views-appwrite session pointed out the first one.
The correction
C-126 claimed the rule "assert the value that arrives, not that a name exists" appeared in no file and cited it as a commit subject. That was wrong. It is §3.1 rule 2 of views-appwrite
docs/ADRs/platform/key_inventory_and_rotation.md, in the document body, present at the commit this register had already pinned:Verified here before correcting: line 195 at
419b6e9, line 210 at23cdf21. The entry now cites §3.1 rule 2 and says explicitly not to cite a line number.Why it was missed, which is the part worth keeping
The search was:
Case-sensitive, for the wording of the commit subject ("not that a name exists"), against a body that says "never that a name exists" and opens the rule with a capital
A. Two near misses in one command. It returned a confidentno matchon text that was present, and that result was then written into the register as a finding.The views-appwrite session reports its own first search missing the same line for the adjacent reason — lowercase
assertagainst a capitalised sentence.That is rule 2 restated as a search: the command reported on the name of the thing rather than on the thing, and both sides believed it. So the defect recorded in the entry is not the wrong citation. It is that a negative grep result was taken as evidence — which is the same class as this register's cluster O, and the reason the entry already praises a guard that parses rather than greps.
Two things on that branch since the pin, both of which change what the entry must say
d1d43cb— a prohibition is attached to rule 2, and it protects our codeThe document states that verification must not render the value, and that a digest is not an escape hatch: a short secret's digest is brute-forceable, so emitting one emits the secret slowly. Rule 2 therefore means comparing in memory against what the loader recorded it set — "the comparison's output is a name and a verdict."
This matters for
assert_env_declaredspecifically. It is safe to log a refusal naming the missing variables only because it never reads the value, whileCONNECTION_ENVcarries a secret slot. A well-meant change applying rule 2 to it without reading the prohibition would take that property away.Verified today that we already satisfy it, and that the consequence is guarded:
tests/test_env_declaration.py::test_the_environment_refusal_logs_names_and_never_valuessets a sentinel secret, triggers the refusal, and asserts the sentinel reaches no log record and the name of the set secret does not appear at all. The entry records that this test guards the output, not the property — reading values there is permitted by the rule; emitting them is what the test forbids.48f3747— the counterweight, which the entry cannot omitApplying rule 3 — treat whitespace as absent and
unsetthe name — destroys information: a mistyped key and a key nobody set then arrive downstream as the same absence. The platform's only remaining copy of that distinction is the loader's own report, which is why views-models registered C-202 with a test requiring its blank and absent messages to stay distinguishable.This register endorsed that
unset, on the asymmetry argument — the loader has read the value and this package deliberately has not, so the check belongs where the information is. So the entry must carry the price of its own endorsement rather than recommend the rule alone.Smaller corrections
419b6e9→23cdf21. The entry now says the pin and the line numbers move, and that the stable handles are views-appwrite PR Sync main: views-pipeline-core 3.0.0 — six register entries close #217 and§3.1 rule 2.23cdf21records this repository's structural immunity as a guard shape to copy — because the guard forbids the mechanism rather than the symptom, and because it parses rather than greps, which matters here since the shell'sgrepskips.gitignore-matched paths. Noted, with the observation that our own mis-citation is that same hazard in milder form.d05f050dand labels the remainder read, so nobody has claimed four as measured and this entry does not either.Verification
Suite on the supported interpreter (3.11.15): 654 passed, 3 skipped, 41 xfailed, unchanged, plus the one pre-existing failure — the
poetry.lockdrift tracked as views-models#757. Ruff clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9