Repository navigation
fix(typescript): honest extends comments and boundary tests (#11849) - #11875
Conversation
Stale single-hop/MUST-NOT comments now describe the bounded same-directory chain. Adds partial-overlap replacement and max-hops boundary tests.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 43 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Verification questions
- Confirm the source-route scan found the TypeScript tsconfig loader and its public aliases, but the available context does not support claiming absence of all sibling config-loader variants.
- Confirm the lane packet does not establish repository-wide coverage of other tsconfig/jsconfig loader or alias-resolution helpers; a one-file scan cannot exclude duplicated semantics outside this module.
- Confirm the 8/9-hop test labels root plus eight/nine bases as 8/9-deep, so the assertion may be off by one relative to MAX_EXTENDS_DEPTH's implementation semantics.
Evidence gaps
- Focused test execution is claimed but independently unavailable because the ripr sensor failed and the cargo-test receipt is absent.
- The advertised cargo-test proof could not be independently confirmed from the supplied sensor state because its receipt is absent, while the ripr sensor failed.
- The advertised 8-deep/9-deep boundary is exercised, but the claimed successful test run lacks a central receipt.
- The max-depth test distinguishes an accepted 8-base chain from a fail-closed 9-base chain, but no local receipt proves those assertions currently pass.
- The public load_alias_map route exercises both new boundaries, but the PR's reported test result is not independently evidenced because the cargo-test receipt is absent.
- The maximum-depth test covers the boundary at eight and nine extends hops, but the repository cargo-test receipt is unavailable in this packet.
- The new depth test exercises the intended DoS boundary, but successful execution is not evidenced in the available packet.
- Model proof intent was rejected by deterministic validation.
- Independent completion evidence for the scheduled focused cargo-test is not present in the supplied receipts.
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 5579fce): REVIEW_INCOMPLETE
Inspected:
- The whole diff: the PR's only changed file is
crates/ripr/src/analysis/language/typescript/tsconfig.rs. I fetched both blobs (head5579fce2, base9230fe14) and diffed them myself. The PR's single commit is5579fce2, whose parent is9dbfad8a(main has moved past the recordedbaseRefOid). - Head source read at: module docs L1-16,
RawTsConfigL44-51,load_alias_map/load_alias_map_with_read_errorL486-512,TsAliasMapBlockerL556-565,MAX_EXTENDS_DEPTHL582,merge_compiler_optionsL582-660,parse_alias_mapL674+, the two new tests L1175-1245, and thetemp_dir/writehelpers L1000-1015. - The owning spec
docs/specs/RIPR-SPEC-0099-typescript-tsconfig-path-aliases.md, read at the PR base (L70-90, L205-216, L300-312). - Repo conventions:
xtask/src/policy/changelog_fragments.rsL162-203 and L404-412;.ripr/traceability.tomlat base (RIPR-SPEC-0099 registers one representative tsconfig test; the pre-existingextends_*tests are not registered, so a new sibling test needs no new entry, and the PR correctly adds none). - Prior review: the
github-actionsCOMMENT on5579fce2asking whether the 8/9-hop labels are off by one relative toMAX_EXTENDS_DEPTH. - Hosted proof: REST
commits/5579fce2/check-runsand the job log of check run124669862322.
Blocking:
- None attributable to this candidate.
Non-blocking:
- The outstanding
github-actionsquestion about an off-by-one is refuted, not confirmed.merge_compiler_optionsis entered at depth 0 for the workspace-root config and recurses withdepth + 1perextendshop; the guard isdepth > MAX_EXTENDS_DEPTH(tsconfig.rs:614) withMAX_EXTENDS_DEPTH = 8(L582). The new test buildstsconfig.json -> c0 -> ... -> c7for its depth-8 case: the eighth base is entered at depth 8 and8 > 8is false, so it loads; for its depth-9 case the ninth base is entered at depth 9 and9 > 8is true, so it fails closed withExtendsUnsupported. The labels "root plus 8 bases" / "root plus 9 bases" therefore match the implementation's depth numbering exactly. - Both new tests discriminate.
extends_child_paths_replace_base_paths_partiallyfails ifpathswere merged per key instead of replaced: the fixture writessrc/other.ts, so under a per-key mergemap.resolve("@/other")would return a path and theis_none()assertion would fail.extends_chain_at_max_hops_loads_but_one_more_fails_closedfails if the bound moved to 7 or 9. - A fifth stale comment of exactly the family this PR claims to repair is left in the file:
crates/ripr/src/analysis/language/typescript/tsconfig.rs:186-187still reads "The config usesextends/references, which single-hop resolution deliberately does not follow", while the loader does follow same-directory relativeextendschains. The user-facingExtendsUnsupportedtext at L219-226 is already accurate, so this is an internal doc inconsistency only. The PR body scopes itself to four named comments, so this sits outside the stated claim. - The same stale wording survives in the owning spec:
docs/specs/RIPR-SPEC-0099-typescript-tsconfig-path-aliases.md:70still heads the section "### 2. Single-hop alias loader (tsconfig.rs)" while the same spec's clause at L77 already describes the bounded 8-hop chain and whole-objectpathsreplacement. That drift arrived with the #11204 code change on main, not from this candidate; it is mainline-owned and is not a reason to block this PR. - The pre-existing test
returns_none_when_extends_present(L1101) no longer describes why it passes: the fixture's"./base"target does not exist, so it fails closed as a missing target rather than becauseextendsis present. Pre-existing from #11204, not introduced here. - The PR body claims "Rust unit tests green (shards 1-4)" for this head. On
5579fce2the only completed Rust wave is run41243336440, where "Rust tests shard 1 of 4" is FAILURE. The failing test isripr::analysis::language::python::guard_activation::tests::compare_literal_values_fails_open_on_undecoded_literalsatcrates/ripr/src/analysis/language/python/guard_activation.rs:1436, in a file this candidate does not touch: the blob SHA for that path is87f3badb45cf5848b148af65afbf4fb382194ff3at both9dbfad8a(the candidate's own parent) and5579fce2. The divergence from the base blobe7c50cc69ed1ffe5190ebb5a167b6cfc7db1ad4eis main moving forward, not this PR. The red is therefore inherited and not candidate-attributable, but the head is still not green.
Not run:
- No local build or test: the Rust toolchain on this host is not on
PATH, socargo fmt --check,cargo xtask precommit,cargo xtask check-prandcargo test -p ripr --lib typescriptwere not executed. Everything above comes from source and hosted evidence only. - Hosted lanes observed on
5579fce2: run41243336440- "Rust gates" SUCCESS, shards 2/3/4 SUCCESS, "Rust test shards verify" FAILURE, "Rust tests shard 1 of 4" FAILURE; run41243336346"windows-advisory-subset" SUCCESS; run41243336355"Rust-only feature lane" SUCCESS; run41243336445paste-macos/ubuntu/windows SUCCESS; run41243336510cargo-deny + dependency-review SUCCESS; run41243336807"Report conflicting merge-ready request" SUCCESS. Earlier waves (41240153467,41240363544,41242818625) are cancelled or failing and are not attributed to this head. - Unobserved: a green hosted Rust lane for this head. The candidate's own TypeScript surface did execute inside shard 1 (988 tests passed before the inherited Python failure), but the required lane as a whole is red, so no green-head claim can be made here. Rebasing onto a main that carries blob
e7c50cc6forguard_activation.rswould likely clear the inherited red; that is an unverified prediction, not an observation.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 5579fce22ede1828ac21e4a3bd59a8318de44d70. Not an approval.
|
CI triage (shard 1 failure, run 41243336440): inherited main-red, not this candidate. The failing test is |
…ale test-merge; picks up #11918 main-red repair)
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm repository-wide absence of sibling tsconfig/jsconfig loader or alias-resolution helpers is not established by this one-file diff or the available receipts.
- Confirm the max-hops regression test exercises an 8-base accepted chain and a 9-base fail-closed chain, including a security-relevant resource-boundary case.
Refuted
- The boundary fixture creates eight or nine base configs in addition to root, matching its explicit depth labels.
Evidence gaps
- Focused test execution for the changed boundaries remains unconfirmed by a central receipt because cargo-test was scheduled without a receipt and ripr failed.
- Independent focused-test execution is unavailable because the cargo-test receipt is absent and the ripr sensor failed.
- Model proof intent was rejected by deterministic validation.
- The new boundary assertions lack an independently available execution receipt.
- Claimed focused test execution is not independently evidenced in this packet because the ripr sensor failed and the cargo-test receipt is absent.
- The 8/9-hop boundary test is materially present, but the required cargo-test receipt is absent and the ripr sensor failed, so execution is not independently established.
- The claimed focused test success lacks a central receipt in this packet.
|
CI triage update (run 41262086501): two inherited failures, neither from this candidate (one file changed:
No code change in this PR for either. Will re-request CI after #12014 lands (and report the precommit verdict). |
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 9d38140): REVIEW_INCOMPLETE
Inspected:
- Head re-read from the API before writing:
9d38140148eb645fdf8ef1fc1b17abd35bb71f11, baseb31977d3(branch base; main tipa69bf0214),draft: false,mergeable: MERGEABLE,mergeStateStatus: BLOCKED, labels['merge-ready']. It matches the dispatch head; it had not moved. - The candidate's contribution is one file:
crates/ripr/src/analysis/language/typescript/tsconfig.rs, +71/-6. The GraphQL file list returns exactly that path. - The candidate's source is unchanged since the previously reviewed head. I compared blob ids:
tsconfig.rsisf15949b378ae8a846e5d68197a3d2556bc70ebd7at both5579fce22ede1828ac21e4a3bd59a8318de44d70and at this head, so the 2876-path delta between those heads is entirely main's advance, not the candidate's. - The change, read at this head: four internal doc-comment corrections plus two new tests -
extends_child_paths_replace_base_paths_partially(:1181) andextends_chain_at_max_hops_loads_but_one_more_fails_closed(:1212). I also read the production code they pin:MAX_EXTENDS_DEPTH = 8(:582), the guarddepth > MAX_EXTENDS_DEPTH(:614), andmerge_compiler_options. - Also read at this head: the residual stale comment region (
:186-187); the owning spec at the main tip (RIPR-SPEC-0099-typescript-tsconfig-path-aliases.md:70); hosted job logs124719337593(aggregate),124717402816(Rust gates),124717233708(Rust-only feature lane), and main-tip base job124707375551; and the PR body in full, to check its claims against the hosted state.
Blocking:
- None attributable to this candidate; I found no defect that makes it wrong.
- The required check
Ripr Rust Small Resultis present at this head and RED (job124719337593), and a red required check is neverREVIEW_READY. The cause is not this candidate:- Rust gates job
124717402816fails at step 16,Repository policy preflight, withxtask: check-policy-all: 1 gate(s) failed: check-process-policyandcrates/ripr/src/output/first_pr/run_chain.rs allowlist entry for 'use std::process::Command' is orphaned: max_count=1 but pattern not found in any tracked file. The main tip fails at the same step with the same message (job124707375551), and this candidate touches no policy file, no allowlist and norun_chain.rs. - Rust-only feature lane job
124717233708fails on-p ripr --libatlsp::backend::list_actionable_items_tests::list_actionable_items_names_gaps_the_actionable_profile_hides(a known base-side red this candidate does not touch), and on-p ripr --test cli_smokeatcheck_worktree_drill_in_commands_reach_the_uncommitted_findingandselector_location_misses_explain_syntax_and_preserve_retry_scope. I attribute those two cli_smoke failures by source-level causal chain, not by a base comparison, and I say so plainly: the diff changes no non-test statement, so it cannot alter any compiled behaviour, and the failures are analysis failures on Rust fixtures ("ripr progress: failed"), not wrong verdicts about TypeScript. The base has no comparable green Rust-only lane to contrast against - main's own job failed at step 16 before that lane ran.
- Rust gates job
- Source inspection is complete and clean; the ceiling is hosted proof.
REVIEW_INCOMPLETE, attribution stated.
Non-blocking:
- Earlier finding - the outstanding
github-actionsquestion about an off-by-one in the 8/9-hop labels: STALE. It was refuted, not confirmed, before this delta: the guard isdepth > MAX_EXTENDS_DEPTHwithMAX_EXTENDS_DEPTH = 8, the root config is entered at depth 0, and the test's depth-8 chain loads while its depth-9 chain fails closed. The source is byte-identical to the reviewed head. - Earlier finding - both new tests discriminate: STILL HOLDS.
extends_child_paths_replace_base_paths_partiallyfails ifpathswere merged per key instead of replaced - the fixture writessrc/other.ts, somap.resolve("@/other").is_none()would then fail;extends_chain_at_max_hops_loads_but_one_more_fails_closedfails if the bound moved to 7 or 9. - Earlier finding - a fifth stale comment of the same family the PR claims to repair is left in the file: STILL HOLDS.
tsconfig.rs:186-187still reads "The config usesextends/references, which single-hop resolution deliberately does not follow", while the loader does follow same-directory relativeextendschains. The user-facingExtendsUnsupportedtext is already accurate, so this is an internal doc inconsistency only, and the PR body scopes itself to four named comments, so it sits outside the stated claim. - Earlier finding - the same stale wording survives in the owning spec: STILL HOLDS, and it remains mainline-owned.
docs/specs/RIPR-SPEC-0099-typescript-tsconfig-path-aliases.md:70still heads "### 2. Single-hop alias loader (tsconfig.rs)" at the main tip, while the same spec's clause at L77 already describes the bounded 8-hop chain and whole-objectpathsreplacement. That drift arrived with #11204 on main, not from this candidate. - Earlier finding - the pre-existing test
returns_none_when_extends_present(:1101) no longer describes why it passes: STILL HOLDS, pre-existing. Its fixture's"./base"target does not exist, so it fails closed as a missing target, not becauseextendsis present. That came in with #11204. - Earlier finding - the PR body claimed "Rust unit tests green (shards 1-4)" for a head whose shard 1 was a failure: REPAIRED. The body at this head makes no hosted-green claim. It offers local receipts only -
cargo test -p ripr --lib analysis::language::typescript::tsconfig: 57 passed, 0 failed,cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo xtask check-fast (10 gates)- and states plainly that no changelog fragment is added because there is no user-visible change. - New, clarifying: the "5 paths outstanding against the current main tip" are not this PR's proposal. I checked each by blob. Two (
changelog.d/11819-multiroot-observe-validated-range.md,changelog.d/repair-activation-unknown-names-calling-test-11895.md) exist neither at the branch base nor at this head - main added them after the base, so a merge brings them in. The other two (crates/ripr/src/app/task_first.rs,editors/vscode/test/suite/multiroot.test.ts) are unchanged by this branch while main moved them, so a merge takes main's version. The true proposal is the one TypeScript file. - New: the plain-language ceiling interaction does not bite here. The dispatch flagged #11856 lowering the plain-language ceilings, with #9964 and #11182 red on
check-user-text. For this PR it does not: the candidate changes no user-facing string - the only text it alters is four internal doc comments and two test bodies - and theUser-text goldens judged by the merge-base matcherstep (step 15) is SUCCESS at this head, and also SUCCESS at #11894's head, so neither PR contributes to that interaction. - Efficiency: nothing to report, and the effect is provably nil. The diff changes no non-test statement, so there is no runtime effect at all - no new parse, collection, allocation, cache or fixture re-parse. The two new tests write small temporary fixture trees under
std::env::temp_dir()- roughly ten tiny JSON configs for the chain case, three for thepathscase - and each is an in-crate#[test], not a generated corpus.
Not run:
- The Rust toolchain on this host is not on
PATH(rustc,cargo,rustupare absent fromPATH). Nothing was built, compiled, formatted, linted or tested locally;cargo fmt --check,cargo test -p ripr --lib typescript,cargo clippyand everycargo xtaskgate were not run. Every Rust-level statement above comes from reading source at the reviewed SHA9d38140148eb645fdf8ef1fc1b17abd35bb71f11, from main-tip source ata69bf0214, or from hosted job logs - never from a local run. - The candidate's own TypeScript surface did not execute in any lane I read: the Rust gates job failed at step 16, before the test lanes, and the Rust-only lane failed on the base-side LSP test and the two cli_smoke cases above. That the two new tests discriminate is a reading of what they assert, not an observed pass.
- The PR body's local receipts are the author's claims; I could not re-run them and did not treat them as evidence for the disposition.
- I did not run a combined-tree build of main merged with this head; the base-attribution rests on the file-level causal chain and the identical base-job failure, which is what I state above rather than a local reproduction.
- No runtime or mutation execution was performed; every exposure statement here is static.
- No repository file was modified, no build was run, and no HEAD-moving git command was executed.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 9d38140148eb645fdf8ef1fc1b17abd35bb71f11. Not an approval.
There was a problem hiding this comment.
Reporter summary
No actionable code or security defect was identified: the changed comments match the implemented same-directory, bounded extends behavior, the partial-overlap fixture appears to pin whole-object replacement, and the 8/9-hop fixture creates eight or nine followed extends edges consistently with MAX_EXTENDS_DEPTH = 8. The decisive unresolved objection is execution evidence: ripr failed and the late cargo-test receipt timed out after 900 seconds, so the PR body's claimed focused test pass cannot be independently confirmed. Repository-wide sibling-loader consistency also remains unverified; this is an evidence gap rather than a demonstrated defect.
|
Final exact-head review at 184266c (owner-refreshed with current main): REVIEW_READY. Candidate delta unchanged from the reviewed 5579fce — 4 comment fixes + 2 boundary tests in |
Summary
tsconfig.rsthat contradicted the landedsame-directory
extends-chain behavior (SINGLE-HOP header, MUST-NOTwire-type note, two single-hop doc lines) (fix(typescript): stale single-hop comments and untested extends boundaries #11849).
pathsoverlap (child keepsits own alias, drops the base-only one) and the max-hops boundary
(8-deep chain loads, 9-deep fails closed).
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
Source-of-truth Links
Proposal:
Spec: docs/specs/RIPR-SPEC-0099-typescript-tsconfig-path-aliases.md
ADR:
Plan item: TypeScript excellence goal, extends follow-up slice
Governing issue or accepted claim: #11849
Acceptance delta (one sentence): Stale extends comments read as bounded-chain behavior and both untested extends boundaries are pinned.
Scope
crates/ripr/src/analysis/language/typescript/tsconfig.rs(4 comment lines + 2 tests, +71/-6). No behavior change, no spec change
(RIPR-SPEC-0099 already describes whole-object replacement), no changelog
fragment (no user-visible change).
Proof
cargo test -p ripr --lib analysis::language::typescript::tsconfig:57 passed, 0 failed, including the 2 new tests (each fails under the
opposite semantics by construction: overlap under per-key merge, depth
with the bound removed).
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo xtask check-fast(10 gates) all pass.Rollback
tests disappear. No behavior or schema surface involved.