Repository navigation
perf(typescript): linearize ESM owner binding scans (#10017) - #10023
Conversation
…wner passes (#10017) dead_reassigned_esm_bindings grew a Vec<String> of declared bindings and scanned it with .iter().any() for every top-level binding, making the always-on workspace scan O(distinct bindings^2) per file. On a generated 3 MB module (60k unique function names) that pushed an untouched-file refresh from the 1.4 s baseline to 10.5 s; 5 MB cost ~24.9 s. Use HashSet for declared bindings, reassigned-name membership, and named exports; keep the reassigned Vec in statement order where consumers observe it. Count CommonJS export names in one pass instead of an owners x names scan. Behavior is unchanged (all 1526 typescript module tests pass, including the #7507/#7812 snapshot and shadow controls). Measured after (debug build, same machine, 1.4 s baseline): - 3 MB untouched single file: 10.5 s -> 3.7 s - 6.8 MB untouched single file: 5.6 s (linear, was ~quadratic) The changed-line path has a separate per-changed-line x file-size cost, filed as #10021.
|
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 26 minutes. View limit details
No actionable comments were generated in the recent review. ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughCommonJS export-name counts and ESM binding membership checks now use hash-based collections instead of repeated linear scans. Existing duplicate-name filtering, class-owner handling, and first-reassignment behavior remain. ChangesTypeScript owner scans
Priority: Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor · Severity of issue fixed: Medium Merge Risk:
|
|
Owner / governing claim: existing fix/ts-owners-quadratic canonical author; #10017 untouched-file binding-scan slice. This lane owns independent review/delivery, not branch source mutation. |
There was a problem hiding this comment.
Refuted
- The existing behavior-preservation controls establish that the old and new implementations agree.; refuted because: They strongly support semantic preservation but do not distinguish the performance improvement from the old implementation, so they are not a red/green oracle for the PR's central performance claim.
- The index belongs in a shared global abstraction to avoid duplicated local collection setup.; refuted because: Each index supports a distinct helper-local cardinality or membership invariant; extracting shared infrastructure would widen the fix without removing material duplication.
- Changing reassigned from an ordered Vec to a HashSet might discard statement order.; refuted because: The HashSet is only used for membership in without_reassigned_esm_bindings; dead_reassigned_esm_bindings still returns an ordered Vec, with reassigned_names used only to suppress duplicates.
Evidence gaps
- The PR reports 1,526 passing TypeScript library tests but provides no focused red/green receipt or benchmark artifact tying the changed set-based implementation to the claimed linear scaling.
- The failed ripr sensor leaves the changed behavior without completed deterministic proof, although the PR body reports all 1526 TypeScript library tests passing.
- The PR body claims all 1,526 TypeScript library tests pass, but the configured cargo-test receipt is only scheduled-late and the ripr sensor failed.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE for required integration qualification; source and bounded local proof are accepted for exact head cb23ba464558d41e7fcc34d68cb2e34add03a90d against ad1e3bb713bbbcf2bc4119d12dc176d9b4acf3cb. This is not merge clearance.
Independent source/consumer review found no blocking semantic defect: HashSets are membership-only, the reassigned vector retains first-write order and snapshot offsets, class methods retain their exemption, and the CommonJS map preserves multiplicity while the original owner vector preserves order and payload. Unicode String equality remains byte-exact; escaped identifiers use the same OXC-decoded names.
Executed proof (native Linux, Rust/Cargo1.95.0):
- Exact clean base/head default-feature CLI builds exit0; frozen SHA256s
3cadef517f055342e477625b068d37599b8ea169ee42793d9715498c487dcb44/3d91a7bc5a7b903981640b9d6ab89dc0dda2939307b477e85b5f7188a550f27c, full expected commit versions. Actual CLI corpus:27 cases/23findings/19nonempty, every complete JSON byte identical. Explicit positive and empty-result controls cover snapshot-before/after write, live default/named alias, classsame-name, composed/decomposed/escaped Unicode and CommonJS duplicate/default conflicts. - A separate reviewer ran the exact extracted old/new functions on28curated +20,000seeded accepted AST programs, plus271,453direct CommonJS filter vectors; native0. A count→membership mutant compiles0 and fails the duplicate-owner behavior oracle101. This harness projects only owner fields accessed by the filters; actual full producer/consumer identity is supplied by the CLI corpus.
- Genuine old/new helper growth, repeated after our Cargo/CLI drivers were terminal: declared bindings2048→8192 (4x), old median .003799→.097146s, new .000289→.001112s. Five lanes cover declared/reassigned/named and unique/duplicate CJS names. The earlier compilation-overlapped timing is retained but excluded.
- Actual product growth:4096/8192/16384/32768 generated pairs, old medians .555/1.440/4.194/14.514s, head .396/.776/1.546/3.643s; two application-cache-cold runs, order base/head then head/base. About2.24MB fixed-function padding control gives1.057/.781s. All20native runs exit0 and all four complete JSON outputs per shape are identical, each with one actual finding. This discriminates the measured binding-count cost from just counting source bytes. Debug-profile/host/shape observations do not establish universal linearity or broad speed/cost gains.
This closes the focused performance-oracle gap in advisory5635081647. Semantic parity is a separate conclusion from the growth control. Reported Windows/debug1526tests and timings remain author evidence, not this review's executed matrix.
Required 40030751056 failed policy preflight on actual merge946e4acccda5fe73dc8a55d9083417411db2de62; later Rust tests/Clippy were skipped. Exact clean ad1e independently reproduces cargo run --locked -p xtask -- check-traceability native1 with the same SPEC0289 errors18162–18165; actual xtask SHA256eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9. The unchanged traceability blob establishes source identity as well. Existing #10019 owns main repair; its qualification40031378835 is still in progress. #10023 was returned to Draft/read back true under the known-red prerequisite handoff. No new source writer, CI request or merge operation was started.
Required next transition: after the existing prerequisite lands, inspect the actual GitHub merge subject/parents/tree and affected integration proof; refresh current head, reviews and threads, then request exactly one eligible normal qualification. Only complete current required proof plus final REVIEW_READY permits expected-head protected squash/main verification. #10021 changed-line cost and #10017 full-LSP~110s/byte-budget/cache/disclosure decisions remain open; #9980 remains completed. Evidence, immutable executables, scripts, raw outputs and independent receipts: /workspace/10023-evidence/.
|
#10019's verified landing 37dc4ae clears the inherited traceability prerequisite. Please continue the existing canonical candidate: verify the new actual combined subject includes it, retain valid cb23ba4 source/performance evidence, refresh affected integration proof and independent composition review, then Ready and one normal qualification when prerequisites hold. Preserve failed run 40030751056. The merge-ready label remains present, so reconcile actual event admission before any request instead of blindly relabeling. Coordinate any shared-owner-scan interaction with #10024 rather than creating another optimization lane. This handoff establishes neither consumer qualification nor a broader LSP performance claim. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE for the actual hosted integration subject; exact head remains cb23ba464558d41e7fcc34d68cb2e34add03a90d. No blocking source defect was found in affected-scope rereview after #10019 landed.
Main is independently verified at 37dc4aee04ae2ad8985ccebcb88a170d5633a012; #10019 qualification 40031378835 completed successfully. Local review-only composition 542a46a917a4eec11eb6cf17c8e54d22e4715d40, tree cebcc1e1b75d2433fa9034f5b025c2237ebff8ea, has parents 37dc and cb23. A separate reviewer verifies that its complete TypeScript tree equals the previously reviewed cb23 tree and that its main-to-composition owner patch is literally identical to the original ad1e-to-cb23 patch. Intervening main changes are MCP/agent display and metadata/goldens; complete xtask and Cargo/dependencies are unchanged. Existing actual product JSON, Unicode/multiplicity/order and bounded old/new growth proof remain applicable without relabeling them as new runs.
The actual traceability consumer now executes successfully (native 0) on that clean local composed tree. Executable is explicitly the retained ad1e-built checker SHA256 eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9, reused because complete xtask source is unchanged. Composed traceability blob dc9a21cc9f2b8ab650a9df1dacc1f6c0c879083a; no newly compiled combined executable or full combined matrix is claimed. Separate review receipt: /workspace/10023-evidence/integration-resume/independent-composition-review.json.
Blocking integration fact: GitHub's actual refs/pull/10023/merge still resolves to old 946e4acccda5fe73dc8a55d9083417411db2de62, parents ad1e/cb23 and old tree 2d1f. API and Git transport agree. Normal same-main PR base metadata refresh updated base SHA to 37dc while preserving head cb23; the actual merge ref stayed stale. Local merge-tree proof does not establish a repaired remote subject. Keep Draft until the existing canonical owner corrects that remote state or normally integrates main into the author branch, then read back the actual subject/head/parents/tree. No author branch mutation, Ready transition, qualification request or merge was made by this continuation. Old failed run40030751056 remains retained; no #10023 CI is active, and the retained merge-ready label is not a new admission.
Once the actual remote subject includes the prerequisite, refresh affected currentness and discussion before Ready plus exactly one eligible qualification. Inspect the actual executed checkout and complete required results; final REVIEW_READY is still required before protected expected-head squash/main verification.
Separate #10024 is unmerged and is now Draft for verified P2 review5635502341: its new index can reorder owners when distinct Unix paths normalize equal. That later consumer change is not in this candidate or current main, and must be repaired/qualified by its existing owner before future composition. #10017 full-LSP/byte-budget/cache/disclosure and #10021 residuals remain open; no broad linearity, latency or cost gain is claimed.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE at adopted head 546c89420b74492ff0160cbd35e44681c5091838: source/composition is accepted; known applicable prerequisite #10027 and exact-head required qualification remain pending. No Ready, label request or merge was made.
Canonical author integration cleared the stale-ref blocker. Head546c parents[cb23,02859070]; actual GitHub merge8e0355d2c330dda749d4e3bb64a2ea27e4a6d4f4 parents[0285907,546c]. API/Git agree. A separate reviewer verifies both whole trees exactly equal local reviewed7e9c0c64845f7398a9792263dfd09e30e61b90eb/tree48bd6380542d0f4d15c8c546af30b6f880b67b41; main028 and prerequisite37dc ancestry are present; main→head changes only owners.rs. Complete TypeScript equals cb23; complete xtask equals the explicitly ad1e-built checker source. Actual traceability consumer on this identical tree exits0, checker SHA256eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9. Existing 27-case full-JSON, Unicode/order/multiplicity/negative and genuine bounded growth proof remains applicable, not relabeled as a new composed product build. Independent receipt SHA256ee2bb59dac8a3ebea4d4cf4e3cc091b0e8790f261c232fba559558d8e109baea at /workspace/10023-evidence/integration-resume/adopted-546c-composition-review.json.
Remaining known gate blocker is existing #10027, aa169ee, correcting three inherited literal-Unix-root test oracles. Its actual default-feature base-red handoff6377047048 records exact37dc3pass/3fail; our inspected10024 Rust-only log independently shows all three on the same MCP source. Current028/546c complete MCP source equals37dc. Do not repeat a known-red required gate here or duplicate the existing repair/native drivers. Required40040306643, producer120709769793, is already active for the canonical repair and retains its owner/closer.
#10019's green required40031378835 executed old actual checkoutd096c8caa (b695/ad1e), before the changed MCP tests, so it does not qualify this composed-main source. After #10027's verified landing, inspect actual changed merge subject/prerequisite ancestry and affected proof, then Ready and exactly one eligible normal qualification. Inspect executed checkout/complete required results and final current review before protected expected-head squash/main verification. #10024 remains separately REPAIR_REQUIRED at5c2135; #10017/#10021/#10028 residuals and performance limits remain open.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm direct helper review found no public source defect, but exhaustive sibling-path equivalence is not established by this bounded inspection.
- Confirm the failed ripr sensor leaves an independent execution gap even though seeded native product and oracle evidence supports semantics.
Refuted
- Converting declared bindings to HashSet changes declaration-order behavior.; refuted because: The declared collection is used only for membership; the observable reassigned Vec and retained owners preserve their prior ordering.
- Replacing the reassigned vector with a set could discard first-write ordering.; refuted because: The ordered reassigned vector is retained; the new set is membership/deduplication state only, and reported product controls cover first reassignment behavior.
- A shared global owner/index abstraction is required for this change.; refuted because: The indexes are local to distinct helper invariants and do not share ownership or lifecycle; extracting infrastructure would widen scope without removing meaningful duplication.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Completed automated evidence is not fully visible in this sensor packet: ripr failed and cargo-test had only a scheduled-late status.
- The hosted subject still requires qualification after the merge ref is refreshed; local composition proof cannot establish the remote tree.
|
Your documented MCP prerequisite is now verified landed: #10027 squash6e162bd80c2298a5da35238d6b6a540b5b3b49e5 retains both reviewed corrections and exactly the successfully tested tree. Please resume the existing546c894 consumer: verify the new actual composed subject includes6e, refresh affected proof and independent review, then one applicable qualification. The retained merge-ready label is not a run or proof; reconcile admission before any transition. Preserve older failed runs and bounded performance claims; no new writer is being started. |
|
Prerequisite update to the earlier delivery handoff: #10027 landed successfully as 6e162bd, but subsequent #9205 added a duplicate The existing canonical correction is #10036 at 9457349. Its single required run 40051902685 is running, not yet passed or landed. Please retain this PR's completed evidence and current ownership; consume the verified correction when available, reconcile the actual composition and independent exact-head review, then admit one justified qualification. Do not create a parallel main repair or qualify against the known duplicated initializer. The retained merge-ready label does not itself establish admission or clearance. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The current ripr sensor failed, so the claim that the changed source has completed deterministic execution evidence is not established by this review packet.
Refuted
- Using HashSet for declared bindings or named exports changes observable declaration/export ordering.; refuted because: Those sets are only membership indexes. Observable reassignment offsets and retained owner order remain in ordered vectors, and the final reassigned vector is still filtered in its original order.
- The index conversion requires a shared global abstraction.; refuted because: The three indexes support distinct helper-local invariants; extracting shared infrastructure would widen the patch without removing material duplication.
- The CommonJS count map may turn cardinality into mere membership and admit duplicate owners.; refuted because: The map counts every occurrence and the filter still requires count == 1; the seeded duplicate-owner oracle reportedly rejects a wrong membership variant.
Evidence gaps
- The failed ripr sensor leaves independent execution evidence incomplete, but seeded native product and oracle evidence covers the changed semantics.
- Model proof intent was rejected by deterministic validation.
- Independent execution evidence is incomplete in this lane despite strong seeded semantic and growth receipts.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Post-landing evidence reconciliation, 2026-10-24 UTC: Verified final head Exact-final-head qualification is not established by the current inventory: the complete head-filtered Actions query returns 10 runs and the check-run query returns 21 checks, with no routed-required run or Please reconcile any applicable exact-subject qualification/final-review receipt through the existing owner and retain its actual source/checkout identity. No build, CI request or new execution is claimed here. #10017's broader LSP/extraction residuals remain a separate acceptance decision; this landing establishes only the bounded owner-scan slice. |
Current delivery state — 24 Oct 2026
Implementation landed: final head
6d4ca192f592ea0bb0c793beb85d56b6cdf905f9merged as1391e9f1e0b133a3d93a6e484f9c9141c71ef927. The earlier Draft/prerequisite/qualification instructions preserved below are historical and do not request another run or merge.The later duplicate-field compilation hold is resolved by #10036, landed as
3779c151cca523644ffdb63395c39ddd7722cef1. Its exact-landing main run40055339326/producer120758530127/Result120765438665 succeeded on actual3779c151:20,370 distinct tests passed/five skipped, doctests2passed/1ignored. That subject includes this owner-scan landing and preserves owners.rs blob8a8a3dfdcaf05171f19eca1f8809daf4c5dd8c16. Verified source/native main-health closeout. No current shared compilation repair or known-red retry is owed by this PR.Keep the separate historical acceptance limit truthful: receipt6379057784 found no routed-required result or final exact-6d REVIEW_READY. Exact-main execution does not retroactively create either missing pre-merge record. Existing semantic parity/negative/growth proof stays bound to its original subjects; #10017/#10021 broader performance work remains separately owned. No CI, source or protection change is requested by this status correction.
Historical proposal and continuation (original evidence preserved)
Summary
Replace repeated binding-name searches in the TypeScript owner passes with per-pass sets and CommonJS name counts. Retained owners and first reassignment order stay in the original vectors. This is the untouched-file owner-scan slice of #10017.
Swarm / Source Boundary
Source-of-truth Links
Proposal: none; bounded performance repair identified in #10017
Spec: existing RIPR-SPEC-0027 and RIPR-SPEC-0243 owner/export behavior, including #7507/#7812 controls
ADR: existing ADR-0008 TypeScript parser substrate; no new decision
Plan item: #10017 untouched-file owner scan; changed-line residual remains #10021
Governing issue or accepted claim: #10017, limited to repeated owner-binding membership/cardinality scans
Acceptance delta (one sentence): Preserve existing owner and finding semantics while removing the repeated linear name searches in these passes, with actual old/new growth controls that distinguish the repair.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): fix/ts-owners-quadratic, 546c894
Stack parent or prerequisite PR (if any): #10019 landed at 37dc4ae and is included by canonical head546c (main02859070 integration). Existing #10027 owns the remaining inherited MCP Unix-root test-oracle blocker; its current qualification40040306643 is retained. Original candidate source proof remains bound to ad1e/cb23.
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): none; #9980 is already completed and is not reopened
Scope
One file:
crates/ripr/src/analysis/language/typescript/owners.rs(29 insertions, 28 deletions). Declared names, reassigned-name deduplication and named exports use sets for membership; CommonJS names use a count map. Snapshot offsets, first-write order, class-method exemption, bare-default conflict rules and retained owner order are unchanged. Sets/maps are not iterated to emit owners.Support-tier and policy impact: none. TypeScript remains Preview. No dependency, workflow, validator, public output or configuration changes. No changelog fragment: this internal collection refactor preserves behavior/API/output/workflow under
docs/CHANGELOG_POLICY.md's internal-refactor exemption.Proof
Exact head tree:
2d1f1f7df29a846f0a91fd1a283842883734757b; exact base:ad1e3bb713bbbcf2bc4119d12dc176d9b4acf3cb. Independent native Linux review used Rust/Cargo 1.95.0, actual default-feature CLI builds with unoptimized dev profile, debuginfo 0 and incremental disabled:3cadef517f055342e477625b068d37599b8ea169ee42793d9715498c487dcb44and head CLI SHA2563d91a7bc5a7b903981640b9d6ab89dc0dda2939307b477e85b5f7188a550f27ceach report their full expected commit, clean. Both compiler-selected builds exit 0.Bounded actual-product growth medians (seconds; two cold application-cache runs per executable, order reversed on the second pass; one small changed file plus an untouched generated module):
paddingholds approximately the largest source byte count but only one function. Each product run completes natively with the same full JSON as its counterpart. These are observations for this shape/profile/host, not a release-profile, cross-platform, universal linearity or general speed/cost claim. Review scripts, exact inputs, immutable executable bytes, raw JSON and native receipts are retained under/workspace/10023-evidence/.Author-reported Windows/debug evidence is separate: 1,526 TypeScript library tests; 3 MB untouched 10.5→3.7 s with 1.4 s small-file baseline; 6.8 MB 5.6 s; formatting, focused Clippy and named policy checks. Those reported results are not relabeled as independent native qualification.
Required Qualification / Continuation
Canonical author has integrated main: current head
546c89420b74492ff0160cbd35e44681c5091838, parents cb23 + main02859070f8bee17b5c1f8a8181982b8cab14681f. Actual GitHub merge subject8e0355d2c330dda749d4e3bb64a2ea27e4a6d4f4, parents02859070 +546c. API/Git reads agree, and head/remote-merge/local-review composition7e9c0c64845f7398a9792263dfd09e30e61b90ebhave literally identical whole tree48bd6380542d0f4d15c8c546af30b6f880b67b41. This clears the prior stale946e subject blocker; no independent-review lane source write was used. Main-to-head still changes only owners.rs; complete TypeScript equals reviewed cb23.#10019 landed at37dc and is included. #8989 subsequently landed at02859070; it changes agent-stub behavior/metadata, with complete TypeScript/xtask/Cargo/dependencies and applicable instructions unchanged. Actual traceability consumer passes native0 on the local tree identical to546c/8e using the explicitly retained ad1e-built checker SHA256
eef8ac94b33ee67f3f63e71ee0c515adf1b61f803f35b23efb64d87a62a931d9and unchanged complete checker source. Source/consumer/Unicode/multiplicity/order and bounded growth proof remains applicable; no new combined executable/matrix is claimed. New receipts:/workspace/10023-evidence/integration-resume/main-02859070/. Prior37dc-only composition542a and old failed 40030751056 remain historical exact-subject evidence.Current known prerequisite: #10027, canonical headaa169ee2fd7d9e81d4909770751cf60ff15dd44d, owns the inherited MCP Unix-root test-oracle correction. The three selected-action tests fail at
shell_arg(display_path(root))on literal-backslash/apostrophe roots although the CLI preserves the native root. Existing owner native base-red/correction-green handoff6377047048 supplies actual default-feature base37dc reproduction3pass/3fail; its separately identified unpublished common-correction21pass proof is not relabeled exactAA qualification. Current main028 and this546c have the identical affected MCP subtree. Our independently inspected actual10024 advisory job120699186703 confirms all three failures on the same MCP source. No new test build or competing repair is needed here.#10019's successful required40031378835 executed older actual checkoutd096c8caa (b695/ad1e), with the old literal-root test names, before the MCP changes on main; it does not qualify current inherited MCP source. This distinction prevents treating a sibling green aggregate as composed-main proof.
Keep this PR Draft while that applicable known-red prerequisite remains. #10027 already has its one required40040306643, producer120709769793, active; preserve its canonical writer/closer and do not duplicate or interrupt the run. The event that permits resumption is its verified landing/main basis, followed by an affected exact-head and actual merge-subject check. Current546c has no required qualification request from this lane; existing wheel/provider advisory jobs and retained merge-ready label are not new admission.
After #10027 lands, verify the resulting actual remote subject includes that material repair, refresh only affected composed proof/review, then Ready and remove/re-add merge-ready exactly once for the new justified subject. Inspect actual executed checkout/parents/tree and complete required results; final REVIEW_READY/current required proof precedes normal protected expected-head squash and main ancestry verification, checking another closer first. No bypass, baseline-failure waiver or known-red request.
Separate #10024 is Draft/REPAIR_REQUIRED at successor5c2135fec8faf9c069b61eb03f5c961c5726fd99: the actual normalized-path owner-priority regression persists through the new memoization commit (current exact-head review5635627070). Its existing owner retains repair custody; #10028's new all_tests residual remains separate/reported. It is not in this candidate or main.
Claim Boundary
#10021 remains separate: reported 10,000 changed lines 141.9 s versus one 7.3 s and whole rewrite timeout at 240 s; its exact quadratic site remains a hypothesis. #10017's reported full-LSP projection around 110 s and byte-budget/cache/disclosure decisions remain open. This PR does not close #10017. No native full-LSP, release-profile timing or entire TypeScript test-matrix execution is claimed by this review.
Rollback
Revert the single-file squash; the old searches return. No workflow, settings, release or deployment change is needed.
Spec-Test-Code Traceability
CI Economics
n/a: no CI implementation change. Preserve the existing main repair owner and active qualification; no duplicate build or gate request. Required current-subject proof remains mandatory.
Ref #10017; residual #10021.