Skip to content

Latest commit

 

History

History
2482 lines (2359 loc) · 233 KB

roadmap.md

File metadata and controls

2482 lines (2359 loc) · 233 KB

shulib Roadmap

shulib is an open, holonomic-native autonomous stack for VEX U robots — built to be more accurate than LemLib, cleaner than OkapiLib, and usable by a team that can't write a line of C++.

This is the in-depth, public roadmap. It is written to live on the team website and to stay true for the life of the project. For the engineering rationale behind any item, see the master plan.


Why this roadmap won't go stale

A roadmap goes false in three ways: work gets discovered late (incompleteness), items get reordered, or things get renamed. We design against all three:

  1. Permanent workstreams. The what lives in the workstreams below (§ Workstreams). They are never renamed or removed — only appended to, as WS13 and WS14 were. (This line used to state a count; it went stale twice as workstreams were appended. The section itself is the count.) New work slots into a workstream — it doesn't rewrite the roadmap.
  2. Milestones are fill-in, not rewrite. The when lives in milestones M0–M8. A milestone is "done" only when its Definition of Done (a real, testable bar) is met. We move the badge, not the structure.
  3. A Freeze Register. The handful of contracts that would break downstream work if they changed are listed in the Freeze Register. Once frozen, a contract changes only via a version bump + migration — never a silent break. That is the core promise that keeps everything below true.
  4. Frontier is expected, not a surprise. Stretch work is bucketed as ○ Frontier from day one, so shipping it later is a planned unlock, not a roadmap change.

If something needs doing and isn't on this page, that's a bug in the roadmap — tell the programming chair and it gets added to a workstream.


What shulib is

Most VEX motion libraries do one thing: drive a tank robot from A to B. shulib is the whole autonomous stack for holonomic robots (X-drive, H-drive) — the part that turns wheels, the part that knows where the robot is, and the part that decides what to do next.

Three goals shape it. Each is written below as a goal, with its actual status, because stating an intention in the present tense is how a roadmap starts lying:

  • Anyone can use it. Build a robot in our designer, drag a path, press run — no C++ required. Status: not built. Tiers 0 and 1 are milestone M5 and depend on VexBuilder; every routine today is C++. This is the project's central promise and it is the one furthest from done.
  • It always knows where it is. Fuse wheel tracking, the inertial sensor, the GPS and AprilTags into one drift-resistant estimate, holding < 1° of heading error across a full run. Status: the fusion stack is real; the number is a target, not a result. < 1° is frozen register row F2. The best measurement is 0.912° worst end-of-60 s over 10 seeded boots — against a simulated plant whose drift magnitudes are invented — with the worst instantaneous error touching 1.065°. The acceptance test for the real claim is one of the three deliberately skipped tests.
  • It's provably correct. The core runs off-robot in automated tests and on our host test plant, so bugs are caught before they cost a match. Status: real, and bounded by what a host test plant can prove. It proves logic, not constants — and the library has never driven a robot under its own control.

shulib is one half of a two-tool ecosystem:

   ┌──────────────────────────┐   .vexbot  (robot + paths)   ┌──────────────────────────┐
   │        VexBuilder        │ ───────────────────────────► │          shulib          │
   │  design robot · plan     │      (one project file)      │   run auton · localize   │
   │  paths · (sim, planned)  │ ◄─────────────────────────── │  (the library — works    │
   └──────────────────────────┘      SHUL/2 telemetry        │   standalone, no file)   │
        (visualize the robot)                                └──────────────────────────┘

One file carries the whole robot — its wiring and its autonomous routines — so a routine can never drift out of sync with the robot it was drawn for. Each tool stands alone; together they're a single pipeline from CAD → code → competition.


How to read this roadmap

Badge Meaning
✅ Done Shipped, with its Definition of Done met
🔨 Building Actively in progress
🎯 Next Committed; the next milestone(s) up
🔭 Frontier On the map by design; not started, and shipping it later is an unlock, not a change

Maturity tiers (from the Capability Catalog): ● Core (proven subset, ships first) · ◐ Tiered (clearly reachable) · ○ Frontier (stretch).

We are pre-season with a ~2–3 month dedicated build window, so the early milestones are deliberately foundational — we are building the thing the bug-prone old code structurally couldn't be.

Tracking what's actually done (status discipline)

This page is only useful if it is truthful. Three rules keep it that way:

  1. Evidence, not vibes. A task flips to ✅ / [x] only when its Definition of Done is backed by real evidence — a named test passing in CI, or a present-and-reviewed artifact. Never "done" from memory or intention.
  2. Three task states. [ ] not started · [~] in progress (work exists but DoD not met) · [x] done and verified. Half-built stays [~].
  3. "You are here" is always current. One pointer (below) marks the true frontier and is updated every working session, so "where are we?" has a one-glance answer. The milestone badges (🔨 / 🎯 / 🔭) reflect the same truth at coarser grain.

We under-claim before we over-claim. If there's any doubt a thing is finished, it isn't marked finished. When status changes, the change cites its evidence.

Testing discipline (tests that try to break the code)

Tests exist to find bugs, not confirm the obvious. A green 1+1==2 teaches nothing. The bar:

  • Every test targets a specific way the logic could be wrong — an edge case, boundary, sign flip, wrap-around, off-by-one, NaN, precision loss. If we can't name the bug a test would catch, it isn't pulling its weight.
  • Invariants/properties over hand-picked points — assert what must hold across the whole input space (e.g. wrap(x) always in (-π,π]; wrap(x+2π)==wrap(x)), swept or randomized, so edge cases surface themselves instead of being guessed.
  • Mutation check — for load-bearing code, deliberately break the implementation and confirm a test goes red. A suite that stays green while the code is wrong is theater.
  • Negative tests count — code that must not compile (mixing units) and inputs that must be rejected (NaN) are tested too.
  • Trivial confirmations are only ever harness self-checks (proving the runner works) and are retired once real tests exist — never counted as logic coverage.

Freeze Register

These are the contracts the rest of the project is built on. Each is frozen at the milestone shown; after that, it changes only with a schemaVersion/API-version bump and a migration path — we do not silently break them. This table is the spine of the no-staleness promise.

