--- work_id: physics-contact-boundary-2276 artifact_type: frozen-contact-boundary-contract status: ready_for_build owner_role: independent-algorithm-work source_request: fix generated contact points against strict line witnesses before bounded stack revalidation; no prerelease legacy path last_updated: 2026-11-01 --- # Contact boundary construction Branch `codex/physics-contact-boundary-2276` starts at `8d7474ba0b4df5367dbeee93b3a95cb777dcac48`. The user authorizes continued roadmap development in this separate branch. Existing Physics, Studio and manufacturing HOLDs remain. Historical first failures, numerical tolerances, normal solver iteration/work limits and public profile admission remain. Modify the current `physics-rigid-feature-geometry/face-contact.ts` directly. Add its bounded exact line/construction arithmetic in the same module folder. Use one canonical face construction, with no selectable old/new mode or compatibility fallback. Historical evidence and independent references are retained; they do not become alternate runtime paths. This change does not retire other supported feature types or authorize broad product cleanup. Other work files and new evidence belong under this directory. Do not change the prior solver, independent geometry or quality reference functions. ## Sequence and frozen acceptance 1. Authenticate the preceding source03 archive operands, including body and point/normal binary64 bits. Reproduce all77 failed strict witnesses in ALIGNED2, OFFSET1 and YAW1; keep ALIGNED1 as the passing control. Retain all128 rows in these four fixtures. Baseline reproduction is not a geometry pass and starts no World or dynamics solver. 2. Construct contact points through the canonical face function. Preserve selected point count, order, IDs, normal and original poses. The final binary64 midpoint must have a strict line intersection with both decoded normalized OBBs. No slab inflation, zero-normal clamp, tangent omission, body-pose change or tolerance increase is allowed. Keep paired surface witnesses and midpoint/gap identities. Boundary construction may move representable points toward the same patch's interior under a fixed16-trial budget and Euclidean movement <=existing1e-12m witness bound. Refuse when this bounded construction cannot certify the actual returned midpoint. 3. Use the unchanged independent Decimal80/120 scalar witnesses on every row. Preserve strict line booleans, support/slab/midpoint distance1e-9m and precision agreement1e-60. Additionally check row identity and movement <=1e-12m. Check original paired face witnesses separately with the unchanged raw-quaternion witness reference and its1e-12m gates. Do not infer one reference model's pass from the other. Run existing feature controls and focused boundary/invalid/degenerate/copy tests on source and actual tsc JS. 4. Only after all four fixture cases pass both source and emitted geometry checks, use the previously verified cold normal candidate to replay the original ALIGNED, OFFSET and YAW cases. Keep the original free integrator, material1/.7, full-pair position phase, timestep1/120s, original quality definitions and normal solver64 QR/iteration cap. Keep all detected rows. Stop each case on its first profile, numerical, geometric or quality failure. Each trajectory is bounded by original1200steps and180s wall guard. Before expanding accepted steps, independently validate normal KKT/state/work and zero loaded tangent speed at1e-10, every contact line at unchanged geometric gates, independent position closure at original1e-12m, phase accounting, and the original finite-floor/penetration and terminal8–10s quality gates. World internal acceptance and independent accepted prefix are separate. Source/emitted parity is reproducibility evidence, not independent accuracy. The trajectory build uses the existing explicit test velocity substitution only; it has one selected normal solver and one canonical geometry path. This is not public engine adoption. No public body-cap or API expansion, Studio connection, hardware control, manufacturing approval, publication, external upload, dependency install or new download is in scope. ## Evidence and preparation correction Use fresh run IDs. Preserve failures and source hashes before each run. Freeze the exact arithmetic counters and limits in geometry-contract.md before any numeric execution. Retain immutable prior manifests and their original paths. Documentation distinguishes source, defined tests, executed passes, emitted providers, public integration and hardware validation. Inspection of the current committed trajectory-run.mjs found that the prior error helper/tests were present but the runner did not import that helper. The prior README's statement that the runner wiring was fixed is therefore stronger than that source supports. Preserve that commit and its receipts. The new runner must actually retain secondary execution errors and stop on unresolved reference replies; verify its real wiring with targeted checks. This correction changes no previous physical result or first failure. ## Additional reached-pose evidence The first source World run with strict-line-only construction reached ALIGNED4 and OFFSET2. ALIGNED4 row26 intersected both boxes but the actual surface-ray midpoint was about0.168962m from the returned point. OFFSET2 row11 differed by0.125m; row18 had a Decimal80/120 classification disagreement. The actual surface-midpoint condition was absent from the production line predicate. Keep this first World evidence; do not overwrite source01 or call these rows passed. OFFSET's unresolved reply correctly terminated the new runner, so YAW was not run by that attempt. The next fixed dataset appends those two poses:6cases/192rows,79resolved historical failures plus1unresolved row and112passing rows. Baseline must reproduce that unresolved result explicitly, never count it as a pass. New construction must resolve and pass all192 rows, including all80prior bad rows. The existing predicates and independent tolerances remain unchanged. The production predicate additionally checks the actual A-exit/B-entry midpoint at the existing1e-12m witness bound, and the selected face identities. See the staged geometry contract for the exact formula. Its16-rounding-step and integer work caps remain. Requalify source02/emitted02 against all six poses before another World attempt. World admission now binds current source-provider hashes and fixture bytes to the actual source/emitted qualification records; a stale status or parity file alone cannot admit changed geometry. Emitted World graphs explicitly exclude source solver providers as well as source canonical geometry providers. ## Execution bound and diagnostic prefix Source02 with the stronger geometry accepted308ALIGNEDsteps independently; its first refusal was the fixed180s execution guard at attempted next step309. No physical gate failed in that prefix. Review found the timeout path was not promoted to executionFailure. The parent retained that first wall record and stopped only its own experiment after the scene receipt, recording SIGTERM in supervised-stop.json. No held worker was affected. Partial next-scene records remain; they are not a completed qualification or a pass. The corrected timeout path now sets both failure and executionFailure, and aborts the campaign. A fourth targeted test checks the exact180000ms boundary and the180001ms refusal. Do not repeat the time-dependent prefix as if it were a deterministic physical test. Keep original1200step acceptance false. Next, select16steps per original scene for a matched source/emitted diagnostic prefix. This covers the newly failed step4/2 poses without changing their input configuration, numerical gates or original full-case criterion. Each result reports selectedPrefixPassed separately from privateTrajectoryGO; the latter still requires1200steps. Terminal8–10s acceptance remains NOT_RUN. Keep the180s wall guard. This is bounded geometric/kinetic regression evidence, not a replacement stable-stack profile or a relaxed1200step test. Admission binds the unchanged mathematical providers and independent Python references to geometry-source02/emitted02. The changed timeout/prefix driver is separately bound to error-tests02. Current geometry/solver hashes must match; runner-only bookkeeping changes do not invent a new geometric qualification.