Skip to content

feat(ts): reach a module-level const through a same-module reader (#13592 B2) - #13719

Merged
effortlessg41[bot] merged 17 commits into
mainfrom
claude/ts-module-const-reach
Nov 17, 2026
Merged

effortlessg41[bot] merged 17 commits into
mainfrom
claude/ts-module-const-reach

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread
Governing issue or accepted claim: #13592
Acceptance delta (one sentence): A non-exported module-level const (regex, string, symbol, lookup object) that a same-module function reads read-only now reaches static_unknown through that reader when a test calls it, instead of a false no_static_path (cause B2).

What changed

  • module_entries.rs: top-level non-function, non-exported const declarators become value nodes of the existing same-module entry graph, with the same MODULE_ENTRY_MAX_HOPS. An edge exists from a function whose text reads the value. Values are never outbound edges, so there is no cross-module const reach.
  • New module_value_reads.rs: a fail-closed read allowlist.
    • Allowed reads: X.test(, X.exec(, X.source, X[key], obj[X], the first argument of replace/match/split/includes and kin, and Set.has.
    • Module-wide rule: every mention of the name outside its declaration must itself be an allowlisted read.
    • These leave no edge: parameters, locals and aliases of the name; passing it along; export { X } and export default X; let/var; assignment, update and delete; destructuring-assignment targets; the first argument of Reflect.*, Object.defineProperty or Object.assign; optional calls (X.push?.(…), X?.(…)); computed-member calls; and navigated call-result writes.
    • Declaration offsets come from the parsed declarator, so multi-declarator const works.
    • The module-wide scan uses a byte-preserving mask, so files with non-ASCII text keep their edges.
  • owners.rs: a ModuleFunction owner carries entries only when it is a followable value node. Factory consts keep their previous reading, with no entry.
  • classifier.rs: a value reached only through a same-module caller with a weak oracle now says so, instead of using the module-initializer/exported-value wording.
  • Cache generation is bumped to 1.177 / 0.179 on top of main's 1.176 / 0.178. TS fact store is 9.
  • RIPR-SPEC-0243: tier-2 reach text, named limits and test mapping. Changelog fragment added.

Verdict contract

This uses the same ModuleEntryCall relation as a helper function. It is admitted only when no test observes the value directly, and it is never exposed.

  • An exact oracle reads static_unknown.
  • A weak oracle reads weakly_exposed with actionability unknown / missing_target_shape. There is no packet and it is not a repair start.

No change to repair starts or validate_agent_gap_record_packet. Cross-module chaining (B1), barrels (B3) and getters (B4) are untouched.

Review

Independent fresh-context reviews, all REVIEW_READY:

  • 807ff19 and its repair c44efa6.
  • The non-ASCII fix e24c357, which covered the café repro, CRLF, alias and write refusal after multi-byte text, and real ufo utils.ts.

Both Devin findings (optional/computed calls, multi-declarators) are repaired and resolved. On the real ufo f06c800 sources, these constants all get reader entries:

  • PROTOCOL_STRICT_REGEX
  • PROTOCOL_REGEX
  • PROTOCOL_RELATIVE_REGEX
  • PROTOCOL_SCRIPT_RE
  • TRAILING_SLASH_RE
  • JOIN_LEADING_SLASH_RE
  • FILENAME_STRICT_REGEX and FILENAME_REGEX

protocolRelative, a symbol used as a computed key, stays fail-closed.

Proof (head e8802a8, main merged in)

  • TS and seam_cache lib tests: 2681 passed.
  • cargo xtask precommit: exit 0.
  • On 070c601: lsp_lifecycle gap_corpus passed (21), xtask rust_corpus_projection passed, and goldens check and verdict-corpus check-all exited 0.
  • w3 reproducer (SLASH_RE %252F->%252X): no_static_path -> static_unknown, with related test decodeThing decodes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

…3592 B2)

A top-level non-function const read by a function a test calls is now a node of
the same-module entry graph, so a changed regex/symbol/lookup object reads
static_unknown through the reader instead of a false no_static_path. Fail-closed
read-only allowlist; any shadow, alias, assignment, let/var or module-wide
mutation shape leaves no edge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 40 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 144 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 0ca93413-af43-4432-b776-bd4f6ca70cbb
Commits

Reviewing files that changed from the base of the PR and between be64de5 and 763ba0e.

Files selected for processing: 37

  • changelog.d/13592-module-const-reach.md
  • crates/ripr/src/analysis/language/typescript/classifier.rs
  • crates/ripr/src/analysis/language/typescript/fact_store.rs
  • crates/ripr/src/analysis/language/typescript/mod.rs
  • crates/ripr/src/analysis/language/typescript/module_entries.rs
  • crates/ripr/src/analysis/language/typescript/module_value_reads.rs
  • crates/ripr/src/analysis/language/typescript/owners.rs
  • crates/ripr/src/analysis/language/typescript/tests.rs
  • crates/ripr/src/analysis/language/typescript/tests/module_value_read_tests.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0243-typescript-oracle-and-reach-rules.md
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-missing-expected.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-wrong-receiver.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-adapter-fed-error.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-branch-local-else-only.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-exact.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-inline.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-literal.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-other.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-settings.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-weak.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-closure-named-like-owner-map.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-ok-assertion-failure-seam.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-collision.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-neutral.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-bare-use.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-glob-use.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-wrapper-fed-error.json
  • xtask/src/tests/rust_corpus_projection.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

- `const[X]`/`let[X]`/`for (const[X] of ..)` is a pattern, not an index access.
- Destructuring-assignment targets and Reflect/Object.defineProperty,
  Reflect.set/deleteProperty first arguments count as writes; a navigated call
  result (`X.get(k).p = 1`) is not a read.
- Fail-closed module-wide rule: every mention outside the declaration must be
  an allowlisted read (aliases, passed values, `export { X }` disable the
  edge) and exported consts are never followed.
- ModuleFunction weak-oracle next step names the same-module caller.
- Scan only values some node mentions; mask each function text once.
- SPEC-0243 wording and changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
…es for module const reach (#13592 B2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Subject: head 5cb66db.

Independent fresh-context review of 807ff19 (read allowlist, shadow/mutation guards, owners.rs scope, hop bound, classifier routes, actionability and packet projection, spec parity) found 5 non-blocking findings; re-review of the repair c44efa6 confirmed all five fixed, each with a discriminating test (const[X] keyword index, destructuring-target/Reflect/defineProperty writes, module-wide all-mentions-are-reads rule with export const excluded, ModuleEntryCall weak-oracle wording, lazy masking). No repair start: weak-oracle findings land at missing_target_shape with no packet; validate_agent_gap_record_packet untouched. Remaining non-blocking items (in-module inner-object alias, fail-closed misses for chained call results and template interpolation) are documented as named limits in b868d0d; they can hide a gap but cannot produce false actionable credit. 5cb66db merges current main (auto-merged TS files); TS lib suite 2389 passed, precommit, goldens check, verdict-corpus check-all and cli_reference_doc exit 0 on that tree. Hosted qualification pending.


Generated by Claude Code

@EffortlessSteven EffortlessSteven self-assigned this Nov 8, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 0aed0bdd6eec · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=7d73d7b9613dcc79083eab66fc894e74abdc0af7 findings=360 gaps=38 infection_unknown=17 no_static_path=62 propagation_unknown=14 reachable_unrevealed=30 static_unknown=171 weakly_exposed=66
weakly_exposed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:235|!bounded(text, idx, name)|missing=Check unconfirmed: no supported assertion that distinguishes the changed behavio…|test=t1|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:predicate:250f6f81
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:224|.chars()|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:917952ce
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:225|.next_back()|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:41ea8b6e
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:226|.is_none_or(\|ch\| !is_javascript_identifier_char(ch));|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:d05e01c0
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:228|.chars()|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:917952ce.2
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:229|.next()|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:07ad6fad
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
reachable_unrevealed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:230|.is_none_or(\|ch\| !is_javascript_identifier_char(ch));|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:call_deletion:d05e01c0.2
stages=reach:yes,infect:yes,propagate:yes,observe:no,discriminate:no
weakly_exposed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:236|return Mention::Absent|missing=No strong discriminator was detected|test=t3|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:return_value:80eb5fdf
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
weakly_exposed|crates/ripr/src/analysis/language/typescript/module_value_reads.rs:240|before.ends_with("...")|missing=Check unconfirmed: no supported assertion that distinguishes the changed behavio…|test=t1|id=probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:predicate:40346792
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
t1=crates/ripr/src/analysis/language/python/imported_call_operator_tests.rs:320 a_call_with_keywords_or_a_test_that_cannot_run_is_not_credited relational_check `assert!( !finding .evidence .iter() .any(|line| line.starts_with("related_test_r…` miss=weak_assertion
t2=crates/ripr/src/analysis/classify/implicit_effect.rs:1581 expansion_surface_scan_vetoes_unknown_forms unknown miss=assertion_admission_unproven
t3=crates/ripr/src/analysis/language/python/verdict_corpus_tests.rs:425 a_bound_local_reads_a_changed_self_field unknown miss=assertion_inert
+29 more gaps not shown; `--format json` lists all
limits=infection_unknown:17,no_static_path:62,propagation_unknown:14,static_unknown:171,weakly_exposed:58
next=ripr explain --root . --base 7d73d7b9613dcc79083eab66fc894e74abdc0af7 --committed --mode draft --format agent probe:crates_ripr_src_analysis_language_typescript_module_value_reads.rs:predicate:250f6f81
verify=refused|outcome=complete_with_findings|findings=360|exposed=0|reason=gaps_remain

Took 210s.

… B2)

- `X.push?.(1)` and `X["push"](1)` are calls: an optional call after a member
  is checked like a plain call, and any call on a computed member is unknown,
  so a mutated const stays unfollowed.
- A later declarator of `const A = 0, TABLE = {}` is recognised from the
  parsed binding offset instead of a text heuristic, so it keeps its edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

# Conflicts:
#	crates/ripr/src/analysis/language/typescript/module_entries.rs
#	crates/ripr/src/analysis/language/typescript/owners.rs
#	docs/specs/RIPR-SPEC-0243-typescript-oracle-and-reach-rules.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
…e-const reach (#13592 B2)

Classified seam cache 1.176, sharded/compact 0.178, TypeScript file fact
store 9, with every pin test, corpus currentness copy, OUTPUT_SCHEMA example
and boundary_gap fixture refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
The shared masker emits one space per character, so any multi-byte character
in a comment or string shifted masked offsets away from the parser's byte
offsets and dropped the declaration exemption, disabling every value edge in
the file. Re-express the mask in source byte coordinates for this scan.

Also: `NAME?.(x)` calling the value is not a read; spec notes module-const
reach is same-module only; seam-cache doc lists carry 1.176 / 0.178.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
Bump the cache generation to 1.177 / 0.179 on top of main's 1.176 / 0.178 (#13592).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Head 070c601 (main merged in). An independent fresh-context review of the fix commit e24c357 found no new findings and gave REVIEW_READY. It covered the byte-preserving mask on non-ASCII and CRLF files, alias and write refusal after multi-byte text, and the real ufo f06c800 utils.ts entries. Both Devin threads are repaired, answered and resolved.

The merge commit resolves only the cache-generation conflict. Main took 1.176 / 0.178, so this PR now bumps to 1.177 / 0.179. The pins are in gap_corpus_currentness.rs, rust_corpus_projection.rs, docs/OUTPUT_SCHEMA.md and the fixture reports.

Local proof on the merge:

  • TS and seam_cache lib tests: 2681 passed.
  • lsp_lifecycle gap_corpus: 21 passed.
  • xtask rust_corpus_projection passed.
  • goldens check and verdict-corpus check-all: exit 0.

The lib tests needed a temporary uncommitted owner_opt_outs patch to compile. Main's lib-test build is broken by #13874, and #13912 is the open fix. For the same reason, cargo xtask precommit exits 1 on that error alone. I'll request qualification once #13912 lands.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm no separate crypto/compression/runtime sibling helper group was implicated by the changed TypeScript module-entry route; related helper behavior is covered by focused module-value tests rather than a broader runtime scan.

Parked follow-ups

  • The remaining inner-object alias limit is a known residual risk, not a sibling-path omission: const x = X.inner; x.a = 2 can evade the textual mutation scan while plain X reads retain an edge.

Evidence gaps

  • The supplied evidence does not include a completed cargo-test receipt, so runtime compilation and all focused regressions remain to be confirmed by the central broker.
  • The always-on cargo-test phase has no completion receipt in the supplied packet, so the broad test-execution claim is not locally evidenced.
  • Model proof intent was rejected by deterministic validation.
  • Late cargo-test evidence is not available, so the claimed passing test suite cannot be independently confirmed from this packet.
  • Unsafe-review found no new unsafe/native gap, while the RI PR sensor failed and cargo-test evidence was not present in the shared packet.
  • Independent execution proof is incomplete: the ripr sensor failed with exit code 2 and cargo-test has no completion receipt in the supplied packet.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Head e8802a8 merges main (including the lib-test fix #13912) into 070c601. The merge is clean, and main is still on cache generation 1.176, so this PR's 1.177 / 0.179 bump stands.

Local proof on the merge, with no temporary patches:

  • TS and seam_cache lib tests: 2681 passed.
  • cargo xtask precommit: exit 0.

The earlier proof on 070c601 still holds: the gap_corpus test, rust_corpus_projection, goldens check and verdict-corpus check-all.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head e8802a81), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Bump the cache generation to 1.178 / 0.180 on top of main's 1.177 / 0.179 (#13592).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G
Compose the TypeScript module-const reader entries (#13592) onto main's
cache line: main moved to 1.181 / 0.183, so this candidate now bumps to
1.182 / 0.184. Carry the bump through the corpus pins (lsp_lifecycle gap
corpus, xtask rust_corpus_projection, OUTPUT_SCHEMA), the boundary-gap
unchanged-after-attempt snapshots (recomputed raw_json_placeholder_v1
commitment, native agent verify/receipt commitments and byte hashes) and
recapture the four honesty reports main held at 1.181. The 21 honesty
reports this branch had moved to 1.178 take main's pinned 1.176 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Head a78303e merges main (60114de) into the approved 0aed0bd. The PR's TypeScript source, tests and spec changes are unchanged; git diff origin/main...HEAD lists the same 9 TS files plus generation and fixture moves.

What the merge changed:

  • The cache generation is now 1.182 / 0.184, on top of main's 1.181 / 0.183. That closes the merge-route note in the 0aed0bd review, so module-const caches are invalidated.
  • Pins moved to 1.182: gap_corpus_currentness.rs, rust_corpus_projection.rs and OUTPUT_SCHEMA.md.
  • The boundary_gap unchanged-attempt snapshots moved to 1.182. Their raw_json_placeholder_v1 commitment, the verify commitments and the receipt byte hashes were recomputed with native ripr agent verify/receipt, the same route as #12801 and #14326. A CHANGELOG entry was added.
  • The four honesty reports main held at 1.181 were recaptured with native ripr check. Their bodies are identical; only the version and artifact lines changed.
  • The 21 honesty reports that main pins at 1.176 were restored to main's bytes. An earlier merge had moved them by mistake.

Local proof on a78303e:

  • lsp_lifecycle gap_corpus: 21 passed.
  • xtask rust_corpus_projection: 5 passed.
  • cli_smoke first_useful_action_corpus_pins_routing_cases: passed. It checks the regenerated snapshots against native output, plus the verify/receipt chain and tamper rejection.
  • goldens check, verdict-corpus check-all (TypeScript 373 cases, 0 false verdicts) and cargo xtask precommit: exit 0.

Not established locally: the ripr lib unit tests. rustc was killed for lack of memory on this box, so that proof is left to hosted qualification.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head a78303e7), so GitHub creates no test-merge ref and no qualification run can start. 1. Merge main into the branch and resolve the conflicts. 2. Remove and re-apply merge-ready to request admission and qualification only. 3. After qualification is green, enqueue the PR through the native queue route; re-applying the label does not enqueue it.

Compose the TypeScript module-const reader entries (#13592) onto main's
branch-local return-value grip (#14496). Main stays on cache 1.181 / 0.183;
this candidate keeps its bump to 1.182 / 0.184. Rebuild the boundary-gap
unchanged-after-attempt snapshots on main's content at 1.182 (recomputed
raw_json_placeholder_v1 commitment, native agent verify commitments and
receipt byte hashes), put the 1.182 golden changelog entry above main's, and
recapture the 13 honesty reports main added at 1.181 (seams unchanged; only
cache generation and producer stamps move).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Head a4b1424 merges main (d6ce4a3) into the qualified a78303e. The TypeScript source, tests and spec are unchanged. Main is still on cache generation 1.181 / 0.183, so this PR's 1.182 / 0.184 bump stands.

What the merge changed:

  • The only conflicts were the boundary_gap first-useful-action fixtures. They now use main's content at 1.182.
  • The snapshot commitments were recomputed with the recommit_repo_exposure_json algorithm, which first reproduced main's commitments exactly.
  • agent-verify.json and the receipt byte hashes come from native ripr agent verify/receipt.
  • The CHANGELOG puts this PR's entry above main's #14496 and #14385 entries.
  • Main's #14496 added 13 honesty reports at 1.181 that report_cache_schema_pins does not pin. They were recaptured at 1.182 with native ripr check; seams and repository are equal to main's, and only the version, analyzer version, hashes and timestamp moved. The pinned 1.167 and 1.176 reports are untouched.

Local proof, all exit 0:

  • cli_smoke first_useful_action_corpus_pins_routing_cases: 1 passed.
  • lsp_lifecycle gap_corpus: 21 passed.
  • xtask rust_corpus_projection: 5 passed.
  • ripr --lib analysis::language::typescript analysis::seam_cache: 2726 passed.
  • goldens check and verdict-corpus check-all (373 TS cases, 0 false verdicts).
  • check-evidence-promotion-honesty and cargo xtask precommit, run on the final head.

Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
VERDICT: APPROVE a4b1424 — no blocking findings on this head.

Terminal verdict for the head covered by my source attestation in review 5913255107 (2026-11-15T22:29Z). This pass confirms the head has not moved and adds its remote evidence; the source judgment is unchanged.

  • Head a4b14247 merges main d6ce4a32 into the previously approved a78303e7. The 9 TypeScript source/test/spec files are unchanged; the only conflicts were boundary-gap first-useful-action fixtures, which now carry main's content at cache generation 1.182, and the snapshot commitments were recomputed by recommit_repo_exposure_json. The PR's 1.182 / 0.184 bump stands and seam_cache.rs, gap_corpus_currentness.rs and OUTPUT_SCHEMA.md agree with it.
  • Hosted evidence on this head: Rust gates, all four Rust test shards, shard verify and Ripr Rust Small Result are SUCCESS; Graphite mergeability, Graphite AI Reviews and GitGuardian are SUCCESS; CodeRabbit completed. mergeable: MERGEABLE, mergeStateStatus: CLEAN.
  • Threads: both prior devin-ai-integration threads are resolved and outdated; none open.
  • Source proof recorded at this head (from the attestation pass, not re-run here): cli_smoke first_useful_action_corpus_pins_routing_cases 1 passed, lsp_lifecycle gap_corpus 21 passed, xtask rust_corpus_projection 5 passed, ripr --lib analysis::language::typescript analysis::seam_cache 2726 passed, goldens check, verdict-corpus check-all (373 TS cases, 0 false verdicts), check-evidence-promotion-honesty and cargo xtask precommit.
  • Qualification: the head is behind current main; the merge route handles restacking, and base movement alone does not change this verdict.

Static only: no build, no test run, no checkout. Repository left clean; no push, label, merge, body edit or thread change.

Copy link
Copy Markdown
Member Author

Ready to enqueue: head a4b1424 has full hosted qualification green (Rust gates, 4 test shards, Ripr Rust Small Result), mergeable state is clean, and it has a current-head APPROVE with no open threads. This session cannot add PRs to the merge queue because of its permission policy. Any owner with queue access can enqueue head a4b1424 as-is. The same applies to #13735 at 86b449c.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 16, 2026
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Admitted to the native merge queue at a4b14247 — position 38, QUEUED, enqueued 2026-11-16T14:01:06Z.

Conditions checked at that exact head: current VERDICT: APPROVE (review 5921171895) with zero unresolved threads; Admit PR Candidate and Ripr Rust Small Result pass on run 43769573214; MERGEABLE/CLEAN.

The head was unchanged since attestation 5913255107 (merge of main d6ce4a32; cache gen 1.182/0.184), and both prior threads are resolved.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026

Copy link
Copy Markdown
Member Author

Queue evidence update (2026-11-17 UTC): native merge-group 43988041523, integration 455998c334c9dc945b1662f4bd960af5f540eb6c over main be64de54218f09764494c1ecd6e86c5701ee4111, failed the Evidence promotion honesty step at 00:49. Source admission was a4b142473386a05802ae2fefc821a89bc035092c.

The job reports fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json records cache schema 1.181, while this integration's analyzer is 1.182. This is an integration evidence mismatch, not a transient runner error; the prior source-head qualification does not discharge it. A future owner repair needs producer-backed recapture or a justified historical-generation pin, then fresh exact-head review and protected validation. No report was hand-edited, branch modified, or duplicate CI dispatched in this inspection.

Downstream queue groups for #14674 and #13735 have already regenerated without this failed integration (43991056331 and 43991057712). No immediate merge or gate bypass attempted.

Copy link
Copy Markdown
Member Author

Dequeued with CI_FAILURE. In merge-group run 43988041523, check-evidence-promotion-honesty failed. Main added honesty reports at 1.181 after this head, for example rust-repo-exposure-guarded-boundary-guard-missing.json from #14873, and this PR's analyzer is at 1.182. A fix is in progress on this branch: merge main, then recapture every unpinned 1.181 report at 1.182 with native ripr check. I'll post a new attestation once that head is proven.


Generated by Claude Code

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition: repair dispatched (orchestrator, campaign heartbeat).

This PR was ejected from the merge queue at 00:51Z. The merge-group runs 43988041523, 43988043539 and 43988045933 all fail the Rust gates job at cargo xtask check-evidence-promotion-honesty:

fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json: records cache schema 1.181 but the analyzer is at 1.182.

Cause: this PR bumps CACHE_SCHEMA_VERSION to 1.182, and main added that corpus report at 1.181 in �bf1e598aa (#14873) after this branch's merge base d6ce4a3. It is the only corpus report on main missing from this branch. The PR's own routed run is green because it predates that commit.

Repair assigned to coding ripr-swarm: merge origin/main (�e64de5421), let the gate regenerate the capture at 1.182, re-run the gate, push. Re-admission follows a green hosted run on the new head.

Copy link
Copy Markdown
Member Author

Writer claim: this PR's owning session is already doing that repair on claude/ts-module-const-reach in its own worktree. That means merging main (be64de5+) and recapturing the unpinned 1.181 honesty reports at 1.182 with native ripr check. Please don't push a second repair to this branch. I'll post the new head with proof and attestation when it's done.


Generated by Claude Code

@effortlessg41

effortlessg41 Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Queue blocker traced to this branch, and the 00:54Z head a4b14247 does not clear it.

Three merge groups failed the same step between 00:29Z and 00:51Z:

group run failing step time
pr-13719-be64de54 43988041523 Ripr Rust Small / Rust gates -> Evidence promotion honesty 00:49:22Z
pr-14674-455998c3 43988043539 same 00:47:04Z
pr-13735-d6611044 43988045933 same 00:47:02Z

Identical message in all three:

fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json:
records cache schema `1.181` but the analyzer is at `1.182`

The other two groups fail only because this branch is their predecessor commit. main at be64de54 is self-consistent: crates/ripr/src/analysis/seam_cache.rs has CACHE_SCHEMA_VERSION = "1.181" and that report records 1.181. This branch is the only one in the queue that moves the constant.

Why the new head still fails. At a4b14247 the constant is "1.182", and rust-repo-exposure-guarded-boundary-guard-missing.json does not exist in the tree. It was added by #14873, which landed at 23:21Z, after this branch's base d6ce4a32 (15 Nov 14:04Z; now 15 behind / 90 ahead of main, diverged). The 17 corpus reports recaptured here are the ones that existed at the fork point, so the recapture set cannot include it. A merge group judges main + this branch, so it sees main's 1.181 report against this branch's 1.182 analyzer and refuses.

Remedy: merge main (be64de54) into the branch, then recapture the newly arrived report with the 1.182 analyzer (ripr check --mode draft --format repo-exposure-json --root <subject>, never by hand) and commit it. A restack that does not bring in post-#14873 main will fail the same way, because the file is absent from the tree rather than stale in it.

The entry was removed from the queue at 00:51:49Z (failed_checks). The three groups rebuilt at 00:51:54Z no longer contain this branch. No queue action taken from me; this is a read-only diagnosis.

Main's #14873 added rust-repo-exposure-guarded-boundary-guard-missing.json at
cache generation 1.181. This candidate bumps the analyzer to 1.182, so
recapture it with native `ripr check --mode draft --format
repo-exposure-json --root /tmp/sj-guarded-boundary-guard-missing`. Seams and
repository are unchanged; only cache_schema_version, analyzer_version,
content_sha256 and generated_at move. Pinned reports stay byte-identical to
main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLUXKv4U44DhiT1ST6G

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Head 763ba0e repairs the merge-queue ejection.

Commits:

  • 6dcb9d7 merges main (be64de5). There were no conflicts, and main is still at 1.181 / 0.183, so this PR's 1.182 / 0.184 bump stands.
  • 763ba0e recaptures rust-repo-exposure-guarded-boundary-guard-missing.json (from #14873) at 1.182 with native ripr check --mode draft --format repo-exposure-json on a copy of its subject. A field-level diff shows only cache_schema_version, analyzer_version, content_sha256 and generated_at moved; seams, metrics and repository are unchanged.

The TypeScript source, tests and spec are unchanged from the approved a4b1424.

A scan of the merged tree found no unpinned report left below 1.182. All 30 pinned reports (1.176 and 1.167) are byte-identical to main.

Local proof on 763ba0e, all exit 0:

  • check-evidence-promotion-honesty, which was the failing merge-group step.
  • cli_smoke first_useful_action_corpus_pins_routing_cases
  • lsp_lifecycle gap_corpus (21)
  • xtask rust_corpus_projection (5)
  • guarded_boundary_repo_seam (28)
  • goldens check, verdict-corpus check-all, check-generation-pins, cargo xtask fixtures and cargo xtask precommit

The full workspace suite is left to hosted qualification.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: APPROVE 763ba0e — no blocking findings on this head.

Independent static review at this exact head (pinned before posting; PR diff be64de54...763ba0ea, 37 files, 1071+/85-).

Head and movement. 763ba0e has two commits over the last approved a4b1424: 6dcb9d7 merges main (be64de5) with no conflicts, 763ba0e recaptures one pinned report. git diff a4b14247 763ba0ea over module_value_reads.rs, module_entries.rs, owners.rs, tests/module_value_read_tests.rs is empty, and no commit after a4b1424 touched those files, so the reviewed feature code and its test suite are the same bytes I inspected at a4b1424. The classifier arm, mod module_value_read_tests; and the value_names.contains owner gate are all present at head.

Cache contract. CACHE_SCHEMA_VERSION = "1.182", SHARDED_/COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION = "0.184", TS TYPESCRIPT_FILE_FACT_SCHEMA_VERSION = "9". Current main is 1.181 / 0.183, so the bump is one above main; remaining 1.181 / 0.183 strings are history comments. docs/OUTPUT_SCHEMA.md, crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs and xtask/src/tests/rust_corpus_projection.rs carry 1.182.

Corpus recapture. 18 rust-repo-exposure pins are at 1.182 (16 honesty reports plus the two boundary-gap unchanged-after-attempt artifacts); the other 30 pins (1.176 / 1.167) are byte-identical to main. The guarded-boundary report recaptured in 763ba0e moves only cache_schema_version, analyzer_version, content_sha256 and generated_at; files_content_hash, seams, metrics and repository fields are unchanged, which is what a TS-only change plus a cache-generation bump should produce. analyzer_version pins 6dcb9d7, the merge commit the report was produced from.

Read-only guard (the load-bearing predicate). reads_unshadowed_value requires at least one allowlisted read in the masked function text and no non-read mention of the name in the raw function scope (so a parameter, local, alias, cast or nested-callback binding disables the edge). never_mutated_in_module adds a module-wide masked mention scan plus a raw-source write-shape scan (assignment, update, delete, mutating-method argument, mutating call in a chain, destructuring target, of/in target). Offsets are parser-derived and the declaration exemption is dropped whenever masking changes byte length, which fails closed. Owners attach these entries only for a ModuleFunction value node, and reach_only_through_module_entry caps the result at static_unknown (weak oracle: weakly_exposed) — the exposed arm is not reachable.

Qualification still missing on this head. Hosted run 44000471702 shows the four Rust test shards, Admit PR Candidate and vscode surface passing, but Ripr Rust Small on GitHub Hosted / Rust gates is still pending. git merge-tree --write-tree origin/main 763ba0ea is clean (tree 107207c6) against current main a708606, so the five-commit drift composes without conflicts and the merge route can carry the head.

Non-blocking hardening (does not change a verdict). The allowlist admits X.forEach(cb) / X.map(cb) where the callback writes through element references, and the navigated-call-result refusal that the spec states for X.get(k).p = 1 is defeated by a TS suffix: X.get(k)!.p = 1 or (X.get(k) as Box).p = 1 reads as a read, because call_result_is_navigated sees ! / as after the matching ). The resulting claim is still only same-module reach (static_unknown, never exposed) and the reader does read the value, so this is over-permissive hardening, not a wrong green.

Limits. Static inspection and a merge-tree computation only. I did not build, run tests or regenerate fixtures; the passing hosted shards and the author's local proof are the executable evidence. Read-only: no checkout, branch or worktree touched; one fetch ref refs/tmp-review/13719 and one scratch file were created and are deleted.

@effortlessg41
effortlessg41 Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 73577fe Nov 17, 2026
21 checks passed
@effortlessg41
effortlessg41 Bot deleted the claude/ts-module-const-reach branch November 17, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants