Skip to content

TrailView ground plan GP12.4: bores and portals: the open cut, the cover, the end face with its opening, the frame, the bore sheet #3345

Closed as not planned

Description

@timohueser

Status: proposed
Part of #3105 (GP12, the crossing block of #3096). One pull request into ground-plan.
The steps of the block, in build order: GP12.1 #3342, GP12.2a #3343, GP12.2b #3352, GP12.3a #3344, GP12.3b #3353, GP12.4 #3345, GP12.5 #3346, GP12.6 #3347, GP12.7 #3348, GP12.8 #3349.
Read first: #3105 (words, invariants including the thickness rule, the gallery, the costs, the owner's decisions).
Design on timosPC: /media/timo/OSM1/tmp/ground-plan/crossings/CASES.md (case 2, 7.2, 7.3, 7.4), and above all
proto/LEARNED.md (sections 1 to 3a) and the approved prototype sheets proto/sheets/T02-*.jpg, T14-*.jpg,
A1-0-*.jpg. Short names: gp/ = host/obc-ground-plan/src/, tv/ = builder/web/src/lib/trailview/. Code
places verified on ground-plan ea4da43.

Goal

Near the eye, a tunnel way is a bore where it has cover and an open cut before it. The road runs in a cut until the
hill or the body of the way on top is high enough; there stands a plain concrete frame with a dark opening, and you
see into the tunnel. Nothing fills the opening, nothing stands out of the meadow, and the way on top is never cut.
An underpass under an embankment is the same construction: one plain box under the body of the way on top.