# Frozen contract What depends on it Frozen at Status
F1 Coordinate frame — origin = field center, +X right, +Y away from red, heading 0 along +X / CCW-positive Every motion, odometry, and transform line M0 ✅ LOCKED 2026-06-08
F2 Accuracy targets — heading < 1.0° (hard); ~1.0″ pose; ~0.25″ docked All acceptance tests; estimator design M0 ✅ LOCKED 2026-06-08
F3 Units & Angle semantics — internal inches + radians + seconds; degrees only at the API edge; one wrap type normalized to (-π,π]; shortestError(a,b)==wrap(b-a) with the exact-180° case → +π (not −π), pinned by a red-on-failure test Every numeric API signature M0 ✅ LOCKED 2026-06-19
F4 HAL interface signatures — the 10 runtime HAL interfaces IClock/IMotor/IRotation/IImu/IGps/IDistance/IOptical/IBattery/ITelemetrySink/IVision+ITagSource. (The config-ingestion seam IRobotConfig/IRouteSource — decision #10 — is authored at M5 with its RobotConfig/Route schema, F7/F8; not part of this runtime-HAL freeze.) All three runtime targets (robot/sim/test) M1 ✅ LOCKED 2026-06-19 (freeze-reviewed by a 30-agent full-set pass + exercised by RobotContext; the hal/pros adapters were built at R1a/R1b and were never toolchain-blocked — what is still open is on-V5 validation under a closed loop, which is R3's)
F5 IKinematics contract — twist (vx,vy,ω) ⇄ wheels + desaturate + strafeAuthority() (a pure read-only query = max sustainable |vy|/|vx|; the motion layer clamps, kinematics never clamps inside toWheels() — §13 #5) All motion code; new drivetrains M1 ✅ LOCKED 2026-06-19 (host-validated by X-drive + tank; on-V5 number-match pending)
F6 Public Chassis API — the whole facade surface, by group: construction Chassis(deps, pacer, config = {}) + non-copyable/non-movable; blocking verbs moveTo / strafeTo / turnTo / followTrajectory (span + brace overloads) / brake / hold(Time) / wait(Time) — the last three adopted at D2 — and curveTo / reverseCurveTo (span + brace overloads, four verbs), appended at CURVE1-A (below); manual verb drive(ChassisSpeeds, Frame), Frame required; control cancel() / waitUntil(pred, Time); state pose / setPose / strafeAuthority / lastExitReason / lastCompleted / motionConfig; Tier-3 seam deps() / scheduler() (both overloads); three public types ChassisConfig / MotionOptions (existing fields frozen; the field set additive-open by design — STEP1-A (2026-11-05) took that path: positionTolerance / headingTolerance, the per-call arrival tolerance, appended after the three and their types pinned) / TrajectoryResult (incl. succeeded()) — and, appended at CURVE1-A, a fourth, CurvePoint (= motion::CurvePoint, the curve verbs' parameter type: two constructors, four members, no default constructor). CURVE1-A (2026-11-11, API 2.7 — numbered at the merge) took the additive path for the verb set and that type, pinned the day they landed, no existing pin edited; appended at STEP1-B (built 2026-11-11, API 2.8 — numbered at the merge), pinned the day they landed: the leg OBSERVER — moveTo(pose, options, LegObserver) / turnTo(heading, options, LegObserver) and LegObserver's two members (fn, context) — the members pinned, the member SET additive-open, as MotionOptions' is; motion::LegProgress, what the observer receives, stays open to new fields (no pin covers its list); appended at MIRROR1-A (built 2026-11-13; the API minor numbered at the merge), pinned the day it landed: the read-only reflection() (noexcept) and the chassis::MirroredRun scope (constructed from a Chassis& and a math::Reflection; neither copyable, movable nor default-constructible) — every verb's signature unchanged, and its behaviour unchanged unless a mirrored run is open (an unmirrored run through runAuton pinned bit-identical to the merge base by a hash); plus the documented semantics the header carries (blocking + watchdog, pre-empt, cancel safe state, fault policy, wait-for-live, strafe-fallback visibility — TANK1, 2026-09-27: the tank sentence of the strafe-fallback semantics rewritten, API 2.3). Time is typed units::Time across the surface (the D2 retype; hold(500) does not compile). Deliberately OUTSIDE F6: Routine / RoutineResult / RoutineStopCause — they froze at D3 as their own row F10 (a different tier, versioning independently); the MotionScheduler / MotionDeps member surfaces reached through scheduler()/deps() (C1/C2's layers — only the accessors freeze here); the lower-layer config fields reached through ChassisConfig (they belong to their layers). Enforced structurally: compile-time signature pin test/f6_signature_pin_test.cpp (69 pins as of MIRROR1-A — 53 SHULIB_F6_PIN + 16 SHULIB_F6_NOT_NOEXCEPT, as tools/briefing_status.py counts them; 67 at STEP1-B; 61 at CURVE1-A; 50 at STEP1-A; 48 before it; this row said 36 until STEP1-A, the SHULIB_F6_PIN count alone; mutation-proven) + the version mechanism include/shulib/version.hpp (API 2.0, breaking-vs-additive policy written) Every auton ever written on shulib M2 ✅ LOCKED 2026-08-12 (at D2, after D1's second consumer; the nine-item critique rulings + rejected alternatives are the D2 completion record's centrepiece)
F7 robotProfile sub-schema inside .vexbot — drivetrain/odometry/sensors/mechanisms/corrections Config codegen; every robot file M5 🎯 (coordinate with VexBuilder)
F8 paths[] sub-schema + command-id vocabulary — BOTH halves of the routine contract, the in-memory one and the on-disk one. FROZEN: the data types config::Route (name[32], waypoints[32], count) / Waypoint (x, y, heading, headingMode, motion, reverse, constraints, markers[4], markerCount) / Marker (id[24], args[2], argCount) / Constraints (maxLinear, maxAngular, timeout); the enumerator VALUES of WaypointMotion (Start=1 … Hold=6) and HeadingMode (Fixed=1, Free=2) — a generator persists them as integer literals, so a renumbering is invisible at every call site and catastrophic in a file exported last season; the capacities kMaxWaypoints=32 / kMaxMarkersPerWaypoint=4 / kMaxMarkerArgs=2 / kMaxMarkerIdBytes=24; the id vocabulary rule (1–23 bytes of [a-z0-9_], so no id ever needs escaping on any of the four paths it travels — a C++ literal, a manifest line, a .vexbot field, a picker button); the four library-owned built-in ids and their arities wait_ms(1) / brake(0) / hold_ms(1) / log(0..2) in that order (the manifest's order is part of its bytes); runner::CommandRegistry's public members (on ×2, find, count, ids — and a third on(id, handler, argCount, doc) APPENDED at MECH-A4, 2026-10-29, API 2.5, pinned), runner::Handler/CommandEntry (CommandEntry::doc APPENDED at MECH-A4, pinned; the manifest prints a registered id's doc, and a registry without docs writes the same bytes — the golden unchanged), PathRunner::run(const Route&) -> RunReport and RunReport's seven fields; writeManifest's signature, field names and record order; and the file schema's field names and value vocabularies in vexbuilder-integration.md §4.1–4.3. ADDITIVE under kApiMinor: new enumerators AT THE END, new built-in ids AT THE END, new RunReport fields, new registry members, new optional file fields, new manifest fields — and relaxing a Route::valid() rule (tightening one is breaking; G2 relaxed exactly one, R6 below). Deliberately NOT frozen, said out loud because silence in this register reads as frozen: the WORDING of the runner's log lines and of valid()'s refusal messages (the BEHAVIOUR is frozen — one Warn per unknown id naming the id and the waypoint index, one Warn on a stop, one Info per log marker — the sentences are not); and motion: "arc", which is a named gap rather than an omission (no facade verb performed an arc when F8 locked, and F8 must not freeze something the library cannot do — it arrives additively; since CURVE1-A, 2026-11-11, curveTo performs one, and "arc" itself is CURVE1-B's, after the 21st). The one behavioural change G2 made to G1's data rules (R6): a MoveToPose with HeadingMode::Free is now LEGAL and means keep the heading the estimate has when the leg starts; TurnTo keeps refusing Free. Enforced structurally: compile-time signature pin test/f8_signature_pin_test.cpp (mutation-proven — run() gaining noexcept, count() changing return type, a widened id charset and a reordered built-in each fail the build NAMING F8) + the byte-exact manifest golden in test/manifest_test.cpp + include/shulib/version.hpp (API 2.2 at the lock, carrying the G2 additive note) Every data-driven routine M5 ✅ LOCKED 2026-09-18 (at G2, whose acceptance test is differential rather than tolerance-based: the same five legs written once as DATA and once as a Routine chain drive two identically-seeded host plants bit-identically — per-tick ground truth by memcmp, every commanded volt an exact double. Host plant only: no route has ever executed on a robot.)
F9 SHUL/2 telemetry wire protocol (v1) — the wire serialization of DebugRecord (§18) Sim, record/replay, tuner, VexBuilder overlay; every sink (TermSink/SdSink/Shul2Sink) shares the DebugRecord schema M6 🎯
F10 Public Routine API (the Tier-2 recipe layer) — construction Routine(chassis, name = "routine") noexcept + non-copyable/non-movable; fifteen steps, each returning Routine&: startAt / moveTo / driveTo / strafeTo / turnTo / face / followTrajectory (span + brace overloads) / brake / hold(Time) / pause(Time) / waitFor(pred, Time, name) — the eleven locked here — and reverseTo / faceAway, appended at L9 (2026-09-29, API 2.4) by the additive path this row allows, pinned the day they landed with no existing pin edited; appended at MECH-A4 (2026-10-22, API 2.5) by the same path: RoutineStopCause::MechanismStepFailed (== 5, pinned) and the RoutineResult::mechanismVerdict field (its type pinned); appended at STEP1-A (2026-11-05) and pinned the day it landed (the team lead's D1, 2026-11-03 — the route maker generates code against it): the on-failure choice — onFail(OnFail) / label(const char*), OnFail's three spellings stopChain / carryOn / skipTo(const char*), RoutineStopCause::MechanismNotStarted (== 6) and six RoutineResult fields (failedOn, firstFailedAt, firstFailedName, firstFailedCause, jumped, skipPendingTo), with the deadline-always-stops rule as documented semantics (STEP1-B's partway-trigger arms atPercent / afterDistance / afterTurning and the two handles they return, added at STEP1-B (built 2026-11-11, API 2.8), stay OPEN like the mechanism START forms they lead to — not pinned); appended at CURVE1-A (2026-11-11, API 2.7 — numbered at the merge) and pinned the day they landed: the curve steps curveTo / reverseCurveTo (two steps, span + brace list — four overloads), in one block, each one Chassis call; four observers ok() / result() / lastTrajectory() / chassis(), all noexcept; two public types RoutineResult (all fifteen fields — nine through MECH-A4, whose mechanismVerdict was appended there with its type pinned, and six appended at STEP1-A, each with its type pinned) and RoutineStopCause (append-only — the existing enumerator values are pinned, because a re-meaning is invisible at every call site); plus the documented semantics: eager execution (a step runs when it is chained), the stop/safe/skip/report error policy, preconditions throwing through with the chain's counters untouched, lastTrajectory() reading exit = Running until a trajectory has run, and typed time as a SEMANTIC (hold(0.3) must not compile). Deliberately OUTSIDE F10: then() — the mechanism seam, whose accepted return types and name default are a placeholder chosen before mechanisms existed (F1/F3 build them), so freezing it would commit to a guess; and the exact WORDING of the stop/skip log lines (the behaviour is frozen, the sentence is not). OPEN — the team lead ruled 2026-10-29: leave it open for now (pinning later is additive) (MECH-A4, 2026-10-29): whether the mechanism STEPS (move / run / set / spinUp / home / stop / waitUntilDone and the START forms), the context constructor Routine(ctx, name) and lastMechanism() join this freeze. They are NOT pinned meanwhile. Proposed: not yet — every one takes the mechanism seam's types (F11, not frozen; its trigger as this register states it: "F3's scoring primitives, on hardware"), as then() does, and then() is outside F10 for exactly that reason. The alternative: L9's additive path, pinned the day they landed. Pinning them later is additive; un-freezing them would not be. A separate row from F6, not an amendment: the recipe layer is a strict client of the facade, a different tier that can version independently, and amending F6 would retroactively blur what F6 promised on its own lock date. Enforced structurally: compile-time signature pin test/routine_signature_pin_test.cpp (79 pins as of CURVE1-A — 61 SHULIB_F10_PIN + 18 SHULIB_F10_NOT_NOEXCEPT, as tools/briefing_status.py counts them; 70 at STEP1-A; 59 at MECH-A4; 57 at L9; this row said 37 from the lock until 2026-09-29, stale since F1 added pins; 16-mutation-proven at D3; each of L9's seven — two member-type pins, two noexcept pins, the defaulted spellings and two non-const pins — seen failing the build under its own mutation when they landed; every noexcept pin using the compound-requirement detector that D2's hole #1 taught) + include/shulib/version.hpp Every Tier-2 auton ever written on shulib M7 ✅ LOCKED 2026-08-12 (at D3, after the cookbook — its second consumer — wrote fourteen recipes against it and needed zero changes to the surface; the critique and its rulings are the D3 completion record's centrepiece)
F11 Mechanism seam + operation contract — hal::IMechanism / MotorMechanism / PneumaticMechanism / IDigitalOut (the device level, an F4 sibling explicitly outside that freeze — F4's locked row is untouched) and manipulation::IMechanismOp / MechanismOutcome / the two generic operations (the bounded-operation level). 🚫 NOT FROZEN — stated out loud because silence in this register reads as "frozen" (D2's lesson). Built at F1 (2026-08-13) deliberately BEFORE any concrete mechanism exists, so sequencing shapes the seam rather than hardware; it freezes only after its second real consumer — F3's scoring primitives, on hardware — has stressed it, the same build → second consumer → freeze path F6 and F10 took. Additive-growth notes ride the headers; then()'s mechanism branch stays unfrozen with it. (AMENDED at DOCS2, 2026-08-14 — this seam IS now in the api-doc coverage set. The original ruling, made at F1 and cited by F12/F13/F14 as precedent, was that gating an unfrozen seam would pin it. Re-examined when the reference was expanded to the whole tree, that conflates two different mechanisms: changing a FROZEN signature fails a compile-time pin naming the register row and costs a major version bump plus a migration note, whereas a gated-but-unfrozen member costs one /// edit and a regeneration. That is friction, not a freeze — and it is friction this project already imposes on itself, since documentation is a deliverable here. Nothing about this seam's shape is frozen by being documented, and the freeze trigger below is unchanged.) chunk F2's end-of-run guard (the claimant hook + cancel-all reach operations through this seam); F3's primitives; G1's RobotBuilder; H2's hal/sim; R1's adapters — (candidate: F3) 🚧 open by design
F12 Sequence engine (sequence/run_guard.hpp) — RunGuard (the run-scoped deadline owner + guaranteed end-of-run action), RunGuardConfig/RunGuardReport/GuardedWaitResult. 🚫 NOT FROZEN — stated out loud because silence in this register reads as "frozen" (D2's lesson). Built at chunk F2 (2026-08-13) with one consumer — F4's student-authored routines are hardware-gated (Phase F′) and D1 ruled G2 does not consume the recipe chain — and nothing freezes on one consumer's evidence. Both instants are caller-supplied with no defaults; the library holds no field coordinate, no park pose, no match length. (AMENDED at DOCS2, 2026-08-14 — sequence/run_guard.hpp IS now generated and gated. This row's original parenthetical rested entirely on "the F11 precedent"; see F11 for why that precedent was overturned. Being documented freezes nothing: the freeze trigger below is unchanged, and RunGuard's shape can still move for one /// edit and a regeneration.) F4's routines (the second consumer and the freeze trigger); COMP-a's competition::runAuton (2026-09-26) — a second consumer on the host, which added requestAbandon() / RunGuardReport::abandoned additively (and COMP-t's auton tester, 2026-09-28, added pacesTotal() the same way — its boot's proof that the guard is the chassis's pacer; its review, 2026-09-29, made the safing sweep attempt every mechanism when one throws, and the unwind never throw twice; MECH-A2, 2026-10-15, made the latch also cancel every CLAIMED mechanism at the deadline and at an abandon — a BEHAVIOUR change, no signature change — and appended RunGuardReport::mechanismCuts) (the evidence for the team lead's freeze call, stated rather than acted on: two consumers, both host-only; neither has run on a robot, and the competition program that will exercise it on one is COMP-b — nothing is frozen here) — (candidate: F4) 🚧 open by design
F13 Driver-input seam (hal/controller.hpp) — IController (axes normalized [-1,1], button LEVELS, positive isConnected(), master/partner by construction), ControllerAxis/ControllerButton, ButtonEdge (per-consumer edge detection — PROS's consuming get_digital_new_press() is banned by contract, HA-104), hal::fake::FakeController, and the hal/pros adapter tree it rode in with (ProsController + the other R1a adapters — adapters are implementations, not contracts, and no adapter surface freezes here either). 🚫 NOT FROZEN — stated out loud because silence in this register reads as "frozen" (D2's lesson). Built at R1a (2026-08-13) absorbing Phase T's T1, an F4-additive sibling exactly as F1's IDigitalOut was — F4's locked row is untouched. Freeze trigger: a second real consumer — T2's driver-control layer is the first; T2/T3 stress it, then it freezes on the F6/F10 path. (AMENDED at DOCS2, 2026-08-14 — hal/controller.hpp and the hal/pros adapters ARE now generated and gated. This row's original parenthetical rested entirely on "the F11/F12 precedent"; see F11 for why that precedent was overturned. Adapters in particular lose nothing: they were already declared implementations rather than contracts, and documenting an implementation does not promote it to one.) T2's teleop layer (first consumer: src/main.cpp's R1a drive loop); T3's mechanism bindings — (candidate: T3) 🚧 open by design
F14 Digital-input seam (hal/digital_in.hpp) — IDigitalIn (one member: the raw level of a digital input line; no debounce, no edge state, no validity channel — each a documented ruling in the header), hal::fake::FakeDigitalIn, and the hal/pros ProsDigitalIn adapter (an implementation, not a contract — nothing about it freezes). 🚫 NOT FROZEN — stated out loud because silence in this register reads as "frozen" (D2's lesson). Built at R1b (2026-08-14) as an F4-additive sibling exactly as IDigitalOut (F11) and IController (F13) were — F4's locked row is untouched. And stated more loudly than its siblings: this seam was built on an OPEN QUESTION, not a consumer — the lift-homing switch-or-stall decision (asked 2026-08-13) is still unanswered; the seam exists on the "cheap now, expensive to discover at R3" ruling, and if the answer comes back "stall" it is a small unused sibling, a cost accepted in writing when it was ruled in. Freeze trigger: a real consumer — F3's homing routine, if the answer is "switch" — then a second, on the F6/F10 path. (AMENDED at DOCS2, 2026-08-14 — hal/digital_in.hpp IS now generated and gated. This row's original parenthetical rested entirely on "the F11/F12/F13 precedent"; see F11 for why that precedent was overturned. Worth noting for this row specifically: the seam's three deliberate absences — no debounce, no edge state, no validity channel — were already rulings written into the header, and generating a page from that header publishes those rulings rather than hiding them.) F3's homing (conditional on the open decision); any bumper/limit-switch consumer — (candidate: post-F3) 🚧 open by design
F15 The camera's frame seam (hal/vision_frames.hpp) and the camera's library code — hal::IVisionFrames (read() a FRAME at a time, status() touching nothing), VisionFrame / Detection / FrameStatus / ModelCheck / CameraStatus, AiVisionSettings / ColourDescriptor and their refusals; config::CameraConfig / CameraPlacement (config/camera_config.hpp); and vision/* (camera_geometry.hpp, override_elements.hpp, since VIS1-A2 toggle_tracker.hpp, piece_finder.hpp and camera_feed.hpp, and since AF1S-A2 toggle_camera.hpp — the robot file's Toggle block and the step's camera) — plus the hal/pros ProsAiVision adapter, an implementation and not a contract. 🚫 NOT FROZEN — stated out loud because silence in this register reads as "frozen" (D2's lesson). Built at VIS1-A1 (2026-10-18–22) as an F4-additive SIBLING exactly as IDigitalOut (F11), IController (F13) and IDigitalIn (F14) were — F4's locked IVision is untouched, byte for byte, and stays AbsentVision in the Robot (VIS1's D11): it has no type, no box and no time, and no consumer. Built with no consumer at all — the Toggle tracker, the piece finder and the camera feed (VIS1-A2, host-tested only) are its first; AF1-S's skills Toggle step (competition/toggle_visit.hpp, AF1S-A1, landed 2026-11-13; it reads override_elements.hpp's new Quadrant table and ACTS on the tracker) the first to move a mechanism on the camera's word; AF1 (the driver-control auto-flip) and L4 (drive to a piece) the ones that will stress it; and no AI Vision sensor has been read through it. Freeze trigger: those consumers on hardware, on the F6/F10 path. Generated and gated like every header (F11's DOCS2 amendment): being documented freezes nothing. VIS1-A2's tracker, finder and feed; AF1-S's competition/toggle_visit.hpp; AF1; L4; VIS1-B's bench page — (candidate: after AF1 / L4 on hardware) 🚧 open by design

Milestones at a glance

You are here: **M1 host-side complete (F4 + F5 locked; M1's on-V5 DoD is open, owned by R3b); M2 control + localization complete; Phase A COMPLETE (2026-08-06); Phase C COMPLETE (2026-08-11) — C1–C8 all closed. (Corrected 2026-09-24: this line said "M1 complete" while M1's badge is 🎯 and its DoD needs identical numbers on the V5, and "C1–C7 … 2026-08-10" though C8 closed the phase a day later.) M2's STRUCTURAL clause closed at C7: the pre-rebuild tree is deleted, make produces an uploadable V5 package again, and src/main.cpp wires the v2 stack alone. M2's ON-ROBOT clause is OPEN, owned by R3b — the library has NEVER DRIVEN a physical robot. The drivetrain-and-driver hal/pros adapters landed at R1a (2026-08-13, host-tested against a shim of PROS — see the R1a entry below), and the mechanism-sensor adapters at R1b (2026-08-14 — see the R1b entry below). All of Phase E, F1, F2, R1a and R1b are committed on shulib-v2. DOCS1 (the full documentation pass) and DOCS2 (the generated reference over the whole public API — 1,625 public entities across 115 headers at the time; 2,307 across 145 at 2026-09-24, all gated) are both done. THE RELEASE HAPPENED on 2026-08-15 — origin/main is c778c11, docs.shurobotics.com publishes everything through DEFECTS1, and the procedure is now RELEASING.md + tools/release.py rather than folklore. (This sentence read "what remains before R3 is the release to main, and the only question riding with it is whether to push at all" for two days after the push — the status pointer is the one line in this file that must never be stale, and it was.) First motion is still open.

GATE1 — the src/ build gate — landed 2026-08-19 (committed 7d3e7ce; completion record in the development log, shulib-v2 branch): CI now runs the REAL make for every robot variant, compile AND link, through tools/src_build_gate.py (self-test, then check), so src/main.cpp is no longer the one file no gate could see. Two records were corrected by measurement — the on-robot link is NOT blocked (make links at arm-none-eabi-g++ 13.2.1), and make ROBOT=xdrive replaces a documented flag that silently built the wrong robot. Its close-out — this paragraph and the record — was written 2026-09-10, three weeks late: the gap this pointer exists to prevent. Proven on a GitHub runner on 2026-09-10: the first push since 2026-08-17 (39 commits) ran both CI jobs green at 89b00f2, the build gate included, for all three robot variants.

A SECOND ROBOT exists (2026-09-10): the season's tank chassis — five coupled motors per side driving four wheels per side, no sensors mounted yet, cartridges read blue off a motor, 2.75 in wheels. R3b session 2 (briefed and committed d92a9fe) builds pieces 1 and 2 for it in a teleop-first order, with a bench-tester DRIVE station first so the build team can drive it under the library's adapters (not its motion stack — the library has still never driven a robot), and pulls a new chunk R3d (drivetrain self-calibration + persistence + boot verification) forward from E5. Session 2's Part 0 LANDED 2026-09-10: the bench tester carries a per-variant chassis table (robot two's ports stayed UNSET until the build team reported them later the same day — nothing was guessed; now LEFT 11–15 / RIGHT 20–16 back-to-front, front = the 15/16 end, cartridge blue read off a motor, IMU still none; the census confirms the ports), MOTOR WATCH watches every motor the census finds and captures each port's sign from a whole-robot push, and a new station 10 DRIVE powers the drive motors through the library's ProsMotor/ProsController adapters behind six safety gates (refuse-unless-captured, wheels-up first with a ground mode unlocked only by a clean wheels-up run, a held dead-man button, a 3 V ceiling stepped by button, a coupled-motor fighting cut-out, and 0 V on every exit path). The stick → ChassisSpeeds mapping moved out of src/main.cpp into the PROS-free shulib/teleop/stick_mapping.hpp (chunk T2's seam), pinned bit-for-bit against the old loop's code; make ROBOT=tank is the third validated variant and the src/ build gate asserts all three by define AND by a beacon string in the linked package. First hardware session on robot two, later on 2026-09-10: the tester uploaded and ran on its brain (VEXos 1.1.5, PROS 4.2.2); the census found nine of the ten table motors (port 19 silent — a cable to re-seat, so the table stays "not measured"); ProsBattery and ProsController made their first hardware reads; the touch menu was proven working by a touch readout after "the screen does not work" turned out to be a pretend match imposed when the program was launched from the controller's own menu (the tester lives in driver control, and VEXos was reporting a field). Same evening, second session: all ten motors answered the census after three cables were re-seated, an IMU appeared on port 2 (now in the table, measured true), the controller read CONNECTED, two hand pushes captured every motor's sign (port 18 ~20 % short both times), and station 10 DRIVE ran on hardware with ten ProsMotors constructed, gearset written and read back, all six gates passed — but the commanded volts stayed at zero with the dead-man held, so no motor has yet been powered and nothing has turned; whether the left stick was deflected or the axis read is wrong on hardware is the first check of the next session. The library's motion stack has still never driven a robot. Pieces 1 and 2 (the motor group; the odometry seam) are next and unstarted; M1's badge has not moved.

R3b Part 0b — the DRIVE PROGRAM (written, verified and committed 2026-09-10 late; both programs were uploaded to robot two's brain the same day; and on 2026-09-17 the team lead reported that "shulib Drive did run and work well" — the first time this project's code has moved a robot, through the adapters, which confirms the table's ports, signs and cartridge by outcome; no log was captured, so cuts and currents are unrecorded): robot two is driven through the library's adapters by a program that just drives — make ROBOT=tank PROGRAM=drive, "shulib Drive" in its own slot (the team lead's ruling: a program picked by name from the brain's slot list, not a chooser inside Bench Tests). The measured signs (LEFT −11 +12 −13 +14 −15 | RIGHT +20 −19 +18 −17 +16) and the IMU on port 2 live in ONE chassis table (src/robots/chassis_table.hpp) shared by the tester and the drive program; MOTOR WATCH cross-checks a push against them per port. The program tolerates dead ports under a pure, host-tested policy (shulib/teleop/drivetrain_degradation.hpp: drive degraded unless a side has fewer than three answering motors or more than two are dead in total), detects a port dying at runtime, and turns the tester's fighting-motor and over-current cut-outs into one-second non-fatal cuts through a pure, host-tested evaluator (shulib/teleop/coupled_side_monitor.hpp) — every mutation the brief lists observed red. The build gate then proved four builds. The motion stack had still not driven a robot — the drive program is adapters and open-loop volts, and says so at boot.

R3b Parts 1–3 — THE LIBRARY BUILDS FOR ROBOT TWO (written and verified 2026-09-14; NOT run): hal::MotorGroup (Part 1), the IOdometry seam with DriveEncoderOdometry and the one hal::DriveGeometry (Part 2), and a third program (Part 3): make ROBOT=tank PROGRAM=library → "shulib Teleop", slot 2 — robot two's whole object graph (ten ProsMotors from the table's signed ports behind two groups, ProsImu, explicit absent GPS/tags/vision, drive-encoder odometry, fusion, Localizer, RobotContext, MotionDeps, Chassis) built from src/robots/chassis_table.hpp, driven by the R1a teleop loop through Chassis::drive(speeds, Frame::Body) — the one loop function both graphs now share. The build gate proved five builds (six since R3d Part 2 added "shulib Calibrate"). (Since R3d Part 2 this graph is built from a hal::DrivetrainDescription — the SD card's calibration record first, the typed table second — rather than straight from the table; the paragraph above records Parts 1–3 as they landed.) It has NOT run. It cannot yet: the table's geometry is UNSET (track width, motor→wheel ratio — never guessed; the team lead measures, the coordinator types), and the program REFUSES at boot with the missing fields on screen until then. The first run is wheels-up, then the ground, with the coordinator and the team lead; M1's badge does not move here. (True as written on 2026-09-14. Since then it HAS run: the R3d Part 2 version, booting from the calibration record rather than the table, drove robot two on 2026-09-25 — eight starts, open-loop under driver control through the library's own graph; no library-commanded motion has run (R3b open). G1 Part 2b rebuilt it on robot::Robot, and that version has not run.) With drive-encoder odometry the stall cross-check has no independent source and is configured not to lie about it. Plan ruling the same day (team lead): BOTH of this season's competition robots are TANK drives for the fall semester; the X-drive is built in spring 2027 and the holonomic validation (R3c) moves there — the holonomic code stays as built and sim-proven.

R3d BRIEFED 2026-09-17, with robot two apart and R3b still open on its bench run. The team lead's direction: complete the library with whatever needs no robot. R3d Part 1 — the drivetrain description (one representation, two sources: the calibrator and the typed table) and the self-calibrator proven against the host plant — is briefed and waits for the go; Part 2 (persistence with a checksum, the SD read seam, the registry seam, boot verification, the programs) and Part 3 (the bench session, where R3b also closes) follow. R3d's gate — the motor group and the odometry seam — is in the tree; starting it before R3b's bench run is a scheduling decision, not a dependency change. The two typed numbers the table waits for (track width, the motor→wheel ratio) are no longer waited on: the robot measures them at Part 3, and the typed table stays as the fallback. T2's library half LANDED 2026-09-18 (driver feel: continuous deadband, expo, slew off by default, the three drive modes, field-centric with a latched fallback — host-proven in an isolated worktree in parallel with R3d; the teleop loop and the drive programs are NOT yet re-pointed at it, so every package built today keeps yesterday's feel). R3d Part 1 LANDED 2026-09-18 — host-only: hal::DrivetrainDescription (the one representation, with the typed table now a second source through tableToDescription()), hal::DriveGeometry::fromInchesPerRadian for a scale a robot measured rather than a person typed, and calibration::DrivetrainCalibrator — a tick-driven, non-blocking, allocation-free state machine that finds the drive ports and their polarity from a powerless hand push, names each port's side from the IMU's yaw sign under a single-member pulse, takes each side's inches per radian from one push along a tape (the MEDIAN, the same statistic the motor group will report with), and measures the effective track width from a spin each way. It is proven against the A2 plant to 1e-9 on the scale and 1e-6 on the width, reproduces itself across four hostile seeds, and refuses — naming the port — on a contradiction, a fight, a wheels-up run, a curved push, a missed tick or any timeout, always into 0 V and coast. It has never moved a physical drivetrain.

R3d Part 2 LANDED 2026-09-18 — still host-only, and now there is a PROGRAM to run it in. The calibrator's answer has somewhere to go and something that reads it back: a fixed-width, CRC-32'd record on the SD card (calibration/calibration_record.hpp, 180 bytes, refused by name on magic, version, length, CRC or a self-contradictory description, pinned by a byte-exact golden whose bytes came from a second implementation of the layout); the read half of the block seam (hal/block_source.hpp + the /usd/ adapter); a port census seam over PROS's zero-indexed registry (hal/device_registry.hpp, the one port − 1 in the tree, tested from both ends); a boot check that compares a record against the ports before any adapter is constructed and refuses a rewired robot while tolerating a dead one (calibration/boot_check.hpp, over the same dead-port policy "shulib Drive" uses); an ABSENT member in hal::MotorGroup (a nullptr slot, skipped and excluded from every read, with all-present groups bit-identical); a fourth program, make ROBOT=tank PROGRAM=calibrate → "shulib Calibrate" (slot 4), in which the robot measures its own drivetrain and writes the answer to the card; and "shulib Teleop" rebuilt on the description — the card's record first, the typed table second with a warning on the panel, a refusal naming both when neither can describe a drivetrain. The build gate proves six builds. NEITHER PROGRAM HAS RUN ON HARDWARE, the register's three new entries (HA-138/139/140) are all unsettled, and Part 3 is the bench session — not yet held: robot two's brain has not enumerated on this laptop's USB since 2026-09-18. R3b is still open on its bench run; the library's motion stack has still never driven a robot.

G1 Part 1 LANDED 2026-09-18 — host-only: a robot can now be described as DATA and built from it. config/robot_config.hpp (RobotConfig, embedding R3d's hal::DrivetrainDescription by value for a tank rather than mirroring it, plus the two holonomic kinds, the odometry choice, the GPS, mechanism types and the tuning), config/route.hpp (Route/Waypoint/Marker — ids and typed args, never code), the hal::IDeviceProvider seam with a host FakeDeviceProvider, and robot::Robot, which owns the whole PROS-free graph and borrows its devices by port. The acceptance test is bit-identity: a tank config and an X-drive config each drive the A2 plant with per-tick ground truth memcmp-equal to the hand-wired graph, clean and hostile. The PROS provider and src/main.cpp are Part 2 — main.cpp is NOT one line shorter yet, no config has ever built a graph over a real device, and the motion stack still has not driven a robot. (True of that day; Parts 2a and 2b, below, have since landed.)

G2 LANDED 2026-09-18 — host-only, and F8 is LOCKED. runner::PathRunner runs a Route through the facade (first failure stops and safes the drive; markers fire on a settled leg only), runner::CommandRegistry binds command ids to code (registry.on(...), four library-owned built-ins, no heap), and runner::writeManifest exports the id vocabulary for VexBuilder's picker. A route executes on the host test plant bit-identically to the same legs written as a Routine. Nothing of Phase G has run on a robot.

G1 Part 2a LANDED 2026-09-24 — host-only: the library half of G1 Part 2. (Part 2's brief was revised that morning, after an audit found four defects in it, into three parts: the library half, shulib Teleop on the library, main.cpp as a dispatcher.) hal::pros::ProsDeviceProvider — the on-robot device provider: real adapters made on demand, one per port, and a port refused BY NAME when the brain's registry says it is empty or carries the wrong kind, before anything is opened (the new belief it rests on is HA-141); dead drive ports in the builder (robot::BuildOptions — the boot check's missing ports become absent group members, never requested, and the builder applies no dead-port policy of its own); the session header's port map generated from the config (Robot::portMap(), byte-identical to the text src/ prints by hand); and the driver-control loop, teleop::runDriverControl, PROS-free and proven on the host plant under a fake controller. No program uses any of it yet: src/ is unchanged, main.cpp is not one line shorter, and none of it has run on a robot — the provider has been tested only against the host's stand-in for the PROS headers. (True of that day; since G1 Part 2b, below, "shulib Teleop" uses all four, and none of it has run on a robot still.)

G1 Part 2b LANDED 2026-09-26 — "shulib Teleop" is rebuilt on the library, and THIS version has not run on a robot. src/programs/teleop_program.cpp (deleted at T4 Part 3) builds robot::Robot over hal::pros::ProsDeviceProvider from a shared boot source (src/common/boot_source.{hpp,cpp}: the card's calibration record, else the typed table, else refuse — the decisions unchanged) and drives through teleop::runDriverControl with the driver-feel layer's default profile (the team lead chose the switch on 2026-09-26: the same as the old mapping except for a continuous deadband around the stick's centre; no driver has felt it). src/main.cpp's tank-library branches forward to it (1,340 → 722 lines; the invented X-drive graph stays until Part 2c). The previous, hand-wired version drove robot two from the calibration record on 2026-09-25 — eight starts, open-loop under a driver, the first time the library's own object graph drove the robot; no library-commanded motion has run.

Now (2026-10-08): T4 is COMPLETE — the driver program has LANDED, host- and build-gated, NOT run on a robot. The new "shulib Drive" (slot 1) runs the team's driver file with the library's drive protections; "shulib Teleop" is retired; the Auton Tester is on slot 2; the competition program (slot 6) shows the PROTECTION row on its driver page; "shulib Drive" and the competition program keep an SD copy of their log; and an auton the registry refuses is dropped and named, never the boot. Seven builds. Next: the mechanism core (MECH) with the standard Calibrate (CAL1) beside it, then a documentation redo (DOCS3) before the panel.

Now (2026-10-08, later): MECH-A1, the mechanism core's first part of six, has LANDED — host-only. A robot file declares each mechanism once (Arm, Lift, Flywheel, Power, Pneumatic — what it IS, never a port) and wires it separately (mechanisms(wire(arm, motors(1)), …)); the build refuses, each by name, 69 kinds of mistake in one mechanism's spec (52 of them a declaration can make; the rest only an entry built by hand), and the wiring's, the route ids' and the words' own — 132 named reasons in all — and every mechanism's actions are route ids derived at build; the robot builds every role (motors, lines, angle sensor, home switch, piece sensor) through its device provider, one boot fact per role, and counts a sensor's screened reads.

Now (2026-10-15): SER1 is COMPLETE — host- and build-gated, NOT run on a robot. Every line shulib sends to the brain's serial stream leaves in ONE write() that PROS's own serial lock keeps whole, never through the C library's shared, unlocked stdout buffer (HA-189, fixed in code, settled only at the bench); the src/ build gate refuses any program object that names stdio's FILEs or calls a stdout/stderr printer (its completion record is in the development log, as every chunk's is).

Now (2026-10-15): MECH-A2, the second part, has LANDED — host-only. One mechanism SERVICE, ticked once per control tick (inside a drive's wait under the run guard, or at the driver loop's stated place), runs every power and pneumatic mechanism: a step until a piece sensor sees (or stops seeing) a piece, until a stall, or for a time, always within its time limit; a sensor that stops answering is never read as an answer. The run guard's deadline (and a disable) now CUTS a mechanism step instead of letting it run to its own limit.

Now (2026-10-22): MECH-A3, the third part (built 2026-10-15), has LANDED — host-only. The service now runs POSITION and SPEED mechanisms too: an arm or a lift moves on a smooth plan and HOLDS, finds its zero at every homing moment (at boot with no motion, or by a homing push) and says where its zero went, stays inside its travel (a computed target clamped, a push held AT the limit), and a timed-out move holds where it stopped; a flywheel spins to "at speed" and keeps spinning. A stated stall signature watches every behaviour. The library's starting gains are PROVISIONAL (HA-182) until .tuning replaces them, worded for a boot line the programs print from MECH-A5 — the guide's new chapter 18 teaches all of it. No program builds the service yet, and no auton step calls it: next is MECH-A4 (auton steps, driver controls, route markers — API 2.5), with CAL1 beside the core.

Now (2026-10-29): MECH-A4, the fourth part, has LANDED (built 2026-10-22; reviewed, fixed and verified through 2026-10-29) — host-only; the team lead's three rulings of 2026-10-29: the steps' freeze stays OPEN for now, the driver-start home's exception (A4-D26) and U5's stricter build rule (A4-D27) ACCEPTED. A mechanism step is ONE line of an auton (r.move(arm["score"], 1.5_s), r.run(intake, 12_volt, seesPiece, 3_s), r.set(claw["closed"]), the START forms that let the robot drive while a mechanism works), with one verdict policy (SUCCEEDED and a sensorless grab counted done go on, every other verdict stops the auton, named); a driver file's controls (whileHeld, toggle, preset, the homing controls — the most recent input wins); every mechanism's route ids run by one registration; and the direction check's judgement (API 2.5). No program builds the service yet: next is MECH-A5 — robot two's tables, its driver file and the programs move onto it — with CAL1 before A5. The team lead's ordering ruling of 2026-10-29: the panel's foundation (the robot file and its generator into C++) starts right after MECH-A5 lands, beside the camera, the wall reset and the auto-flipper instead of after them; their panel pages plug in as each lands, and the documentation redo (DOCS3) follows the panel and documents it. Nothing is dropped; the auto-flipper stays fully in. Later the same day he set a date: the panel by 2026-11-21. The fifth mechanism part (robot two's claws on the library's mechanisms) and the panel's first part are building side by side; the camera's later parts, the alliance colour, driving to a piece and the auto-flipper come after the panel.

Now (2026-10-30): MECH-A5, the fifth part, has LANDED (built 2026-10-29; reviewed, fixed and verified) — host-only; no API change. Robot two's claws are declarations in the core's words, every program that boots robot two runs them on ONE mechanism service (its boot lines, its route ids, its chain proven), and robot two's driver file is three lines of controls — its claws behave exactly as before on every input. Host- and build-gated only. Next: MECH-A6, the core's last part; G3a Part 1 (the robot file and its generator) builds beside A5 under the team lead's PANEL SPRINT (2026-10-29: the panel by 2026-11-21); CAL1 maps the core's list after A5. MECH-A6 LANDED 2026-11-06 (built 2026-10-30) — the mechanism core is COMPLETE, host-only — Bench Tests' station 13 MECHANISMS: every declared mechanism in its declared units, powered one at a time behind six gates, the direction check run on the robot (the menu now 3 × 5; no API change; host- and build-gated, never run on a robot). The core is COMPLETE when A6 lands.

Now (2026-10-15): CAL1 Part A1, the standard Calibrate's seams, has LANDED — host-only. The brain's screen is now a seam with ONE sanitizer (hal::IBrainScreen, hal::screenSafeLine()), a painter draws Calibrate's screens on it (calibration/calibrate_screen.hpp), and calibration::compareFronts() judges whether a new Calibrate's front matches the saved record's — or, for a first Calibrate, the robot's typed drive ports (the team lead's D6 (a)). No program uses them yet: next for CAL1 is Part A2a, the standard Calibrate program.

Now (2026-10-29): CAL1 Part A2a, the standard Calibrate program, has LANDED — host-only (built 2026-10-18–22, reviewed and fixed 2026-10-22–29). calibration::CalibrateProgram is robot two's Calibrate moved into the library over those seams: a team states only its drive kind, its drive motors' cartridge and EVERY motor that is not a drive motor, and the program finds and measures the rest. The end that leads the push is the front; before anything is saved the new record is checked against the card's, and a FLIPPED front holds the save (USE NEW or RUN AGAIN); a declared mechanism motor that turned with the push holds it too — one question per such motor (SAVE or RUN AGAIN); the save is the safe save. The whole program runs in the host test suite on the host test plant, and hal/pros/calibrate.hpp is its thin robot shell. No program uses it yet — robot two's Calibrate is unchanged until Part B: next for CAL1 is Part A2b (a team's typed drive ports as the reference when the card holds no record, the proof through the real PROS shell, the guide chapter).

Now (2026-10-29): IMU1 Part A has LANDED — host-only. The robot's IMU adapter now answers its turn rate ONCE per control tick: a second read within 5 ms gets the first read's answer, so the Localizer, a tank's steering and the rest gates all see the same number (a second read used to come back as about 0 or a spike, which on the host test plant could turn the 40 in auton into a timeout). Nothing has run on a robot; Station M's floor runs wait for this build. Next for IMU1 is Part B, a short Bench Tests stage that measures the IMU on the robot.

Now (2026-10-30): VIS1-A1, the AI Vision camera as a device, has LANDED — host-only. A robot file declares the camera (its port, the colours and AI model the library writes to it, and its measured mount), the robot builds it at boot, writes its settings and reads each back, and checks the camera's AI model by NAME before any object counts; a missing or wrong camera leaves it ABSENT and the robot still drives. One read is one frame with its status, and a camera model turns a box into a bearing, a range and a field position, each an interval over the stated tolerances. Nothing reads the camera yet and no AI Vision sensor has run this code: next for the camera is VIS1-A2 (what it sees — the Toggle's colour, a named piece) — moved ahead of the panel by the team lead's ruling of 2026-11-03.

Now (2026-11-03): L6-A1, the wall reset's library core, has LANDED — host-only. A robot parked square beside a field wall can re-seat ONE coordinate of its estimate from a side distance sensor's reading — never the heading, never in the background, and only inside gates that REFUSE rather than guess (the beam square to the wall and off the season's keep-outs, the robot still, every sample clean, the answer within the author's own maxCorrection). This part is the library core with the explicit call over hand-wired handles; no program and no robot sensor uses it yet. Next for the wall reset: L6-A2 (the robot's side sensors and the everyday call from an auton), then L6-B (robot two).

Now (2026-11-03): CAL1 Part A2b has LANDED — host-only (built 2026-10-30). A team whose drive program already types its drive ports may state them (CalibrateFacts::typedDrive); with no usable record on the card they are the front check's reference, in their own words — the team lead's D6 (a). The program now runs through its REAL PROS shell in the host suite, 34 scenarios held to committed goldens, and the team's whole Calibrate file — 21 lines — is compiled and run there and shown in the guide's chapter 19. Register entry HA-187 holds the watch's belief. No program uses it yet: next for CAL1 is Part B (robot two onto it).

Now (2026-11-06): IMU1 Part B, the bench stage, has LANDED — IMU1 is COMPLETE; host- and build-gated, never run on a robot. "Bench Tests" button 2 ends with a new STAGE 2c that measures the IMU's own timing while someone turns the robot by hand: how often its readings refresh (PROS says every 10 ms), where that refresh lands against the program's 10 ms tick and whether it drifts, a lower bound on how long a tick's reads take, and whether the gyro's own turn rate has the right sign and units — what the gyro's rate waits on before it could replace the computed one. It commands no motor and asks START or SKIP first; the arithmetic behind its verdicts is host-tested. Its numbers come from the team at the bench (worksheet Station N); until then HA-213, HA-214, HA-215, HA-04 and HA-109 stay unsettled.

Now (2026-11-10): L6-A2, the wall reset from an auton, has LANDED — host- and build-gated, never run on a robot. A robot file may declare its side distance sensors (sensors.walls: each side's port and MEASURED mount); the robot builds them at boot and names each on its boot line, and a missing sensor never stops the robot. An auton with a FIELD start calls competition::resetFromWall(ctx, …) beside a wall to re-seat one coordinate inside the same refuse-rather-than-guess gates as L6-A1, sampled through the auton's own clock, so a deadline cuts it. A RELATIVE-start auton is refused with "not a field start". Next for the wall reset: L6-B (robot two's sensors and the WALL bench page).

Now (2026-11-10): MECH-S-A, a mechanism's current cap, has LANDED — host-only. A robot file may state .currentCap = {.amps = …} on a Power, an Arm, a Lift or a Flywheel: the most each motor may draw, written into the motors at boot and enforced by the motors themselves — how hard robot one's string cascade will pull its strings once its robot file exists. The build refuses a cap below 0, above 2.5 A or under one milliamp (a cap written as 0 is no cap) and any stall or homing signature at or above it; the boot warns when a signature is not more than 0.2 A below it; a mechanism with no cap is only read, never written (robot two states none, so its boot is unchanged while its claw motors read 2.5 A). Register entries HA-219..HA-223 hold its beliefs; nothing has run on a robot. Chapter 18 teaches it. Next for MECH-S/TUNE1 is TUNE1-A (live tuning's library); the slack watch (MECH-S-B) is after the 21st.

Now (2026-11-11): CAL1 Part B has LANDED — CAL1 is COMPLETE; host- and build-gated, NOT run on a robot (built 2026-11-05). Robot two's "shulib Calibrate" (slot 4) IS now the library's standard Calibrate: a 27-line file over facts taken from robot two's own tables, so nothing is typed twice. The WHICH END question is gone from the library — the end that LEADS the push is the robot's front, checked against the card's record before anything is saved — and the save is the safe one (a verified backup first). Side by side on one host test plant, every line the new program prints differently from the old one has a named reason. See the changelog (the WHICH END question removed). Next with it: the team's recorded Calibrate rerun on robot two (copy both files off the card first) — the run expected to fix robot two's ~8 % distance error (not yet measured).

Now (2026-11-11): STEP1-A, care on every auton step, has LANDED — host- and build-gated, never run on a robot. Each drive or turn may state its own arrival tolerance ({.positionTolerance = 2_in}), which loosens the distance AND the settle speed together; and each step may choose what happens if it fails: r.onFail(carryOn), r.onFail(skipTo("x")) with r.label("x") further on, or the default STOP. A cut (the deadline, a cancel) always stops. The Auton Tester and the competition screen say "DONE, 2 FAILED" in amber when a run carried on past failures. Next for STEP1: STEP1-B (triggers partway through a drive — building now); then CURVE1 (curves) builds on it.

Now (2026-11-11): TUNE1-A, live tuning's library, has LANDED — host-only. A program can run the mechanism service over a COPY of the robot file's list (mechanism::LiveTuning) and change a mechanism's numbers while it runs — its gains, speeds, stall signature, cap, travel limits (narrowed only) — inside the build's own check plus the bounds the build lacks, between steps only and never past a held target (or, holding nothing, past where it is); undo (16 deep) and reset to the robot file's numbers; and a COPY block of the lines to write back into the declaration, the smallest set that builds to exactly what ran. No program uses it yet: next is TUNE1-B1, "shulib Tune" on the brain. Chapter 18 teaches it.

Now (2026-11-12): CURVE1-A, curves, has LANDED (API 2.7) — host- and build-gated, never run on a robot. r.curveTo({...}) / r.reverseCurveTo({...}) drive a smooth path through up to 16 points without stopping at each: pure pursuit chasing a point 8 in ahead, braking before bends at one "grip" number, the last inches handed to an ordinary moveTo so a curve ends square (within ~1°). A path that cannot be driven is refused before the robot moves; a robot that loses the path (a dead side) stops the step within ~2 s. A curve fixes a 6 in sideways miss from 2½ ft back and a 1 ft miss from 3 ft. Next: one curve session on the robot (Station C); the skills route switches legs to curves only where it passes.

Now (2026-11-13): STEP1-B, triggers partway through a drive, has LANDED (API 2.8) — host- and build-gated, never run on a robot. A drive or turn can start a mechanism part-way: r.atPercent(60, cascade["level3"]).driveTo(...), afterDistance, afterTurning — up to 4 per leg, each checked on its own line every run. A trigger fires only if its mark is on the drive; one that never fires (a skipped or stopped leg) is a counted failure the next wait reports. Drives with no trigger run exactly as before. STEP1 is complete before the 21st (A + B); curves take triggers later.

Now (2026-11-13): VIS1-A2, what the camera means, has LANDED — host-only; no AI Vision sensor has run it. One loop reads the camera for everyone (vision::CameraFeed); the Toggle tracker answers RED, BLUE, YELLOW or UNKNOWN with its reason (a frozen camera, two colours, a band cut by the image, not held long enough…), never a guess; the piece finder names one piece or none. Chapter 20 teaches it. Next: the checked Toggle step (AF1S-A1) on top of it, then the camera reachable from an auton (AF1S-A2); the camera's Step 0 at the robot (mount, colours, model).

Now (2026-11-11): TUNE1-B1, "shulib Tune", is BUILT — host-only, in review. make ROBOT=tank PROGRAM=tune (slot 7; the Makefile's row is ROBOT-generic — any robot whose mechanism table is not empty; robot one gets it by registering its table plus the four build lines every robot adds — its ROBOT value in MECHANISM_ROBOTS, its chain branch and guard term, its <robot>-tune gate build) builds ONLY the mechanisms, after READY; TEST A / TEST B with a report (overshoot, settle, peak, final error, the hold current and its warnings), HOME, the stick, UNDO, RESET, COPY (terminal and /usd/tune_log.txt, appended; EXIT copies what no COPY carried); every mechanism released on any controller button, a dropped controller, a field or a disable; every cap it changed written back on RESET, on leaving a page and on EXIT. The match builds carry no live-tuning code (the gate's step 8). It has not run on a robot. Chapter 18 teaches it.

Now (2026-11-16): AF1S-A2, the Toggle flip from an auton, is BUILT, reviewed and fixed — host- and build-gated, NOT run on a robot, awaiting its merge. A robot file's Toggle block (sensors.toggleCamera: the tracker's numbers and the camera's read period), beside its camera block, makes the Robot build the step's camera — or, never refusing the robot, leaves every visit NO CAMERA naming why — and a team's skills route calls competition::checkAndFlipToggle(ctx, ...) from its auton. Neither robot's file has a camera block yet. Cookbook chapter 8 is a whole skills route with it. The plan for the 21st stays the team's blind two-push flip until the checked step has flipped a real Toggle.

Now (2026-11-13): AF1S-A1, the Toggle flip for a SKILLS run, has LANDED (built 2026-11-11); host- and build-gated, NOT run on a robot. For the first competition (skills only, 2026-11-21) the driver-control auto-flipper waits until after the event; what comes first is ONE route step, competition::checkAndFlipToggle: from a look spot square in front of a named Toggle it reads the Toggle's colour with the front camera (VIS1-A2's tracker, itself still being finished), does nothing if the Toggle already shows its Quadrant's colour, and otherwise drives in, pushes with the flipper, backs out and looks again — never a push on our colour or on UNKNOWN, and "FLIPPED" never claims the Toggle is set. This part is its form over explicit handles; next: AF1S-A2, the robot's camera reachable from an auton. Until it has flipped a real Toggle, the team's own blind two-push flip is the plan for the 21st.

Now (2026-11-13): ROB1-A, robot one in the code, has LANDED — host- and build-gated, NOT run on a robot; since ROB1-C2 (2026-11-15) its facts are typed from the builder's answers, the rest owed to station 13. make ROBOT=one and make ROBOT=one PROGRAM=calibrate|drive|autontest|competition|tune are robot two's six programs for robot one, the cascade robot ("shulib Tune" since the integration: robot one's cascade is a mechanism table, so it is in MECHANISM_ROBOTS). Every number about its cascade nobody has measured is OWED in its facts file, and robot one's build of every program that needs one REFUSES, naming each — so no placeholder can reach the robot; make now starts fresh whenever the robot or the program changes. Its autons are a starter (the 40 in as SKILLS; the skills route is the team's). ROB1-C2 (2026-11-15): the builder's answers typed — robot one's six mechanisms (the cascade, two side toggles, the claw, the front toggle as its flipper, the ramp) declared, its driver file the builder's map, and the library's one-button hold added; Bench Tests and Calibrate owe only "which port is the right side toggle". Chapter 21 and the robot facts form; register entries HA-252..HA-255 and HA-261. Next with it: robot two's station 13 answers (the cascade's rows, the side toggles' directions, each piston's opening level) and its cascade's three voltages — robot one's were typed 2026-11-17. ROB1-BT (2026-11-17): robot two is robot one's twin — its facts file has robot one's facts, owed until read off robot two; one skills route (src/team/skills_route.cpp) for both, robot two's mirrored; the calibration record names its robot, and each robot's boot refuses the other's card. S13UX (2026-11-19): station 13 applies each mechanism's declared cap and is worded for a student alone (a "what to do now" line, a lift's measuring steps kept while Bench Tests runs, RECORD's number shown large, the 3 s jog stop re-armed by L1) — host- and build-gated, not run on a robot.

As of 2026-09-28 (kept as history — T4 Part 3 has since retired "shulib Teleop" and moved the tester to slot 2): the auton tester had LANDED (COMP-t) — host- and build-gated, NOT run on a robot: "shulib Auton Tester" (make ROBOT=tank PROGRAM=autontest, slot 7 until the driver program replaces Teleop) runs one of the team's autons on the bench from RUN on the brain's screen — a 3 s countdown, then the competition program's own competition::runAuton call; any controller button, a touch, the controller dropping or a disable aborts — and the team's auton file, src/team/autons.cpp, holds the 40 in auton and the acceptance run (guide chapter 16). Before it, TANK1 Part A landed (moveTo on a tank steers back onto its line — the team lead: "Fix the library first"), so on the host test plant the 40 in finishes with a side up to about a quarter weaker. Next: the competition program (COMP-b), which calls the same registerAutons(); the tester's first run on robot two is the bench worksheet's Station M. T4's driver file (Part 1a) has LANDED, host- and build-gated: robot two's buttons, feel and driver loop in one file, src/team/robot_two_driver.hpp, which the competition program's opcontrol() runs since COMP-b (built 2026-09-30, not run on a robot — the M4 Sequencing row), and so will the driver program that replaces the old "shulib Drive"; "shulib Teleop" retires when that lands. G1 is COMPLETE** — Part 2c and its final run have landed: one chain in src/build_selection.hpp picks each build's program and robot, and src/main.cpp only dispatches. — the team lead's order of 2026-09-26; 2c, DIAG1 and COMP's library half were built in parallel and merge one at a time — DIAG1 has landed: an ODO_STUCK line from the odometry's trust gate now names the check that fired and its values, so the next one on the robot can be explained. The brake-mode fix has landed (host- and build-gated, not run on a robot): a Brake or Hold the library commands now reaches the V5 motor through PROS's brake(), and "shulib Teleop" still COASTS when the sticks are released (his ruling). T3 has landed, both parts, the same way — host- and build-gated, NOT run on a robot: "shulib Teleop" now drives robot two's claws — R1/R2 the pivot on port 6, L1/L2 the one on port 7 (full power while held, holding on release), A opens and closes the pneumatic claw on 3-wire port A (closed at the start, kept through a disable), and the field-centric re-zero moved to Y. The boot names the pivots as claw pivots (a record that took a claw port as a drive port refuses, "recalibrate"), a missing claw is ABSENT while the drive runs, and the panel's two fault rows became one to make room for a claw row. No claw has moved yet — worksheet Station J is the first sight. Still owed from the bench session: a recorded Calibrate reproduction run (the saved distance scale reads about 8 % short) and the sensor stations. (R2a landed the same evening, build-gated and not run: Bench Tests' stations 11 DISTANCE and 12 AI VISION — see the R2 row under M1 — so the same bench session can also check what the distance sensors and the AI Vision camera report.) The bench session can close R3d; it cannot close R3b or M1, because no uploaded program commands a moveTo yet. (COMP-a — COMP's LIBRARY half — was built in parallel in an isolated worktree on the team lead's ruling of 2026-09-26 and has LANDED, host-proven only: the auton registry, the selector model, the auton runner with the start-pose re-seat, and the abandon latch; see the M4 Sequencing row. COMP-b, the program itself, followed COMP-t: built 2026-09-30, host- and build-gated, not run on a robot.) src/ was reorganized before the next programs are built (SRC1, 2026-09-27, the team lead's request): src/robots/ is what each robot IS (its tables), src/team/ the team's own code — where students edit; its first file is robot two's driver file (T4 Part 1a), and the team's auton list, src/team/autons.cpp, came with the auton tester (COMP-t) — src/programs/ one program each, and src/common/ what the programs share; main.cpp and build_selection.hpp stay at the top. No file was renamed and no program's logic changed: the six packages print each file's new path where a message names one, and otherwise hold the same functions and data, linked in a new order. The src/ build gate now fails any path a second include root could answer, and any src/ path a program prints that names no file.

The bench session BEGAN 2026-09-24 — the brain is on USB again. The device census and motor watch ran on robot two; shulib Calibrate ran and STOPPED at its side-assignment pulse (one motor at 3 V for 0.4 s turned the robot 0.17°, under its invented 2° floor), and its screen proved hard to follow. (That night, no calibration record existed, so nothing built on the library could boot on the robot.) A fix to Calibrate came ahead of Part 2b, in two halves. The library half LANDED 2026-09-24, host-only: the calibrator now takes one 48 in push, its side pulse ramps 3 → 6 → 9 V and names a slipping motor (leaving it out) instead of stopping, the spin has two safety guards (the wrong way; cannot start), every stop carries a code and the port, and the screen's logic is a pure, host-tested model — proven on a host plant that can now fail the way the robot did (an idle side that coasts, a motor that slips), and on nothing else. The program half LANDED the same day — build-checked, NOT yet run on the robot: "shulib Calibrate" now paints that model (and only what changed), reads every touch through its touch gate, offers RUN AGAIN on the finished and stopped screens, and prints a serial record a capture can be read by — one line per pulse and per spin direction, the push table, the result or the stop's code and port. Its screen's text sizes are derived from lines earlier programs showed on this brain, not measured. (Of five Calibrate starts that night, one cleared the 2° floor on seven motors before stopping.) The rebuilt program RAN on robot two that evening (2026-09-24, the second session): run 1 got through the push and every pulse — the ramp found the sides at 6 V and left out one slipping motor — and STOPPED because its two spin directions measured track widths 20 % apart (the bound, 5 %, is invented); nothing was saved. Run 2 finished by the team lead's report, but the brain was off USB, so whether it saved and what it measured are not yet known.

R3 SPLIT INTO R3a + R3b + R3c on 2026-08-17. R3's entry was written when no robot existed; held against the one that arrived, four of its six scope items are impossible on it and its DoD clause is blocked on library code, not hardware. M1's badge therefore slips from R3 to R3b: M1's DoD is "identical numbers in a host test and on the V5, swapping only RobotContext", and RobotContext precondition-requires a gps/tags/vision this robot does not have. Three capability gaps were measured at the seam and are R3b's — see M2's "what R3b must build" block below.**

R3b piece 3 — the absent-device ruling — landed 2026-08-19 (R3b is [~], NOT closed): AbsentGps/AbsentTagSource/AbsentVision live in hal/ beside NullSink, the RobotContext preconditions are UNCHANGED (absence is explicit — .gps = &absentGps — and omission still throws), an absent source is never polled (the kInstallTagCorrector / kInstallVisionPoller wiring rule), and src/main.cpp ships no hal/fake/ type. Five of five mutation checks observed red then restored green. Pieces 1 (multi-motor aggregation) and 2 (IOdometry / drive-encoder odometry) landed 2026-09-14 (R3b Parts 1–3, below); M1's badge stays unflipped until the library has driven a robot. The auton API exists and is FROZEN at BOTH tiers — F6 (Chassis) LOCKED at D2 and F10 (Routine, the recipe layer) LOCKED at D3, both 2026-08-12, API 2.0 (built at C4, stressed by D1's second consumer, ruled and pinned at D2): moveTo/strafeTo/turnTo/followTrajectory/drive(ChassisSpeeds, Frame) + brake/hold/wait (adopted at D2), blocking (async+waitUntilSettled), watchdog-bounded, typed units::Time everywhere, Frame REQUIRED at the call site (frame confusion is a compile error). One composition root feeds scheduler and every motion, so command-id stamping is STRUCTURAL (C2's convention gap closed, 138-assertion mutation pin). Facade routines are BIT-IDENTICAL to the scheduler-built twin (clean AND hostile) — C1–C3's accuracy numbers carry over verbatim — and every guarantee is re-pinned THROUGH the facade (ODO_STUCK abort, cancel safe state + panic stop, boot wait, hostile bounds, SFB visibility). The saturation choreography now lives in ONE place (motion/command_pipeline.hpp, bit-identity-pinned) shared by motions and drive(); the file-free plain-C++ construction path is a test (the §16.2 standalone promise). The mutation campaign (22 run) found and closed two GREEN HOLES: teleop health observables went dark in a drive()-only loop, and the yaw-rate budget was invisible to every closed-loop test. Chunk C5 (per-motion results + session header + diagnostics D-1…D-5) is DONE, 2026-08-10, committed be6d129 (completion record: development log, shulib-v2 branch): M2's "the run is legible in real time on the terminal" clause closes with it, and the F9 schema space (D-2 drop counters + D-3 tick-phase slots) is reserved ahead of H1. Chunk C6 (legacy salvage — the last look before deletion) is DONE, 2026-08-10, committed d743a30 (completion record: development log, shulib-v2 branch): all 34 legacy files classified, the three salvage claims verified in source (and RobotCommands found to have had no executor at all — the salvage is knowledge, not code; port list empty by audit, 11 live legacy bugs catalogued and left behind). Products: legacy-command-vocabulary.md (7 ids from 4 sources, mechanically cross-checked; gaps: NONE → G2, seat/settle wiggle → F′ (recorded at C6 as "F2"); 7 G4 importer requirements), the legacy-measured reference table in hardware-assumptions.md, and diagnostics-plan's C6 note. Safe-to-delete verdict: unconditional (C6 completion record §8, development log, shulib-v2 branch). Chunk C7 (cutover and deletion — the only irreversible chunk) is DONE, 2026-08-10 — in committed: src/main.cpp rewired onto the v2 core (proven compiling BEFORE the deletion, so any failure stayed attributable), src/legacy/ + include/legacy/ DELETED — 34 files, exactly C6's classified set; recover any of them via git show 691c656:<path> — make green for the first time since June (uploadable V5 hot/cold package), the CI PROS-free guard broadened to ALL of include/shulib/ (mutation-proven red on a planted violation), the README rewritten as a plain front door, and the docs reorganized (public documentation stands alone; the process record is self-contained on the development branch). Suite unchanged: 659 / 915,570 / 3 deliberate skips; ARM gate 102 headers CLEAN. What C7 did NOT do: run on a robot. The wired HAL seams are shipped fakes marked TODO(R1); compiling is not running; R3 owns "it works". Chunk C8 (the manual) is DONE, 2026-08-11 — committed: docs/guide/ — a 15-file user guide (orientation → concepts → setup → a full first-routine tutorial → the API as prose → diagnostics line-by-line with every fault code → symptom-first troubleshooting → extending → a can't-do-yet → glossary), written for a new member with no robotics background. Every code example compiles and runs in test/guide_examples_test.cpp (8 cases / 41 assertions as C8 shipped it — later chunks added more; the suite is the count), quoted verbatim by the chapters — the anti-rot rule; all transcripts are captured from real runs, the tutorial was followed start-to-finish as written (including the type-it-yourself path), and chapter slot 09 is reserved so D1's recipe-API chapter is an added file, not a renumbering. Suite 667 / 915,611 / 3 deliberate skips (assertion total varies ±6 with the configure-time build-hash length); both guards + ARM gate (102 headers) clean; guide↔README cross-linked; the public-docs removability property re-verified with the guide in place. What C8 did NOT produce: the recipe cookbook and generated API reference (D3, needs D1), the VexBuilder-based "first auton in 10 minutes" flow (G4), and a guide validated by an actual new reader — it has not had one yet. Chunk D1 (the Tier-2 recipe API) is DONE, 2026-08-11 — in the working tree pending review/commit: include/shulib/chassis/routine.hpp — Routine, an EAGER fluent chain over the facade (each step runs as it is chained, so a routine reads and runs top-to-bottom — the deferred/.run() alternative was analyzed and rejected in the D1 completion record). Twelve step verbs (startAt / moveTo / driveTo / strafeTo / turnTo / face / followTrajectory / brake / hold / pause / waitFor / then), every one a single delegated facade call — the recipe-vs-facade TWIN is bit-identical clean AND hostile, so C1–C4's accuracy numbers carry over verbatim, and the chain's error policy is decided and pinned: first failure → STOP + SAFE (0 V + Brake) + SKIP the rest (logged) + REPORT (RoutineResult with step index/name/cause/exit). Guarantees re-verified THROUGH the chain: ODO_STUCK abort (named, prompt, damage-bounded), watchdog + never-live boot, C2's hostile bound, mixed-tier interop (recipe steps and direct verbs interleave — no cliff). Guide chapter 09 written with 3 compiled examples (guide-09a/b/c, quoted verbatim); suite 686 / 916,026 green; 19 mutations run, all observed red — two of them verify holes found by pre-analysis and closed with sole-detector tests (a no-op startAt masked by every rig's auto-seed; speed budgets silently dropped in delegation), see the D1 completion record. What D1 did NOT do: freeze F6 (that was D2's, informed by D1's facade critique — the completion record's top section), and .then(...) remained a labeled placeholder until F1 built mechanisms (it has since — see the F1 entry; and the .then(intake.in) spelling this line once used was itself corrected at F1: verbs return ExitReason, so the chain belongs to Routine, and a member function is passed as a lambda). Chunk D2 (the F6 freeze) is DONE, 2026-08-12 (completion record: development log, shulib-v2 branch): all nine D1 §2 critique items ruled with rejected alternatives (time RETYPED to units::Time with full-suite output byte-identical; wait(Time) ADOPTED as an additive void verb; brake/hold ADOPTED; the runtime-mask deferral CLOSED; the fallback-getter rejection KEPT; sugar stays recipe-layer; three result vocabularies ACCEPTED + flagged for F2; all four §8 tensions confirmed no-change with additive paths named), all 18 C4 §2 ledger rows re-checked, and the freeze made STRUCTURAL: 36 compile-time signature pins that fail the build naming F6 (mutation-proven member by member), include/shulib/version.hpp (API 2.0, the breaking-vs-additive policy the register had been promising with no machinery), the F6 row rewritten to enumerate the real surface with Routine's exclusion explicit, and the not-frozen notices swept atomically. The campaign (44 mutations) found and closed two green holes: the pin was blind to noexcept-dropping on non-overloaded members, and a thousand-fold hold(300_s) call-site mistake survived every outcome assertion — guide-09a now clock-bounds the whole first recipe (< 12 s simulated). Chunk D3 (the cookbook + generated API reference) is DONE, 2026-08-12 — closes Phase D (completion record: development log, shulib-v2 branch): docs/cookbook/ — fourteen recipes written as a critical consumer of Routine, every listing compiled and RUN against the plant (test/cookbook_examples_test.cpp, 11 cases) and quoted verbatim, with clock-asserted timing wherever a duration matters. docs/api/ — a generated reference for the F6 and F10 surfaces, deterministic and committed, produced by tools/api_doc_tool.py, with three build-time gates: a doc-coverage gate that fails the build NAMING any undocumented public member (it found 16 on its first run, on the surface about to freeze — including class Chassis itself, TrajectoryResult::succeeded() and the const scheduler() overload), a regeneration check, and a C++ fidelity pin holding the rendered signatures to the headers. Routine is now FROZEN — F10 LOCKED 2026-08-12, API 2.0, as its own register row rather than an F6 amendment (a different tier, versioning independently), with then() explicitly excluded until F1/F3 build mechanisms; 37 compile-time pins, all 16 pin mutations red and named. The cookbook's critique of Routine — eight awkwardnesses, each with a recommendation and each additively fixable — is the record's centrepiece, and it found one real BUG: lastTrajectory() on a routine that never ran a trajectory reported a SUCCESSFUL one (a value-initialized TrajectoryResult is Settled, 0 of 0 legs). The campaign (45 + 16 mutations) found and closed three green holes, all of them enforcement that existed only as convention: the guide's verbatim anti-rot rule and the C7 removability property were run by an internal script and by neither the build nor CI (a chapter's 300_ms retyped to 300_s built clean and passed the whole suite), and the doc-coverage gate itself accepted an EMPTY /// as documentation. All three are now build- and CI-enforced. Not done, and named as such: nothing is published — there is no website and no Pages configuration, so M7's "API docs publish to the website" stays [~]; and no genuinely-new reader has read the cookbook cold, so M7's human DoD clause stays open (owner: the programming chair, at the next new-member onboarding — the first clause with a named owner rather than a hope). (Both halves of that last sentence have moved on, and the record is left standing rather than rewritten. The site went live at DOCS1 — docs.shurobotics.com, HTTPS enforced — and DOCS2 took the reference from the two frozen surfaces to the whole public API, so M7's publish clause is [x]. The cookbook-cold-read clause is still open, still owned by the programming chair.) Chunk E1 (the SdSink blackbox + estimator introspection) is DONE, 2026-08-12 — opens Phase E: the run is now recordable without a laptop. diag/blackbox_format.hpp defines a versioned, session-stamped, fixed-width binary format (v1: 256-byte header, typed frames, 428-byte tick record, IEEE-754 binary64 throughout — no narrowing, so a decoded record equals the encoded one field for field), and the decoder ships in the same chunk (blackbox_reader.hpp): an encoder without a decoder is not a record. diag::SdSink implements diagnostics-plan D-6 (a RAM flight recorder, always on, that writes NOTHING until a fault fires and then dumps the preceding ticks) and D-7 (a triage block, in the file and on the terminal, from one shared struct). Writes are caller-paced: the build order's "off-task writes" was ruled against in favour of C2/C4's standing no-background-task decision, because host determinism is what makes every closed-loop test here reproducible. The binary seam is a NEW sibling (hal::IBlockSink), not a redefinition of ICharSink. Suite 752 / 936,895; both guards and the ARM gate (110 headers) clean. What E1 did NOT do, stated plainly: it did not certify the < 1° claim and it did not build a real gate. The introspection PATH is complete and proven end to end, but with a synthetic corrector — E2/E3/E4 supply the real numbers, and gateMahalanobis stays 0 until the EKF exists (it does now: E4). There is also no /usd/ adapter (R1's) and no D-8 routine watchdog (re-homed to F2, with the reasoning recorded rather than the work half-done). Two findings came out of it that predate the chunk: DebugRecord::fault had no producer anywhere in the tree — the guide has documented flt=CODE since C8 and it could never have appeared on a real run — and only MoveToPose stamped the applied-correction fields, so the fusion story was blank for every other motion. Both are now stamped in the one layer that owns record population. The mutation campaign (27 executed) found two green holes, both the same class: the suite checked that the FORMAT could carry the sink's self-description and never that the SINK filled it in — the end frame's counts and the header's epoch/ring/budget could all be zeroed with the suite green. Chunk E2 (GpsCorrector) is DONE, 2026-08-12 — the first REAL corrector. Everything before it dead-reckoned; this is the first code in the library that can tell the estimator it is wrong, and the first chunk in which the §18.2 gating slots carry decisions a real gate actually made. GpsCorrector implements ICorrector behind the unchanged M2 signature — adaptive R from rmsError(), latency compensation from an odometry history ring, a stale-sample guard so one measurement is folded once rather than five times, high-yaw-rate rejection, a sensor-quality ceiling, and a normalized-innovation gate that WIDENS with dead-reckoned travel (without which a truthful fix is rejected exactly when the estimate needs it most). Suite 794 / 1,081,382; both guards and the ARM gate (111 headers) clean; 20/20 mutations red. The chunk closes the other half of E1's T3. A declined proposal never reaches a fusion policy, so a corrector-side verdict had no channel to the record at all: an off-strip GPS and an empty corrector list both produced GateReason::None. Since Driving Skills has no strip, that was the difference between a diagnosable Skills run and a mystery. CorrectionProposal gained one appended selfAudit field, the Localizer substitutes it only when the policy has no verdict of its own, and every corrector-side rejection is now re-derivable from the decoded file — residual, the sigma it was normalized by, and the verdict. What E2 did NOT do, stated plainly. It did not build a Mahalanobis gate (T1: the complementary tier has no filter-estimated covariance, so gateMahalanobis stays 0 and the RejectedNormalizedInnovation was appended instead); it did not touch heading (T3 — the GPS's heading never leaves the corrector, so the < 1° claim is exactly where A3 left it); and it did not take ownership of frame or lever-arm reduction (T4 — hal/gps.hpp and gps_conversion.hpp own those by written contract, so E2 pinned them with independent oracles rather than becoming a second subtractor). The accuracy claim is an aggregate across 8 seeds, not a per-seed sweep, and the record says so: in simulation the modeled GPS noise and the modeled dead-reckon drift are the same order of magnitude, both invented (HA-26, HA-20), so the measured gain is real but modest. Two findings came out of it that predate the chunk: HA-07's metres→inches conversion had no code and no test — prose only since A4, with the existing conversion tests pinning the scale against the constant imported from the header under test — and ComplementaryFusion's fixed 12-inch innovation gate caps what any corrector can repair, observed live when an estimate 29 inches out never recovered with a good GPS in view. The first is fixed in the layer that owns it; the second is recorded for E4, which replaces that policy. The mutation campaign (20 executed) found one green hole: the substitution rule's reason == None guard is dead code with one corrector and load-bearing with two, so a silent source could stamp RejectedNoFix over a tick that actually applied a fix — latent until E3. Chunk E3 (AprilTagCorrector) is DONE, 2026-08-13 — the second corrector, and the first ABSOLUTE YAW CORRECTION in the library's history. A tag observation is different in kind from a GPS fix: it is a relative pose, so against a tag whose field pose is known it yields an absolute heading, which no other source in the tree can provide. Three new headers — hal/vision_conversion.hpp (the corners→pose PnP, a free pure function that R2's adapter will call and the corrector deliberately does not include), localization/tag_map.hpp, and localization/apriltag_corrector.hpp. Suite 867 / 1,091,167; both guards and the ARM gate (114 headers) clean; doc gates all pass; 44 mutations, 43 red. The yaw path is the documented additive one and nothing frozen moved. FusionResult gained a trailing headingNudge (a bounded INCREMENT, never an absolute heading — a policy that could return an absolute heading could snap, one that can only return an increment cannot), the Localizer folds it into a PERSISTENT heading bias and composes the published heading as imu.heading() + bias as the last write of the tick. The IMU remains the sole source of heading CHANGE and PilonsOdometry is untouched. The accumulator is not optional: the Localizer re-reads the IMU every tick, so a nudge applied only to the published pose would be discarded on the next one — verbatim the M2 red team's corrections-not-accumulating failure. E3 also re-expresses the odometry delta under the learned bias, because otherwise the reported heading improves while the dead-reckoned position keeps accumulating bias × distance of cross-track error. With no heading-providing corrector, both paths are bit-identical to pre-E3 by construction (an explicit zero-bias early-out, not a floating-point argument). What E3 did NOT do, stated plainly. It does not claim the < 1° requirement is met, or that it is on track. What was measured is: a 4° IMU error closes to 0.5° in ~3 s and to ~1e-4° in 15 s, moving toward truth on every one of 1500 ticks and never past it; and no tick ever moved the heading by more than the documented 0.1° per-tick bound across 2000 ticks, re-read from a decoded blackbox as well as from live state. It was measured against simulated truth, a simulated camera, an invented tag map and invented noise magnitudes (HA-68…HA-82, fifteen new register entries). The single change to guide chapter 14 is that the specific reason the requirement was listed as unachievable — nothing could correct heading at all — no longer applies; everything else about that claim is unchanged and unmeasured. shulib ships NO tag map, deliberately, because nobody on this project can cite a table of AprilTag field poses; TagMap::add() refuses an entry that does not state its provenance, and an unknown tag id produces RejectedNoTagMapEntry rather than a guess. Three findings worth carrying: a reversed corner winding is catastrophic and SILENT (heading 180° out with the reprojection error at machine zero — no software self-check can see it, HA-69); the mutation harness itself had a fault that reported two mutations GREEN having never run (multi-line grep -F matches any single line), now impossible via a byte-compare; and one green hole is recorded unclosed with its measurement rather than papered over (E3's completion record in the development log carries the measurement). E4 CLOSES PHASE E (2026-08-13). EkfFusion — a 5-state SE(2) extended Kalman filter — drops in behind the unchanged IFusionPolicy seam. Suite 915 cases / 1,521,419 assertions; ARM gate 115 headers; 36 mutations executed, 34 red, 2 recorded green with their measurements, 0 build-fail, 0 skipped; 1 line of dead code removed. What it can now do that nothing could before. Weigh two disagreeing correctors against each other by their stated σ (measured against the inverse-variance weighted mean computed independently, to better than 0.2%); recover from a displacement the fixed 12-inch gate made permanent (E2's finding 2 — 20-inch wound, EKF back under 2″ on 6/6 seeds, complementary still 20″ out on 6/6); and state its own uncertainty as a number, which finally fills covarianceTrace and gateMahalanobis from a real S = H P Hᵀ + R. What it does NOT do, stated plainly, because F1/F2 and Phase R will be read against this. It does not beat the complementary filter on accuracy — 0.351″ vs 0.225″ mean final error over 8 seeded 60 s runs, losing 7 of 8 — and it is therefore NOT the shipped default. That is not a defect: in this simulation dead-reckoning is already sub-inch and the modelled GPS is noisier than the drift it corrects, so the right move is mostly to ignore the sensor, which a blunt fixed gain does slightly harder. Both tiers ship, both are tested, and the choice is one constructor argument. Two rulings the roadmap needed and did not have. T1: the EKF tracks θ because its motion model needs it, re-bases θ to the handed IMU heading every tick, and emits only a bounded headingNudge — IFusionPolicy's position-only sentence and E3's accumulator are unedited. T2: "consecutive-reject re-init" means re-initialising the COVARIANCE, never the state. The conflict between that requirement and §13 #4 was real as written and dissolves under that reading: the estimate never moves, the gate opens instead, and the robot walks home at the same bounded rate. The event is a declared, latched, rate-limited word on the record (GateReason::CovarianceReinit). No existing never-snap test changed. Nine more invented constants (HA-83…HA-91). The structure is proven; the numbers are R4's. F1 OPENS PHASE F (2026-08-13) — committed: the mechanism seam. The library could drive to a spot and do nothing there; now it has the layer every scoring verb will be built from — and no robot has scored anything: everything below was proven on a host against fakes. Two levels: a device seam in hal/ (IMechanism with a minimal force-safe surface + one-operation claim token; MotorMechanism / PneumaticMechanism over the existing IMotor/new IDigitalOut interfaces, each with a per-mechanism DECLARED safe state — a loaded lift declares Hold, an intake declares Coast, a clamp declares its line state, because no single answer is safe for all, and every stop path applies the declaration), and a bounded-operation layer in manipulation/ (IMechanismOp mirroring the C1 motion contract clause for clause with the divergences named in its banner; RunUntilConfirmed + ActuateAndConfirm, both tick-only — the blocking idiom is the chassis's own waitUntil ticking the op in its predicate, proven to run WHILE a motion drives with the motion's result bit-identical to a mechanism-free twin). A mechanism outcome is its own vocabulary (MechanismOutcome, with Unconfirmed: completed, healthy, and the world says the task did not happen), then() — the one member D3 left unfrozen — accepts it with ONLY Succeeded continuing the chain, and RoutineStopCause grew MechanismFailed by the sanctioned append (API 2.0 → 2.1, the first exercise of the additive path — which exposed and fixed a D2/D3 pin defect that had hard-frozen kApiMinor == 0, fencing off the very growth path version.hpp documents). One fault code minted: MECHANISM_STALLED (11) — a jam IS a pathology; an operation merely timing out raises NO fault (a healthy intake that saw no ring is strategy, and latching it would flood first-fault triage). Hostile fakes jam, stall and LIE (JammedMotor, LyingSpinMotor, hostile confirm channels), and the no-hang proof runs against a lying device: with every sensor dishonest the watchdog still exits on time. Suite 961 cases / 1,521,812 assertions; ARM gate 123 headers; 18 mutations executed, 18 red, 0 green, 0 build-fail, 0 skipped (one suite hole found by PLANNING the campaign — the confirm-vs-stall tie had no killer — and closed before it ran). What F1 did NOT do, stated plainly: no concrete scoring verb (intakeUntilCapture, liftToLevel — F3/F′, needing hardware and build-team decisions), no combinators, no match timer, no guaranteed park (F2 — it inherits a caller-supplied span<IMechanism*> park-guard shape and the cancel-then-start pre-empt policy), no hal/pros (R1), and no claim about physical mechanisms: whether Hold holds a LOADED lift is HA-92, a registered guess. The seam itself is deliberately unfrozen (register row F11) until F3 consumes it. Chunk F2 (the sequence engine + the guaranteed END-OF-RUN ACTION) is DONE, 2026-08-13 — committed. What F2 did NOT do, first: it did not build Sequence/Parallel/Race combinator types (the explicit v1 ruling — see the WS8 block: the smaller cut both public documents sanctioned, ruled rather than drifted into); it did not give the library a park pose, a field coordinate, a default lead time or a default match length (both instants and the action are caller-supplied, validated, no defaults); it cannot cut the FROZEN F6/F10 waits (a scheduler-level wait checks only its predicate and its own timeout — the measured 28-second hole; the documented lateness bound is the unexpired remainder per crossed wait, guide ch. 9); and nothing preempts pure user code — no background task exists, so "guaranteed" means every shulib call after the deadline finishes quickly and is refused thereafter, never that the CPU can be taken from an unconditional retry loop. What it DID: sequence/run_guard.hpp (RunGuard, register row F12, NOT frozen) — a run-scoped deadline owner that is an ITickPacer decorator (the only seam that regains control mid-motion), inert until run() (D3 §2.1's opt-in instruction, pinned by a bit-identical-twin test), cutting the active motion AT the deadline (cancel-from-pace, now pinned in C2's re-entrancy list), REFUSING post-deadline motions (a latch — cancel-only expiry measured inert), cancel-all strictly before a caller-supplied composable end action, and an unconditional hard floor that fires even mid-end-action. Deadline-aware waitFor/pause return a new sequence-tier verdict (RunExpired wins ties with Satisfied — the measured predicate-folding trap). D-8 is discharged by the same primitive (one owner, two policies). Rule-4 fixes landed in earlier layers: the F1 claim now carries a claimant hook (a stalled operation was UNREACHABLE from the guard's span; applySafeState alone measured surviving exactly one tick), operations cancel-on-destruction (a mid-flight-destroyed op left its mechanism claimed forever AND energized — found while building the guard), and C2's blocking waits gained unwind guards (the measured 11.4 V-under-Coast state; the facade's DetachGuard was the symptom patch and stays). The DoD test passes four ways — never-settling motion, never-confirming mechanism, never-true wait, fault-abort cascade — each ending parked and safe at a limit driven by an INDEPENDENT pace-tally script and asserted against plant ground truth. Suite 1013 cases / 1,522,291 assertions; ARM gate 124 headers; the mutation tally is in the F2 completion record (development log, shulib-v2 branch). Chunk R1a (the hal/pros adapters — the drivetrain, the driver, and the shim that makes adapter glue testable) is DONE, 2026-08-13 — committed; the first hardware-binding code in the library's history. What R1a did NOT do, first, because this is the single easiest chunk in the project to over-claim: it did NOT put the library on a robot, and every claim in the chunk itself is a host claim. The adapters are proven against test/pros_shim/, a hand-written programmable stand-in for PROS whose every semantic was transcribed from the vendored SDK's own doc comments and registered (HA-94…112) — the shim tests the adapters against our beliefs about PROS; it cannot test the beliefs. Only hardware tests the beliefs. R1a shipped with its bench session unrun; it ran the next day, 2026-08-13 (see the bench entry below), on the team's old competition bot rather than the tank practice bot the runbook anticipated, and settled seven of those beliefs. The library still has never driven a robot: no loop closed. It also did not build R1b's mechanism-sensor adapters, did not tune anything, and did not touch a frozen surface. What it DID: nine PROS-backed adapters + the real tick pacer (include/shulib/hal/pros/: clock over micros(), motor with explicit units/gearset-and-read-back against the leave-device-as-is trap, rotation, IMU binding get_rotation() with BOTH yaw-rate sources behind a flag, GPS with the port-only ctor + get_offset()==(0,0) boot check, battery — whose mV unit is the register's weakest belief, flagged in its header — char sink, 3×19 line display, controller, and Task::delay_until-anchored pacing), every PROS include behind the measured two-flag diagnostic fence (-Wshadow + -Wsign-conversion, pop before any shulib code, guard-test pinned); THREE new pure conversions (motor_/rotation_/controller_conversion.hpp, hand-computed-literal tested); the NEW IController seam + ButtonEdge + FakeController (F4-additive sibling, register row F13, NOT frozen); the shim itself, #error-gated so it is structurally unable to reach a robot build, with ADVERSARIAL defaults (fake motors boot in the wrong encoder units on purpose — a shared model must not cancel its own errors quietly); src/main.cpp rewired onto the adapters (all fourteen R1 markers resolved: real devices, the on-robot precondition policy installed first in initialize(), the §18.5 session header with the hash the Makefile now injects per-build, a deadband-only teleop loop — T2 owns driver feel, HA-112); the PROS-free CI guard amended PATH-ANCHORED and proven live (planted violation caught; the --exclude-dir form demonstrated missing a smuggled localization/pros/ include — the measured hole, not repeated); the ARM gate UNAMENDED and green at 139 headers. Suite 1083 cases / 1,523,069 assertions green. The campaign: all 14 brief mutations executed and observed (13 red via the build-gated runner, M13 demonstrated live in the guard proof) plus one self-added: the heading()-site get_heading() swap stayed GREEN for a real reason — observationally equivalent through the wrapping Angle; recorded with its measurement, then closed with a textual pin (HA-03 bans the binding in writing), re-run, observed red. Two build-system findings fixed in the layer that owns them: PROS's common.mk resolves includes with -iquote only, so angle-bracket <pros/*> includes can never build on the robot (adapters use the quoted form, PROS's own internal convention); and the assumptions register's status line had been stale since E4 ("0 of 82" over 93 entries) — corrected at R1a, and then overtaken within a day by R1b's ten new entries and the bench session's seven settlements. The register's own status line is the count; nothing else should restate it. Chunk R1b (the hal/pros mechanism-sensor adapters — R1's second half) is DONE, 2026-08-14 — committed. What it did NOT do, first: it did not put any of the five new adapters on a physical sensor (none has ever touched one); it did not wire src/main.cpp (deliberately — it still carries an invented X-drive config matching no robot the team owns, and re-wiring it is its own chunk); it did not build the vision adapter (R2's) or any homing/capture/scoring routine (F3's, student-authored). What it DID: five PROS-backed adapters (include/shulib/hal/pros/: distance — carrying the chunk's most important rule, PROS's in-band "no object" 9999 mapped to confidence()==0 with distance kept finite-far, plus a close-range rule refusing to report the confidence PROS documents as unavailable at ≤200 mm; optical — per-channel sentinel screens on a seam with no validity channel; digital-out — initial state a REQUIRED ctor argument because PROS actuates the line AT CONSTRUCTION, with a test pinning agreement with the mechanism's declared safe state; digital-in — level reads only, the consuming get_new_press banned by guard test, PROS_ERR screened so a dead port can never read "pressed"; block-sink — the blackbox's SD device, usd_is_installed()-gated, refusing-not-throwing with no card, the /usd/ prefix owned in one place); TWO new pure conversions with hand-computed-literal tests; the NEW IDigitalIn seam + fake (F4-additive sibling, register row F14, NOT frozen — built ahead of the still-open lift-homing switch-or-stall answer, and the row says so); the shim extended with adversarial defaults (9999+high-confidence empty intake, no SD card, a get_new_press that really consumes); the fence guard test extended with an in-suite angle-bracket ban (R1a's -iquote lesson — the new adapters are invisible to make, so the scan is what fires first). Suite 1120 cases / 1,523,324 assertions green; ARM gate 148 headers, unamended; both CI guards proven still live. The campaign: all 14 brief mutations executed and observed (13 red via the build-gated runner; the guard-widening mutation demonstrated live — the --exclude-dir form missed the planted localization/pros/ smuggle, the shipped path-anchored form caught it, and the in-suite mirror went red on the same plant), zero unexplained greens. Beliefs registered HA-113…122, each with a bench-runbook step (16–20), two flagged as absent from the vendored source: the optical proximity POLARITY (larger=closer is community belief, HA-117) and fopen's /usd/ prefix (HA-122). A stale claim found by reading and fixed in its own layer: guide ch. 14 still said "no shulib code has ever read a real sensor" and "no adapter has ever touched a physical device" — both false since R1a's bench session; corrected to the platform-layer-only truth. History (the next step as called on 2026-08-14 — all of it since done: DOCS1 closed, the release to main happened 2026-08-15, and R3 was split into R3a–R3d on 2026-08-17): DOCS1 — the full documentation pass, then the release to main (merging to main is what publishes docs.shurobotics.com, so the documentation pass IS the release gate); then R3 — first motion, walked from the bench runbook (then 20 steps). (Phase T's T1 was delivered at R1a, per the recorded split ruling; that line previously said Phase T and went stale the day the split was ruled — corrected at R1a.)** (There is no Phase B: the original hardware phase was resequenced to Phase R when the execution order was planned — the lettering keeps the gap rather than papering over it.) M1: F4 (10 HAL interfaces) + F5 (kinematics) both LOCKED & host-validated — math/units/frame, MatrixKinematics/xDrive()/TankKinematics/desaturation, all 10 interfaces + fakes, the IMU & GPS canonical conversions (each red-teamed), and RobotContext. M2 control layer (WS4) is done: Pid, Feedforward+battery-comp, SettledUtil, TrapezoidProfile, Watchdog, ExitGroup. M2 localization (WS5) is done — the full stack: arcStep (exact SE(2) integrator — re-derived clean, which caught a real legacy bug: the old odom rotated each tick's chord by the new heading instead of the average), TrackingWheel (role-stamped), PilonsOdometry (IMU-owned heading + offset correction + trust/finiteness gate), and the fused Localizer behind an EKF-ready seam (IPoseSource/ICorrector/IFusionPolicy) with ComplementaryFusion's innovation-bounded gated nudge (never snaps), structural IMU-owned heading, a measurable quality() + dead-reckon flag, and GPS/AprilTag correctors stubbed → wired at M3. Two multi-agent red-teams (29 + 43 agents, every finding adversarially re-verified) hardened it — the localizer pass caught a CRITICAL: corrections weren't accumulating (fused = odom + one-tick nudge → couldn't converge to a persistent fix and snapped back when a corrector went quiet); now the fused state accumulates odom deltas + retains nudges, with convergence/persistence tests. Also fixed: the on-robot ARM build — root-caused to a stale soft-float firmware/liblvgl.a + gcc-14 standard names (NOT the toolchain, as long assumed); the kernel cold-package now links. Chunk A1 (WS13 diagnostics) is done — 2026-08-01: the complete-§18.2-schema DebugRecord (typed units, fields reserved for E2–E4 systems, F9-freeze-aware) behind an additively extended ITelemetrySink (emit() non-pure/no-op default; wantsRecord()+emitRecord() so a NullSink never even populates a record); TermSink with injected clock + injected char-sink and byte-pinned golden output (NaN/±Inf/1e300/control-byte/UTF-8-truncation ugly cases covered); compile-time TRACE strip (args provably unevaluated; stripped call = byte-identical ARM -Os code to no call); fault discipline — wire-pinned FaultCode, first-fault-latching crash-proof FaultLatch, LoopMonitor (inclusive >= dt-budget edge pinned), NaN/Inf log-and-recover guards with an unconditional finite-return guarantee — and the check.hpp §18.4 policy seam (host throws / robot routes to fault-log; call sites unchanged). The three legacy logger.hpp defects were designed out structurally (clean-room, not ported). 7 mutations proven red, then restored. Full record: the A1 completion record (development log, shulib-v2 branch). Chunk A2 (the host plant + closed-loop sim harness) is done — 2026-08-01: the roadmap's incompleteness bug (M2's and M4's DoDs required a "host sim" no task built) is CLOSED. Six headers under include/shulib/sim/ deliver: voltage→velocity by exact inversion of the existing Feedforward relation (kS dead band + τ=kA/kV first-order lag; kinematic, not dynamic — no invented mass/friction constants, gains provisional until R5/R6); a ground-truth pose integrator that is provably independent of arcStep (RK4 on unwrapped θ; a >π-per-tick tripwire test goes red if truth ever reuses arcStep — the trap that would have silently nulled every Phase E measurement); sensor synthesis from truth into the unmodified F4 fakes (zero additive setters needed); the first closed loops in the project (Pid through the sensor path converges and holds; a sign-flipped gain diverges; an overdriven gain chatters at the DERIVED discrete-instability threshold); the first end-to-end localization proof (PilonsOdometry + Localizer track truth ≤1e-6″ over multi-second scripts, and a deliberate 2% mis-calibration is DETECTED at its predicted magnitude); seeded byte-identical determinism (SplitMix64, memcmp-pinned); and the nine A3 degradation seams, empty but proven live. CI gains a layering guard (core may never include shulib/sim/). 8 mutations proven red, then restored. Full record: the A2 completion record (development log, shulib-v2 branch). Chunk A3 (hostile fakes) is done — 2026-08-02: the nine A2 degradation seams are POPULATED — seven sim/hostile/ headers model how V5 hardware actually lies (IMU calibration-garbage window + per-boot drift + noise + dropout; GPS decimation/noise/no-fix/off-strip/bad-fix; encoder quantization/freeze/PROS_ERR_F sentinel breach/bump-skid; battery sag→brownout collapse + thermal droop; accel-triggered wheel slip; ring-buffered sensor latency; ChainedDegradation + FullHostility composition + a seeded JitterSchedule), every invented magnitude labelled PROVISIONAL (A4) in-header. It did its job: hostility found three real Localizer defects and they are fixed at the source — (1) calibration garbage poisoned the fused pose 10.8″ on a stationary robot (boot guard added), (2) isReady() outruns a latency-delayed heading stream, so a settle window now holds the fold after a witnessed boot (found ONLY by the composed model — the reducibility design paying off), (3) mid-run IMU loss misreported as Uninitialized (now Degraded). Fault discipline proven real: diag::HealthMonitor (edge-triggered episodes, brownout hysteresis + latched marker) + FaultCode::MotorOverTemp appended; every pathology in a 9-attack survival matrix raises its code with a finite pose on every tick. The M2 <1° acceptance test is LIVE and measured: worst end-of-60s heading error 0.912° over 10 seeded boots under full hostility (cap 1.0° — passes; worst instantaneous 1.065° transiently over, and the margin at the pessimistic ±1°/min provisional drift bound is ~zero BY CONSTRUCTION: R4's measurement is the ceiling, Phase E's correctors buy margin). 7 mutations proven red, then restored. Full record: the A3 completion record (development log, shulib-v2 branch). Chunk A4 (Hardware Assumptions Register + ARM compile gate) is done — 2026-08-06, closing Phase A: every claim about physical hardware that three no-robot chunks (plus the M1/M2 conversion layers) rest on is now inventoried instead of scattered — docs/hardware-assumptions.md, 49 falsifiable entries as A4 shipped it (33 invented / 13 reasoned / 2 measured-elsewhere / 1 mixed — the real cost of building without hardware; ten later chunks have added to it, and the register states its own current count, which is the only place that number should live), each with source, confidence, the specific settling measurement, its owning chunk (R3 conventions/geometry · R4 noise/drift · R5 gains · R6 back-fit) and its blast radius if wrong (most are contained behind the hal/pros seam or a single constant BY DESIGN; the exception worth knowing: HA-19, brownout CPU-survival, which the F2 guaranteed-park design presupposes). Reconciliation is bidirectional and grep-verified: every PROVISIONAL (A4: HA-nn) label in the tree maps to an entry and every header-sourced entry points back — zero orphans. CI now holds the ARM line: a second job cross-compiles every v2 header for the V5's Cortex-A9 from a generated header list under the same strict flags as host — a compile gate (link/run stay R1/R3), proven to catch a host-only construct that the host build is provably blind to (mutation: host GREEN, gate RED, restored). This register is R3's day-one checklist — first hardware contact is a prepared sequence, not an exploration. Full record: the A4 completion record, incl. the Phase A retrospective (development log, shulib-v2 branch). (Status line as of A4, kept for the record: next was C3; C1 closed 2026-08-06, C2 built and verified 2026-08-06 — completion records in the development log.) The what is still this page; the order lives in the dependency-ordered execution plan on the shulib-v2 development branch, which states its own chunk count. It was written against the constraint that there was no robot at all; a robot has since been on the bench, and the constraint that still governs is the narrower one — the library has never driven one. Carry-overs (tracked, now placed): hal/pros adapters + v2 src/main.cpp → R1/R3; MatrixKinematics non-orthogonal pseudo-inverse → C3; sysid → R5; estimator-side frozen-encoder detection → E-phase (the loop-level cross-check shape is tested at A3). Status verified 2026-08-06 (post-C2): host suite 527 cases / 859,931 assertions green under strict -Werror (3 deliberately skipped: two M3 acceptance stubs + the R3 GPS field-cal oracle = register entry HA-01); both CI guards green (scopes unchanged — the scheduler lives in include/shulib/motion, already covered); all 86 v2 headers cross-compile clean for ARM under the CI arm-compile-gate job (generated list — motion_scheduler.hpp is covered automatically). C2 ran 16 mutations, all observed red (completion record: development log, shulib-v2 branch); C1's 12 stand as recorded.

Milestone Theme DoD headline Status
M0 Foundation & scaffolding Frame frozen in a test; host-test harness + CI green; repo clean-room-ready ✅
M1 HAL + kinematics Same kinematics run identically in a host test and on the V5 by swapping only RobotContext 🎯
M2 Holonomic motion + dead-reckon localizer A hand-written X-drive auton chains profiled motions; same code runs the H-bot 🎯
M3 Accuracy edge (fusion + docking) Pose bounded over a 60s run (< 1°); docking nests a 1.6″ Pin repeatably 🎯
M4 Skills layer + guaranteed park Full scoring primitives; the +8 park always fires even on a stalled loop 🎯
M5 Autonomy authoring + .vexbot ingestion A non-coder builds, exports, and runs a complete routine with zero C++ 🎯
M6 Ecosystem (telemetry + sim seam + tuner) A real run replays in VexBuilder; tuning happens on-brain 🔭
M7 Accessibility & docs "First auton in 10 minutes" works end-to-end; API docs publish to the website 🔭
M8 Second robot + coordination seam Both robots run shulib; a thin coordination seam exists (stretch) 🔭
Frontier The future (continuous) EKF++/LIDAR, mecanum/swerve, dynamic replan, full physics round-trip 🔭

The milestones below list every task under each. The same tasks are also grouped by permanent workstream in § Workstreams — two views of one backlog.


The milestones (full breakdown)

M0 — Foundation & scaffolding ✅

Make the old bug classes structurally impossible, and stand up the machine that proves it.

Conventions & math (WS1)

  • Freeze the coordinate frame in a regression unit test (F1). Done via the fieldToRobot/robotToField transform below — test/frame_test.cpp pins +X/CCW.
  • units::Quantity<Dim> — the 6 canonical dims (source of truth): length=inch, angle=radian, time=second, velocity=in/s, acceleration=in/s², voltage=volt. Literals (_in _deg _tile _ms _s _volt) are convenience-only (need not be 1:1 with dims); _deg builds an auto-wrapped Angle, not a bare Quantity. Compile-time dimensional safety (F3). Verified 2026-06-19: include/shulib/units/{quantity,literals}.hpp with test/quantity_test.cpp — green under strict -Werror, mutation-checked both ways (a runtime break goes red; flipping a negative static_assert fails the build).
  • Angle/Rotation2d — wrap to (−π,π], shortest-path errorTo (+180° tie-break), the only degree⇄radian boundary, non-finite rejected (F3). Verified 2026-06-19: include/shulib/math/angle.hpp with test/angle_test.cpp — 10 cases / 300k assertions green under strict -Werror, mutation-checked (breaking the boundary fold turns the tie-break tests red).
  • Pose2d, Twist2d, ChassisSpeeds value types. Verified 2026-06-19: include/shulib/math/{pose2d,twist2d}.hpp with test/pose2d_test.cpp — green under strict -Werror, mutation-checked (naive heading compare reds the ±180° seam test); compile-time checks reject wrong units (a Time where a Length belongs, a measured Twist2d for a ChassisSpeeds).
  • The one fieldToRobot() / robotToField() transform + its test. Verified 2026-06-19: include/shulib/math/frame.hpp with test/frame_test.cpp — ~520k assertions green under strict -Werror, mutation-checked (one rotation sign flip reds the pinned-direction AND round-trip tests). F1 frozen.
  • Encode the accuracy targets (F2) as the first acceptance-test stubs. Verified 2026-06-19: include/shulib/spec/accuracy.hpp (single source of truth) with test/accuracy_spec_test.cpp — value-guard + consistency invariants green; 3 system-level acceptance stubs registered & skipped (go live M2/M3). M0 Conventions & math block complete.

Tooling, build & CI (WS11)

  • Bump PROS kernel 4.1.0 → 4.2.2 (unlocks native AprilTag); project.pros Windows path fixed. Done 2026-06-19 via pros c apply kernel@4.2.2: version=4.2.2; pros/ai_vision.hpp (4 tag families, enable_detection_types, set_tag_family) now in-tree; all source compiles under 4.2.2.
  • On-robot toolchain — CLOSED, and the original diagnosis recorded here was wrong. This entry read: "the ARM link fails … distro arm-none-eabi-gcc 13.2.1 links a hard-float libgcc.a/libm.a against the project's softfp objects … Fix = use PROS's bundled toolchain." The distro toolchain was never the problem. The link was poisoned by a stale soft-float firmware/liblvgl.a and by the PROS kernel template defaulting to gcc-14 standard spellings (gnu++26/gnu23) that 13.2 does not accept. Both were project-config fixes: the stale archive is gone and Makefile pins CXX_STANDARD:=gnu++20 / C_STANDARD:=gnu2x before common.mk's ?= so it survives kernel-template updates. make links and produces the package (verified again 2026-08-14: exit 0, bin/hot.package.bin + bin/cold.package.bin present). Kept rather than deleted because a wrong diagnosis that cost real time is worth recording.
  • Stand up the host-test harness — CMake + doctest v2.4.11, strict -Werror -Wconversion …, separate from the PROS ARM Makefile. Verified 2026-06-19: builds clean, green on truth (exit 0) AND red on falsehood (exit 1). Evidence: test/, cmake -S test -B build/test && cmake --build build/test && ./build/test/shulib_tests.
  • CI (.github/workflows/ci.yml): the no-<pros/>-in-core guard + strict host build (-Werror) + the test suite. Done 2026-06-19: commands verified locally — the guard is mutation-checked (injecting a pros/ include into a core header makes it exit 1), build+tests green; Actions runs verify on first push. Scope: on-robot ARM build deliberately NOT in CI (needs PROS's toolchain/robot — see the toolchain item) and markdown lint left out (cosmetic-warning noise); both addable later. Guard scope broadens to all of shulib/ after the M2 cutover. (Fulfilled at C7, 2026-08-10: the guard now covers all of include/shulib/.) Update (A4, 2026-08-06): CI now also carries the ARM compile gate — every v2 header cross-compiled for Cortex-A9 from a generated list; the on-robot LINK/run remain R1/R3 as scoped.
  • Regenerate compile_commands.json for editor tooling. Done 2026-06-19: CMAKE_EXPORT_COMPILE_COMMANDS on; build/test/compile_commands.json symlinked at repo root (gitignored) so clangd resolves doctest.h + the shulib headers (fixes the editor false-positives).
  • Clean-room shulib/ layout + legacy quarantined to src/legacy/ + include/legacy/ (reference-only) so the new shulib/ path is collision-free. Done 2026-06-19: moved include/shulib/{api.hpp,chassis,gui,logger.hpp,pid.hpp,pose.hpp,RobotCommands,util.hpp} + all of src/shulib/ + the loose src/ files to legacy/; include/shulib/ now holds only the verified core (core/ math/ units/ spec/); host tests stay green. Full deletion at the M2 cutover (after salvaging the Pilons math + RobotCommands + logger.hpp). PROS/ARM build has no main.cpp now — in-flux until the M1/M2 wiring, as planned. (The deletion happened at C7, 2026-08-10, after C6's salvage audit; a fresh v2 src/main.cpp restored the PROS/ARM build the same day.)

Compliance (WS12)

  • Delete src/tracking.md (verbatim LLM transcript — not authored by us). Done 2026-06-19.
  • No machine-generated motion code ships — legacy main.cpp is quarantined; the new auton is written fresh at M1/M2. Done 2026-06-19 (clean-room).

Definition of Done: the frame transform and Angle wrap have passing host tests; CI is green and blocks <pros/> in core; the kernel is on 4.2.2; tracking.md is gone. Freezes: F1 ✅, F2 ✅, F3 ✅.


M1 — HAL + kinematics foundation 🎯

One seam for hardware/sim/test; drivetrains become interchangeable.

HAL (WS2) — F4 interfaces frozen 2026-06-19 (30-agent review + RobotContext); the drivetrain-and-driver hal/pros adapters landed at R1a (2026-08-13) and the mechanism-sensor adapters at R1b (2026-08-14), all host-tested against the shim; on-V5 validation is R3's

  • Define all HAL interfaces (F4): IMotor, IRotation, IImu, IGps, IVision/ITagSource, IDistance, IOptical, IClock, ITelemetrySink, plus a battery-voltage source. Done 2026-06-19: IClock (hal/clock.hpp), IMotor (hal/motor.hpp, ±12 V clamp + non-finite + cumulative-position contract), IImu (hal/imu.hpp, canonical heading/yawRate/calibration/tilt), IGps (hal/gps.hpp, canonical center pose + rmsError + hasFix), and the simple reads IRotation (cumulative non-wrapping), IDistance (inches + confidence), IOptical (hue/sat/bri/prox), IBattery (volts + capacity, for brownout comp), and ITelemetrySink + the zero-cost NullSink (§18 diagnostics seam; leveled messages now, per-tick DebugRecord rides behind it at M2), and IVision/ITagSource (decision #7: tags as robot-relative poses, objects as bearings; the PnP / bearing reductions are M3/M4 pure functions). All 10 F4 interfaces frozen — a 30-agent full-set review closed the breaking-if-deferred gaps (added IMotor::current()/temperature()/brake-mode, IBattery::current() + the 5th units dimension; flipped isCalibrating()→isReady()), then RobotContext exercised the whole set.
  • [~] hal/pros/* adapters — the only files that include <pros/*>. IMU compass/CW → canonical; GPS frame → canonical (the conversions happen here, once). Pure conversion math built+host-tested ahead of the adapters, each adversarially red-teamed (4-lens workflow, math verified correct): hal/imu_conversion.hpp — get_rotation()-binding / no-post-cal-tare / bootHeading-ownership / yaw-rate-source contracts pinned; hal/gps_conversion.hpp (CW-from-North→canonical, m→in rotation, lever-arm removal) — axis-assumption (validate-on-field), no-firmware-offset, PROS_ERR_F-screening, North/lever ownership, and a non-finite-lever-arm guard pinned (§7 + headers). [~] at R1a (2026-08-13): the DRIVETRAIN-AND-DRIVER nine are BUILT and host-tested — ProsClock/ProsMotor/ProsRotation/ProsImu/ProsGps/ProsBattery/ProsCharSink/ ProsLineDisplay/ProsController + ProsTickPacer (include/shulib/hal/pros/), each behind the two-flag diagnostic fence, with new pure conversions (motor_/rotation_/ controller_conversion.hpp) and adapter tests through the test/pros_shim/ host shim (suite 1083 cases / 1,523,069 assertions; the R1a campaign: 14 brief mutations + 1 self-added, every one executed and observed red — the one true green closed with a structural pin). NOT done, named: IDistance/IOptical/IDigitalOut/IDigitalIn/ IBlockSink adapters (R1b's), the vision adapter (R2's, next row), and EVERYTHING on-robot — at the time of the chunk no adapter had touched a physical device; the shim tests them against our beliefs about PROS (HA-94…112) and cannot test the beliefs. The 2026-08-13 bench session settled seven of them on one robot, once; every heading and sign convention, and the port map, remain open for R3. At R1b (2026-08-14) the MECHANISM-SENSOR five landed the same way: ProsDistance/ProsOptical/ProsDigitalOut/ProsDigitalIn/ProsBlockSink (include/shulib/hal/pros/), with two new pure conversions (distance_conversion.hpp — carrying the named 9999 no-object rule — and optical_conversion.hpp), the NEW IDigitalIn seam + FakeDigitalIn (register row F14, NOT frozen), and the shim extended (pros/distance.hpp/optical.hpp/adi.hpp/usd — adversarial defaults: an empty-intake 9999 with high raw confidence, construction-actuating digital-outs, a consuming get_new_press, no SD card). Suite 1120 cases / 1,523,324 assertions; ARM gate 148 headers unamended; the R1b campaign: all 14 brief mutations executed and observed at the mandated outcome (13 red via the build-gated runner; the guard-widening one demonstrated live — --exclude-dir missed the planted smuggle, the shipped path-anchored form caught it), zero unexplained greens. Beliefs registered HA-113…122 with bench runbook steps 16–20 — two flagged as NOT stated by the vendored source (proximity's polarity, HA-117; fopen's /usd/ prefix, HA-122). STILL not done: the vision adapter (R2's), src/main.cpp wiring for the new five (deliberately untouched — it carries an invented X-drive config no robot matches), and everything on-robot: none of the five has ever touched a physical sensor.
  • [~] Vendor & extend the existing ai_vision.hpp wrapper into the hal/pros IVision/ITagSource adapter (object mode and AprilTag mode). [~] at R2a (2026-09-24): the EVIDENCE half exists, the adapter does NOT. R2 was split: Bench Tests gained two stations that show what robot two's sensors report — 11 DISTANCE (every distance sensor's raw PROS reads beside the ProsDistance adapter's inches and confidence) and 12 AI VISION (tag and object detection and the camera's USB bounding-box overlay turned on, the object count, temperature, how often the data changes, each detection's type, id or class name and box or tag corners as PROS reports them, and a tag-family cycle) — with a RECORD button that writes one line per sensor or detection to serial and the SD card. Ports are discovered from the brain's registry. Build-gated; neither station has run on a robot. The adapter itself (R2b) is written afterwards from those records, not from beliefs. VIS1-A1 (2026-10-22) pulled the camera's OBJECTS-and-COLOURS half FORWARD, before the stations have run (the team lead's rulings of 2026-10-08 and 2026-10-14: the Toggle auto-flipper and driving to a piece both need it before the panel): hal::pros::ProsAiVision reads the camera a frame at a time through a SIBLING seam, hal::IVisionFrames (Freeze Register row F15, NOT FROZEN) — not through IVision/ITagSource, whose TAG part stays R2b's, after G3 (tags stay OFF). So that half was written from the vendored header and libpros.a on beliefs registered as HA-192..HA-203, none measured; station 12's records settle them. Still [~]: no tag adapter, and no camera has yet been read by this one.
  • [~] hal/fake/* deterministic doubles (injectable clock) for host tests. Done 2026-06-19: FakeClock (monotonicity-enforcing), FakeMotor (real clamp/validation + injectable encoder), FakeImu (canonical injectable incl. ±180° seam), FakeGps (canonical pose + fix/error, safe no-fix default), the pure-read FakeRotation/FakeDistance/FakeOptical/FakeBattery, the recording FakeTelemetrySink, and FakeTagSource/FakeVision — each tested for contract/round-trip (the stateful ones also mutation-checked).
  • RobotContext — the DI container; the one object that differs across robot/sim/test. Done 2026-06-19: include/shulib/chassis/robot_context.hpp — named-pointer config validated non-null, hands out references to all the HAL handles; test/robot_context_test.cpp mutation-checks the null-validation and demonstrates the M1 DoD (field→body→wheels pipeline reading the heading through the context; numbers identical regardless of HAL impl).

Kinematics (WS3) — complete & host-validated 2026-06-19; F5 host-frozen (on-V5 number-match pending)

  • IKinematics contract: toWheels/forward/desaturate/strafeAuthority()/wheelCount (F5). include/shulib/kinematics/{kinematics,wheel_speeds}.hpp; contract-tested (test/kinematics_contract_test.cpp) — implementable & polymorphic; WheelSpeeds bounds/maxMagnitude/ approxEqual mutation-checked. F5 validated end-to-end by the two drives below, so it is frozen host-side; the on-V5 identical-numbers check rides with the ARM-toolchain item.
  • XDriveKinematics, TankKinematics — host-tested with pure numbers. X-drive is a MatrixKinematics coefficient-table preset (xDrive(), §13 #15 hybrid): the matrix_kinematics.hpp engine (orthogonal-column forward; rank-3 and orthogonality preconditions reject malformed tables), plus the x_drive.hpp and tank.hpp presets. Tests pin the physical signatures (X-drive √2-forward, all-wheels-equal spin, strafe⊥forward; tank forward=equal / rotation=opposite / strafe-ignored / no phantom vx) and swept round-trips. Mutation-checked: forward divisor swap, dropped yaw term, loosened orthogonality guard, an X-drive sign flip (rejected at construction), and the tank ω sign — each proven red, then restored.
  • Uniform-scale wheel desaturation. desaturateUniform (desaturate.hpp) — within-budget unchanged, over-budget peak-onto-limit, uniform ratio/direction preservation, all-zero no-op, non-positive budget rejected; wired into both drives' desaturate() and tested via the MatrixKinematics delegation path. Mutation-checked (inverting the scale factor goes red).
  • (M2 carry-forward) generalize MatrixKinematics::forward() to the full (AᵀA)⁻¹Aᵀ pseudo-inverse for non-orthogonal drives (H-drive's off-center strafe wheel). Relaxes a precondition only — F5-safe. Done at chunk C3 (2026-08-06): forward() is the full least-squares pseudo-inverse, AᵀA inverted once in closed form at construction (kinematics/matrix_kinematics.hpp). This box stayed [ ] until 2026-09-24 although the work was recorded done under M2.

Definition of Done: a trivial motion's kinematics produce identical numbers in a host gtest and on the V5, swapping only RobotContext. Freezes: F4 ✅, F5 ✅ (both host-frozen; the hal/pros adapters landed at R1a/R1b, and the on-V5 kinematics number-match awaits R3 — not a toolchain).


M2 — Real holonomic motion + dead-reckon localizer 🎯

Move like a holonomic robot; know roughly where you are.

Control & FF (WS4) — started 2026-06-19 (host-testable, no robot needed)

  • Pid (derivative-on-measurement, integral clamp, output clamp, injected clock). *control/pid.hpp
    • test/pid_test.cpp (9 cases): D-on-measurement (no setpoint kick), anti-windup back-calc, output clamp, first-call/dt≤0 P-only (no NaN), reset, config preconditions — mutation-checked (removing the anti-windup clamp and loosening the dt>0 guard each go red). Bare-double by design; the motion layer owns unit consistency. control/ added to the CI PROS-free guard.*
  • Feedforward{kS,kV,kA}; voltage/brownout compensation. control/feedforward.hpp + test/feedforward_test.cpp (7 cases): V = kS·sign(v) + kV·v + kA·a (typed Velocity/Acceleration in, Voltage out; bare gains — to be measured by the robot in shulib Calibrate's GAINS step (built as library in R5a Part A; Calibrate runs it from Part C; not yet on a robot); a measured kA is recorded, not applied), kS follows the velocity sign and is zero at rest; compensateForBattery() limits a desired voltage to ±battery and flags brownout-saturation (the park fires as the battery collapses). Mutation-checked (kS-sign and the battery clamp each go red).
  • MotionProfile (trapezoid). control/trapezoid_profile.hpp + test/trapezoid_profile_test.cpp (7 cases): signed move → (pos, vel, accel) over time; accel/cruise/decel phases, triangular degradation when too short to reach maxVelocity, symmetry, clamped endpoints (arrives at rest), zero move, monotonic position. Mutation-checked (dropping the √ in the triangular peak and the ½ in the accel integral each go red). Bare doubles; per-axis in the motion layer. (S-curve later.)
  • ExitCondition/ExitGroup + SettledUtil (err and deriv and time-held). SettledUtil done (control/settled_util.hpp + test/settled_util_test.cpp, 7 cases): settles only when |error| AND |error-rate| are within bounds AND held for settleTime (window opens on the first valid-rate tick); break-resets the window; clock-driven. Mutation-checked (dropping the rate condition lets it settle while still moving → red). ExitGroup (control/exit_group.hpp + test/exit_group_test.cpp) composes SettledUtil + Watchdog and reports the ExitReason (Settled/TimedOut/Running) for §18 exit-codes, Settled taking priority over a simultaneous timeout — mutation-checked (reversing the priority reds).
  • Motion watchdog (hard timeout — a motion can never hang). control/watchdog.hpp + test/exit_group_test.cpp: clock-driven, start()/expired()/elapsed()/reset(); expires at/after the timeout, never before start; mutation-checked (the >= boundary reds). Consumed by ExitGroup.
  • [~] tools/sysid offline kS/kV/kA least-squares → emits constants; one on-robot ramp routine. Reframed 2026-09-26 (the team lead's ruling): kS/kV/kA are measured BY THE ROBOT, inside shulib Calibrate, and kept on the SD card beside the drivetrain record — never typed or committed as constants (chunk R5a, four parts). Part A (2026-09-29) — the measurements as library, HOST-PROVEN ONLY: the fit runs on the brain (calibration/feedforward_fit.hpp — the discrete feedforward law by incremental QR, no differentiated velocity; each exclusion counted by reason; a verdict per side); the ramp routine is the GAINS step (calibration/drive_characterizer.hpp — two ramps and two steps, each side fitted separately, a curve guard read from the ENCODERS, 0 V + Brake at a normal segment end and its stopping distance measured, 0 V + Coast on every refusal); the stationary capture is the REST step (calibration/rest_capture.hpp — the IMU's drift with its σ under both noise structures, the per-tick rate noise against the settle floors); both record their loop timing (diag/tick_timing_stats.hpp); the host test plant can give each wheel its own gains. Evidence: 78 new host test cases and every listed mutation run red (63 on 2026-09-29, 15 more in its review of 2026-10-04; recorded in the development log on the shulib-v2 branch); A4 register HA-170..HA-174. Nothing has been measured on a robot, and no program runs these yet: Part B puts the result on the card and makes the robot builder consume it, Part C adds the GAINS and REST steps to shulib Calibrate (with a small laptop re-fit that cross-checks the brain's arithmetic from the raw samples), Part D makes every program say which gains it used. A measured kA is recorded, not applied — the motion layer applies the cruise form only.

Motion (WS6)

  • IMotion; MoveToPose (decoupled x/y/θ), TurnTo, StrafeTo, driveBrake, holdPose. *Chunk C1 (2026-08-06): include/shulib/motion/ — IMotion tick contract + MotionState wire vocabulary, the 3-axis decoupled engine (simultaneity mutation-proven), the wait-for-live-estimate contract (A3 handoff #1) and the OdoStallCheck spin-vs-motion cross-check → ODO_STUCK (A3 handoff #2), F1/F5 choreography explicit (norm-cap → fieldToRobot → authority clamp → toWheels → desaturate → FF → battery comp). Evidence: test/motion_primitives_test.cpp (21), motion_frames_test.cpp (7 — rotation/mirror equivariance + the ±180° seam incl. the F3 antipodal-CCW pin), motion_sweep_test.cpp (7 — seeded sweeps with per-tick universal invariants), motion_hostile_test.cpp (13 — per-family
    • composed settled-vs-truth divergence), motion_routine_test.cpp (4 — 5/10/20/40-move chains: clean error FLAT in count, hostile worst 4.1 in attributed to drift-vs-time), motion_stall_check_test.cpp (9). 58 cases; suite 487/858,611; 12 mutations red.*
  • MotionScheduler — one active motion, async()/waitUntilSettled()/waitUntil(pred)/cancel(). Chunk C2, 2026-08-06, committed 1206dbe: the formalized loop (localizer-first, bit-identical to the C1 hand loop — pinned by an equivalence test only the loop-shape mutation can red), ONE active slot with pinned PRE-EMPT semantics, cancel() into the defined safe state (0 V + Brake, synchronous — HA-53), the C1-deferred fault policy (abort-and-brake on new ODO_STUCK, continue-degraded elsewhere, configurable mask via the new FaultLatch::raiseCount), every wait bounded (explicit waitUntil timeouts, watchdog-bounded settle, the stalled-pacer guard), the check.hpp task-boundary catch, activeCommandId stamping (CommandIdStampSink, pair-rule preserving), idle-gap HealthMonitor + LoopMonitor ownership, ExitReason::Cancelled/MotionState::Cancelled appended. Routine accuracy through the scheduler REPRODUCES C1's baseline verbatim (bit-identity: clean n=5 finalErr 0.228 in == C1; hostile worst 4.13 in; settle overhead 1.19 s/motion). Evidence: include/shulib/motion/motion_scheduler.hpp; test/motion_scheduler_test.cpp (25), motion_scheduler_routine_test.cpp (4), fault_test.cpp (+1); suite 527/859,931; 16 mutations, all observed red.

Kinematics (WS3)

  • HDriveKinematics — capped strafe authority + automatic turn-then-drive fallback (telemetry-visible). Chunk C3, 2026-08-06: shipped as the hDrive() MatrixKinematics preset (the §13 #15 hybrid backend, like xDrive()), rows derived from rigid-body kinematics with an independent from-scratch test oracle. Authority = derivable speed ratio × HA-54 traction derate (0.35 default — the locked master-plan number, now a registered falsifiable claim). The fallback's shape is turn-WHILE-drive (authority-limited translation, rotation FREE — emergent from C1's clamp + decoupled loops; sequenced turn-then-drive REJECTED at engine level: it would break StrafeTo's held heading, invent unrequested mid-field headings, and is dominated by the simultaneous form — measured: aligned-heading MoveToPose 1.92 s beats the pure 21 in/s crab's 2.71 s over the same 40 in). Visible end-to-end: strafeFallbackActive populated at the one producer, TermSink renders " SFB"; silent fallback = 6 independent failing tests. Carries the M1 deferral: forward() generalized to (AᵀA)⁻¹Aᵀ with previously-accepted tables bit-identical (XOR checksums vs the pre-C3 build) and a relDet conditioning guard. C1's D11 CONFIRMED. Evidence: include/shulib/kinematics/h_drive.hpp, matrix_kinematics.hpp; test/h_drive_test.cpp (9), matrix_kinematics_test.cpp (+6), motion_hdrive_test.cpp (11), motion_hdrive_routine_test.cpp (3); suite 556/913,561; 13 mutations (12 red, 1 explained-green redundancy probe, doc corrected). Same-auton accuracy X vs H: clean flat in count (0.225–0.238 in both), hostile worst 4.13 / 4.03 in.

Localization, tier 1 (WS5)

  • arcStep (exact SE(2) constant-twist integrator) + TrackingWheel (role-stamped) + PilonsOdometry (IMU-owned heading, offset correction, trust/finiteness gate). Re-derived clean (caught a legacy average-vs-new-heading bug); forward-sim-verified, mutation-checked, 5-lens red-teamed.
  • Localizer on odom + IMU-owned heading, correctors stubbed; quality flag. EKF-ready seam (IPoseSource/ICorrector/IFusionPolicy); ComplementaryFusion gated nudge (accumulates + never snaps); fused Twist2d + measurable quality(). 43-agent red-team (caught + fixed the no-accumulation CRITICAL).
  • IMU cold-calibrate at boot; per-boot bias characterization; tip detection (pitch/roll). (R5a Part A, 2026-09-29: the per-boot bias can now be measured by library code — the REST step built for shulib Calibrate (calibration/rest_capture.hpp, host-proven only; Calibrate runs it from Part C) reports the drift with its σ under both noise structures, one boot per run (A4 register HA-173: a sample, never a correction). Nothing has been measured; boot-time bias estimation and tip detection are untouched.)

Host sim plant & closed-loop harness (WS10/WS2) — added 2026-08-01 by chunk A2. This task was the roadmap's incompleteness bug: this milestone's DoD (and M4's) requires "settles within tolerance in host sim", and no task on this page built that sim — by this page's own rule ("if something needs doing and isn't on this page, that's a bug in the roadmap"). With no robot, it is the only means of validating ANY closed-loop behavior; every "settles in host sim" DoD in Phases C–F depends on it.

  • Host plant + deterministic scenario harness — voltage → wheel velocity (exact inversion of the existing Feedforward relation: kS dead band, τ=kA/kV lag; kinematic, not dynamic — no invented constants, gains provisional until R5/R6) → body twist (frozen-F5 IKinematics::forward) → TRUE pose (RK4 on unwrapped θ, provably independent of arcStep — reusing arcStep for truth would let any arcStep error cancel invisibly out of every Phase E measurement; a >π-per-tick tripwire test reds that mutation) → sensors synthesized from truth into the unmodified F4 fakes (zero additive setters needed) → back into the estimator/controller. Plus: ground truth exposed to assertions only (new CI layering guard: core may never include shulib/sim/); seeded SplitMix64 byte-identical replay; the nine A3 degradation seams (empty, documented, proven live); per-tick DebugRecord emission honoring A1's emitRecord cost contract; TermSink-watchable. Evidence: include/shulib/sim/ (6 headers) + test/sim_motor_model_test.cpp (9 cases), test/sim_truth_test.cpp (9 — incl. the 405-point arcStep-vs-truth agreement sweep at 1e-9″ and the independence tripwire), test/sim_plant_test.cpp (14 — analytic open-loop, X-drive AND tank), test/sim_closed_loop_test.cpp (4 — the first closed loops in the project: converge/hold via the sensor path; sign-flip diverges; overdriven gain chatters at the derived instability threshold), test/sim_odometry_truth_test.cpp (5 — odometry/Localizer ≤1e-6″ of truth over multi-second runs; a 2% mis-calibration DETECTED at its predicted 1.0″), test/sim_scenario_test.cpp (9 — memcmp determinism, seam liveness, TermSink/NullSink cost). 48 new cases / 25,320 new assertions; suite 349/547,443 green; 8 mutations proven red (A2 completion record: development log, shulib-v2 branch).
  • Hostile fakes (chunk A3) — the nine seams populated with justified V5 misbehaviour, each independently injectable AND composable (ChainedDegradation/FullHostility), hostility seeded (byte-identical replay pinned UNDER full hostility, closed-loop), every invented magnitude labelled PROVISIONAL for the A4 register. Every pathology raises a FaultCode with a safe fallback (diag::HealthMonitor, edge-triggered; MotorOverTemp appended) — no crash, no NaN in the pose (finiteness REQUIREd on every tick of every attack). Three Localizer defects found by hostility and fixed at the source (boot-window poisoning; ready-vs-data-path settle window; mid-run-loss misreport). Evidence: include/shulib/sim/hostile/ (7 headers) + diag/health_monitor.hpp; test/sim_hostile_{imu,gps,encoder,power,slip,latency}_test.cpp (8+9+7+8+7+7 cases), test/sim_hostile_survival_test.cpp (10 — the fault-discipline matrix), test/sim_hostile_composed_test.cpp (7 — composition/determinism/ablation/catastrophic), test/health_monitor_test.cpp (10), +4 boot-guard pins in localizer_test.cpp, +Gaussian pins in sim_scenario_test.cpp. Suite 429/681,086 green; 7 mutations proven red (A3 completion record: development log, shulib-v2 branch).
  • [~] The M2 <1° acceptance test (accuracy_spec_test.cpp [acceptance][M2]) — unskipped and live at A3 against modeled IMU drift/noise: worst end-of-60s heading error 0.912° across 10 seeded boots (cap 1.0°). [~] not [x] because the numbers it runs against are PROVISIONAL: at the pessimistic ±1°/min drift bound the margin is ~zero by construction (worst instantaneous error touched 1.065° mid-run), so the claim "the STACK adds no heading error of its own" is proven, while the field claim waits on R4's measured drift (the ceiling) and Phase E's correctors (the margin). (That drift bound is now register entry HA-20 — the F2 ceiling has a tracked owner.)
  • Hardware Assumptions Register + ARM compile gate (chunk A4, closing Phase A) — every claim about physical hardware the no-robot build rests on, inventoried: docs/hardware-assumptions.md, 49 falsifiable entries as A4 shipped it (33 invented / 13 reasoned / 2 measured-elsewhere / 1 mixed; later chunks have grown it — the register carries its own current count), each with source (file:line), confidence, the specific settling measurement, owning chunk (R3/R4/R5/R6), and blast radius if wrong — grouped as Phase R's walk-through checklist. Bidirectional reconciliation grep-verified, zero orphans: all 35 PROVISIONAL (A4…) label sites carry register IDs; all 46 in-tree IDs have entries (3 entries are exempt non-header sources, stated in-register). CI now cross-compiles every v2 header for the V5's Cortex-A9 (the arm-compile-gate job: GENERATED header list so new headers are auto-covered; compile gate only — link/run stay R1/R3) and the gate is proven, not asserted: an injected x86-only construct left the host build GREEN and turned the gate RED (exit 1 at the offending line), then was restored. Evidence: hardware-assumptions.md; .github/workflows/ci.yml; suite unchanged at 429/681,086 (no new test surface, by design); the A4 completion record, incl. the Phase A retrospective (development log, shulib-v2 branch).
  • The src/ build gate (chunk GATE1, reactive, 2026-08-19) — the ARM job above compiled every HEADER and never src/ itself, and the Makefile records a data abort that shipped from exactly that blind spot. tools/src_build_gate.py check now drives the REAL make for every robot variant (ROBOT=bench and ROBOT=xdrive at GATE1; ROBOT=tank since R3b session 2, 2026-09-10), compile AND link, forced-fresh with the compiled TU count printed; errors fail, vendored warnings are ignored by path, everything else fails (-Wunused-function excepted by category at GATE1, the residual hole stated in the tool — a FAILURE like every other category since G1 Part 2c's final run, 2026-09-26, the team lead's ruling), and a missing toolchain FAILS rather than skips. self-test plants five faults against real builds first. Two records were corrected by measurement: the on-robot link is NOT blocked (the gate IS the build), and make ROBOT=xdrive replaces a documented flag that silently built the wrong robot. Evidence: tools/src_build_gate.py; .github/workflows/ci.yml (arm-compile-gate, two added steps); 10 self-test cases; 5 mutations observed red then restored; re-verified PASS on 2026-09-10 at 7d3e7ce; the GATE1 completion record (development log, shulib-v2 branch); and the job itself green on a GitHub runner on 2026-09-10 at 89b00f2, first push since 2026-08-17, three variants.

Facade (WS — Chassis)

  • Chassis public verbs (F6): moveTo/strafeTo/turnTo/followTrajectory/drive(ChassisSpeeds,Frame). BUILT at chunk C4 (2026-08-10); FROZEN at chunk D2 (2026-08-12) — F6 LOCKED, API 2.0. chassis/chassis.hpp: the five verbs plus brake()/hold(Time)/wait(Time) (the C4 candidates + D2's one sanctioned addition, all adopted into F6), cancel()/waitUntil(), pose/setPose/strafeAuthority/lastExitReason/lastCompleted/motionConfig, and the Tier-3 seam (scheduler()/deps()). Time is typed units::Time across the surface (the D2 retype — hold(500) does not compile; full-suite output proven byte-identical through the change). drive()'s Frame parameter is REQUIRED (frame confusion is a compile error — now an F6 negative pin). One composition root makes id stamping structural (C2's gap closed, mutation-proven); facade routines BIT-IDENTICAL to the scheduler twin (clean + hostile), so C1–C3 baselines carry over verbatim; file-free plain-C++ construction tested (the §16.2 standalone promise). The freeze is enforced: test/f6_signature_pin_test.cpp (36 compile-time pins, every member mutation-proven to fail the build naming F6) + include/shulib/version.hpp (the breaking-vs-additive policy). Routine deliberately stays OUTSIDE F6 until D3. Evidence: the C4 + D2 completion records (development log, shulib-v2 branch); suite 690/916,050; D2's campaign: 44 mutations executed, 2 green holes found and closed (a noexcept-blind pin; a clock-blind call-site case).

Diagnostics & observability (WS13) — pulled forward so M2–M3 are debuggable as built (§18)

  • DebugRecord per-tick snapshot schema, behind the ITelemetrySink seam (already at M1). Done at chunk A1 (2026-08-01): diag/debug_record.hpp carries the complete §18.2 field set in typed units — including fields for systems that don't exist yet (gating residuals, covariance trace, strafeFallbackActive), since F9 later freezes this exact record. emit() added to the seam additively (non-pure, default no-op — pinned by the message-only-sink test) with the wantsRecord()/emitRecord() null-sink cost mechanism (a NullSink never even POPULATES a record — pinned by the builder-not-invoked test). Evidence: test/debug_record_test.cpp (8 cases, schema/type/wire-value pins) + 2 additivity cases in test/telemetry_sink_test.cpp; FakeTelemetrySink extended to record the emit channel. Mutation-checked (always-build emitRecord goes red).
  • TermSink — readable, subsystem-tagged, column-aligned terminal stream (the primary debug surface); levels ERROR/WARN/INFO/DEBUG/TRACE with a compile-time TRACE strip off the hot path (zero-cost in competition builds). Done at chunk A1: diag/term_sink.hpp with injected IClock + injected hal::ICharSink (output is golden-testable, not eyeballed) — exact §18.3-shape lines pinned byte-for-byte incl. the ugly cases (NaN/±Inf tokens, 1e300 compaction, empty tag, control-byte sanitization, UTF-8-safe truncation). diag/trace.hpp strips SHULIB_TRACE at compile time: argument expressions provably unevaluated (side-effect-counter test) AND the stripped call compiles to byte-identical ARM -Os code vs. no call at all (asm-diff verified). Evidence: test/term_sink_test.cpp (15 cases), test/trace_strip_test.cpp (2) + test/trace_enabled_test.cpp (1). Mutation-checked (a stray space in [WARN] and an args-evaluating strip each go red).
  • Fault-code enum + latched first-fault; motion exit-reason codes on every IMotion; loop-overrun / tick-timing detection; NaN/Inf + invariant asserts (log-and-recover, non-fatal). A1 delivered everything that exists to attach to: diag/fault.hpp (wire-stable numeric FaultCode, values pinned; FaultLatch retains the FIRST fault distinctly from the cascade and never crashes — survives even a throwing sink), diag/loop_monitor.hpp (dt-budget overrun, the >= boundary pinned exactly), diag/finite_guard.hpp (NaN/Inf log-and-recover with an unconditional finite-return guarantee), and the check.hpp §18.4 policy seam (host throws / robot routes to fault-log, call sites unchanged — test/check_policy_test.cpp, 5 cases). Evidence: test/fault_test.cpp (7), test/loop_monitor_test.cpp (7), test/finite_guard_test.cpp (8); first-fault latch, overrun boundary, and NaN guard all mutation-checked red. Closed at C1: every IMotion now reports an ExitReason (Settled/TimedOut, never Running after exit — pinned), raises MOTION_TIMEOUT on its latch, and carries the MotionState vocabulary in DebugRecord.activeCommandState (test/motion_primitives_test.cpp exit-discipline + legibility cases).
  • Per-motion result line (target vs final · overshoot · drift · time · exit-reason) + end-of-run summary block. Closed at C5 (2026-08-10): diag/motion_result.hpp (the §18.4 boundary vocabulary SETTLED/TIMEOUT/CANCELLED/FAULT_ABORT/SUPERSEDED, wire-pinned) + diag/run_summary.hpp + TermSink::summarize (the §18.3 block, byte-goldened), fed structurally by the scheduler's boundary-observer seam via motion/run_reporter.hpp — a routine cannot forget to report a boundary. Numbers cross-checked against plant TRUTH on X/H/tank (clean: reported == truth to ~1e-13 in; an inertial-plant case proves a REAL 3.79 in overshoot reports true to 6 digits; hostile: believed-vs-true ≤ 1.76 in, inside the C2/C3 envelope). D-1…D-5 landed in the same chunk with the F9 schema space reserved (diagnostics-plan.md discharge table); completion record: development log, shulib-v2 branch.
  • Session header (git build hash + routine id + alliance/side + port map + battery start) as the first record of every run — lets us compare/reproduce runs and confirm which binary ran. Closed at C5: diag/session_info.hpp + diag/build_info.hpp — the hash is BUILD-SYSTEM injected (git describe --always --dirty; the test CMake does it; the PROS Makefile gains the same line at R1), and a missing hash is LOUD ([ERROR][SES] + the literal token MISSING), never a plausible placeholder — pinned by golden. Port map is caller-authored text at C5 (the core HAL has no port numbers); G1's RobotBuilder generates it. Battery start is READ, not typed. (Since G1 Part 2a, 2026-09-24, the generator exists — robot::Robot::portMap(); since G1 Part 2b, 2026-09-26, "shulib Teleop" prints its session header's port map from it, byte-identical to the hand-built text it replaced. The invented X-drive graph in src/main.cpp still builds its own by hand until Part 2c.)
  • Fix the three inherited logger.hpp bugs (escapeJSONString unapplied, dead sendDebugMessages, racing flush) before building on it. Resolved at chunk A1 by clean-room supersession, per the execution plan's "Explicitly rejected" note (re-derive, don't copy): nothing builds on logger.hpp, and the replacement designs each defect out structurally — sanitization is unavoidable by construction (one sanitizing append is the only path for caller text into a TermSink line), there are no dead paths (every shipped path is reached by a test), and the racing flush has no analogue (no background task, no shared mutable buffers; the concurrency contract is explicit in every header). The legacy files stay quarantined, reference-only, until the C7 deletion.

Legacy cutover (WS11) — the clean-room demolition, sequenced so nothing salvageable is lost

  • Salvage before deleting: port RobotCommands→sequence/ seed, logger.hpp→io/Telemetry, and re-derive the Pilons arc math into the in-core PilonsOdometry — all complete before the deletion. Closed at C6 (2026-08-10), each item in a better form than this 2026-06 wording imagined (completion record: development log, shulib-v2 branch): the Pilons math was re-derived clean at M2 (arcStep — and C6 verified the legacy bug in source, legacy odometry.cpp:338-355 rotates the chord by the NEW heading; the correct average-heading form is arc_step.hpp:99); logger.hpp was superseded structurally at A1/C5 (C6 re-verified all three defects by grep — escapeJSONString has zero call sites, sendDebugMessages is called but never defined, the flush race is real); and RobotCommands proved to be UNPORTABLE-BY-VACANCY — C6 found no executor ever existed (three data representations, zero consumers, an empty moveTo() body), so its salvage is legacy-command-vocabulary.md: every id mapped to C1/C2, Phase F′, or G2, the two data specimens characterized for G4's importer, and the port list empty by audit (all 34 files classified; 11 live legacy bugs catalogued and left behind). C6's completion record §8 (development log, shulib-v2 branch) carries the unconditional safe-to-delete verdict the next bullet's deletion acts on.
  • [~] Rewire main.cpp + the PROS build onto the new core → hardware-validate on the V5 → freeze F6 → delete src/legacy/ + include/legacy/. After this the new shulib/ is the only tree. Structural half closed at C7 (2026-08-10) — with the sequencing deliberately changed from this 2026-06 wording, a recorded execution-planning deviation: the "keep legacy until hardware validates" safety net was not real (the old tree no longer compiled, C6 had already salvaged everything worth keeping, and git retains every byte — recover via git show 691c656:<path>). What is DONE: src/main.cpp wires the v2 stack alone, its HAL seams fake-backed and marked TODO(R1) at each line an adapter replaces; make succeeds and produces the uploadable hot/cold package (bin/hot.package.bin + bin/cold.package.bin); src/legacy/ + include/legacy/ are deleted (34 files); the CI PROS-free guard covers all of include/shulib/; the new shulib/ is the only tree. The F6 freeze clause closed at D2 (2026-08-12) — LOCKED, enumerated, pin-enforced. [~] not [x] because one clause is NOT done and is owned elsewhere: hardware-validation on the V5 is OPEN (R3b) — this package has never driven a robot under its own control. (The "cannot until R1's adapters exist" this line carried closed at R1a — the adapters exist and main.cpp wires them; what remains open is R3's bench-and-drive clause itself.) (It has been booted on a V5 brain, 2026-08-12: upload → boot → full object graph constructed → diagnostics banner over USB, with every motor and sensor still fake. That closes the "has never executed on a V5" unknown and closes nothing else — R3's clause is about a robot that moves.)

Definition of Done: a hand-written X-drive auton chains profiled motions and settles within tolerance in host sim; the same auton runs the H-bot; the run is legible in real time on the terminal (per-tick state + per-motion results + a run summary); legacy is deleted and main.cpp runs entirely on the new core. Freezes: F6.

Status at C7 (2026-08-10): every host-sim clause is met and the deletion is done. The final clause is true STRUCTURALLY — the new core is the only thing main.cpp wires, and the package compiles, links, and would boot — but "runs" has never been demonstrated on a V5: that is R3's on-robot clause, still open. The F6 freeze closed at D2 (2026-08-12) — LOCKED in the register above, pin-enforced. This milestone does not close until the on-robot clause does.

What R3b must BUILD before the on-robot clause can close — a roadmap incompleteness bug, found 2026-08-17

By this roadmap's own rule — "if something needs doing and isn't on this page, that's a bug in the roadmap" — these three are a bug, and they are the second one of this class the project has found (the first was the missing host plant, which became A2 and the critical path). All three were measured at the seam, not inferred, while scoping first motion against the robot that actually arrived; each row below cites the source file and line that carries the gap, so the claim is checkable from the shipped tree. Roughly 150 lines of library code between them, all host-provable against the A2 plant, and all three are then validatable on the available tank bot — none needs a competition robot.

  • Multi-motor-per-side aggregation — DONE at R3b Part 1 (2026-09-14, on the host; not yet run on a robot). The gap as measured: motion/command_pipeline.hpp maps one kinematic wheel to exactly one motor, and motion/motion.hpp guarded it with >= — so a real drivetrain with 2–5 motors per side was accepted, and the surplus motors were never given a voltage and never given a brake mode, with no fault raised (measured on the bench bot's then-7-motor drive with a negative control: 2 commanded at +4.4286 V, 5 silent). Delivered: hal/motor_group.hpp — hal::MotorGroup, N ≥ 1 coupled motors behind ONE IMotor (fan-out commands; MEDIAN position/velocity so a dead port's frozen reading cannot drag the side; per-member mean current with the sum exposed; max temperature; the drive program's coupled-side monitor reused as the disagreement observable, one evaluation per tick); MotionDeps::validate() now demands EQUALITY between motors and wheels, naming the group; FaultCode::MotorGroupDisagree = 12, raised by HealthMonitor per episode through tickHealthObservables() (so it fires in drive() and every motion), continue-degraded by default; the A2 plant writes one wheel's state into every coupled member and can freeze or sign-flip one. Evidence: test/motor_group_test.cpp + test/motor_group_plant_test.cpp (11 cases; an N = 1 group and five-per-side groups are BIT-IDENTICAL to bare motors through the clean and the hostile tank sweeps; a frozen member is ignored by the median and counted; a fighting member raises the fault and the motion still settles), nine mutations observed red then restored green; the whole pre-existing suite unchanged to the assertion. kinematics/tank.hpp:80's "the HAL's business" now names a HAL facility that exists.
  • An odometry path that does not require two dedicated rotation sensors — DONE at R3b Part 2 (2026-09-14, on the host; not yet run on a robot). The gap as measured: the chain motion → IPoseSource → Localizer → PilonsOdometry → 2 × IRotation was hard — Localizer took a concrete PilonsOdometry&, there was no IOdometry seam, and PilonsOdometry precondition-requires both a Forward and a Lateral wheel. LemLib does drive-encoder odometry and shulib could not. Delivered: localization/odometry.hpp — IOdometry, the four members the Localizer actually uses; PilonsOdometry implements it with no behavioural change (the whole suite unchanged to the assertion) and Localizer takes IOdometry& (source-compatible); localization/drive_encoder_odometry.hpp — DriveEncoderOdometry from the two side motors (the groups) + the IMU: IMU-owned heading exactly as Pilons, centre forward = (ΔL+ΔR)/2 and lateral = 0 by tank.hpp's written decision, the same arcStep, the same trust gate, plus the encoder-vs-IMU heading cross-check as an observable; hal/drive_geometry.hpp — the gear ratio's one home (DEFECTS1 A29 closed in shape: wheel radius × motor→wheel ratio, per side, consumed by BOTH the odometry and the stall check, whose config is now per-wheel). Evidence: test/drive_encoder_odometry_test.cpp (7 cases: within 1e-6 in of the A2 truth every tick through straight/arc/spin/reverse; a 2 % right-side scale error drifts by exactly the predicted 1 %; the cross-check fires under injected slip with the predicted sign and magnitude and is silent through arcs; gate parity with Pilons; stall check and odometry agree on implied travel from one geometry object, bit for bit), eleven mutations observed red then restored green. On robot two the stall check has NO independent motion source and is configured not to report a verdict (hardware register HA-131).
  • An absent-device ruling — DONE at R3b piece 3 (2026-08-19). The gap as measured: chassis/robot_context.hpp:62-73 precondition-requires gps, tags and vision non-null; most robots have none of the three, and src/main.cpp shipped FakeTagSource/FakeVision as stubs — a test fake and an absent-device null object are different things and only one belongs in a competition binary. This was what blocked M1's "swapping only RobotContext" clause on the bench bot. Delivered: hal/absent_gps.hpp / hal/absent_tag_source.hpp / hal/absent_vision.hpp (beside NullSink, NOT in hal/fake/), preconditions UNCHANGED (omission still throws; absence is spelled .gps = &absentGps), the never-poll wiring rule kInstallTagCorrector/kInstallVisionPoller (an absent source polled would fabricate the corrector's "camera alive, no tags" liveness record), src/main.cpp free of hal/fake/ with the absence announced once at boot. Evidence: test/absent_device_test.cpp (5 cases — incl. a Localizer+GpsCorrector-over-AbsentGps run proven bit-identical to no corrector at all) + test/robot_context_test.cpp extended (omission-throws for all three, fully-absent context constructs); suite 1157 / 1,538,101; 5/5 mutations red-then-green. M1's badge still does not flip — its DoD needs pieces 1–2 and an actual V5 number-match, which remain R3b's open half.

What this class of miss teaches, recorded because it generalizes: the A4 register inventoried every unproven constant and none of the unproven shapes. Three capability gaps sat in the tree for months behind a register that was working exactly as designed — they were simply not the kind of thing it holds. A "what does the library assume about the STRUCTURE of a robot" list would have caught all three and does not exist.


M3 — Accuracy edge: fusion + docking 🎯

Bound drift across the whole minute; score sub-inch.

Localization, tier 2 (WS5)

  • GpsCorrector — DONE at E2 (2026-08-12), the first real corrector. include/shulib/localization/gps_corrector.hpp; 30 cases across test/gps_corrector_test.cpp (22), gps_corrector_blackbox_test.cpp (8 incl. the two-corrector case found by mutation) plus 7 in gps_corrector_accuracy_test.cpp and 7 new [oracle] cases in test/gps_conversion_test.cpp. Suite 794 / 1,081,382. Delivered: adaptive R from rmsError(), latency compensation via an odometry history ring, a stale-sample guard (one measurement folded once, against the ~50 ms camera cadence), high-yaw-rate rejection, a sensor-quality ceiling, and the off-strip dead-reckon-only path proven bit-identical to having no corrector at all, with RejectedNoFix and the source's name reaching the blackbox. 20/20 mutations red. Scoped three ways. (1) The gate is a normalized innovation, NOT a Mahalanobis distance — the complementary tier has no filter-estimated covariance, so gateMahalanobis stays 0 and GateReason gained RejectedNormalizedInnovation (+ RejectedStaleFix, RejectedSensorQuality, all append-only). E4's EKF earns the real one. (2) Lever-arm and frame reduction stayed at the HAL edge, which hal/gps.hpp and gps_conversion.hpp already own by written contract — E2 pinned both with independent from-scratch oracles at seven headings instead of becoming a second owner. (3) The accuracy claim is an aggregate one: over 8 seeds of a 60 s hostile run, mean final and worst-case error are lower with the corrector (per-seed: 7/8 and 6/8, not 8/8), because in simulation the modeled GPS noise (HA-26) and the modeled dead-reckon drift (HA-20) are the same order — both invented, both R4's to settle. The claim that does not depend on any magnitude: a known 6-inch position error is healed on all 8 seeds while dead-reckoning carries it to the end of the run. Also fixed there, per Rule 4: HA-07's metres→inches obligation had lived in gps_conversion.hpp as prose with no function and no test since A4, and the pre-existing conversion tests pinned the scale against the constant imported from the header under test — so a wrong constant satisfied both sides. Now gpsRmsErrorToCanonical(), pinned against the definition of the inch.
  • AprilTagCorrector — DONE at E3 (2026-08-13), the second corrector and the first absolute yaw correction. include/shulib/localization/apriltag_corrector.hpp, localization/tag_map.hpp, hal/vision_conversion.hpp; 73 new cases across test/vision_conversion_test.cpp (15), tag_map_test.cpp (11), apriltag_corrector_test.cpp (23), apriltag_corrector_heading_test.cpp (15 — convergence, never-snap, the IMU re-stamp ordering, two correctors), apriltag_corrector_blackbox_test.cpp (6) and apriltag_corrector_cost_test.cpp (3). Suite 794 → 867 / 1,091,167. 43/44 mutations red. Delivered: the corners→pose PnP as a free pure function (R2's adapter is the caller; the corrector does not include it), a provenance-enforcing tag map, best-of-N tag selection by estimated sigma, latency compensation in position AND heading, a trusted-range band, a detector-confidence floor, yaw-rate rejection, a normalized-innovation gate with anti-lockout widening, and yaw correction via the documented additive headingNudge path into a persistent bias in the Localizer. Three appended GateReason values (RejectedNoTagMapEntry, RejectedTagRange, RejectedObservationAge); correctionDTheta and gateResidualHeading, reserved since A1, are populated for the first time. Scoped four ways. (1) The < 1° requirement is NOT claimed met. What was measured is convergence and boundedness against simulated truth, a simulated camera and invented noise (HA-68…HA-82). (2) shulib ships no tag map — nobody here can cite one, and a map 2″ off yields a corrector that is confidently 2″ wrong, which no gate or filter can reveal. (3) A reversed corner winding is silent — 180° of heading error with the reprojection residual at machine zero; only a physical tag can catch it (HA-69, R2's to settle). (4) Heading gets a trusted-range band rather than its own noise model, because a second σ would be an invented number; E4's EKF is where R_heading belongs. propose() is allocation-free and PINNED, not asserted: the cost test replaces the global allocator and counts zero allocations across 20,000 ticks (and across 5,000 full Localizer::update() ticks with the heading path live), having first proved the counter works by requiring poll() — which touches the frozen by-value tags() seam — to be non-zero.
  • Upgrade Localizer complementary filter → 5-state SE(2) EKF [px,py,θ,vx,vy]: Mahalanobis gating, consecutive-reject re-init, process noise ∝ travel — E4 (include/shulib/localization/ekf_fusion.hpp; test/ekf_fusion_test.cpp 33 cases, ekf_fusion_seam_test.cpp 8, ekf_fusion_accuracy_test.cpp 4, ekf_fusion_cost_test.cpp 3; suite 867 → 915 cases / 1,091,167 → 1,521,419 assertions). Four caveats attached to this checkbox. (1) It is NOT the shipped default and does not beat the complementary tier on accuracy: over 8 seeded 60 s runs the means are 0.351″ vs 0.225″ final and 0.749″ vs 0.587″ worst — the simpler filter wins on 7 of 8 seeds. The planned acceptance criterion asked for the opposite; the measurement is reported rather than tuned toward, and the per-seed table lives in test/ekf_fusion_accuracy_test.cpp's own header so nobody has to find a document to read it. (2) The noise parameters are entirely invented (HA-83…HA-91, nine new entries) — the STRUCTURE is proven, the NUMBERS are R4's. (3) "consecutive-reject re-init" was ruled to mean re-initialising the COVARIANCE, never the state — §13 #4's never-snap holds bit-for-bit and no existing never-snap test changed. (4) Nothing here has seen hardware.
  • gateMahalanobis and covarianceTrace are real — E4, populated from S = H P Hᵀ + R with P estimated by the filter, RejectedMahalanobis raisable for the first time since A1 reserved it, and a new append-only GateReason::CovarianceReinit = 12. Both re-read from decoded blackbox bytes. covarianceTrace is the POSITION block only, in in² — a full 5-state trace would add inches to radians to inches-per-second. Zero on every complementary-tier record still, deliberately (E2's T1), so old blackboxes keep their meaning.
  • Innovation-bounded, covariance-weighted gated nudge (never snap); per-tick clamp; log every gating decision. Complete as a mechanism, with its scope stated. Never-snap and the logging are done for POSITION (C1, E1, E2) and HEADING (E3); "covariance-weighted" is done at E4, where proposals are weighted by their stated σ and by nothing else — the confidence gain knob is deliberately not a fusion weight, because E2 derives its confidence FROM σ and using both would count the same information twice. Scope: covariance weighting exists only on the EKF tier, which is not the default; the complementary tier still weights by confidence, as documented. E4 enforces never-snap as a GAIN REDUCTION rather than a clip on the state, so the covariance stays consistent with what was actually applied (Joseph form). One measured caveat: under the EKF tier correctionDx/Dy also carries the filter's velocity-smoothing residual and was measured up to 9% over the per-tick budget during hard direction changes — the CORRECTION itself never exceeds it.
  • Calibration routines + persistence (wheel scale/offset, GPS lever-arm, camera mount, IMU bias) — saved to SD/config.
  • [~] The wall reset (L6): one axis re-seated against a field wall from a side distance sensor — a robot parked square along a wall re-seats x (left/right walls) or y (red/blue walls) from the side sensor facing it, inside gates that REFUSE rather than guess (the beam square, off the season's keep-outs, under the beam-height ceiling, a still robot, every sample clean, a precise answer agreeing with the estimate within the author's maxCorrection) — never the heading, never in the background. L6-A1 LANDED 2026-11-03 (built 2026-10-29): the library core — Localizer::seatAxis (one axis; the drift term, the quality and the odometry untouched) and its two counters, the pure gates (localization/wall_reset.hpp), the season's walls (localization/override_walls.hpp), the EXPLICIT call (chassis::resetFromWall), the host test plant's field and side sensors. L6-A2 LANDED 2026-11-10 (built 2026-11-03–05): the robot file's side sensors (config::WallSensorsConfig as RobotConfig::sensors.walls, PortUse::WallSensor, valid()'s checks), the Robot building them (wallSensor(), wallSensorAbsence(), wallSensors(), the boot line's walls words — a refused sensor never refuses the robot), the context's first OPTIONAL slot carried by the scheduler's shadow context, and the everyday call competition::resetFromWall(ctx, …) (FIELD starts only; sampled through the run guard's wait — a deadline cuts it). Host- and build-gated, NOT run on a robot. Owed: L6-B (robot two's sensors, the WALL bench page, the tester's wall line), and the measuring at the robot (the L6 brief's Step 0) — [~] until a robot has seated a real wall.

Alignment (WS7)

  • alignment/DockToGoal — visual-servo (AprilTag/poly-cutout), current/distance/pose confirm, height-adaptive fallback; Distance-sensor fallback path for no-tag.

Diagnostics & observability (WS13)

  • SdSink binary blackbox (versioned header + session/provenance record incl. git build hash; fixed-width per-tick; byte budget + drop-to-counter back-pressure; flush on auton-end) — the no-laptop field record. DONE at E1 (2026-08-12): include/shulib/diag/blackbox_format.hpp (v1 layout: 256-byte header, typed frames, 428-byte tick record, all IEEE-754 binary64 — no narrowing), blackbox_reader.hpp (the decoder ships with the encoder: a format nothing can read is not a record), sd_sink.hpp, and the new binary seam hal/block_sink.hpp + hal/fake/fake_block_sink.hpp. Evidence: test/blackbox_format_test.cpp + test/sd_sink_test.cpp (round trip on ground truth, byte-exact per-field goldens, unknown version REFUSED, budget exhaustion drops-and-counts, truncated file decodes up to the cut and says so). Deviation from this line, ruled explicitly: "double-buffered off-task writes" was NOT built — C2/C4's standing "no background task" decision was kept, and writes are caller-paced (E1 completion record, T1). The on-robot /usd/ adapter was R1b's (2026-08-14): hal/pros/block_sink.hpp (ProsBlockSink) gates on usd_is_installed(), refuses rather than throws with no card, and owns the /usd/ prefix in exactly one place. E1 shipped the seam and a host fake, nothing PROS. (This line said "It has never been run against a physical SD card" until G1 Part 2b's prose review: the adapter wrote a real SD card and read it back on 2026-08-18/19, on the old robot.)
  • [~] Estimator introspection in the fusion DoD: per-correction residual + Mahalanobis distance + accept/reject reason; per-tick covariance trace (or trust weights) — the quantities that certify < 1°. HALF at E1: the PATH exists and is proven end to end (corrector → GateAudit on the fusion seam → Localizer::lastCorrection().audit → the record's §18.2 gating slots → the file → the decoder), with ComplementaryFusion filling what it genuinely knows (verdict, innovation, trust weight) and a synthetic corrector exercising every GateReason (test/blackbox_introspection_test.cpp). The other half landed at E2/E3/E4: two real correctors exist (GpsCorrector, AprilTagCorrector) and gateMahalanobis is filled from a real S = H P Hᵀ + R on the EKF tier. The clause that survives unchanged: nothing here certifies < 1°, and the acceptance test for it is still skipped.
  • Latched brownout marker + graceful-end contract — DONE at E1: the marker latches from the record stream or markBrownout() and reaches both the triage frame and the end frame; the graceful-end contract is defined concretely (what is written, in what order, and what a cut file looks like to the reader) and the truncated case is tested, because that is the case that will actually occur. (The park-still-fires half of that sentence belongs to F2's guaranteed park.)
  • Flight recorder + fault triage (diagnostics-plan D-6/D-7) — DONE at E1: a RAM ring, always on, dumped only on the FIRST fault, triage-first so a dump cut short by the brownout that caused it still says what broke; the same triage data prints at run end (diag/triage.hpp).

Definition of Done: pose error stays within F2 (notably < 1°) across a full 60s run with contact and spins; docking nests a 1.6″ Pin repeatably. (Recall F2's consequence: yaw correction here is required, not optional, to hold < 1°.)


M4 — Skills layer + guaranteed park 🎯

The scoring verbs, and the safety net that never fails to fire.

Manipulation (WS7)

  • [~] Mechanism HAL abstraction — built and host-proven at F1 (2026-08-13): hal/mechanism.hpp (+ digital_out.hpp, fakes, hostile fakes) and the bounded-operation contract manipulation/mechanism_op.hpp; driven end to end through then() and the scheduler's waitUntil concurrently with a motion; 18/18 mutations red (test/mechanism_*.cpp; full working record in the development log, shulib-v2 branch). Kept [~], not [x], for two reasons: the seam is deliberately unfrozen until F3 — its second consumer — stresses it (register row F11), and no mechanism hardware has ever moved — the per-mechanism safe-state physics is HA-92, a registered guess.
  • [~] The mechanism core (MECH, six runs A1–A6; the team lead's go 2026-10-08) — A1 LANDED 2026-10-08, host-only: the five declarations and their words (mechanism/kinds.hpp), one mechanism as data and its build refusals (spec.hpp: 63 at A1, 69 after its review, 70 since A3), the wiring checked at build (wiring.hpp), route ids derived at build (route_ids.hpp), every role built at boot (robot/mechanism_parts.hpp, mechanism/devices.hpp), the read-fault seam (hal/read_faults.hpp), the config's sensor roles and valid()'s claims of them, and a compile-refusal harness in CI (every build refusal must fail to compile naming its reason). [~] until A6: the service (A2), position and speed (A3), auton steps and driver controls (A4), robot two and the programs (A5), the bench page (A6) are to come, and no mechanism has moved through it (HA-184, HA-186 new). A2 LANDED 2026-10-15, host-only: the mechanism service (mechanism/service.hpp — the pacer seam and the driver loop's place, exactly one tick per control tick; a slot per mechanism as its claimant; the three mode changes), done-conditions (mechanism/until.hpp), the POWER and PNEUMATIC behaviours, piece sensors as positive evidence and the read-fault rule, the outcomes ABSENT / NOT_HOMED / REFUSED, the run guard's latch cutting claimed mechanisms (N1, a behaviour change), and the host test plant's mechanism models (sim/mechanism_plant.hpp, HA-183). No program builds the service yet. A3 LANDED 2026-10-22 (built 2026-10-15), host-only: the POSITION behaviour (PositionSlot: moves, holds, every homing moment with its zero log, the soft stop, every hold target clamped, NOT_HOMED before homing) and the SPEED behaviour (SpeedSlot), the stall watch on every behaviour, the starting values' boot line (HA-182), bind() taking every kind, and a 70th build refusal (absolute homing over a whole sensor turn); the guide's chapter 18. A4 LANDED 2026-10-29 (built 2026-10-22, reviewed, fixed and verified; the team lead's three rulings of 2026-10-29: the steps' freeze stays OPEN for now, the driver-start home's exception (A4-D26) and U5's stricter build rule (A4-D27) ACCEPTED), host-only: the Routine's mechanism steps and their verdict policy (API 2.5: the context constructor, MechanismStepFailed, mechanismVerdict), runAuton's and runDriverControl's mechanism-service overloads, the driver file's controls (mechanism/driver_inputs.hpp), the direction check's judgement, the route binder (runner/mechanism_routes.hpp) and the registry's per-id doc; T3's bindings superseded, kept. Still [~]: robot two and the programs (A5), the bench page (A6). A5 LANDED 2026-10-30 (built 2026-10-29; no API change), host- and build-gated: robot two's claws as declarations (src/robots/mechanism_table.hpp, the drive check per robot), ONE mechanism service in every program that boots robot two (the competition program and the Auton Tester prove guard -> service -> watch at boot), the per-role boot lines and the route ids registered, robot two's driver file as three lines of controls over src/common/driver_file.hpp (its claws byte-identical to T3's bindings, tick for tick), driverHeading() in src/common/driver_heading.hpp, driver_controls.hpp retired, the src gate's rule per robot (HA-185 new). No mechanism has moved through it on a robot. Still [~]: the bench page (A6). A6 LANDED 2026-11-06 (built 2026-10-30; no API change), host- and build-gated: Bench Tests' station 13 MECHANISMS (src/programs/bench_r3a.{hpp,cpp}) — every declared mechanism in its declared units, powered one at a time behind six gates, the direction check run on the robot, [R3A] mech RECORD lines; the menu 3 × 5. Never run on a robot (worksheet Station P is its first run). Its review's fix round 2026-11-03 (31 findings) wrote the core's completion record (BUILT, not landed). Still [~] until A6 lands (its verification, then the merge flips these rows) — then the core is complete; "MECH on hardware" (the freeze trigger) stays open.
  • setQuadrantToggle (index N clicks on the 3-state Toggle + Optical color confirm) — highest-value primitive.
    • AF1S-A1 (LANDED 2026-11-13; built 2026-11-11): its SKILLS form, competition::checkAndFlipToggle — look with the front camera, push only when the Toggle is not its Quadrant's colour, at most two pushes, look again; camera only (no Optical sensor — the team lead's ruling of 2026-11-03), so "FLIPPED" means "shows our colour after a full stroke", never "set". Host- and build-gated, NOT run on a robot; [~] until a robot has flipped a Toggle in a skills route and the camera agreed. Next: AF1S-A2 (the camera reachable from an auton).
    • [~] AF1S-A2 (BUILT 2026-11-15, reviewed and fixed 2026-11-16, not landed): the step from an auton — the robot file's Toggle block, the Robot's camera for the step (or NO CAMERA naming why, never refusing the robot), the context's second optional slot, SPOTS TOO CLOSE and toggleVisitBlockProblem, competition::checkAndFlipToggle(ctx, ...) / lookAtToggle(ctx, ...), cookbook chapter 8. Host- and build-gated, NOT run on a robot.
  • orientToScoringHalf (yellow-side-out: color-sense → pass-through vs flip) — second highest-value.
  • intakeUntilCapture (counter-roller, retry, sensor-confirm).
  • liftToLevel (homing + linkage-aware mapping + sag-comp PID hold).
  • rotateClampToAngle (profiled, no fling), clampActuate+clampConfirm, deployActuator (air-budget aware).
  • Task-sensor confirmation on every grab/place (Optical/Distance/current) — never advance on failure.

Sequencing (WS8)

  • Guaranteed end-of-run action + run-scoped deadline — built and host-proven at chunk F2 (2026-08-13): sequence/run_guard.hpp (RunGuard, register row F12, NOT frozen). The DoD test passes four ways: a motion that never settles, a mechanism that never confirms, a wait whose condition never holds, and a fault-abort cascade each end with the caller-supplied end action performed, verified against the plant with the clock driven to the limit by an independent script (test/sequence_end_of_run_test.cpp). The boundary: this is a scheduling property on the host plant — real-brain timing is R4's, nothing preempts pure user code (no background tasks exist), and the frozen F6/F10 waits pay their documented lateness (guide ch. 9). The name is deliberately not "park guard": the library never learns what parking is — both instants and the action are caller-supplied with no defaults.
  • [~] The competition program's LIBRARY half — chunk COMP-a (2026-09-26), HOST-PROVEN ONLY: robot::BuildOptions::pacer (the guard reaches a Robot's chassis), RunGuard::requestAbandon() (a mid-auton disable ends the run cleanly — a latch, never a disarm), Localizer::reseatHeading (the start heading is the chosen auton's, seated when it starts — HA-05 amended), and include/shulib/competition/ (AutonRegistry, AutonMenu, runAuton, the acceptance run) on include/shulib/ui/'s generic panel pieces. Proven on the host test plant with the end action firing on a stalled routine, the hard stop forcing safe, an abandon cutting a routine mid-motion, and a start pose that lands the routine although the IMU disagrees by 90 degrees. Kept [~]: the PROGRAM is COMP-b (src/, the eighth build, after the auton tester COMP-t), and nothing here has run on a robot.
  • [~] A bench path for the 40 in auton — chunk COMP-t (2026-09-28), HOST- AND BUILD-GATED, NOT RUN ON A ROBOT: "shulib Auton Tester" (src/programs/auton_tester_program.cpp, the seventh build, PROGRAM=autontest) runs a registered auton through competition::runAuton on a Chassis paced by a RunGuard — the same call and the same guaranteed end as autonomous(); only the trigger differs (RUN and a 3 s countdown; any button, a touch, the controller dropping or a disable aborts through the guard's abandon, within one more tick). The students' auton file src/team/autons.{hpp,cpp} (the 40 in auton, the acceptance run) is compiled by every build and by the host suite, which runs each auton through the tester's own run sequence: on the host test plant the 40 in FINISHES with a side up to ×0.723 weak and stops with its reason (MOTION_TIMEOUT, the brake run) at ×0.65. The boot PROVES its pacer chain (RunGuard::pacesTotal(), additive) or refuses; the SD run log appends across reboots (ProsBlockSink's Append mode — HA-177). Kept [~]: nothing has run on a robot (worksheet Station M), and a field disable, the Timed Run and the hand-over to driver control stay with COMP-b's Station K.
  • [~] The competition program — chunk COMP-b (2026-09-30), HOST- AND BUILD-GATED, NOT RUN ON A ROBOT: "shulib Competition" (src/programs/competition_program.cpp, the EIGHTH build, PROGRAM=competition, slot 6) — the guaranteed park now reaches a real program: the auton chosen on the brain's menu (NONE by default; LOCKED at the start) runs in autonomous() on the program's OWN task through competition::runAuton, under a RunGuard whose inner pacer is the program's competition watch; a disable or the end of the autonomous period abandons it within one more tick, and every path out of a request — a throw included — publishes a terminal word that opcontrol() waits for with no upper bound before it runs the team's driver file. A typed-table boot refuses every auton (driver control still runs); a program error stops the robot safely and refuses later autons until a restart. Its decisions are PROS-free headers the host suite runs on the plant with the real watch (the request, the watch, the screen owner, the pages), its program code is held by source pins, its boot proves its pacer chain or refuses, and the gate builds, links and checks it; guide chapter 17. Kept [~]: it is UNRUN — worksheet Station K (the controller's Timed Run, measured first: HA-162; HA-161 settled from its own lines) is its first run. Its driver control runs the library's drive protections (T4 Part 2a, through the driver file), with their PROTECTION row on the driver page and the push check (Station K.8) since T4 Part 3; since T4 Part 3 too, an auton entry the registry refuses is DROPPED, never the boot (the team lead's C5 ruling, 2026-10-02), and its log has an appended SD copy (comp_log.txt).
  • The v1 combinator ruling (chunk F2, explicit): the engine ships as the wall-clock guard + deadline-aware waits + the existing async handle (scheduler()) — exactly the smaller v1 this document and the master plan's cut-list sanctioned. Sequence/Parallel/Race types are not built: sequencing is the eager chain, parallelism already exists structurally (the scheduler ticks a live motion through waitUntil while the predicate ticks a mechanism op — pinned at F1), a race is a disjunction predicate, and Deadline shipped as the guard itself. Combinator TYPES return to the table only if F4's student-authored routines demonstrate a need three idioms cannot express. (The earlier "possession-aware time budgeting" phrasing is retired: possession is game content — implementing it as a library concept repeats the exact legacy failure C6 catalogued.)
  • buildStack, matchLoadCycle, endInMidfield (18″ height lockout), strategyMode(tallTower|fastCycle) — → chunk F4, hardware-gated Phase F′, and the routines are the students' to author (the guardrail). These lines lived in this WS8 block beside the engine and a top-to-bottom reader would have built season content at F2; the split is now explicit: F2 owns that a caller-supplied end action fires on a hard schedule; F4 owns what it is.

Skills motion (WS6)

  • fieldCentricStrafe/strafeTrim (H-bot), moveToPoseProfiled (lift-state-aware accel).

Driver control (WS14) — added 2026-08-13. Scope the roadmap was missing: §15 claims shulib is the complete stack, and a team that needs a second library to DRIVE the robot does not have one. Two libraries would also mean two notions of the drivetrain — two desaturation policies, two brake conventions — which is the exact failure C6 catalogued in the legacy tree. The output half already exists and is frozen (Chassis::drive(ChassisSpeeds, Frame), sharing the autonomous command pipeline); only the INPUT half is missing.

  • IController seam + fakes — DELIVERED AT R1a (2026-08-13), not as its own chunk: hal/controller.hpp (IController, ControllerAxis, ControllerButton, ButtonEdge), hal/fake/fake_controller.hpp, hal/controller_conversion.hpp and the ProsController adapter. Analog axes normalized to [-1, 1] at the adapter edge (PROS -127..127 never reaches the core), isConnected() as a positive validity signal, partner controller by construction. Edge detection landed as per-consumer ButtonEdge rather than a shared one — PROS's get_digital_new_press() consumes the press, so a shared detector starves the second consumer (HA-104); the seam reports levels and the ban is guard-test-pinned. An F4-additive sibling, outside that freeze, exactly as IDigitalOut was; recorded as register row F13, not frozen — T2 is its first real consumer.
  • [~] Input shaping + drive modes (T2, 2026-09-18: built and host-proven in teleop/ — continuous deadband, expo, slew off by default, arcade/field/tank modes, one-tick latency pinned on the plant. From G1 Part 2b (2026-09-26) "shulib Teleop" drove through it, and since T4 Part 3 robot two's driver file does — teleop::runDriverControl, the default profile, field-centric OFF — run by the new "shulib Drive" and the competition program, neither of which has run on a robot; the bench tester's DRIVE station keeps the raw mapping until a driver has compared the two on the robot. No driver has felt it) — the chunk that decides whether the robot feels controllable. Continuous deadband (the naive form jumps 0 → threshold and is what "twitchy" actually means), monotonic response curves through (0,0) and (±1,±1), configurable slew that is off by default (it protects the drivetrain and adds lag; lag is the enemy of feel), one-tick input→motor latency pinned, and field-centric / robot-centric / arcade / tank modes.
  • [~] Field-centric's visible failure mode (T2, 2026-09-18: the fallback is a LATCH cleared only by the driver's re-zero, the indication is a state struct for a panel. From G1 Part 2b (2026-09-26) "shulib Teleop"'s panel showed the state in words (OFF / ON / FELL BACK / LATCHED) — since T4 Part 3 the new "shulib Drive"'s DETAILS page does — and the loop binds the re-zero to a button — A at 2b, Y since T3 Part 2 (2026-09-26), because A became the pneumatic claw's toggle (the team lead's ruling), stated in robot two's driver file since T4 — with field-centric itself selectable but OFF; none of it has run on a robot) — field-centric rotates the driver's stick frame by the estimated heading, so degraded heading silently rotates the controls away from reality while everything still appears to work. Requires a documented fallback to robot-centric, a driver-accessible re-zero, and a visible indication. Not shippable without it.
  • [~] Button bindings / driver macros (T3, 2026-09-26 — MECHANISM BUTTONS DONE, host- and build-gated, NOT RUN ON A ROBOT; chassis MACROS not started. Superseded, kept (MECH-A4, 2026-10-29, N4): a robot with declared mechanisms states its buttons as the mechanism core's driver controls (whileHeld / toggle / preset / homing, through the mechanism service); T3's bindings and their loop overloads stay for a program with no service. Part 1: hold-to-run and toggle bindings in teleop/mechanism_binding.hpp and runDriverControl's bindings overloads, with mechanisms built from the config by robot::Robot. Part 2: "shulib Teleop" drives robot two's claws with them — R1/R2 the pivot on port 6, L1/L2 the one on port 7 (12 V while held, HOLD on release, both buttons of one pivot ⇒ hold), A toggles the pneumatic claw on 3-wire A (CLOSED at the start, kept through a disable), the field-centric re-zero on Y; a claim an autonomous operation left on a bound mechanism is RELEASED when driver control starts, and logged. The team lead's ruling amends the rule below: stick-interrupt applies to chassis MACROS only — for a mechanism button, releasing the button is the stop, asserted at the motors. No claw has moved; worksheet Station J is the first sight) — bind a button to a mechanism operation (the F1 seam) or a chassis action. The binding mechanism is the library's; which button does what is the team's. A macro must never take the robot away from its driver: interruptible by stick input within one tick, and releasing the button cancels the operation and safes the mechanism.
  • [~] The driver program (T4, 2026-09-27 — Part 1a LANDED, host- and build-gated: the driver file src/team/robot_two_driver.hpp and its generic half src/common/driver_controls.hpp (deleted at MECH-A5, 2026-10-29 — src/common/driver_file.hpp and driver_heading.hpp replaced it), held by test/robot_two_driver_test.cpp and test/driver_controls_test.cpp (deleted at MECH-A5 with its header; its heading cases moved to test/driver_heading_test.cpp); the competition program's opcontrol() runs it since COMP-b (2026-10-02), and nothing of it has run on a robot. Part 2a LANDED 2026-10-01, host- and build-gated: the old drive's protections inside teleop::runDriverControl for every program (teleop/drive_protection.hpp, teleop::FrozenReadingDetector, hal::MotorGroup::markAbsent; test/drive_protection_test.cpp), not run on a robot, with known gaps — live motors marked dead at a wall: at any wall, one whose speed report settles well before its mates' (CLOSED by the encoder check the team lead ruled 2026-10-01, built in Part 3's early step, at the cost of one 1 s fight cut); beside a slipping drive gear, more easily (kept until its gear is fixed; A4 register HA-175). Parts 1b and 2b folded into Part 3 (2b's items are its late step); Part 3 LANDED 2026-10-08 — T4 COMPLETE (built 2026-10-04/06, reviewed 2026-10-07, its findings fixed and verified 2026-10-08): the new "shulib Drive" (slot 1) runs the driver file with MAIN / DETAILS / MORE pages, "shulib Teleop" retired (seven builds), the Auton Tester in slot 2, the buttons in the driver file only, the PROTECTION row and the push check, an SD copy of "shulib Drive"'s and the competition program's logs, and one refused auton entry dropped, never the boot — none of it run on a robot; Stations F, J and K are its first runs) — ONE readable driver file for robot two (which button does what, the feel), run by the new "shulib Drive" and by the competition program's opcontrol(), never copied; the old drive's protections (a dead drive motor, a motor fighting its side, over-current) moved into the library's driver loop for every program; "shulib Teleop" retired when it lands.

Definition of Done: the two reference routines (X tall-tower, H Toggle-own + park) run end-to-end in host sim; a deliberately stalled scoring loop still ends with the robot parked in the Midfield; and a scripted stick stream drives the plant through the frozen drive verb with the feel properties above each pinned by a test that fails when the property is removed. (Perceived latency is explicitly NOT claimed here — real input-to-motion latency is PROS call cost plus loop rate, both unmeasured until R4.)


M5 — Autonomy authoring + .vexbot ingestion 🎯

From a project file to a running robot, no hand-wiring.

Config ingestion (WS9)

  • [~] IRobotConfig + RobotBuilder.from(profile) → a fully wired Chassis. G1 Part 1, 2026-09-18: the TYPES and the BUILDER landed and are proven on the host — config::RobotConfig / config::Route / config::IRobotConfig / config::IRouteSource, the hal::IDeviceProvider seam with hal::fake::FakeDeviceProvider, and robot::Robot, whose Chassis drives the A2 plant BIT-IDENTICALLY to the hand-wired graph (tank and X-drive, clean and hostile). Spelled robot::Robot{config, devices} rather than RobotBuilder.from(profile): Chassis is non-movable, so a factory returning one by value was rejected in favour of validate(config, devices) + construction-in-place. G1 Part 2a, 2026-09-24: hal::pros::ProsDeviceProvider landed (host-tested through the PROS shim only), with dead drive ports honoured by the builder and the port map generated. G1 Part 2b, 2026-09-26: the first program on the builder — "shulib Teleop" (src/programs/teleop_program.cpp, deleted at T4 Part 3) builds robot::Robot over the provider from the calibration record; that version has not run on a robot. OPEN: the src/main.cpp collapse (G1 Part 2c), and the codegen that fills these types from a .vexbot (G3).
  • robotProfile sub-schema (F7) — drivetrain/odometry/sensors/mechanisms/corrections.
  • Codegen tool .vexbot → robot_config.hpp (config and routines, inline constexpr).
  • SD-card runtime loader (optional — re-export + re-run without recompiling).
  • inferDrivetrain() fallback until VexBuilder emits explicit drivetrain fields.
  • schemaVersion negotiation + additive migration (future .vexbot files still load).

Path authoring (WS8)

  • io/Trajectory: read project.paths[] from .vexbot. (G3. The READER is the whole of what is left in this bullet — the thing it feeds now exists. The legacy .shupaths importer once listed here was DROPPED on 2026-09-26: paths live only in .vexbot.)
  • PathRunner — per-waypoint execution through the frozen Chassis verbs + marker callbacks (G2, 2026-09-18, host plant only). D1's error policy verbatim: the first non-Settled leg or the first failed marker stops the route, chassis.cancel() safes the drive, every later waypoint is skipped and counted into RunReport. Markers fire on ExitReason::Settled ONLY. (“Profiled” per-segment velocity blending is NOT in this and never was G2's — it is the roadmap's blending item, a measured Frontier. The checkbox is for execution + markers.)
  • Command-id registry registry.on("intake_in", fn) (F8) — the no-code keystone (G2, 2026-09-18): fixed capacity, no heap, no std::function; a handler is a plain function pointer plus a NON-OWNING context pointer, and a callable's return type is adapted exactly as Routine::then() adapts it (pinned against it behaviourally, on the same lambdas). Four ids are library-owned and cannot be re-bound.
  • The command-id manifest runner::writeManifest (G2, 2026-09-18) — one JSON object per line, built-ins first in a frozen order, then registrations in registration order, with a byte-exact golden test. This is VexBuilder ask #4, and shipping it unblocked their picker.

Definition of Done: a team member who cannot code builds a robot + a routine in VexBuilder, exports one .vexbot, and the robot runs it. Freezes: F7, F8 ✅ locked 2026-09-18 at G2. (The DoD itself is not met and is not close: nothing reads a .vexbot yet, and no route has ever run on a robot. What G2 settled is the half that does not need the file — a Route built in C++ and a Route parsed from one are the same object and run through the same code, which is what makes the file path testable before the file format exists.)


M6 — Ecosystem: telemetry, sim seam, tuner 🔭

See the robot; tune it without a laptop; run it in simulation.

Telemetry & tuning (WS10/WS13) — the Shul2Sink wire on top of the DebugRecord; TermSink/SdSink already shipped at M2/M3 (§18)

  • [~] SHUL/2 — the versioned, sequenced wire serialization of DebugRecord behind the same ITelemetrySink seam (F9). Partial, H1 Part A1 (2026-09-29, host-only): the binary format (a CRC on every frame; the Tick and Summary are the blackbox's bytes) and its reader, vexbuilder-integration.md §5.2. Owed: the sink (H1 Part A2) and the F9 freeze (Part B); the wire has never crossed a real link.
  • Run record/replay (for VexBuilder visualize/overlay).
  • On-brain live PID/FF tuner; (add-on) on-brain HUD/summary screen.

Sim seam (WS10/WS2)

  • hal/sim adapter speaking SHUL/2 over VexBuilder's agent socket (server.json discovery); bidirectional — simulated sensors in, pose/twist/wheel-cmd/markers out.
  • Planned-vs-actual overlay contract (renders when VexBuilder's Rapier sim lands).

Definition of Done: a real on-robot run streams to and replays in VexBuilder; a PID gain can be tuned on the brain mid-session. Freezes: F9.


M7 — Accessibility & docs 🔭

Four tiers of use, no cliff; documentation that ships itself.

Progressive disclosure (WS12)

  • The user guide (item added at C8 — pulled ahead of this milestone the same way Phase D pulls the recipe API): docs/guide/, 15 numbered chapters + maintenance README, written for a reader with no robotics background; every code example compiled and executed by test/guide_examples_test.cpp (the count grows with the guide — run the suite rather than trusting a figure here); tutorial verified by following it as written; guide↔README cross-linked. Scope: covers the Tier-2 recipe layer and the Tier-3 C++ API (Tiers 0–1 do not exist yet — they are Phase G/M5), and no genuinely-new reader has used it yet — M7's own DoD ("a brand-new member follows the guide without help") stays open.
  • Recipe cookbook (chunk D3, 2026-08-12): docs/cookbook/ — an index plus five task-shaped chapters, fourteen recipes written as a critical consumer of the recipe API rather than as a demo (a two-goal side run, bail-out on a failed grab, attempt-and-continue, partial-trajectory recovery, an alliance-partner wait, fitting the match window, a tank routine, budgeting a sideways leg on a limited-strafe drivetrain, mixed-tier authoring, and mid-routine re-seeding). Every listing is compiled and RUN against the plant in test/cookbook_examples_test.cpp (11 cases) and quoted verbatim; where a duration matters the case asserts against the simulated clock, with bounds calibrated from measured runs.
  • Generated API docs (chunk D3, 2026-08-12; published at DOCS1, 2026-08-14; expanded to the whole public surface at DOCS2, 2026-08-14): docs/api/ is generated from the headers by tools/api_doc_tool.py — deterministic, committed, and verified up to date by a build-time regeneration check; a doc-coverage gate fails the build naming any public entity with no documentation; a C++ fidelity pin (test/api_reference_fidelity_test.cpp) holds the rendered signatures to the headers. Published at docs.shurobotics.com over enforced HTTPS, from main, with check-fresh run before the site renders — publishing a stale reference is worse than publishing none. DOCS2 (2026-08-14) took it from 2 documented types to the whole public API: the target list became a glob over include/shulib/, so the reference is 117 pages covering 1,625 public entities — every type, member, nested type, free function, namespace-scope constant and type alias — and every one of them is under the coverage gate. Getting there needed the parser rebuilt: it had been structurally blind to any type with a base-class list, any enum with an underlying type, everything at namespace scope, and public nested types (which it refused outright), so three LOCKED contracts — the coordinate frame, the accuracy targets and the units vocabulary — had been invisible to it in their entirety. The mkdocs nav is generated from the same target list and byte-checked, because a page absent from the nav was measured to ship unreachable with exit code 0.
  • Tier 2 recipe API — r.moveTo(p).then([&]{ intake.in(); })… (fluent, hard to misuse). Built at chunk D1 (2026-08-11): include/shulib/chassis/routine.hpp — an eager fluent chain (Routine) whose every step delegates to one facade verb, with a tested stop/safe/skip/report policy on the first failed step. 14 cases in test/chassis_recipe_test.cpp + guide examples; the recipe-vs-facade twin is bit-identical clean AND hostile, so C1–C4 baselines carry over verbatim. FROZEN at D3 (2026-08-12) as Freeze Register row F10, after the cookbook became its second independent consumer and needed zero changes to the surface. Completed at F1 (2026-08-13), which closed the two things that had kept this [~]: mechanisms now exist for then() to run (a mechanism operation's verdict is a fourth accepted return type, and only Succeeded continues the chain — an unconfirmed grab cannot read as success; compiled end to end as guide-09d), and the headline spelling above was CORRECTED — the old chassis.moveTo(p).then(intake.in) was never valid C++ (verbs return ExitReason, which has no .then() — chains belong to Routine, ruled at D1 — and intake.in names a member function without calling it). then() itself stays deliberately unfrozen with the mechanism seam (register row F11) until F3, its second consumer — a stability schedule, not a missing feature.
  • "Your first auton in 10 minutes" guide (build → export → drag a path → run).
  • Re-derive the kept Pilons arc math into the in-core odometry (rewrite cleanly, don't copy).

Definition of Done: a brand-new member follows the 10-minute guide to a running auton without help; the API reference is live on the website.

Status of that DoD, stated plainly: the website clause is met; the guide clause is OPEN. The 10-minute guide starts in VexBuilder and cannot truthfully be written until G4 builds it. The API reference exists, is generated and gated, and is live at docs.shurobotics.com since 2026-08-14 (published from main, so it shows the last release, not the working branch) — that clause is met. (This sentence said "not live anywhere — there is no site" until 2026-09-24, contradicting the checkbox above it.) The human clause is still human: C8 recorded that no genuinely-new reader had used the guide, and D3 cannot close that either — nobody read the cookbook cold. It needs a real person, and it now has a named owner rather than a hope (see "you are here").


M8 — Second robot + coordination seam 🔭 (stretch)

  • Harden the H-drive path end-to-end (it rides the same core — this is validation, not new core).
  • A thin coordination seam (the stretch goal): a minimal interface so the two robots can share intent. Running shulib on both bots is just two independent instances — that is core, already done; this milestone is only the optional coordination layer on top.

Definition of Done: both robots field shulib autons in a skills run; the coordination seam exists and is documented as stretch.


Frontier 🔭 (continuous — planned unlocks, not roadmap changes)

Each maps to an ○ cell in the Capability Catalog:

  • Drivetrain: Mecanum + Swerve scaffolds; per-wheel slip model; auto-ID drivetrain from VexBuilder geometry; online wheel-radius calibration.
  • Motion: dynamic replanning around detected obstacles; time-optimal profiling; min-velocity handoff chaining (v1 ships stop-and-settle).
  • Localization: LIDAR scan-match corrector; Pi/Coral-fused absolute pose; ZUPT.
  • Control: adaptive gains; learned feedforward from logged runs; learned-friction tables.
  • Manipulation: vision-servo grasp; closed-loop stack verification.
  • Path/sim: in-lib spline/Squiggles-style smoothing (partly delivered: CURVE1-A, 2026-11-11, smooths a curve verb's points into one path — a cubic Hermite through every point, Catmull-Rom directions for points without a heading, motion/curve_path.hpp; a general path/trajectory generator is still Frontier); full Rapier physics round-trip; live edit-path → re-sim; binary compiled-path artifact + schema-hash handshake.
  • Telemetry/diagnostics: on-brain HUD/summary screen (add-on); cloud run library; auto-tune from replays.
  • Authoring: a GUI sequence builder in VexBuilder writing paths[] directly.
  • Follow mode (off-field convenience + demo): a FollowTarget IMotion that trails a carried AprilTag at a set standoff, so the robot walks itself to and from the field instead of being carried. Scoped deliberately to a tag, not a person: detecting a human is easy, but deciding which human is you (re-identification) is unreliable in a crowd — a tag is a unique id with a computable bearing and range, which makes the crowd case disappear. Reuses M3's AprilTagCorrector pipeline pointed at a different target; rides ITagSource, so either the V5 AI Vision (native tags since kernel 4.2.2) or the Pi backend serves it. Holonomic advantage: an X-drive strafes to keep the camera on the target while sidestepping, where a tank bot must turn away and lose it. Generic person-following (no tag) is a further unlock needing a Pi-side person model. Obstacle avoidance around people is a separate unlock — Distance-sensor array or LIDAR (<VUG3>), and it composes with the Motion row's dynamic-replanning cell above rather than duplicating it. Non-negotiable if built: a controller dead-man (hold-to-follow, release-to-stop) and a check of event rules on autonomous operation outside the field — a robot driving itself through a crowded venue is a real hazard. Framing: driver control already solves "don't carry the robot"; this earns its place as an Innovate/Design demo that exercises the same vision + estimator stack the competition code depends on, not as a labor saver. Earliest sensible slot: after M3, once the tag pipeline exists.

Workstreams

The same backlog, grouped by the permanent capability areas. These names are stable; the roadmap grows by adding rows here, never by renaming these.

# Workstream Owns First lands
WS1 Foundation & conventions frame, units, Angle, Pose2d/Twist2d, the one transform M0
WS2 Hardware Abstraction Layer all I* interfaces, hal/pros · hal/fake · hal/sim, RobotContext M1
WS3 Math & kinematics IKinematics, X/H/Tank, desaturation, (○ mecanum/swerve, slip) M1
WS4 Control & feedforward Pid, Feedforward, MotionProfile, SettledUtil, watchdog, brownout comp, sysid M2
WS5 Localization & fusion Pilons odom, Localizer, GPS/AprilTag correctors, complementary→EKF, calibration M2→M3
WS6 Motion & scheduling IMotion, MoveToPose/TurnTo/StrafeTo/Follow, MotionScheduler, skills motion M2
WS7 Manipulation & skills Mechanism HAL, alignment/docking, the scoring primitives M3→M4
WS8 Autonomy authoring paths[] reader + importer, PathRunner, command registry, the sequence engine + guaranteed end-of-run action (engine done at F2; season content is F4's) M4→M5
WS9 Config & hardware ingestion IRobotConfig, RobotBuilder, robotProfile, codegen, versioning M5
WS10 Sim, telemetry & tuning SHUL/2, record/replay, hal/sim wire, live tuner, overlay M6
WS11 Tooling, build & CI kernel bump, host-test harness, CI, clean-room layout, wrapper vendoring M0
WS12 Docs & onboarding tiers, recipe cookbook, generated docs site, onboarding guide M0→M7
WS13 Diagnostics & observability DebugRecord + sinks (TermSink/SdSink/Shul2Sink), fault codes, exit reasons, loop-overrun, provenance (§18) M2

Cross-team asks (VexBuilder)

shulib defines the contracts; VexBuilder produces them. These are the things the VexBuilder side must add for the integration to close. They are tracked here so the dependency is never invisible.

The full operational detail — every field, every schema, both sides' ordered work lists, and an list of what can still move — is in vexbuilder-integration.md. That document is written FOR the person finishing VexBuilder and is the one to hand over. This section is the index.

Ownership, 2026-08-17: finishing VexBuilder is owned by the former programming chair (now VP); the agent-socket work (#3a) is taken by the programming chair.

The reciprocal half is the part this section used to hide. These asks read as though shulib were waiting on VexBuilder. It is not — or rather, it is not only that: shulib has built none of the code that consumes any of these contracts. (Corrected 2026-09-18, G1 Part 1: the first of them is no longer unbuilt.) IRobotConfig / IRouteSource and the builder landed host-only at G1 Part 1 — the in-memory types exist and a config produces a driving Chassis; the PROS provider and the main.cpp collapse are G1 Part 2 (the provider landed host-only at Part 2a, 2026-09-24; the main.cpp collapse is Parts 2b/2c). (Corrected again 2026-09-18, G2: the second of them is no longer unbuilt either.) You are here: PathRunner, the command-id registry and the exported manifest landed at G2 and F8 is LOCKED — a Route executes on the host plant, bit-identically to the same legs hand-written as a Routine, and VexBuilder's picker is unblocked. The .vexbot codegen and the SHUL/2 wire are still unbuilt (G3–G4, H1), and nothing in Phase G has run on a robot. (Corrected 2026-09-29, H1 Part A1: the SHUL/2 wire's format and its reader now exist, host-only; its sink and the F9 freeze do not, and it has never crossed a real link.) Listing only one side's obligations is how a two-sided dependency turns into a stall with each side believing it is blocked. Both lists are below.

What VexBuilder must add

  1. Add project.paths[] to the .vexbot schema (routines now live in the project file, not the retired .shupaths). → M5. (It said "unblocks F8": F8 was locked on 2026-09-18 without it — shulib froze the paths[] schema itself, in vexbuilder-integration.md §4.1–4.3, for VexBuilder to adopt.)
  2. Add explicit drivetrain fields (kind / trackWidth / wheelDiameter) to the robot config so shulib doesn't have to infer them from part geometry (brittle). → firms up F7, M5.
  3. Expose the agent socket for SHUL/2 (already discoverable via server.json) and, when the Rapier sim lands, feed simulated sensors in / render pose out. → M6. (3a — the socket itself, taken by the programming chair. Independent of everything else and startable now; H1 defines the wire unilaterally and needs no sim to be built or tested.)
  4. Consume the shulib command-id manifest to populate VexBuilder's command picker, so authored paths[] only reference ids shulib actually handles. → M5. (F8 is locked; the manifest this consumes exists — row B below.)
  5. Add the project.robotProfile block shulib specifies (drivetrain / odometry / sensors / mechanisms / corrections). → F7. Added 2026-08-17: it was implied by #2 and never stated as its own ask, so it had no owner.
  6. Build the electrical UI. ⚠️ This is VexBuilder's true critical path and it was missing from this list entirely. .vexbot v2.0.0 ships electrical{motors,sensors,pneumatics} as empty arrays because the UI was never built — and that is the source data for robotProfile. Asks #2 and #5 cannot be satisfied without it. → gates F7, M5.
  7. Emit a per-motor gearRatio ({motorTeeth, wheelTeeth}) in the drivetrain block. Added 2026-08-17. shulib had no gear-ratio concept anywhere when this was asked; since R3b (2026-09-14) hal::DriveGeometry carries a per-side motor-to-wheel ratio — and at least one team robot is believed to be geared differently on the left and right sides, so this must be per-motor and must not be hoisted to a single drivetrain-level field.

What shulib owes VexBuilder — the reciprocal list

# shulib must ship Unblocks Chunk Gated on VexBuilder?
A IRobotConfig / IRouteSource / the builder everything downstream G1 no — Part 1 DELIVERED 2026-09-18 (config/robot_config.hpp, config/route.hpp, robot::Robot — spelled Robot{config, devices}, not RobotBuilder); Part 2a DELIVERED 2026-09-24, host-only (the PROS device provider, absent drive ports, the generated port map, the driver-control loop); Part 2b DELIVERED 2026-09-26, build-gated ("shulib Teleop" moved onto it; that version not run on a robot); Part 2c (main.cpp as a dispatcher) is next
B ✅ PathRunner, the command-id registry, and the exported manifest VexBuilder ask #4 (the picker) — DELIVERED 2026-09-18; the format is vexbuilder-integration.md §4.2.3 G2 no
C′ The robot profile (revised to the human-stated facts, plus a controls block), its generator to the C++ tables, and an optional VS Code robot panel editing a robot without C++ G3a (added 2026-09-26, before G3) no
C .vexbot ingestion (into G3a's generator) + the SD runtime loader a .vexbot actually running a robot G3 yes — asks #1, #2, #5, #6
D The .shupaths one-way importer — DROPPED 2026-09-26 (paths live only in .vexbot) — — —
E The SHUL/2 wire protocol VexBuilder ask #3 H1 no — the wire is defined unilaterally
F The hal/sim adapter + record/replay the sim seam closing H2 yes — Rapier

The two that unblock each other soonest, and neither waits on the other: shulib's G2 manifest unblocks VexBuilder's picker, and VexBuilder's electrical UI + drivetrain fields unblock shulib's G3 ingestion. Those are the right two to run in parallel first. Half of that is now done (2026-09-18): the manifest shipped. VexBuilder's electrical UI is the one item on the critical path between the two projects that only the other side can move.

Joint decisions neither side can make alone

  • Boundary-marker representation. ANSWERED at G2, 2026-09-18: NONE is not an id and never will be. The legacy vocabulary's NONE appeared 18 times as a path-segment boundary and was absent from both legacy enums; in this vocabulary a waypoint IS a segment, so the boundary has no content left to carry. G4's importer folds the rows into waypoints and emits no marker for them; the picker never renders one. The absence is pinned by the F8 freeze test, so a future built-in cannot quietly give the legacy spelling a meaning it was ruled out of having.
  • How much of the id vocabulary to mint up front. Only ONE motion id was ever actually emitted by the legacy planner (MOVE_WITH_HEADING); the five manipulation ids were declared and never used, and the primitives behind them are gated on the build team's final mechanism decisions. The picker should be built for a manifest that grows, with nothing hardcoded.

Decisions still open

Almost everything is locked (see the master plan's decision table). What remains is hardware, not software, and does not block the software milestones:

  • Build-team calls: final robot roles, mechanisms, lift type (cascade vs DR6B), goal-localization method per robot, Toggle-defense approach. These shape the content of the M4 routines, not the library.

Everything in the Open Decisions table marked "Recommended-lock" is treated as locked for roadmap purposes; it will be formally stamped at the milestone where its workstream first lands.


Principles we won't trade away

  1. Accurate first. Every feature is measured against a numeric accuracy target (F2), not a vibe.
  2. Usable by non-coders. If a future team can't field an auton without us, we failed.
  3. Standalone, then ecosystem. shulib works with nothing else installed; VexBuilder makes it better, never required.
  4. You decide, tools execute. The library and its tools carry out the decisions you make — they never make them for you.
  5. Freeze, don't break. Contracts in the Freeze Register change only by versioned migration — so this roadmap stays true.

shulib is built by the Seton Hall VEX U team. This roadmap is structured to stay accurate as we build: workstreams and the Freeze Register are stable; only status badges move. Questions or want to contribute? Talk to the programming chair.