Skip to content

Commit b0afa4d

Browse files
committed
docs(runtime): cite the real test file in the share-link mirror docblock
The mirror's docblock told the next reader that the two spellings of `isPublicSharingEnabled` are held equal by pins in `share-links-probe-policy-gate.test.ts`. `git ls-tree -r` has zero entries for that name anywhere in the repo — the pins are in `share-links-enforcement-context.test.ts`, in this same directory. This lands on the change's own thesis: a security property stated in a comment is worth having only if the next reader can follow the comment to the thing that holds it. A citation to a file that does not exist is the same defect class the gate itself closes, one layer up. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AUF1NoViznQK32gqpK8wS8
1 parent 261cfb8 commit b0afa4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/runtime/src/domains/share-links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import type { DomainHandlerDeps, DomainRoute } from '../domain-handler-registry.
4949
* than imported because `@objectstack/plugin-sharing` is a **dev** dependency
5050
* of this package: importing it here would invert the dependency direction to
5151
* make one boolean read shared. The two spellings are held equal by the pins
52-
* in `share-links-probe-policy-gate.test.ts` on this side and
52+
* in `share-links-enforcement-context.test.ts` on this side and
5353
* `share-link-eligibility.test.ts` on the other, which assert the SAME
5454
* observable answer on both surfaces rather than trusting the copy.
5555
*

0 commit comments

Comments
 (0)