Depends on / blocks

  • Depends on: GP12.1 (states BORE, OPEN, HIDDEN, portal lines, sheets of several ways), GP12.2a (the wall top),
    GP12.2b (the ordinary end and the end face), GP12.3a and GP12.3b (the storey records, the storey mesh, the shell
    corners, their drawing, the caster draw, the interim hand-over).
  • If its design note shows it too large for one review, it splits as GP12.3 did: a crate step (BORE storey, Cover
    face and bound, portal line, roof corners; no pixel change) and a viewer step (frame, end face with the opening,
    holes off, bore look).
  • The places under towns (R02, W5, R11) need GP12.8 part A and the box B rebake (at the owner's time).
  • Blocks: GP12.5 (the closed door and the pit build on the frame and the cut), GP12.6 (the far plate of a portal).

Design

1. Why ground fills the opening today (LEARNED 1, 2)

The cell mesh owns the ground about 12 m past a tunnel's tag end and draws its end band up to the terrain there. The
hole of the portal box (hole_distance, tv/terrain/terrain.wgsl:30-54, 79-80, 128; written by holes() in
tv/terrain/terrain.ts:1211, MAX_HOLES 32 at :49; boxes from portalBoxes in tv/structures/node.ts) exists only in
the terrain's pipeline, and the pieces never read it. The terrain mesh itself cannot make an opening: its level-18
cells are 1.6 m wide. So the cell mesh must own the cut, the end face and the ground over the bore behind the end
line; the terrain under the owned region is sunk already (plan_sunk, tv/plan/cells.wgsl:71-82).

2. Storey 0 at a bore (O4, O5)

  1. The open cut. From this step on, classify (gp/graph/parts.rs:62-93) reads a tunnel tag on a ground kind
    (carried by GP12.8 part A) as Level::Tunnel. in_level (gp/faces/mod.rs:197-206) reads the tunnel states of GP12.1: an OPEN station is
    on storey 0, a BORE station on its storey, a HIDDEN station on none. An OPEN stretch is a ground way of storey 0. Its sides follow the class rule: a bank where
    there is room, a wall up to wall_max_m (4.5) for a wall class, steeper above (owner: "B, the slope cut back as a
    bank, walls only with no room"). A path class keeps its no-wall rule here; GP12.5 switches every OPEN stretch to
    the no-room wall (owner: banks where there is room, walls only where there is none).
  2. The portal line. The way's paved outline ends flat on the portal line of GP12.1; the line's edge kind is
    Portal (exists in gp/faces/types.rs:51, unused). The cut's floor reaches the full width of the opening at the
    portal line: where the way's own bands are narrower, the floor widens toward the line at the plan's
    taper_rate (0.15 per metre; LEARNED 3.6).
  3. The cover and its rank (LEARNED 3.1, 3.2, 3a.6). Behind the portal line, the ground over the bore's stroke
    (its half-width plus its wall plus cover_side_m) is a new storey-0 face Cover with a floor bound: the ground
    there is at least the bore's roof top plus roof_least_m. The bound is a rule of the heights in Rust and in the
    WGSL port, as GP12.2b's ceiling. On free ground it may lift the terrain by at most lift_max_m (the fallback of
    GP12.1's state rule; owner: heights first). It never moves a paved face or a water face: under a paved way the
    paved way is the cover and keeps its height. Cover takes its place in plan.json ranks after verge and
    before slope: under every paved surface, over every slope band. So it outranks every slope band of another way, so a neighbour's cut or
    bank never enters the ground over a bore (the two tubes at T02 lie 18.7 m apart). The bank of the cut runs round
    the end against this raised ground, so the frame's sides are never free (the triangular walls of prototype
    variant B), and the body of an upper way stays at its level up to the end face (the pale roof slab at A1).
  4. The end face at the portal line (the headwall). The step on the portal line is GP12.2b's end face, with the
    frame's outline left out of it: on the part of the line in front of the frame, the step's lower corners are the
    floor's corners with the offset of the frame's top (the shell corner of GP12.3a). So the end face stands
    only over and beside the frame, and no step closes the opening. Its look is GP12.2b's (concrete, a coping, no
    pattern repeat, the smooth top of GP12.2a); it may be taller than 4.5 m. Where the ground over the face is the body
    of a way, a railing of that way's class stands on the face's top.
  5. No wall across a way's end. The portal end face replaces the old way end against the upper body: no step with
    the stone look stands across a tunnel way at its portal line (the stone in today's arches at A1, LEARNED 3a.3).
  6. Tunnel ends switch to GP12.2b's rule. The temporary end kind that kept tunnel ends as today goes.

3. The bore sheet and its shell (O2, O3)

  1. The floor. Storey −k of GP12.1: records::near(.., −k, false) builds the floor of the bore's ways with the
    strokes, ranks and overlay of storey 0. Ways of one sheet at different heights keep their own surfaces; the rank
    decides where they overlap, and a riser stands between them (A1: carriageways and cycleways 0.8 m and 1.3 m
    apart, LEARNED 3a.4). The storey mesh is GP12.3a's.
  2. The shell. One cross-section per class: two walls, a flat roof and two cut corners (a class value; a path has
    none). Built from the floor's free outline with corner offsets:
Part Construction Thickness
Walls from the floor's free outline up by the bore height (bore_m; on ladder step 2 down to bore_least_m) 0.6 m (today's box walls, WALL_M of tv/structures/tunnels.ts)
Roof the floor again, at the lower of floor + bore height and the ground over it less roof_least_m at least roof_least_m (0.3 m) of slab between the bore and storey 0
Frame a ring about the opening on the portal line: jambs, lintel, reveal, coping jambs 0.7 m wide, lintel 1.3 m tall (CASES case 2), 0.6 m deep along the way (today's FACADE_M), coping on top
Plain end wall where the sheet ends inside the ground (a closed line, the data's end) the wall thickness, closed
  • A roof corner has two labels (GP12.3a's shell corner): the floor's with the bore height, and the storey-0 face's
    over it less roof_least_m; its height is the lower one. So the GPU gives the roof the drawn ground less the
    plate where the ground is low: no roof shows over the ground, whatever the heights.
  • The frame and the sheet share the portal line and its row of points (LEARNED 3.4: a gap of 0.4 m showed ground
    inside the bore when they did not).
  • Side-by-side bores whose strokes touch are one sheet with one frame (A1: one box, not three arches). Bores
    with a gap have a frame each, on its own line (T02: two frames 3 m apart along the way read right).
  1. Inside the bore. The pieces draw the bore (it is cell mesh, not a structure mesh). The floor has the way's look;
    tv/plan/piece.wgsl gets the bore material for the walls and the roof: a port of the BORE_FACE look of
    tv/structures/structures.wgsl (:68, :269: tiles, lamps). Dark inside, as today's bore.

4. What stops on the plan path, and the interim far look

  • nodeStamps (tv/terrain/bins.ts:1048) writes no record for a TUNNEL line with plan: the tunnel terms of the
    stamp (COVER for a tunnel, PORTAL_CORE, PORTAL_CELLS, COVER_M, BORE_WALL_M, COVER_REACH_M:
    tv/terrain/stamp-core.wgsl:92, 160-166, 686-692, 746) get no input there. The gallery's use of the COVER bucket
    (:734-739) stays until GP12.7.
  • The terrain's portal holes are off on the plan path (HOLES, holes(), portalBoxes). Inside the mesh range the
    plan owns the ground; past it the old facade's dark void face covers the opening until GP12.6.
  • tunnels() (tv/structures/tunnels.ts:132: bore, facade, box) stays the far look until GP12.6, with GP12.3b's
    mechanism: the structure pipeline discards its fragments where plan_meshed holds (the cell's mesh draws, so its
    bores draw). This hand-over goes in GP12.6.
  • The edge kind Headwall (exists in gp/faces/types.rs:50, unused) stays for the culvert mouths of TrailView ground plan GP15: water crossings: culverts, fords, pipes in stones, stepping stones, footbridges #3108; the
    portal end face uses Portal.
  • The default path keeps all of it until GP19.

Data and bytes

  • Records: the storey −k lines and candidates (estimate under 2 kB per 20 m underpass); the Cover face's items in
    the bins (estimate 0.3 kB per 20 m of bore).
  • Mesh: the bore's storey triangulation and shell (CASES 7.6 estimate: about 170 triangles for a 20 m underpass with
    two frames, 150 per 100 m of tunnel, 30 per frame).
  • Values in the structures block of plan.json: cover_side_m (the margin of the cover past the bore's wall;
    1.0, as today's BORE_WALL_M), the frame (frame_side_m 0.7, frame_top_m 1.3, frame_depth_m 0.6), the cut
    corner per class.

Invariants

  1. No terrain or ground face lies inside an opening: from the portal line into the bore, between the floor and the
    roof, nothing of storey 0 draws. Check: a crate test over the fixture's portals (no storey-0 triangle over the
    bore's floor under its roof within 12 m of a portal line), and the gallery.
  2. The way on top is never cut: no storey-0 paved face over a BORE station changes its outline or its height. Check:
    the faces and heights of the upper ways equal those of the base over the fixture, except the Cover face beside
    them; and A1's tracks in the gallery.
  3. The roof lies at least roof_least_m under storey 0 at every roof corner. Check: crate test over the fixture's
    bores with the Rust heights.
  4. A frame and its bore share one end line and its row of points. Check: crate test.
  5. Every shell part has its stated thickness and closes on every visible side; no bore wall stands free over the
    ground behind a frame. Check: the shell closure test of GP12.3a, and a test that every bore wall's outer face lies
    under storey 0 behind the portal line.
  6. No ground of another way enters the Cover face. Check: faces test over the fixture.
  7. No stone-look step across a way at its portal line. Check: a count over the fixture's portal lines, target 0.

Decisions already made by the owner that apply

  • "Tunnel mouth, road and path: B, the slope cut back as a bank, walls only with no room" ("go with B, I agree").
  • "Ground lifted up to 1 m over a shallow tunnel: okay, but isn't the real solution to make the tunnel sit lower?" →
    heights first; the lift is only the fallback.
  • "End walls and tunnel frames taller than 4.5 m: yes of course."
  • "The tunnels cut through the rails and make them look pretty bad": the rails stay whole above an underpass.
  • Attinghausen, today's heights with the new drawing: the underpass reads right to him; he asked about "the wall
    going straight through it" in the view from the east: find what fills that opening before this step claims it.
  • Structure parts are never paper-thin sheets: real thickness and closed faces.

Not in scope

The closed framed door, HIDDEN stretches as a look, and the path subway's way down with walls (GP12.5). The far plate
(GP12.6). Galleries (GP12.7). Rails in a bore (#3106). Lamps, portal buildings, ventilation, the look of the frame
beyond plain concrete.

Proofs and pictures required before review

  • The gallery, all 50 places, before and after, on the demo release, one before | after sheet per place with label
    boxes, a verdict table beside gallery/INDEX.md; the implementer opens every sheet.
    • Must turn BROKEN to GOOD or IMPERFECT (full or thin room on today's data): A1, N5, N6, T02, p04, T07,
      T14, T09 (thin), v2 (its two tunnels in the bank).
    • Must improve: T01 (frames at the cover's line, no wedge of wall on the carriageway), T05 (no free plate
      from the lake side, no box), T06 (no hillside in the opening), R01, S3 (no box on the approach road),
      R11 (no box walls over the junction).
    • Must stay GOOD: B1; and every GOOD deck place.
    • Places on step 3 or inverted today (S1, S2, S7, S8, W3, W4, R03, R08, R02, W5) end whole
      with an ordinary way end here; their door is GP12.5's.
  • The A1 view from the east (camera east of proto/views.json): a probe and a picture that name what stands in
    the opening (the owner's question). If it is the approach behind the box, show it from two more heights.
  • The prototype's comparisons again on this build: T02 (eye, drive, near, obl, side, top), T14,
    A1 (proto/views.json), against the approved prototype sheets.
  • Far views of B1 and T02 from 600 m and 1.2 km: the interim far look (old facade and void past the mesh range)
    has no ground in its opening and no doubled frame at the hand-over.
  • The owner sees the sheets and gives his OK before the merge.

Cost to measure

Base: ground-plan at the branch point, and today's tunnel meshes for the same tunnels.

  • Triangles and vertices per bore and per frame against today's tunnels.ts mesh (bore, facade, box) of the same
    tunnel, on the GP12 design sample (gp12-design/measure/gp12-share.ts).
  • Cell build time native p50 and p95 over the fixture cells with a tunnel and over all cells; WASM time on
    plan-timing.html.
  • Record and mesh bytes per cell (sum, p50, p95, max).
  • Frame: walk, valley-drive and luz, against the base and develop's head. The terrain without the hole pipeline
    on the plan path: report the terrain pass.
  • WASM bytes, gzip and raw (the owner accepts about 15 to 25 kB for the block; report the step's share; stop past
    25 kB in total).

Risks and the stop rule

  • Stop and report if the opening needs a pixel discard in the terrain or in the pieces (a discard turns off the early
    depth test of tile GPUs: the phone).
  • Stop and report if a mouth, an underpass or a frame needs a shape of its own, a repair pass, or a case distinction
    by place or by class pair; or if the Cover rank breaks a way's own faces.
  • Stop and report if any cost reaches twice its base.
  • After two failed review rounds, stop and report.

Open points

Requirements: the verification console could not be checked from this PC (no agent token here). The orchestrator sets
the pull request's Requirements: line.

Deviations of step 1 (pull request #3488, the levels rules in the bake)

  1. classify does not read tunnel=yes on the ground kinds in step 1. On the device, classify gives each part
    its level. A shallow tunnel would become a tunnel way, level_tags::split keeps a tunnel way's level, and storey 0
    draws only ground ways: the shallow tunnels would go from the plan (fixture: 6 features, 11 copies; the census
    tiles of box B: 191 copies). The reading moves to step 2, together with the split of tunnel ways by their states,
    so that the OPEN stretches of a shallow tunnel stay on the ground. Measured: with the reading alone, 11 of the 256
    fixture cells change what the viewer reads. 11 census portals have a shallow tunnel at their
    end; their counts can move in step 2.
  2. Rule B does not change the lift. Only a stroke more than the at-grade band over the floor hides a station, but
    every paved stroke still forbids the 1 m lift on free ground (a paved face never moves). The census effect is that
    of the diagnosis's simulation.
  3. Census: 20 closed mouths, not 19 (base 55 on the terrain that the bake reads; the diagnosis's 58 read
    zoom-12 terrain only). Three mouths stay closed for a cause outside rules A and B, so the levels see no tag end at
    their portal:
    • P0134, P0215: the tunnel way runs through a junction farther in. The node map of the levels (Ctx::nodes in
      graph/levels.rs, one entry per way and direction) takes that junction for the way's end node, so the tunnel
      seems to go on at its portal. General fix (not built): enter an arm in the map only at its way's end station.
      Measured on box B (not in the pull request): it opens P0134 and P0215 and closes none, but it also changes the
      levels of 6 deck features, so it needs its own proof on bridges.
    • P0205: two tunnel ways and a bridge meet at one node at the portal, so a tunnel goes on there. General form (not
      built): a way end is a tag end where a way of another kind (not water) meets it.
      P0433 and P0797 (counted as heights by the diagnosis) open by rule B.

Activity

  1. timohueser commented on Nov 11, 2026

    @timohueser
    OwnerAuthor

    From GP12.1 (PR #3367): what this step can read, and what differs from the plan

    • graph.levels.runs covers every tagged way (non-synthetic deck way, non-water tunnel way) once, in order; untagged ways that end on step 3 also have runs (HIDDEN under the body, OPEN elsewhere). in_level is unchanged.
    • End lines: graph.levels.end_lines (A, Portal, Closed); merged lines list each member way with its station on the merged line, and the members' runs are moved to that station.
    • A bore stroke's wall is edge_band_m in GP12.1's sheets (the block has no wall value): GP12.4 should add one to structures.
    • deck(upper) of an untagged upper way is its deck_least_m.
    • Finding: a tunnel's tag end where the floor lies a few centimetres over the terrain gets a one-sample HIDDEN run and two closed lines (box B: many, e.g. A1 east, p04). The rule "the floor is at or under the terrain" may need a tolerance before doors are drawn (GP12.4, GP12.5).
    • Finding: on box B about a quarter of the decks are on step 2 (thin), by the least room over the paved overlap (at the centre only: about 15 %).
    • WASM: GP12.1 alone takes 25,818 B of gzip, the whole block allowance; the owner decides how the later steps are budgeted.

    Generated by Claude Code

  2. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    Orchestrator note after the merge of GP12.1 (#3367). Earlier notes of the implementer on this issue are stale in three points: the end-line merge, the sheets and the storeys are NOT in the merged step (their code is on the branch claude/gp12-1-later, to arrive with the step that first uses them); the floor-over-terrain tolerance is fixed; the levels stage is not linked into the device build (GP12.3a links it, target at most 12 kB gzip).

    Open points from the delta review (crossings/REVIEW-3367-delta.md) that the step which first DRAWS from the states must close before it draws:

    • D1 (graph/levels.rs about 393-405): a way that joins at a tunnel end is left out of the ground along the whole tunnel, not only near that end. A spiral tunnel or a hairpin over a portal can lose its cover or show OPEN under a road. Limit the exclusion to the reach of the tag end.
    • D2 (about 798-829): the OPEN rule reads only its own graph way. A tunnel that is split a few metres inside the portal can show OPEN after a BORE; check G7 does not catch it.
    • D3: A_MAX_M = 40 m has no stated source, and past it the whole deck way becomes ground; GRID_M holds an unexplained 13.0; the real read reaches 42 m against the 40 m of the reach row.
    • 153 HIDDEN tunnel runs of one sample remain on the test box (was 543). Find their causes before a door is drawn at any of them.

    Generated by Claude Code

  3. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    Correction after the merge of GP12.8 part A (#3382), from its proofs and its review (crossings/REVIEW-3382.md).

    The body of this issue says or implies that part A (the bake keeps the tunnel tag on a tunnel that the shallow rule turns into a ground way) unblocks the gallery places R02 (Kriens), W5 and R11. That is wrong. The motorway tunnels at those three places are of the kind tunnel in every bake (the demo data, round 1 and the new bake); the shallow rule never touched them. Their faults come from the road heights of the demo data and from the old tunnel drawing. On round-1 heights R02 is whole (crossings/gallery/r1-vs-today/).

    What part A does give: on the test box 194 shallow tunnels (mostly short tunnels under buildings) keep their tag, as tunnel=yes on a ground kind, so that the step that draws tunnels can see them. No reader reads that tag today.

    For the step that first reads the tag (#3345): tiles of feature revision 15 that were baked before #3382 do not carry it. That step must depend on a rebake (the revision 16 of #3337 or a later one) or raise the revision itself; otherwise regions on older tiles silently keep their shallow tunnels as ground ways.

    Also wrong in the body of #3349: "or the mapped value" (the tag's value is always yes) and that the ground kinds' keep lists include tunnel (they do not; the tag is written by the shallow rule itself).


    Generated by Claude Code

  4. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    From GP12.2b part 1 (#3352, proof in crossings/gp122b/PROOF.md): the stamp's tunnel term COVER (tv/terrain/stamp-core.wgsl:102, 164, 690) lifts the ground beside the roads at R02 (+10.2 m against the crate's heights) and W5 (+4.8 m), and adds height at R11 on round 1. With the plan's height_of off the stamp, the walls there go (29 % and 16 to 19 % of the pictures change). GP12.2b part 2 does not touch COVER: stopping it on the plan path is this step's job (section 4 here), and the end faces at those three places are judged here, not in GP12.2b.

    The proof also gives this step two inputs: the portal's end face needs GP12.2b's ceiling in its bore form (the ground over the bore held under the cover), and the square end with its band fade (gp/faces/heights/mod.rs:1322) makes a 12 m face inside T01's frame once the stamp is off.


    Generated by Claude Code

  5. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    For this step, from the rebake of the test box (see the correction on #3384): the bake's floating rule for SHORT tunnel parts (no sample farther than 20 m from both ends, any sample more than 10 m over the terrain) judges each piece between two way splits. It therefore drops way 1419883678, a 37.7 m piece of the A2 Sonnenberg tunnel chain at its south portal. When this step draws bores from the tunnel lines, that piece is a gap at a portal. Repair it by a general rule in the bake before this step relies on the lines: the length that decides "short" is the length of the joined tunnel chain (pieces of the same way class and tunnel tag that share end vertices), not of one piece.


    Generated by Claude Code

  6. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    From GP12.2b part 2 (PR #3396), for GP12.4

    • The ceiling (heights::ceiling, WGSL h_ceiling) bounds the terrain and slope rules only; a bore form can reuse decks() with the sign turned. The stroke's flat ends are stored per ceiling line (words 4 and 5).
    • nodeStamps now writes no record for a BRIDGE line on the near levels with plan; TUNNEL lines keep theirs (COVER, portals) for this step.
    • A Held step over the cap is labelled HeldOverCap and listed by check::held_over_cap.
    • R11 got worse with this step: stone cut walls under the slab and ground rising beside the junction's deck over the old box roofs. It is judged after this step.

    Generated by Claude Code

  7. timohueser commented on Nov 12, 2026

    @timohueser
    OwnerAuthor

    From the review of PR #3396 (GP12.2b part 2): a point for this step

    • N8. R11's lift. The new mounds at R11 do not come from the ceiling (min cannot lift). With the plan, nodeStamps (tv/terrain/bins.ts) writes no BRIDGE record on the near levels, so the old trough's wide clearing is gone and the DEM returns beside the stroke. The DEM hill over the junction then goes through the old tunnel boxes (old structure code), and the deeper cut under the slab gives the stone walls. This step replaces the tunnel boxes and stops COVER; judge R11 after it.

    Generated by Claude Code

  8. timohueser commented on Nov 13, 2026

    @timohueser
    OwnerAuthor

    From GP12.3a (PR #3464): what this step can read, and what differs from the plan

    • faces::deck selects the ways of a storey over the ground from graph::levels (DECK runs; synthetic decks whole); storeys under the ground (bores) are not built: Decks::of takes decks only, and mesh::shell builds deck parts only. A bore storey needs its own selection (BORE runs, storey −k) and the shell's sign turned.
    • A shell corner is 3 words (x, y with the label, an offset): the second label and offset of a roof corner are not in the format yet; this step must add them.
    • A storey's lines are line entries after the ceiling lines (flag STOREY, storey in the leg bits); a reader of a storey's label reads only its storey's lines (heights::present).
    • The bridge's feature storeys is off; with it the bridge is +62.1 kB gzip (levels included), which passes the block's 15 to 25 kB already before the bores.

    Generated by Claude Code

  9. timohueser commented on Nov 13, 2026

    @timohueser
    OwnerAuthor

    From GP12.3b part A (PR #3470), for GP12.4

    The levels of the way graph (graph::levels) now run in the feature bake (features revision 18), on every zoom-16 cell of each zoom-13 tile with a road way. The zoom-13 tiles carry per road way the tags levels (the states D/B/O/H and the end lines A/P/C, in metres along the stroke), storey and slab (specs/trailview-features.md, Structures). The device reads them with graph::level_tags::read; it does not run graph::levels. The bake uses the rule tables of its own build: a change of a level rule (cover, lift_max_m, open_max_m, the least rooms, the class rows) or of the code of the levels takes a new bake, a new revision and a fixture rebake (make-fixture.py features, about 10 s); the test the_tiles_carry_the_levels_of_each_cell fails until then. A way of a cell margin reads the levels of the cell that owns it, so cells agree by construction. The low zooms carry no level tags.

    For this step: the BORE, OPEN and HIDDEN runs of tunnel ways and their portal and closed lines are already in the tags. Tuning the bore rules from renders means a rebake per round.


    Generated by Claude Code

  10. timohueser commented on Nov 13, 2026

    @timohueser
    OwnerAuthor

    Diagnosis for this step from the owner's notes on checkpoint 5 (ground-plan 768d39e), 2026-11-13. The owner: "We still get meadow and other stuff in tunnels everywhere, this needs one really solid fix … it's not just this tunnel, it's most really", and "all the tunnels have wall etc. covering their entrance, this cannot stay this way, it's one of the most noticeable flaws we still have."

    This comment is part of the contract of GP12.4. The build must remove the classes G, Wa, Wb AND Wc below by one general rule each, and must show it on the whole census (1,014 portals of test box B), not on single views. The owner sees the cause and the rule before the build. The full report, the probes and the sheets are on timosPC in /media/timo/OSM1/tmp/ground-plan/cp5-notes/ (REPORT.md, sheets/p1-class-*.jpg).

    Also binding from the WASM review of #3470: the crossing block holds at about 60 kB gzipped on the device only if bores and portals REUSE the storey records and the shell of the deck steps and add about 8 kB or less.

    Point 1: tunnel mouths. Census of box B (1,014 portals; 1,013 with a floor height)

    Every portal is sorted by what the crate draws on the tunnel axis, then checked against eye shots: 57 portals
    shot at eye height from the road, 30 m out; 46 show the mouth. Data and shots agree on all 11 wall shots and on
    22 of 28 ground shots. Data and script: logs/portals.json, logs/census.json, scripts/classes.py.

    What the eye sees at the mouth Class Motorway Road Rail Path All Cause
    Ground (meadow, grass or rock slope) fills the opening 2–5 m inside G 77 114 119 269 579 The stamp keeps its tunnel terms on the plan path (tv/terrain/bins.ts:1100 drops roads, paths, rails and near bridges, not tunnels). PORTAL_CORE holds the floor for about 3.3 m (stamp-core.wgsl:163,746), then COVER lifts the ground to floor + bore + 1 m (:164,686-691). The plan's ground corners read that page (plan/corners.wgsl:70-85). The plan mesh owns the bore's first metres (R = sharp cells grown by FACE_RING 2, mesh/params.rs:22; 992 of 1,014 portals), but the pieces never read the terrain's portal holes (terrain.wgsl:37-54,128). Near the eye the facade's void is dropped (structures.wgsl:93,262), so the eye meets the ramp.
    Stone wall in the opening: the edge step of the upper way's body (underpasses) Wa 3 65 11 266 345 Storey 0 draws the upper way's paved body and bank over the bore's first 1–3 m. The step from the lower way's end to it has the wall look (Held / HeldOverCap / Unrelated, faces/heights/mod.rs:1700-1729).
    Stone wall across the way's end: its own cut wall, often with ground beside it Wb 5 21 20 1 47 The LEVEL end (records/mod.rs:880-893) lets the way's own cut cone run past its end. Wall classes get a wall up to 4.5 m across the end (P0734, Axenstrasse).
    Stone wall set back in the bore Wc 3 6 0 13 22 A paved face at floor height (a twin carriageway, or the approach past a mid-vertex tag end) runs into the bore and ends there with a step (P0172 A2 Lucerne, P0215 Acheregg).
    Open and right O 13 2 4 1 20 The plan owns no ground there (mostly deck approaches), so the terrain and its holes draw. Plants or trees stand in the bore.

    Also at mouths: 109 portals lie on flat ground (frame and box stand out of the meadow); at 27 portals the floor
    is more than 1 m over the terrain; trees or plants stand in 5 of the 46 openings seen; P0870 is open only because
    its cell draws no plan mesh (debug=owned is all red there; cause not found).

    Evidence for G: drawn terrain on the axis of 42 G portals (trailView.check), median height over the floor:
    0.0 m at 2 m inside, 2.1 m at 3 m, 3.9 m at 3.5 m, 5.6 m at 4 m, 6.2 m at 5 m, 7.5 m at 8 m. debug=owned: the
    plan owns the bore at P0214, P0076 and P0734 (all filled) and not at P0202 (open).

    Does GP12.4 (#3345) remove the classes?

    1. G is removed by construction where the mouth is BORE or OPEN (no tunnel stamp records on the plan path, the
      Cover face, the end face with its opening, invariant 1): 502 of 579.
    2. Wa (336 of 345) and Wb (47 of 47) are removed: the underpass portal line is the edge of the upper body, and
      section 2.5 bans a stone step across a way end (invariant 7).
    3. About 89 mouths are closed in today's levels (HIDDEN, or a Closed line within 5 m). They get the framed door of
      GP12.5 and will still read as "covered".
    4. Wc (22) is NOT removed, because the cover "never moves a paved face" (2.3). Rule needed: the bore's opening
      (its stroke between floor and roof, behind the portal line) outranks every storey-0 face, paved ones included;
      a way whose paved face reaches into it ends at the opening's side.
    5. Not in the design: plants in bores (rule: no plant on a bore's stroke from the portal line to the end of the
      cover's reach), OSM walls draped over portals, and the far look until GP12.6.

    An early general fix

    One small rule removes most of the filled mouths: the plan pieces read the terrain's portal holes (a piece.wgsl
    variant with the same hole_distance test as terrain.wgsl:128, used only for cells that hold a portal box).
    Cost: about 40–60 lines of WGSL/TS, 0 WASM bytes, one more draw variant; the pieces of those cells lose the early
    depth test on tile GPUs. Estimated effect: about 940 of 993 filled mouths near the eye. Not built, not measured.
    It breaks GP12.4's stop rule ("no pixel discard in the pieces"), so it is the owner's decision; GP12.4 would
    delete it. Two other options do not work: handing the bore cells back to the terrain in the region R (works only
    per 3.3 m cell, does nothing for Wa/Wb/Wc, breaks the 5×5 shape the strip relies on); stopping the stamp's tunnel
    terms alone (the hill still fills the opening at 904 portals and the end steps grow to up to 7 m).


    Generated by Claude Code

  11. timohueser commented on Nov 13, 2026

    @timohueser
    OwnerAuthor

    Owner decision, 2026-11-13: "Wait for the full step". The early fix (the plan pieces read the terrain's portal holes) is not built. Tunnel mouths are fixed by GP12.4 itself, as one general rule for each class of the census above.


    Generated by Claude Code

  12. timohueser commented on Nov 14, 2026

    @timohueser
    OwnerAuthor

    GP12.3b part B (#3482) changes what this step builds on:

    • The cell build uses the graph of the storeys (graph::build_levelled, level_tags::split): each bridge way is split
      at the end lines that the tiles carry, and each stretch takes the level of its state. Tunnel ways are not split:
      split skips a part whose level is Tunnel, so a tunnel way keeps today's level. This step can split them by the
      same function (a BORE stretch on the tunnel level, an OPEN stretch on the ground).

    Generated by Claude Code

  13. timohueser commented on Nov 15, 2026

    @timohueser
    OwnerAuthor

    Proposal: the updated contract of this step, after the tunnel diagnosis (waits for the owner's answers)

    Status: proposal. It waits for the owner's answers to the four questions at the end. Diagnosis, probe, sheets and
    drawings on timosPC: /media/timo/OSM1/tmp/ground-plan/tunnels/ (DIAGNOSIS.md, sheets/INDEX.md). Code checked on
    ground-plan 46793ba. Nothing is built.

    1. The closed mouths, counted again

    The census comment above gives "about 89" closed mouths. That count read the end lines of every tunnel way within
    60 m of a portal (twin tubes, the other end of a short tunnel). A new probe reads each portal's own tunnel way from
    its tag end. Result on the census (1,014 portals of box B): 955 mouths get a portal line; 58 are closed (54 hidden at
    the tag end, 4 with a closed line less than 5 m behind the portal line); 1 has no way end in the data.

    Reason Count Verdict
    A. The floor lies 0.5 to 9.9 m over the terrain model at the tag end (a fill, or a bridge's end) 35 Rule A opens 31; 4 are short of cover past 30 m (heights)
    B. A lower way beside the mouth, or a way level with the floor, counts as a way on top 8 Rule B opens 8
    C. Too little room or cover at the mouth 6 Heights (#3349); a door until then
    D. The tunnel tag starts 80 to 117 m before the cover 5 Heights (#3349), or a light cover (owner question 3)
    E. A station subway under a platform (Lucerne) 2 A door is right
    F. A side slope with no cover on the valley side; an open gap between two bores 2 A door for now; no rule for one place

    Expected with this step: 994 open, 19 closed (15 wait for #3349), 1 without a way end.

    2. What holds, and what changes in the design

    • Holds: section 1; 2.2 (the portal line; storey 0 and the bore share its points as a deck and its stub do); 2.3
      (the cover face, its rank, its floor bound as GP12.2b's ceiling with the sign turned); 2.4 (the end face with the
      frame left out, built as a shell wall between two labels, no wall cap on the edge kind Portal); 2.5; 2.6 (the
      level end goes; a portal end is the square end of a stub, end kind DECK, with the bank round it against the
      cover); 3.3; invariants 1 to 7.
    • Changes, section 2.1: the states come through the graph of the storeys, not through in_level.
      level_tags::split stops skipping tunnel ways: a BORE stretch takes the tunnel level, an OPEN stretch the ground,
      a HIDDEN stretch goes. classify reads tunnel=yes on a ground kind as a tunnel (the bake then gives these ways
      levels too). ground_junctions reads "deck or bore" in place of "deck".
    • Changes, section 3.1: the floor comes from the deck path: faces::deck::Decks::of gives a bore way storey −1;
      records::storeys builds every storey but 0, with a signed storey in the leg bits.
    • Changes, section 3.2: the shell is mesh::shell::mesh_storeys with the sign turned: the top is the floor, the
      underside at the bore height is the roof, the edge faces are the walls (turned to face in), a closed end gets the
      plain end wall. No parapet, railing, post or pier below storey 0. New parts: the frame (prism on each portal
      line) and the end face. The roof corner's second label is new in the corner format.
    • Changes, section 4: the old stamp's tunnel terms stop on the near levels only, as the bridge terms did in
      GP12.2b; the far levels keep them until GP12.6. The terrain's portal holes stay until GP12.6: they act only where
      the terrain draws, past the mesh range. The old tunnel mesh is discarded where the plan draws, by the bridges'
      mechanism (plan_share).
    • New rule A (the levels, in the bake): within open_max_m of a tag end, a tunnel station with too little cover
      is OPEN, whatever the height of its floor over the terrain model. The way goes on as a ground way on its bank until
      the cover holds; there is the portal line. This is the general form of TrailView ground plan GP12: bridges, tunnels, underpasses and galleries: decks, bores and roofs with the ladder (the contract of the crossing block) #3105 open point 1.
    • New rule B (the levels, in the bake): a paved stroke counts as a way on top of a tunnel station only where its
      surface lies more than the snap height over the floor.
    • New rule, the opening (class Wc): behind the portal line, the bore's stroke outranks every storey-0 face of a way
      that does not cross over the bore, paved ones included. Such a way ends at the side of the opening with an ordinary
      end. A way on top always has a crossing with the bore, so it is never cut.
    • New rule, plants: no plant on a bore's stroke from the portal line to the end of the cover's reach.
    • New invariants: 8, no storey-0 face of a way without a crossing over the bore lies in an opening; 9, no plant on
      a bore's stroke near a portal line; 10, the census counts of section 4 below.

    3. Size

    The bores reuse the tags, the split, the deck storeys, the storey records and the shell. Estimate on the device:
    about 4 to 7 kB gzip (graph 0.2, faces and records 0.6, shell 0.6, the roof's second label 1.0, frame and end face
    1.5, cover face and bound 1.5, opening rule 0.3). Not measured. The chain is at about 49.4 kB of about 60 kB; this
    leaves about 4 to 6 kB for GP12.6 and GP12.7. Past 10 kB, the first cut is the roof's second label (the shader reads
    storey 0 at the roof corner, about −1 kB), then the frame's coping and reveal (about −0.4 kB). Rules A and B are bake
    code: 0 device bytes.

    4. The build order and the proof on the whole census

    1. The levels rules in the bake (no pixel change on either path): rules A and B, the tunnel tag on ground kinds,
      a new features revision, the fixture rebaked, box B rebaked by the step's script. Proof: the probe over all 1,014
      portals, closed mouths by reason before and after (58 to 19); the levels test of the fixture; the tiles differ
      only in the levels tags of tunnel ways.
    2. The bore storey in the crate (no pixel change): the split of tunnel ways, storey −1, its records, the shell
      (floor, walls, roof, frame, end face, end wall), the cover face and its bound in Rust, the opening rule, the portal
      end kind. Proof, crate counts over all census portals of box B, each to 0: storey-0 triangles between floor and
      roof within 12 m of a portal line (class G); stone-look steps on a portal line (Wa, Wb); storey-0 faces of a way
      without a crossing over the bore in an opening (Wc); roof corners less than roof_least_m under storey 0; shell
      edges that do not close. Debug pictures of the storeys at T02, A1, T14. WASM bytes from CI.
    3. The bores in the viewer: the bore look, the frame, the cover bound in WGSL, the old stamp off on the near
      levels, the old near tunnel mesh discarded, the plants rule. Proof: the gallery's 50 places before and after, the
      57 eye cameras of the census shot again, the 12 closed mouths of the diagnosis, far views of B1 and T02 from 600 m
      and 1.2 km, the GPU probe of the drawn height on the axis of the 46 mouths that the census saw (nothing between
      floor and roof from 2 to 8 m inside), the frame cost on walk, valley-drive and luz.

    GP12.5 then draws the doors at the 19 closed mouths; #3349 takes the 15 height faults as its test list.

    5. Risks

    The bank round the end against the cover (torn faces); the roof's two labels on the GPU and a roof over low ground on
    ladder step 2; the end face beside the frame under a paved way on top; rule A at the 8 mouths after a bridge (a bank
    of up to 5 m between the bridge's end and the portal); the opening rule where the graph misses a crossing; the
    hand-over at the mesh range until GP12.6; the size estimate (the deck steps came out 3 times over their first
    estimate).

    6. The owner's answers that this proposal waits for

    1. Rule A at 31 mouths: (a) a ground way on its bank until the cover holds (recommended); (b) a bridge goes on as a
      deck to the portal; (c) a door.
    2. The 15 mouths with too little room: (a) a door until TrailView ground plan GP12.8: the heights contract for crossings, and the bake carries every shallow tunnel's tag #3349 (recommended); (b) a lift of up to 2 m on free ground.
    3. The A2 north of Lucerne and three more, where the tag starts about 100 m before the hill: (a) the road sinks into
      a cut (heights); (b) a light cover at ground level (a box on the ground, as GP12.7).
    4. May pull request 1 (no pixel change) merge after its review and green CI, before the owner sees tunnel pictures?

    Generated by Claude Code

  14. timohueser commented on Nov 15, 2026

    @timohueser
    OwnerAuthor

    Owner, 2026-11-15, on the proposal above: "I guess you can merge step 1". So pull request 1 (the two levels rules in the bake, no pixel change) may merge after its review and green CI.

    The other three questions of the proposal were not clear to the owner, and they are technical defaults. The orchestrator takes the recommended option for each, and the owner judges the real pictures of step 3:

    • A road that comes in over the terrain model goes on as a ground way on its bank until the cover holds (option a).
    • The mouths with too little room get the closed framed door until the heights step (option a).
    • The A2 north of Lucerne and the places like it are height faults for the heights step: the road sinks into a cut (option a).

    If a result looks wrong in the real pictures, it changes then.


    Generated by Claude Code

  15. timohueser commented on Nov 15, 2026

    @timohueser
    OwnerAuthor

    Notes for step 2, from the review of step 1 (#3488)

    The review of #3488 (rules A and B in the bake's levels) found no blocking fault. Three of its notes are for step 2 and the steps after it:

    1. An OPEN stretch can end in a HIDDEN stretch where the floor lies over the terrain (review N2). Example on box B: P0623 is OPEN from its tag end to 30.97 m, then HIDDEN to 72 m with the floor 3.0 m over the terrain model, then BORE. In step 2 and in GP12.5 (TrailView ground plan GP12.5: closed faces and hidden stretches: the framed door, tunnels that do not fit, the no-room wall on a tunnel's open stretch #3346) this is a way on a 3 m bank that ends at a closed door in the air. The base had the same fault at the tag end, so this is not a regression; P0623 is in the height list of TrailView ground plan GP12.8: the heights contract for crossings, and the bake carries every shallow tunnel's tag #3349. The door step must expect a closed line whose floor lies over the terrain. On the box B tags, an OPEN stretch that ends in a HIDDEN one at a tag end occurs 8 times on the base and 6 times on the head.
    2. Rule B and the crossing's ladder read the heights at different points (review N4). tunnel_state reads the paved stroke at the tunnel station's middle only (ground(a.p, w)); ladder reads the least of five corner pairs. Both use the same band (the lower snap_height_m of the two ways). On a banked or sloped way within a few centimetres of the band, the ladder can say at grade while the station is HIDDEN, or the reverse. No action in step 1. In step 2 both decide what draws, so make them read the same points, or show that the difference cannot be seen.
    3. The fixture test, the split and classify land together (review N8). When level_tags::split stops skipping tunnel parts, the fixture test the_tiles_carry_the_levels_of_each_cell (tests/graph.rs) must stop skipping them too (if part.level == Level::Tunnel ... continue). classify must read tunnel=yes on the ground kinds in the same pull request as the split: alone, it removes the shallow tunnels from the plan (11 of the 256 fixture cells change), and no test guards against it.

    Review: /media/timo/OSM1/tmp/ground-plan/tunnels/step1/REVIEW-3488.md.


    Generated by Claude Code

  16. timohueser commented on Nov 15, 2026

    @timohueser
    OwnerAuthor

    Note for tunnel step 2 (from the review of #3489): on tiles of an older bake a way through a building is now Level::Ground but still carries tunnel=building_passage. The bake keeps tunnel=yes on the shallow tunnels that it turns into ground ways. So step 2 must test tunnel == "yes" (or the way kind), not != "no", when it reads the tag on ground kinds; else it takes a building passage for a shallow tunnel. The water branch and the debug tool use != "no": do not copy that test.


    Generated by Claude Code

  17. timohueser commented on Nov 16, 2026

    @timohueser
    OwnerAuthor

    Step 2, redesigned (design revision 2, after two failed build rounds and two adversarial reviews). This comment replaces the step 2 part of the earlier design in this issue. The build of the crate body starts from it on the branch claude/gp12-4-bore-body.

    Open points from the second review, which the build and the later bake step must close. They are not solved by the text below:

    • The gate count of 104 entrances needs the ground over a tunnel lifted with no limit. The owner allows 1 m. With that cap the count is 191. The fix is a bake rule: the portal line moves to the first station where the terrain gives the bore its room.
    • The gate probe passes some entrances that are not open (another portal's opening, an opening under half the way's width, a wall within 3 m in front, a way on top that is cut). The build corrects the probe first.
    • At most low mouths, the entering way's cut slope still pulls the cover under the terrain. One run decides the cover's height rule.
    • The rule for the floor bound against the floor's surface is not written.
    • The end-test fix in decks() changes decks with the feature off. It becomes its own slice.
    • The door rule is not built. The count of doors is a guess.
    • The reviewer's size estimate is 17 to 22 kB (13 to 18 kB with the two bake moves), not 11 to 15 kB.

    GP12.4 step 2, redesign: a tunnel is a lid over a way (round 2 of the design)

    Status: proposal of the designer, after the review REVIEW-DESIGN.md. The first design is DESIGN-r1.md. The
    owner's tunnel decisions and the contract of #3345 stand. A spike proves the foundation and measures the mouth
    (local branch claude/gp12-4-joint-spike, 8938a7348; not for merge, not pushed). All numbers are in "Evidence".

    Summary

    A tunnel is no second ground. It is a lid over a way. Storey 0 and the floors under it are two labellings of
    one map. The tunnel body is the prism between a floor and its lid, on storey 0's own triangles. The review
    confirms this part: the joint, the closure and the roof under the lid are 0 on all 1,014 portals.

    The review shows that the first design did not measure the owner's top flaw: an entrance that is filled or covered.
    This round adds one count for it, the gate: an entrance that a rider cannot see into. The same probe measures it
    with the bores off, on round 2, on the first spike and on this spike.

    Of the 1,014 entrances of test box B, the gate holds 1,014 with the bores off (what develop shows: no
    entrance has a body), 571 on round 2, 192 on the first spike and 104 on this spike (10.3 %). 30 of the
    104 have one fault only: a wall in front of the mouth that stands there with no bores too.

    Ten general rules bring the count down. Each one is a cause that the spike found, not a tuned value. The count is
    not near 0. The largest part that stays is a wall in front of the mouth that stands there with no bores too: storey
    0's own rule for two ground ways. "The entering way owns its approach" was tried in two forms; each one made more
    walls over the box than it removed, and both are off. "The list that stays" names each part and its cause, and "The
    fallback" says what to ship.

    The size is over the target. The spike without its test switches adds 23.7 kB gzip. The estimate for a written
    build is about 15 kB (13 to 17), and about 11 kB (10 to 13) with two decisions moved into the bake (section F).

    Words

    • Bore: a BORE stretch of a tunnel way (the levels of the bake).
    • Entering way: the ground stretch that ends on a portal line, and the ground ways that go on from it at joints,
      as far as open_max_m along them.
    • Portal line: the end line between an entering way and its bore.
    • Floor: a face of the storey under the ground: a bore's paved core. A floor can also lie in front of the portal
      line, under a lid (the last metres of the entering way).
    • Lid: what storey 0 shows over a floor: the cover, or the own paved layers of a way on top.
    • Cover: the ground over a bore's floor and wall. A face of storey 0 with corners of its own.
    • Least room: bore_least_m + roof_least_m of the lower way's class: 2.2 m for a path, 3.3 m for a road, 5.1 m
      for a railway. The bake's BORE test uses the same number.
    • Way on top: a stretch of a ground way whose surface lies at least the lower way's least room over that way's
      floor, at every place where their strokes meet. Its lid is its carriageway and its shoulders. Its verge is ground.
    • Opening: the edges of a floor where the floor's own entering way shows in storey 0 on the other side.
    • Gate: the count of entrances that a rider cannot see into ("The gate").

    The foundation: six rules

    1. Levels first. Each stretch of a tunnel way takes the level of its state before any stage of the graph reads a
      level: OPEN is a ground way, BORE is a bore, HIDDEN is nothing.
    2. One end line. At a portal line the bore's stroke starts at the entering way's end point, with its direction,
      its offsets and a corner at each layer of the two ways and at the bore's wall. The floor bound of the heights ends
      flat on the same line.
    3. One map. The strokes of storey 0 and of the floors go into one slice. Each patch has a label of storey 0. It
      can have a floor label too. Storey 0's faces split where the floor label changes.
    4. The lid. Over a floor, storey 0 is the cover or an own paved layer of a way on top of that floor's way. Every
      other face yields. The cover's height is the ground's height, held at the least room over the floor. No cover
      lies on an entering way's open stroke where no floor lies under it.
    5. The prism. Each triangle of storey 0's mesh over a floor has a floor twin and a roof twin on the same three
      points. A roof corner is the lower of the floor plus the bore's height, and of each lid corner at that point over
      the same floor less the roof's plate. A floor corner has the same caps. Each edge of the floor's outline has a
      wall. An edge of the opening has no wall: it has the front of the lid's plate over it and a sill slot under it.
    6. The body's length (a rule of the bake, proposed). A bore is built up to body_m behind each of its portal
      lines. The rest is HIDDEN. A bore shorter than twice body_m is whole.

    Rules 1 to 5 are in the spike. Rule 6 is in the spike as a test switch that reads the bake's tags; the bake's rule
    itself is not built.

    The gate: an entrance that a rider cannot see into

    The measure (probe probe/census4.rs, all 1,014 census portals of box B, the 3 x 3 cells about each).

    A portal's own opening pieces are storey 0's portal edges in the corridor of its way: from 6 m in front of the
    census point (the tunnel's tag end) to 45 m behind it, 8 m beside it and a quarter of the metres behind more, less
    the pieces that look against the portal (the far end of a short tunnel). A portal is in the gate when one part
    holds:

    Part Test
    none The portal has no own opening piece: the levels give no portal line in the corridor (a door or a hidden end of step 1), or the corridor misses it.
    closed It has pieces, and no floor lies within 3 m behind them. With the bores off this is every portal.
    low Of the floor samples (a 0.5 m grid) within 3 m behind the pieces, more than 10 % have less room (roof less floor) than bore_least_m of the floor's own class less 5 cm. A paved face or a shard in the opening, and a roof at or under the floor, are low samples.
    over A corner of the bore's shell stands more than 5 cm over every corner of storey 0 at its point, within 15 m.
    wall Storey 0 has 0.1 m and more of steps of 0.3 m and more that run across the way, inside a piece's span, within 0.6 m in front of it (frame_depth_m).
    step Storey 0 has 0.1 m and more of steps on a piece (both ends on the piece's line, the middle inside it).

    The table also gives two wider views that are no part of the gate: "low strict" (one low sample is enough) and "wall
    within 3 m". With the bores off the pieces are those of the spike's run, so "wall" and "step" measure the same
    places.

    The numbers (portals).

    Build Gate none closed low over wall step Low strict Wall within 3 m A body count not 0
    Bores off (the spike with no bores; what develop shows) 1014 15 999 0 0 185 321 0 330 0
    Round 2, 4a42b8f 571 29 20 469 17 107 4 632 339 585
    First spike, 04243fc8a 192 15 4 125 27 45 12 285 133 0
    Spike b954b62ac (one commit before the last) 127 15 4 39 0 69 8 81 173 0
    Spike b954b62ac with the 30 m body (test switch) 157 52 4 36 0 67 6 77 168 0
    This spike, 8938a7348 104 15 4 40 0 47 8 83 131 0
    • With the bores off every portal is in the gate: no entrance has a body. "none" there is the spike's own count (the
      pieces are the spike's).
    • "wall" falls from 185 (off) to 47: at 149 portals the wall in front stands with no bores and goes with them; at
      36 it stands with and without; at 11 only the bores make it.
    • b954b62ac is this spike with the first approach rule on ("What fixed which part"). The 30 m body, the cuts of
      section F, the sizes and the digests were measured on it.
    • The 30 m body is a test switch. It reads the tags per feature, so a bore that starts at a feature's end with its
      portal in the next feature is hidden as a whole: "none" rises by 37. That is the switch, not the rule; the bake's
      rule walks the chain. The other parts do not move with the body's length (low 39 to 36, wall 69 to 67).
    • Round 2's probe is built against round 2's own tree (probe/census4r2.rs, the same tests).

    By class (the census class of each portal; this spike).

    Class Portals Gate none closed low over wall step
    G 579 68 8 2 30 0 30 6
    Wa 345 27 5 2 6 0 14 1
    Wb 47 1 0 0 0 0 0 1
    Wc 22 4 1 0 2 0 2 0
    O 20 3 0 0 2 0 1 0
    no 1 1 1 0 0 0 0 0

    By kind and by the tunnel part's length (this spike).

    Kind Portals Gate none closed low over wall step
    road 397 38 6 1 18 0 14 1
    path 469 47 8 3 16 0 22 6
    rail 148 19 1 0 6 0 11 1
    Length of the tunnel part Portals Gate none closed low over wall step
    under 30 m 440 37 8 3 11 0 19 1
    30 to 150 m 365 38 3 1 12 0 20 3
    over 150 m 209 29 4 0 17 0 8 4

    How open the low mouths are. A low mouth is not always a closed one. The probe also takes, per portal, the least
    mean of min(room, least) / least over the 0.5 m bands behind the pieces.

    Build Low portals 90 % open and more 75 to 90 % 50 to 75 % Under 50 %
    Round 2, 4a42b8f 469 123 172 104 70
    First spike, 04243fc8a 125 18 39 52 16
    Spike b954b62ac (one commit before the last) 39 21 14 4 0
    This spike, 8938a7348 40 22 12 6 0

    What fixed which part

    Each row is one cause, found at one portal and then measured over the box. No row holds a value that was tuned.

    Cause Where it showed The general rule Part that it fixes
    The floor bound's test "near an end" read the metres along the way as rising. A part can run against its way: then every segment was "near" both ends, and a point inside a curved bore lay "past the far end". 664: 4 segments 27 m out; the cover followed the cut, room 0.2 m The test takes the distance along, with no sign. It was in the decks' ceiling too. low
    The floor bound's stroke ended on its chord's normal, not on the portal line. 470, 372: low at one side of the mouth The bound's flat end is the portal's direction (rule 2). low
    The bound was capped at the terrain plus lift_max_m. The device's terrain is short at 1 to 2 m behind many portal lines: the bake tests stations, and it puts the line between them. 519, 957: room 0.8 to 1.1 m The device does not clamp. The bake's test owns the lift's bound. The bound is the least room, so the lift is as small as the bake's rule allows. low, over
    The bound held the cover at the bore's full height. Beside a way on top with the least room, the cover stood up to 2 m over that way. (found when the clamp went) The cover and the lids obey one number: the least room and the plate. (look)
    The roof's caps were all corners of storey 0 at a point over any floor. A second bore at another depth capped the first one's roof. 708: a railway bore 18 m under the road's entering way closed the road's mouth Caps by point and floor label. low
    A deck's ceiling held the cover down also beside the deck, as far as its release reaches. 694 to 697, 757: a footbridge near the mouth, room 0.4 m The cover yields to a deck only under the deck's own stroke. low
    A non-lid face lay over a floor: in a lid's hole every face took part, and a lid was its line as a whole. 470, 231 (review F2) Over a floor only the cover and the own layers of a line take part whose stroke of stretches on top holds the patch. low
    A way's verge counted as its lid. In front of the line no bound holds the ground under it. 7, 694 A lid is the way's carriageway and shoulders. low
    The floor's corners on the opening took the height of the road in front. Where that road is steep or twisted, the floor rose and the roof did not. 7: the path drops 3 m in 3 m; the floor rose 1.7 m at one end of the line The floor keeps its own heights. The sill slot closes the joint at any heights. low
    The roof went under the floor where a lid is too low, and the floor stood over the ground. 313, 538 (review F5) The floor has the roof's caps: there the body has no height and lies under the lid. over

    Two rules that were tried and are off (both are "the entering way owns its approach"; switches in the spike; the
    three gate numbers are runs of one binary, in which the run with neither rule gives 105; the exact run of the final
    commit gives 104):

    Rule Found at Over the box Verdict
    The entering way owns its open stroke also against another bore: no floor of another bore lies under it, no cover on it (OBC_APPROACH_FLOOR). 138: 3.2 m of wall 0.7 m tall on the shoulder, gone Gate 127 against 105 without it. It makes a wall in front at 26 portals: the other tube's cover then ends on the entering way's edge. Off.
    The entering way owns the frame's depth (0.6 m) in front of its portal line: there only its own layers take part, where no floor lies under (OBC_APRON). (the coordinator's form) Gate 143 against 105 without it: wall 84 against 46, step 14 against 10. The way's own face now stands where a junction's face lay, and the step moves onto the frame's depth. Off.

    The list that stays

    104 portals are in the gate of the spike. logs/gate-list-r3.txt has each one with its parts (a portal can have
    two parts, so the rows sum to more).

    Portals Part and cause Of this step?
    36 Wall in front, also with no bores: two ground ways 0.3 m and more apart in height overlap at the mouth. No: storey 0's rule for two ways (#3349).
    25 Low, the cover under the least room. Yes: the bound's height and the floor's surface differ by 5 to 35 cm. Not traced.
    15 No opening in the corridor. Not known: the levels' closed lines (doors of GP12.5), or the probe's corridor.
    11 Wall in front, only with the bores. Yes. Not traced one by one.
    13 Low, a lid or a deck at or under the floor: the body has no height at some samples. No: the heights or the levels (#3349). By the owner's rule these are doors.
    8 Step on the opening. Yes. Not traced (699: a lid's edge over two tracks).
    4 An opening with no floor within 3 m behind it. Not known.
    2 Low, a way on top with less than the least room. Yes: the lid test reads the centre line (the bake's test, section F).

    Of the 40 low mouths, 22 are 90 % open and more, 12 are 75 to 90 % open, 6 are 50 to 75 % open and 0 are less.

    30 of the 104 have one part only: a wall that stands there with no bores too. Without them the gate is 74 (7.3 % of
    the entrances); without the 15 with no opening too it is 59 (5.8 %).

    Notes on the parts:

    • Wall in front, also with no bores. Storey 0 holds one face per point. Two ground ways that overlap 0.3 m and
      more apart in height make a step on the edge of the one that wins. This step stands on develop today. The bores
      remove it at 149 portals (the cover and the lid take the place) and leave it at 36. It is storey 0's rule for
      two ways and their heights (TrailView ground plan GP12.8: the heights contract for crossings, and the bake carries every shallow tunnel's tag #3349), not a rule of the bore.
    • Wall in front, only with the bores. 11 portals. Not traced one by one. Two causes are seen: a lid's edge that
      crosses two entering ways (699), and another tube's cover on the entering way's edge (staggered twin tubes).
    • Low, the cover under the least room. At 22 of the 40 low portals the mouth is 90 % open and more: the cover
      holds the least room over the bound's own height, and the floor's surface lies 5 to 35 cm over that height (270:
      room 2.66 to 2.94 m of 3.0 m). The bound and the floor read the same line with two rules across and along it; the
      build must give them one. Not traced further. The first spike held the cover at the bore's full height and had
      slack here; 17 portals entered the gate with the least room.
    • Low, a lid or a deck under the floor. A deck or a paved way lies lower than the bore's floor or less than the
      least room over it, and the bake's levels say BORE (313, 195 to 201: a deck; 58, 59: a road on top that comes down
      to the entering way). The body has no height there and lies under the lid; nothing stands out. These are faults of
      the heights or of the levels. They go to TrailView ground plan GP12.8: the heights contract for crossings, and the bake carries every shallow tunnel's tag #3349 with this list. By the owner's rule for "no room" they are doors.
    • No opening in the corridor. 15 portals. The levels end the tunnel with a closed line there, or the opening
      lies outside the corridor of the probe. Not looked at one by one.
    • Step on the opening and an opening with no floor behind it. 8 and 4 portals. Not traced.

    The fallback

    The gate does not come near 0 with the rules of this step. This is what to ship:

    Entrances What Count
    The levels give a portal line and the body has room A body by rules 1 to 6, with the frame of step 2b. 982
    The levels give no portal line in the corridor What step 1 decides there: a closed framed door (GP12.5) or a hidden end. 15
    A lid or a deck lies at or under the floor, or no floor lies behind the opening A closed framed door, by a rule of the bake: BORE only where no deck and no paved way lies under the bore's roof. Until the bake has the rule, the body has no height there and lies under the lid: nothing stands out and nothing is torn. 17

    Of the 982 bodies, 72 stay in the gate: 30 with only a wall that develop has too; 27 low mouths, of which 22 are
    90 % open and more, 4 are 75 to 90 % open and 1 is less; 15 with a wall that only the bores make or a step on the
    opening. So 910 of 1,014 entrances pass the gate (89.7 %), and 940 (92.7 %) when storey 0's own walls do not count. The
    target of 95 % is not met. The next gain is storey 0's rule for two ways, not a rule of the bore.

    A. The joint

    Unchanged from the first design, and confirmed by the review. Of the 1,033 joints of an entering way and a bore, 415
    are cuts of one way and 618 are nodes of two parts; 42 turn by 10 degrees or more; 196 change width.

    • Rule 2 gives both strokes the same end edge, point for point. Rule 3 puts them into one slice, so the map holds
      that edge once. No stage looks for the line afterwards.
    • An edge is an opening edge when a floor lies under the patch on one side, and the open stroke of the floor's own
      entering way covers the patch on the other side. This reads labels of patches. It reads no distance.
    • The bore's mesh is storey 0's own triangles. So the points on the line are the same points.
    • A sill slot stands on each opening edge between the floor's corners and storey 0's corners in front. It closes the
      edge at any heights. The floor keeps its own heights (round 1 gave the floor's corners the road's height; see
      "What fixed which part").
    • A turn at the joint leaves a sharp inner corner on the portal line (42 joints). The owner's rule asks for an inner
      radius. The frame's jamb (0.7 m) stands there; the corner is not rounded.

    Options (a), (b) alone and (c) are rejected as in the first design ("Rejected options").

    Decks (#3484) are not in this design. The review is right: rules 2 and 3 solve the turn and the T-junction
    seams, not the rounded concave corner of the storey's outline, and not the green line in the viewer. A later deck
    spike must test: the deck's storey in storey 0's slice, no round at a storey's open end, and the cost and the
    digests in all 1,655 deck cells of box B.

    B. The ground above

    By rule 5 the roof is storey 0's own mesh, turned over. On each triangle the roof is linear, the lid is linear, and
    at each corner the roof is at most the lid less the plate. So over the whole triangle the roof lies at least the
    plate under the lid: no ground between floor and roof, and no roof over the ground, at the mesh's resolution. The
    floor has the same caps, so the floor never stands over the ground and the roof never goes under the floor, at any
    heights.

    Only the corners of triangles over the same floor cap a roof corner. The road in front of a portal line, the
    ground beside the floor and a face over another bore are no lid.

    The cover's height. The cover has the ground's height (the slope rule), raised to the floor bound. The bound is
    the bore's floor plus the least room, inside the bore's stroke up to its flat ends on the portal lines. It is not
    capped by the terrain. So under the cover a mouth has the least room by construction, and more where the ground is
    higher. The entering way's cut does not lower the roof: the bound lifts the cover over it, and the cover's own
    corners carry the step (the end face over the opening).

    The review's finding F3 names another cause: the cover's slope rule. That is not the cause. Where the bound holds a
    point, the cover stands at the bound, whatever the cut does. The low mouths came from three faults of the bound (its
    "near an end" test, its flat end, its cap at the terrain plus the lift) and from the caps ("What fixed which part").
    With the bound off and the cover at the terrain or over it, as F3 proposes, the box has 386 low mouths
    (section F).

    What the lift costs. With no cap, the cover stands over the terrain where the bake says BORE and the device's
    terrain is short. The measure is the run with the cap at lift_max_m (on b954b62ac): the gate rises from 127 to
    191, with a low mouth at 64 more entrances; 7 of the 110 low mouths are under 50 % open. logs/gate-list-r2.txt
    lists the 71 portals that are low only with the cap. These are places where the
    bake's portal line lies in front of the first station that passes its test, or where the bake's ground is the body
    of a way on top that the terrain does not hold. The bake rule that removes them: the portal line lies at the first
    station that passes the BORE test, read on the device's terrain. Not built.

    Cost per cell. No second slice, no second triangulation, no walk. Two triangles per storey-0 triangle over a
    floor. A cell whose graph has no bore takes the path of a build with no bores (see "Evidence", cost).

    C. The opening

    One rule (rule 4): over a floor, storey 0 is a lid; every other face yields.

    • The entering way past the line: its strokes end on the line; the cover's stroke starts on the same points.
    • A way on top: the heights decide, not a crossing of two centre lines. A stretch between two samples of a
      ground way is a lid of a lower way where, at each of its points whose stroke meets the lower way's stroke, its
      surface lies at least that way's least room over that way's floor. A stretch is judged for each lower way apart.
      Over a floor patch, a line's layers take part only where the stroke of its stretches on top of that floor's way
      holds the patch.
    • The other tube's entering way, a lower way beside the mouth: it has less than the least room. It yields.
    • Another bore under an entering way's open stroke (staggered twin tubes whose strokes overlap): the other
      bore's floor and cover hold the place. To give it to the entering way makes more walls than it removes ("What
      fixed which part").
    • A way on top over the last metres of the entering way (class Wa): there the entering way's own paved layers
      lose the place, and the place is a floor of the entering way's label under the lid. The opening is then the lid's
      edge. This needs the paved layers of an entering way and of a way on top to name their way. The spike names them
      along the whole line; the build names them on the stretch that is a lid or enters a bore, and open_max_m along
      it. The reach must be checked with the deck comparison (section E).

    The review's finding F6 is right: this is a sampled test on centre lines, and one failing point drops a stretch. It
    reads only what the bake has: the solver's heights and the classes' widths. So the bake can decide it (section F).

    D. The steps on the portal line

    • On the opening: storey 0 has no slot; the kind of the edge comes from the labels of the map's patches.
    • Beside the opening on the line: the cover's corners against the entering way's bank, or against a paved face
      that yields. These are the wings of the end face.
    • Over the opening: the front of the lid's plate, from the roof's edge up to the lid's edge.
    • Under the opening: the sill slot, from the floor's corners to the corners of the face in front.
    • In front of the line, across the entering way: a way on top is a lid (rule 4). Another ground way less than
      the least room over or under the entering way is storey 0's own step ("The list that stays").

    E. Decks away from tunnels

    The cause of round 2's 8 cells stands as found: crossings ran before split, so a crossing read the level of the
    part. Rule 1 removes it. The spike's "own" paved layers along a whole line make a second cause (12 cells of the
    first spike differ far from every tunnel-tagged way). The build names them per stretch (section C). The deck
    comparison "off | on" stays a proof count. It was not run again on this spike.

    F. Size

    Measured (gzip, wasm and glue, wasm-opt -O3, the guard's number):

    Build Size Over its "off"
    Round 2, off 805,925
    Round 2, on 818,836 +12,911
    First spike 86061544e, off 811,196
    First spike 86061544e, on 835,599 +24,403
    Spike b954b62ac with its test switches, off 814,155
    Spike b954b62ac with its test switches, on 845,956 +31,801
    Spike b954b62ac less the switches, the second merge, the sill relabel and the body test (trim-wt), off 812,235
    The same, on 835,931 +23,696

    The trimmed spike is a spike with its dead paths removed. It is not a written build: its "off" is 6.3 kB over round
    2's "off" (code with no feature gate), and its raw difference of 54 kB holds the iterator adapters, the map drop
    glue and the functions that the feature moves out of line, as the review lists for the first spike (about 20 kB raw).

    Estimate for a written build of the body without the frame. The basis is the measured 23.7 kB, less the review's
    list of what a trim removes (about 20 kB raw, 9 kB gzip):

    Part Estimate (gzip)
    Graph: levels first, the tunnel tag, the junction rule 0.5 kB
    End line: one point, one direction, the offsets and corners; the bound's flat end 1.5 kB
    One map: the joint slice, the floor labels, the faces split by floor, the opening edges 3 kB
    Lids: the cover's stroke, the test "on top" per stretch and lower way, the lid strokes per line 3.5 kB
    The lid in front of the line (the entering way's last metres as a floor) 2 kB
    Prism: twins, walls, plate front, sill, caps by floor 3 kB
    Cover's height: the floor bound 1.4 kB
    Sum about 15 kB (13 to 17)

    The three cuts of the review, each with its census run over all 1,014 portals:

    Cut Saves (estimate) What it costs in look Census (against b954b62ac, gate 127) Verdict
    1. The lids come from the bake as a tag about 2 kB (1.5 to 2.5): the test "on top" with its foot walk and the lower ways' lines goes; a tag reader of about 0.5 kB comes Nothing: the device's test reads the graph's sample heights and the classes' widths only, and the bake has both. One decision serves all cells. No own run: the same test on the same inputs gives the same lids. Yes.
    2. No lift: no floor bound; the cover is the terrain or the ground over it 1.4 kB (round 2 measured 1,428 B) Low and closed mouths. OBC_NO_BOUND=1: gate 452. 338 entrances enter the gate, each with a low mouth; 386 low mouths in all, 33 of them under 50 % open and 70 between 50 and 75 %. With the bound kept and capped at lift_max_m (OBC_LIFT=clamp): gate 191, 64 more low mouths. No. A stricter BORE test in the bake would move some lines; the test reads stations, so it cannot give the room at every corner.
    3. No lid in front of the line; the bake puts the portal line in front of every lid that reaches over the entering way about 2 kB With the bake's move: the bore's box stands square in front of an oblique way on top, under cover at the least room. Without it: a wall across the entering way. OBC_NO_WEDGE=1 with today's lines: gate 160. 42 entrances enter the gate with a wall across the way (33 of class Wa); wall within 3 m at 226 portals (173). The bake's move is not built, so its look has no run. Yes, in the bake step, after its own gate run. Until then the device keeps it.

    Recommended: cuts 1 and 3 in the bake, cut 2 not. The body is then about 11 kB (10 to 13). The target of 10 kB
    is at the edge of the estimate. What the kilobytes over it buy: the floor bound (1.4 kB) keeps 338
    entrances open. With the frame (3 to 4 kB) the chain of bridges and tunnels stands at about 64 kB against about
    60 kB.

    G. The simplest alternative

    The strongest simpler case is the review's: the bake decides, the device draws. The bake decides the portal
    lines, the lids and the body's length, with 0 device bytes and one decision for all cells. The device keeps rules 2,
    3 and 5 and the floor bound. This design takes that case for the lids and for the line in front of a lid (section F,
    cuts 1 and 3). It does not take "no floor bound": the bound is what makes a mouth open by construction, and the
    census shows its price.

    A dark quad on the portal line with no body is rejected as before: 345 of the 1,014 portals are underpasses, and an
    underpass is seen through.

    H. The build plan

    Each slice leaves a valid state. Nothing draws before step 3.

    1. Bake: the levels. Rule 6 (the body's length); the lids as a tag (lids: the metres along and the lower
      feature of each stretch on top); a portal line in front of every lid that reaches over the entering way; the
      portal line at the first station that passes the BORE test. levels only; a new features revision; the fixture
      and box B rebaked by the step's own script. The closed lines of rule 6 are no doors (a BORE | HIDDEN line inside a
      bore is a plain end wall), and they stay out of the list of HIDDEN runs of step 1. Proof: the tags of tunnel ways
      differ only by the new lines and the lids; the levels test of the fixture. No pixel change.
    2. Crate, feature bores: the foundation and the body (rules 1 to 5), from the branch claude/gp12-4-bore-storey
      with the spike as the model, written new and small. No pixel change with the feature off (256 digests).
    3. Crate, feature bores: the frame and the end face (step 2b): a prism on the opening's pieces.
    4. Step 3 of TrailView ground plan GP12.4: bores and portals: the open cut, the cover, the end face with its opening, the frame, the bore sheet #3345 (the viewer), with three notes: the cover's height is the ground's rule raised to the floor
      bound; a corner of the storey mesh is the least of its label's height and its caps, floor corners too; a bore's
      mesh is built when the cell's mesh is built, because it is made of it. The bridge keeps the triangles over a
      floor, not the cell's mesh, and nothing in a cell with no bore.

    What stays of the branch. The graph (the tunnel tag on ground kinds, split by states, the junction rule,
    levelled), features revision 22 and the rebaked fixture, the storey of a bore way and its bands, DeckWay for a
    bore, the signed storey in the records' merge, the caps of a corner and corner_height, the surface Cover, the edge
    kind Portal, the floor bound's walk, the changes of tests/graph.rs.

    What goes. PortalMap (walk, back) and the floor's relabel map; inner_grid; the bore path of mesh_storeys
    (its own triangulation); the storey's own slice for bores; the cover's band candidate; the test "in front of the
    line" in decks; the tolerance test of a portal edge; the cap of the bound at the terrain plus the lift; the sill's
    relabel of the floor's corners.

    The proof counts, by probe/census4.rs over all 1,014 portals:

    Count Target
    The gate and its parts, with the bores on and off The gate at most the list of this design, each portal with its cause. "over" 0.
    Ground between floor and roof; roof over the ground 0
    Closure of the shell 0
    Planar seam; portal miss 0
    A paved face over a floor that is no lid (invariant 5) 0 by the rule; the probe's paved_over lists each way
    A way on top that the cover cuts (invariant 6) Not measured in the spike. The build adds the count: a lid stretch whose own layers do not hold a patch of its stroke over a floor.

    Also: 256 digests with the feature off; the digests of storey 0 in the cells with no bore, on against off; the deck
    comparison "off | on" over box B; the WASM size "off | on"; the cell times "off | on" on an idle machine.

    The pictures of the build: the 12 places of "What a rider sees", and the 10 worst portals of the build's own
    gate list. A debug oblique cannot prove an open mouth; the eye-height renders of step 3 must.

    What a rider sees

    12 debug obliques of the spike 8938a7348, each opened by the designer (pics/final/INDEX.md; flat colours,
    orthographic, no viewer render). Seven places are in the gate (the worst of its parts); five pass it: four are the
    review's worst places, and 880 left the gate with the last commit.

    Portal Class Gate parts What the picture shows
    313 O, motorway low BROKEN. Tall green shards of storey 0 between dark road faces; no mouth can be read. A deck lies under the bore's floor (heights).
    58 Wa, residential low A dark square opening with two jambs under a wide road on top. It reads open.
    373 Wc, footway low, wall NOT CLEAR, likely half closed. A path with a loop ramp runs to a dark pit under a railway's edge.
    270 G, motorway low (a few centimetres; 97 % open) Open. Two carriageways run under the cover's edge; the floor shows inside. A thin dark line on the portal line.
    699 Wb, rail step BROKEN. Tall grey and brown slabs stand at the rail's mouth under a road deck.
    880 G, rail none Two track beds run into two openings with jambs. A thin riser between the two beds on the line.
    98 G, footway wall, also with no bores NOT CLEAR. A path loops down under a footbridge; no opening shows at this angle.
    205 G, motorway link closed CLOSED. No mouth: the road runs on over the ground.
    664 G, track none Reads right. A box mouth in the hillside with two jambs and a dark inside. The review saw it closed.
    519 Wa, footway none Reads as an opening: a square frame under a railway bank. The review saw a notch of 1 m.
    231 Wc, primary none Reads right. A wide square opening with jambs under a railway. The review saw a shard in it.
    737 G, cycleway none Open. IMPERFECT: a raised grey wedge where the path meets the road on the portal line.

    Of the 12: read right or open 7, not clear 2, closed or broken 3.

    Invariants

    1. Each point of a floor has a lid, and the roof lies at least the roof's plate under the lid at every point of every
      triangle. The floor lies under the lid too.
    2. A floor point on a portal line is a point of storey 0's mesh, and the reverse.
    3. Each edge of a floor's outline has a wall, or lies on a cell line, or is an opening edge.
    4. An opening edge has no slot of storey 0, a plate front over it and a sill slot under it.
    5. Over a floor, storey 0 is the cover or an own paved layer of a way on top of that floor's way.
    6. Under the cover, inside the bound's stroke and outside a deck's stroke, the room is at least the least room of the
      bore's class. (The spike misses it by 5 to 35 cm at about 22 portals; see "The list that stays".)
    7. The way on top is never cut: a stretch on top keeps its own paved layers over every floor. Not counted yet.
    8. With the feature off, what the viewer reads is byte-equal. In a cell whose graph has no bore, storey 0's records,
      faces and mesh are byte-equal with the feature on.
    9. A deck differs between "off" and "on" only within the reach of a tunnel-tagged way whose stretches differ. Not
      true in the spike (the "own" layers per line).

    The review's findings, checked

    Finding Verdict Evidence
    F1 no count measures the top flaw Right. The gate.
    F2 invariant 5 false; a low face pulls the roof down Right. Two causes: caps from a face over another floor, and non-lid faces in a lid's hole. 708 (hdbg: caps of label 10 over the railway's floor); rule 4.
    F3 the cover takes its height from the entering way's cut The rule is named right; it is not the cause. Where the floor bound holds a point the cover stands at the bound. 664: decks gave 4 segments 27 m out with near [true, true]; after the fix the mouth is full. F3's own proposal as a census run: section F, cut 2.
    F4 the diagnosis of the 239 is wrong Right. The gate table by class, kind and length, and the run with no bores: 149 walls within 0.6 m stand there with no bores and go with them; 36 stand with and without; 11 only the bores make.
    F5 the body turns inside out; the floor over the ground Right. The floor's caps; "over" 23 to 0.
    F6 rule 4 is a sampled test Right. Section F, cut 1: the bake decides it.
    F7 size 16 to 18 kB Right in size; measured 23.7 kB on the trimmed spike. Section F.
    F8 cost and memory Right. A cell with no bore: byte-equal storey 0 and the same path; the bridge keeps a mesh only in a cell with a bore. Times were not measured again.
    F9 decks Right. Decks left this design.
    F10 rule 6's closed lines are no doors Right. Section H, slice 1.
    F11 a way of one sample; the sharp inner corner; the front mark Right for the first two. The third (an opening edge beside the floor away from the portal) is not checked.

    Rejected options

    Option Why not
    (a) The bore's slice takes storey 0's portal pieces Two slices: the second one rounds again; needs a tolerance.
    (b) alone: pinned corners, two slices Round 2: 418 of 2,234 end edges not joined.
    (c) One stroke through the portal, the storey changes along it Right, but each stage of the graph reads one level per way. A later step can take it.
    The cover is the terrain raised by its lids' banks, with no floor bound (review F3) Not by construction: the bake tests stations. Census: section F, cut 2.
    The cover's bound capped at the terrain plus lift_max_m on the device Low mouths where the device's terrain is short between the bake's stations.
    The bound at the bore's full height The cover stands over a way on top that has the least room.
    A way on top by a graph crossing, or by more than the at-grade band As in the first design (the second one measured worse over the whole box).
    The floor's corners on the opening take the road's height A steep or twisted road in front raises the floor and closes the mouth.
    The entering way owns its open stroke against another bore; or the frame's depth in front of its line Each makes more walls in front than it removes (gate 127 and 143 against 105).
    A dark quad with no body An underpass reads as a door.

    Limits and risks

    • The gate is not near 0 (see the table). The parts that stay are named, and four of them are not traced.
    • Size: about 15 kB written, about 11 kB with two bake moves; measured 23.7 kB on the spike.
    • The lids as tags and the line in front of a lid are bake work with no proof here. The census runs measure the
      device with the current lines. A lid tag keeps the look by construction (the same test on the same samples). A
      line in front of a lid changes the look: the bore's box stands square in front of an oblique way on top, under
      cover.
    • The lift has no bound on the device. Where the bake is wrong, the cover stands as a block up to the least room
      over the floor. The clamp run lists the places.
    • One storey under the ground. Two bores that cross at two depths share one floor labelling: the one of the
      lower rank is cut where they overlap. With rule 6 this is rare.
    • Rule 1 makes one way of one sample in one fixture cell; the crossing stage needs its exact end rule there (a
      cut at an existing end sample makes no new piece).
    • The spike is a proof, not the build. It finds a triangle's floor by a point test; it names "own" layers per
      line; it keeps a second merge behind a switch.
    • The debug tool draws flat colours in an orthographic view. Several pictures cannot be read.

    Evidence

    All on timosPC, test box B (tunnels/step2/bake/fxb; 1,014 census portals). Round 2 is claude/gp12-4-bore-storey
    4a42b8f. The first spike is 04243fc8a (the behaviour of 86061544e). This spike is 8938a7348 on the local branch
    claude/gp12-4-joint-spike in tunnels/step2-redesign/wt. It is b954b62ac with the two approach rules off; the
    runs of the cuts, the 30 m body, the size and the digests are of b954b62ac (with the first approach rule on).
    trim-wt holds b954b62ac less its test switches (local branch claude/gp12-4-joint-spike-trim 76eba61e2). Files are in
    /media/timo/OSM1/tmp/ground-plan/tunnels/step2-redesign/; STATE.md there has the run log.

    • The gate: probe probe/census4.rs (census4r2.rs for round 2's API), runner scripts/c4.sh, tables
      scripts/gt.py and scripts/stay.py. Runs: logs/c4-box-off.json (bores off, the spike's pieces),
      logs/c4-box-round2.json, logs/c4-box-r1.json, logs/c4-box-r3.json (this spike, 8938a7348; the same file as
      c4-box-final.json), logs/c4-box-r2.json (b954b62ac), and of b954b62ac with a switch: logs/c4-box-r2-body30.json (OBC_BODY_M=30),
      logs/c4-box-r2-clamp.json (OBC_LIFT=clamp), logs/c4-box-r2-nobound.json (OBC_NO_BOUND=1),
      logs/c4-box-r2-nowedge.json (OBC_NO_WEDGE=1); logs/c4-box-r3-apron.json (the second approach rule on) and logs/c4-box-r3-switch.json (neither rule, the
      same binary). Round 2's pieces have no fixed side; the probe turns them by the
      census portal's direction.
    • The causes: probes probe/hdbg.rs (the height rule's parts at a point, the mesh corners and caps about it) and
      probe/spikedbg.rs (the faces and portal edges at a point); try runs logs/c4-try-t1.json to -t10.json, logs/c4-try-noapproach.json.
    • The body (the same runs): ground between floor and roof, roof over the ground, closure, planar seams and
      misses are 0 at every portal of the spike. Round 2: ground between floor and roof at 177 portals, roof over the ground at 184, planar seams at 314, misses at 542, closure 0.
    • Feature off: 256 fixture digests of b954b62ac equal the base (logs/digests-off-r2.txt against
      logs/digests-off-spike.txt).
    • Cost in a cell with no bore: of the 256 fixture cells, 219 have no bore way. In all 219, storey 0's records,
      faces, far block, rim and mesh are byte-equal on against off (logs/digests-on-r2.txt). In the 25 of them with a
      deck, the deck mesh's bytes differ and its triangle count, ways and ends do not: its layout holds the caps' count
      with the bores. The code asks the graph for a bore first (faces::any_bore), so these cells take the same path.
    • Cost in a cell with a bore: not measured again (the machine was loaded). The first spike: 1.24 times "off" on
      the 37 cells of the 40 subset portals (95th 2.25 times), with full-length bodies. This spike adds the lid strokes
      per line and one more cap per floor corner.
    • Size: packages pkg/off-r2, pkg/on-r2, pkg/off-trim, pkg/on-trim; logs logs/wasm-*.log.
    • Pictures: pics/final/INDEX.md.
    • The transitions, the decks, the first spike's census: DESIGN-r1.md, Evidence.

    Not measured

    The bake's rule 6, the lid tags and the moved portal lines (bake code). The deck comparison and the crate tests on
    this spike. The cell times on this spike. The count for invariant 7. Any viewer render. Each portal of the parts
    "wall only with the bores", "step", "closed" and "none".


    Generated by Claude Code

  18. timohueser commented on Nov 20, 2026

    @timohueser
    OwnerAuthor

    Closed in the backlog cleanup as superseded by #3651. That epic rejects the method of this issue by name ("continue to derive the shapes on the device (#3345, draft #3643)"), and P8 (#3685) deletes the bores feature that the merged pieces (#3488, #3531, #3566, #3572) live behind. Its useful parts (the count of test entrances, the rule that a way on top keeps its paved layers, the light) carry over into #3651.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions