Skip to content

Record the compound-anchor finding as guidance in INV-022 - #22

Merged
junixlabs merged 1 commit into
mainfrom
anchor-guidance
Sep 10, 2026
Merged

junixlabs merged 1 commit into
mainfrom
anchor-guidance

Conversation

@junixlabs

Copy link
Copy Markdown
Owner

Closing note from a five-round review exchange, kept because it is the one finding neither side could have produced alone.

Two independently designed layers, both measured rather than eyeballed:

locators/edges anchored dotted
TraceOS 41 36 0
an unrelated annotation graph 685 40 0

Both specifications advertise a compound #Class.method anchor. Neither checker verifies it. Nobody in either project has ever written one.

Two tools converging on specified, half-implemented, never used is a property of the affordance rather than a coincidence: a compound anchor is cheap to specify and expensive to verify — verifying it means resolving the symbol, which means parsing the host language — so it gets specified, half-checked, and never written.

Guidance: leave it out of a third implementation. Where one already exists, report which segment was verified rather than narrowing the check (INV-025), because a predicate returning a bool can only overstate or understate, while one returning what it verified can be honest at no cost.

Also promotes the numbered-heading rule into §6.1, where a reader meets it, rather than leaving it in the commit that fixed it: a heading number is a line number wearing a different hat, and it goes stale in silence.

No new invariant — INV-025 already carries the rule. This is the measurement that tells an implementer which way to spend it.

Two independently designed layers, measured: 41 locators / 36 anchored / 0
dotted here, 685 edges / 40 anchored / 0 dotted in an unrelated annotation
graph. Both specifications advertised a compound `#Class.method` anchor. Neither
checker verified it. Nobody in either project had ever written one.

Two tools converging on specified-half-implemented-never-used is a property of
the affordance, not a coincidence: a compound anchor is cheap to specify and
expensive to verify, because verifying it means resolving the symbol, which
means parsing the host language. So it gets specified, half-checked, and never
used.

The guidance is to leave it out of a third implementation. Where one exists,
report which segment was verified rather than narrowing the check (INV-025) - a
predicate returning a bool can only overstate or understate, while one returning
what it verified can be honest at no cost.

Also states the numbered-heading case here rather than only in the commit that
fixed it: a heading number is a line number wearing a different hat, and it goes
stale in silence.

No new invariant. INV-025 already covers the rule; this is the measurement that
tells an implementer which way to spend it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@junixlabs
junixlabs merged commit 6c84a13 into main Sep 10, 2026
8 checks passed
@junixlabs
junixlabs deleted the anchor-guidance branch September 10, 2026 18:07
jabrailkhalil added a commit to jabrailkhalil/traceos that referenced this pull request Sep 10, 2026
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