Skip to content

type_env design note: attribution of the PR-2 slowdown and memory gate; PR-2 withdrawn - #13009

Merged
gunbai-bot[bot] merged 15 commits into
mainfrom
session/calm-pike-525
Oct 3, 2026
Merged

gunbai-bot[bot] merged 15 commits into
mainfrom
session/calm-pike-525

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Doc-only. This answers #12962's rule that PR-2 (the type_env derived view) is not opened until its whole-tree slowdown is attributed by thread CPU per phase on one subject, and then fixed or ruled.

The new section is "PR-2 slowdown: attribution" in docs/plans/type-env-single-authority-design.md.

  • Instrument. The section names the instrument (pr2_whole_tree_differential_probe with phase_cpu guards, branches calm-pike-525/pr2-cpu-before and calm-pike-525/pr2-cpu-after) and records the four predictions stated before the run, with their hits and misses.
  • Attribution. The dominant term is the typecheck point lookups, and the fork-row walk is second. Neither is the expected candidate shape. The cause is a missing, wrongly-grained fast path. The repair is PR-2 cost shape: closure-grain classification, and one contested-name table shared with the fork ledger #13008, against PR-2's branch.
  • The probe no longer voids. It digests every module that resolved and names the blocked set (3 modules, 9 diagnostics). Declaration-grain equality holds over 7,135 modules. The 8 apparent differences are byte spans moved by PR-2's own roster edit.
  • Ruling requested. After the repair, PR-2 still costs more than BEFORE at whole-tree scale. That cost is the note's own falsifier, and its remedy (a per-module table for contested names) is reserved as its own decision. A ruling is requested from the lane manager.

🤖 Generated with Claude Code

gunbc-ci-auto-heal and others added 2 commits October 2, 2026 19:11
… voids; a ruling request on the residual

The thread-CPU-per-phase A/B (pr2_whole_tree_differential_probe with phase_cpu guards, branches
calm-pike-525/pr2-cpu-before|after) locates the cost in typecheck point lookups. Every presence-passing
lookup descended, and each level walked a pool-wide exporter list. It is not in the four listed
candidates; the predictions and their misses are recorded. The repair (closure-grain classification)
goes against PR-2's branch. Declaration-grain equality now holds over 7,135 modules; the 8 apparent
differences are byte spans moved by PR-2's own roster edit. What remains is representation B's
by-construction re-derivation, which the note's own falsifier names, so it is raised for a ruling.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… counter-ordered) and the predictions scored

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…eir pinned receipts (review 74313, DESIGN §6)

The probe is an ignored test on probe branches, not an entry point on main. So the figures are recorded
only beside their pinned commits (#13008's receipts), and this note keeps the structural findings,
the hit/miss verdicts, the rulings and the open memory gate.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot

gunbai-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Review 74313 is addressed in f38e6c5. I took the second option. The note now keeps only the structural claims, the hit/miss verdicts, the rulings, and the open memory gate. It no longer copies figures. It says where they live: the receipts in #13008's description, next to their pinned commits. The probe is an ignored test that needs a whole-tree resolve and lives on probe branches. Landing it as a durable gunbc test row is a possible follow-up that this note names, not something it claims exists.

— sent from calm-pike-525

gunbc-ci-auto-heal and others added 4 commits October 3, 2026 01:21
…manded by every planned-claim category; narrowing it is a rung drop, not a demand cut

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…n; attribution of main's type_env drop is pending at #13076's parent

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ion on a main red; their peak is not a gate read

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title type_env PR-2: attribute the whole-tree slowdown; probe no longer voids; ruling request type_env design note: attribution of the PR-2 slowdown and memory gate; PR-2 withdrawn Oct 3, 2026
…delta is outside the entry graph

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gunbc-ci-auto-heal and others added 4 commits October 3, 2026 15:37
… win came from deleting the rewire, not PR-2; receipt on the name-canonicalisation RFM row

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…874)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… copying figures (DESIGN 6)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot

gunbai-bot Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Review 74874 is addressed in 6730e78: the receipt now names the instrument and its two pins, and gives the effect relative to PR-2's landing gate instead of copying the figure (DESIGN §6). The same row's earlier REMOVED receipt also copied counts from the warm-route probe, and c28cebcf9c0 replaces those with the probe pin it already names. The design note's remaining figures are labelled pre-registered predictions and derivations, not transcribed measurements.

— sent from calm-pike-525

gunbc-ci-auto-heal and others added 3 commits October 3, 2026 16:33
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… warm resolve route; next probe pre-registered

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ry by value (structural reading, discriminator pre-registered)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot
gunbai-bot Bot added this pull request to the merge queue Oct 3, 2026
Merged via the queue into main with commit f8c8ba3 Oct 3, 2026
4 checks passed
@gunbai-bot
gunbai-bot Bot deleted the session/calm-pike-525 branch October 3, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants