Skip to content

fence 1c: require Mask's mechanism, not just its properties - #62

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/fence-1c-mask-mechanism
Aug 28, 2026
Merged

AdaWorldAPI merged 1 commit into
mainfrom
claude/fence-1c-mask-mechanism

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

CodeRabbit posted this on #60 44 seconds before that PR merged, so it landed against an already-merged head. I merged into a review I hadn't read.

The finding, verified before touching anything

Fence 1c required at each top-level facade call and not atomic. Those are properties a rewrite can keep while deleting what they are properties of.

Measured — this note passes 38/38:

"Both halves are checked at each top-level facade call, and neither is not atomic with respect to a concurrent close."

False about RowStore, naming no mechanism at all, fence green.

Why I missed it, which is the part worth recording

I did disable-test 1c before merging #60, and reported to the operator that the concern was "disproven". My disable deleted the Mask bullet — which removed the two required phrases along with the mechanism, so it went red. That proved deletion is caught. CodeRabbit's case is rewrite.

A disable proves the path it walks and no other.

Instance eleven taught that a disable must not be wider than the regression. Twelve adds that it must not be narrower in kind: deletion and rewrite are different regressions, and a fence can catch one while missing the other.

Found while fixing it — the same defect one function over

generation-checked registry wraps in the doctrine, so the new assertion could not have matched on raw lines. The whitespace/case normalization was written for fence 1b and simply not carried to 1c when 1c was built. It surfaced only because a later assertion happened to need a phrase that wraps. 1c now folds exactly as classJavadocOf does.

Disable run

assertion disable observed
the note names Mask's mechanism gut the mechanism, preserve both phrases the new assertion fires alone

Gate: 360 checks, 0 failures (was 359).

Note on #61

#61 (batched arc entries) carries a line saying the residual claim was tested and does not hold. That is now half-wrong and is corrected there before it merges — the entry stays, restated.


Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved validation of doctrine documentation so required wording is recognized across line wrapping and capitalization differences.
    • Added checks ensuring documentation accurately describes re-validation behavior and RowStore’s unchecked state.
    • Strengthened safeguards against malformed documentation rewrites passing validation.

CodeRabbit posted this on #60 forty-four seconds before that PR merged, so
it landed against an already-merged head. Fixed here.

Verified before changing anything: a note reading "Both halves are checked
at each top-level facade call, and neither is not atomic" -- false about
RowStore, naming no mechanism at all -- passed 38/38. The two required
phrases are properties a rewrite can KEEP while deleting what they are
properties OF.

This breaks the rule the previous instance established, one entry later. I
disabled 1c by DELETING the Mask bullet, saw red, and reported the
requirement protected. Deleting the bullet removed the two phrases along
with the mechanism, so the test proved only that deletion is caught. A
disable proves the path it walks and no other: eleven taught that a
disable must not be wider than the regression, twelve adds that it must
not be narrower in kind.

Found while fixing it: fence 1c never received the normalization written
for 1b. "generation-checked registry" wraps in the doctrine, so the new
assertion could not have matched on raw lines. The identical defect one
function over, surfaced only because a later assertion needed a phrase
that happened to wrap. 1c now folds whitespace and case exactly as
classJavadocOf does.

Disable-run, red-then-green on the case that matters: gut the mechanism
while preserving both phrases -> the new assertion fires alone.

Gate: 360 checks, 0 failures (was 359).
@cursor

cursor Bot commented Aug 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6bc0dd0e-fd7d-46c0-99fe-ad232bace0dd)

AdaWorldAPI pushed a commit that referenced this pull request Aug 28, 2026
The entry said a review's residual concern was tested and did not hold. My
test deleted the Mask bullet, which removed the two required phrases along
with the mechanism, so it proved only that deletion is caught. The real
case is a rewrite preserving both phrases -- measured, 38/38 green.

Struck in place rather than rewritten, since the wrong version is the
point: a disable proves the path it walks and no other, and I reported a
claim disproven on a test that could not have seen it.

Corrected before this PR merges rather than after, because the entry would
otherwise enter the durable record asserting the opposite of what #62
establishes.
@AdaWorldAPI
AdaWorldAPI merged commit dbac826 into main Aug 28, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 96825e0f-8a56-4a9a-888a-b0ca73e41c3a

📥 Commits

Reviewing files that changed from the base of the PR and between 97f25c5 and 5df9a10.

📒 Files selected for processing (2)
  • .claude/board/ISSUES.md
  • java/src/test/java/com/adaworldapi/lancegraph/DoctrineFenceTest.java

📝 Walkthrough

Walkthrough

The doctrine fence test now normalizes extracted Markdown text and verifies wording for Mask’s re-validation mechanism and RowStore’s unchecked epoch. The issues ledger records deletion-only coverage, rewrite regressions, timing concerns, and missing whitespace normalization.

Changes

Doctrine fence validation

Layer / File(s) Summary
Normalize doctrine note text
.claude/board/ISSUES.md, java/src/test/java/com/adaworldapi/lancegraph/DoctrineFenceTest.java
The test strips lines, collapses whitespace, and lowercases the extracted Markdown note.
Validate mechanism-specific wording
java/src/test/java/com/adaworldapi/lancegraph/DoctrineFenceTest.java, .claude/board/ISSUES.md
The test requires Mask’s generation-checked registry re-validation wording and RowStore’s unchecked-epoch wording. The ledger records deletion and rewrite coverage gaps.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: claude

Poem

A rabbit checks each folded line

Whitespace falls in place and aligns
Mask’s registry speaks once more
RowStore keeps its unchecked core
Rewrite traps now face the sign
Hop, the fence is clear and fine!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands.

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.

2 participants