Implementation and verification log
Scope and repository safety — 2026-11-17
- Verified authenticated GitHub identity
kleberandrade, admin permission, source repository ID156891081, public visibility and default branchmaster. Verifiedrobot-soccerdid not resolve before renaming; no local soccer clone or destination directory existed. Cloned the original repository and renamed it through GitHub after these checks. Updated origin tokleberandrade/robot-soccer; no force push, repository replacement or history deletion. - Source contained only README and MIT license. Preserved LICENSE and the full original institutional README in
docs/legacy/README.md; retained Fatec Americana's notice and advisor credit in the English README. - Read the requested reduced-principles instructions and applied the requested architecture, Next.js, React performance, test and security guidance. Used pure domain functions, bounded external validation, separate ownership and explicit architecture decisions. No subagents were used.
Ordered implementation
- Wrote engine behavior tests before the initial implementation; the first run failed on the absent engine. Added the fixed-step engine, independent team observations, registered strategies, match state machine and command boundary, then obtained passing behavior tests.
- Implemented bounded Next.js mutation/read routes and an atomic PostgreSQL checkpoint/replay operation, with no arbitrary-code or wheel-control HTTP endpoint. Added a dedicated local PostgreSQL service, versioned migrations and idempotent seeds. Confirmed an actual competing update loses with 409 and inserts no replay duplicate.
- Built the responsive live 3D field, camera controls, identifiers, trails, referee controls, team configuration and 2D fallback. Removed DOM-based Three.js labels after a development-renderer lifecycle error and replaced them with in-scene numeric meshes. Split the browser session/controls into small modules and bounded spectator/retry polling to once per second.
- Added an ESP32-C3 firmware build, native parser tests, private-key configuration, HMAC radio commands, monotonic sequence checks, disconnect/deadline shutdown and a dry-run bridge. The first embedded compile identified pin-name collisions with Arduino constants; renamed the symbols and successfully rebuilt. No upload, motor actuation or physical packet transmission was performed.
- At the user's follow-up request, converted the project to npm workspaces + Turborepo: web, bridge, simulator, engine, protocol and database. Retained one lockfile, added explicit shared-config cache dependencies and internal source transpilation for Next.js. Browser and Node-only protocol entrypoints are distinct.
- Added original electrical SVG, BOM/dimension budget, pin map and hardware documentation. Component datasheets were checked; battery/protection sourcing and custom carrier layout remain explicit selection gates. Added rulebook differences, API/radio documentation, security review and CI.
- Regression tests reproduced and fixed a non-ASCII token comparison exception and stale nonzero wheel commands on referee stops. Collision trajectory assertions were expanded following mutation-test survivors. No physical or competition validation is inferred from these software tests.
Hosting and metadata
- Created Vercel project
robot-soccerin the existingpdjkleber-2231s-projectsscope, with Next.js application rootapps/web; Vercel detected Turborepo. Initial production URL returned HTTP 200: https://robot-soccer.vercel.app . Its initial health result correctly showed no database/operator configuration before provisioning. - Created a new, dedicated Free Neon project
robot-soccer, IDmorning-scene-19536057, in São Paulo. Connected Production only; existing databases and preview environments were left intact. Applied migration001_initial.sqland seed twice against the real Neon endpoint. The real-Neon persistence/concurrent-writer integration test passed. - Vercel integration stores database variables as secrets. Added a separate random operator secret using Vercel's Secret variable type, Production only. Local migration credentials/operator secret are held in ignored
.env.neonwith owner-only permissions, never committed or printed. No upgrade or paid-plan selection was made. - Browser approval review rejected a step it interpreted as an upgrade, then rejected deselecting Neon optional application authentication. Rechecked controls, proceeded through the existing Free integration and left optional Auth enabled. No rejected action was bypassed. This product does not use Neon Auth; that integration option does not replace PostgreSQL credentials or the operator token.
- Updated GitHub About/description and homepage. Preserved existing
unity,arduino,robotics,soccer-playing-robottopics and addedesp32,neon,nextjs,robot-soccer,simulation,threejs,turborepo,typescript,vsss.
Verification performed
- Turborepo type checking across all six workspaces and optimized Next.js build passed locally.
- Unit/behavior tests cover clocks, scoring both ways, kickoff, differential motion, wall/contact impulses, replay reconstruction, bounds, command ownership, protocol encoding, authentication, stream size limits and browser session scheduling. Database tests require an explicit DATABASE_URL and are reported as skipped when it is absent, not counted as passed.
- Local PostgreSQL migration and seed were run repeatedly; state persisted across independent connections. HTTP smoke tested actual Next.js routes, 401 without authentication, creation/start, a 120-tick server batch, concurrent 200/409 outcomes and persisted replay frames.
- Firmware compiled using pinned Espressif32 6.12.0 / Arduino 2.0.17 on PlatformIO 6.2.0. Final successful embedded image used 20,344 bytes RAM and 363,360 bytes flash before subsequent software-only changes. Native C++ parser assertions passed. Bridge NDJSON example ran in dry-run only.
- Automated production dependency audit returned zero advisories. Manually reviewed authentication, secrets, SQL, payload limits, execution boundaries and radio safety assumptions; remaining risks are in SECURITY.md.
- Crapper and Dryer were run on the project. Shared engine/protocol/database and web service functions passed CRAP <10 when run per-workspace using their real coverage. A first root-level metrics pass incorrectly found stale coverage paths after the move; those results were discarded and rerun per workspace. UI functions were split; maximum cyclomatic complexity is now 8 without pretending UI coverage exists. Dryer found no candidates at similarity >=0.8.
- Mutator was run on the radio encoder and engine. Initial radio results were invalid because package-name imports resolved outside mutation overlays; relative test imports corrected the test target, and all 3 radio mutants were killed. Engine tests killed 119/182 mutants (65.4%) before the additional contact/stop regression cases; the final rerun killed 138/184 engine mutants (75.0%), with 46 survivors. Some are equivalent arithmetic/boundary transformations; others remain additional physics regression work. This metric is reported as a limitation, not a passing 100% mutation gate. Remaining equivalent/boundary/physics survivors must not be described as 100% mutation coverage.
- Browser checks exercised actual 3D rendering, movement, pause, and a 390-pixel responsive layout with 2D fallback. No benchmark or Core Web Vitals score is claimed.
Remaining physical and competitive work
Select the real competition/edition and reconcile its rules; implement full referee situations if required. Source and measure the complete hardware BOM, finish carrier schematic/layout/ERC and mechanical CAD, validate power/thermal/cutoff behavior, then perform supervised motor/radio tests. Add measured speed control, encoders/odometry and camera calibration/detection as separate validated work. Harden identity, quotas/retention and isolated team runners before public tournaments or untrusted code.
Published verification
-
Commit
f40ed997b72a9ee180ef74d114336432c4c0716ecompleted both software and firmware jobs successfully in GitHub Actions run 44009463171. Software CI includes 32 Vitest cases with real PostgreSQL, native parser assertions, repeated migrations/seed, six-workspace type checking, full deterministic match, production build and actual HTTP smoke. -
The public production health endpoint returned HTTP 200 with both persistence and operator configuration enabled. The public smoke test created match
370e3c67-64a8-4c03-9bfa-1d456f3c5725, started it, persisted 120 simulated ticks at revision 2, returned two replay chunks, and confirmed concurrent outcomes 200/409 against real Neon. -
Loaded that persisted match through the public 3D interface as a spectator; controls correctly required the operator token. Verified operator access and paused the demonstration match after live server advancement. No hardware was involved.
-
Commits were pushed normally to
master:4b9bf80(engine/API),f1faed3(3D/radio),0ef82c9(Turborepo),f40ed99(hardware/rules/CI and verification fixes). Final publication notes are a separate documentation commit. -
Captured the public 3D server match in
docs/assets/match-lab.jpgafter clearing the operator token. The spectator tab remains open; the match is paused at eight simulated seconds.
VSSS referee, drive, camera and learning update — 2026-11-17
- The user selected the primary VSSS PDF linked from the official LARC 2026 organizer page. Downloaded it for research, read its rules and inspected field, marker and penalty diagrams. Recorded the filename/cover discrepancy (2025 filename, Série A 2023 cover); the research copy is ignored and not redistributed. Kept the original user-reference preset separate.
- Split the pure engine into model, geometry, drive/contact physics, restart placement, referee, checkpoint compatibility and team modules. Added match-state v2 while keeping wheel/radio protocol v1. Legacy checkpoints receive a read-time upgrade; historical replay chunks are retained.
- Added automatic participating area infractions, sustained pushing, keeper possession/stalemate timers and manual referee calls. Added stopped penalties/free kicks/goal kicks/free balls/kickoffs, whistle release, warnings and penalty-keeper caution/exclusion. The second attacker is selected by continuous area occupancy; a passive second attacker is not punished for the first player's contact. Forced defensive entry is exempt until exit. Same-tick goals have priority.
- Tests reproduced and corrected a neutral free-ball formation that could place another robot too close to the ball. Repositioned waiting robots in the opposite half. Explicitly kept manual judgment, instantaneous virtual placement, simplified contacts and incomplete tournament disciplinary/advantage handling in the documented scope.
- Added configurable robot/track/wheel dimensions and acceleration-limited actual wheel speeds. Integrated wheel phase from actual speed and radius; the two visible wheels use that stored travel. Referee stops immediately zero motors and preserve phases. Added bounds checking for wheel track/tire thickness and wheel diameter/body height.
- Rebuilt the field and roof patches in metric units, using the black surface, chamfers, shallow goals and shared field markings. Kept 3D and synthetic camera projection visible together. Camera height/tilt/yaw/FOV and rig/frustum are inspectable. Browser checks reproduced an SSR mismatch in SVG number precision and multi-child title text; rounded projected coordinates and used one title string, then verified subsequent loads.
- Added four original didactic articles with commands, units, formulas, exercises, primary-source reading and original SVG diagrams. Rendered the same Markdown through static Next.js documentation routes. Included article files in tracing and Turborepo cache dependencies. These are educational explanations, not copied rulebook pages.
- Supplied real editable Koativa and Circuit team modules, CLI selection and import examples. At the user's correction, renamed the new Americana example to Koativa throughout code, UI, seeds and articles. Preserved original Fatec Americana license/history credits. Scoreboard and roster labels follow the selected strategy, including swapped colors.
- Local type checking passed across all six workspaces; optimized build generated all four article pages. A complete 600-second match finished with deterministic state output. Native firmware parser assertions passed and production dependency audit reported zero advisories. Firmware source and radio behavior were not changed.
Publication and final CI verification are recorded below after the deployment is observed.
Observed v0.2 publication
- Pushed
00a3415(engine/referee/drive/views) and2e494eb(didactic documentation) normally tomaster. GitHub Actions run 44014782886 completed software and firmware successfully, including all 67 Vitest cases with real PostgreSQL, both HTTP smoke flows, the full match and the production build. Vercel reported success for2e494eb. - Public health returned engine 2 with persistence/operator configuration enabled. The production referee smoke created match
7f02e281-a212-4a5d-b2bf-7084162a30dd, persisted a penalty, confirmed 401 without authentication, held the pre-whistle clock, advanced 12 playing ticks with wheel rotation, verified four replay chunks and paused the checkpoint at revision 5. - All four public article routes and three original SVG illustrations returned HTTP 200. The camera/drive article rendered correctly on a 390-pixel mobile viewport with its image loaded and no horizontal document overflow. The legacy demonstration checkpoint read successfully through the v1→v2 compatibility path without an explicit data migration.
- Loaded the new saved match through the public browser as a spectator; the 3D and synthetic camera views showed the same frame 12, Yellow's foul and the recorded whistle. No operator token was entered in that tab. Replaced
docs/assets/match-lab-v2.jpgwith this public production screenshot and left the simulator and learning article open. - Physical dynamics/calibration and full tournament procedures remain the explicit limitations in the rules note. Mutation testing is reported above without a full-coverage claim.
2026-11-17 — v0.3 project portal, private rooms and hardware
Implemented a presentation landing page, separate /lab, on-site lessons/rules/hardware, and private competition rooms. Programs run on each participant’s computer, as selected by the user. Invitations claim an independent team key; the database stores hashes only, rooms expire after 24 hours, role checks protect commands/refereeing, and compare-and-swap turns require both teams before advancing. Tested real concurrent submissions, reconnects and two separate local Koativa/Circuit processes (20 accepted turns each, 120 playing ticks). Browser testing caught and fixed an unbound fetch transport; stale responses and retries have regression coverage. Private settings provide a copyable fallback; browser download-event capture timed out, so automatic download capture is not claimed.
Added an original pin-level ESP32-C3-MINI-1/TB6612FNG diagram, net schedule, boot/reset/decoupling/service connections and explicit unresolved power-part selection gates, checked against primary vendor documents linked on the electronics page. Added downloadable, commented actual firmware sources through an explicit four-file allowlist; no secrets.h is published. Firmware semantics are unchanged.
Designed editable Manifold3D case parts, dimensions, drawing and an actual STL-based interactive assembly. Closed-edge/volume/bounds checks pass; nominal motor, wheel and battery keepouts do not intersect the case. Geometry verification caught deck/wheel interference (resolved with notches) and 70.8 mm support overhang (clipped to a 70 mm shell). Tire span is 72 mm; complete physical assembly must still be measured. No printing, PCB fabrication, thermal, load, RF or physical fit validation is claimed.
Validation: 89 Vitest cases across workspaces with PostgreSQL; production build; native firmware parser; local HTTP page/download checks; authorization/CAS smoke tests; actual two-process clients; browser room creation, both claims, reconnect, and case rendering. Application source CRAP remains below 10; UI cyclomatic maximum 9 (no renderer coverage claim). New room-domain mutation run killed 20/20 mutations; that scope does not imply whole-project mutation coverage. Dedicated CI hardware job verifies committed meshes and regenerates geometry/diagrams. Production migration 002 applied; deployment verification follows below.
Production verification for implementation 855bc99: Vercel deployment succeeded and GitHub Actions run 44021721062 completed with software, firmware and hardware jobs green. Public portal and exploded STL assembly were inspected in Chrome; proof images are docs/assets/project-portal.jpg and docs/assets/robot-case.jpg. Production HTTP smoke verified 20 pages, firmware/drawing/STL downloads and secrets.h absence. Private-room test e8a554be-5629-451f-99ec-c90fca467021 verified authorization and simultaneous writers; separate-process Koativa/Circuit test a0290fd5-02cb-43f9-9259-91b877a241dc completed 20 accepted turns per client and 120 playing ticks. Both fixtures were left paused and expire automatically. No keys or invitations are included in this log.
2026-11-17 — case ZIP and Portuguese assembly guide
Added a prominent case-page download for all four STL parts in one ZIP, together with the Portuguese printing/assembly guide, dimension drawing, editable CAD source/parameters and mesh report. The same guide is rendered on the page and available separately. It covers units and orientation, component measurement, slicer inspection/supports, fit coupons, provisional fasteners, dry assembly, power-off inspection and unresolved physical validation. No print profile or hardware fit is claimed as tested.
The prebuild synchronization produces the archive from ten explicit allowed files with fixed timestamps; fflate is declared as a direct build dependency. HTTP smoke checks verify the button/guide, decode the ZIP, require the exact entry set, and compare all four embedded STL files and guide byte-for-byte with their standalone published downloads. Local type checks, production build, 20-page HTTP smoke and independent Python ZIP CRC/source checks passed (74,720-byte archive). Deployment follows the normal master/Vercel workflow.
2026-11-17 — shared laboratory design and three-language website
Implemented native pt-BR/en/es UI routes, default Portuguese, saved language preference, localized document language/metadata/alternate links, UI catalogs, number/date presentation, translated learning/reference articles and case guides. APIs, downloadable filenames and code identifiers stay unchanged. The case ZIP now contains twelve explicit files, including all three printing guides. User-entered room/team names are kept verbatim.
Applied the lab palette throughout, then incorporated the user's follow-ups: original vector logo/favicon, centered navbar, circular flag-only native language selection (localized accessible label), richer landing illustration/showcase/cards, entrance/hover/field motion and reduced-motion support. The shared footer includes GitHub, learning/hardware/community navigation and localized privacy, terms and contribution pages. Privacy copy explicitly distinguishes 24-hour access expiry from deletion; no automatic cleanup or legal certification is claimed. Infrastructure/privacy references were checked against the current Vercel and Neon notices and ANPD guidance.
Local checks: 95 Vitest cases with PostgreSQL, type checks, production build, 69 localized-page HTTP checks, 23 general pages and ZIP/source comparisons. Room smoke verified authorization and concurrent turns. Browser QA confirmed pt-BR/es navigation, the native circular selector, logo/footer and a live participant connection surviving en→es without a refresh; fixture 22084aa2-acdf-4fb8-9098-4b08f350595e remained paused, keys omitted. The chosen participant name “Source code” stayed unchanged, checking that user content is not translated.
Verification caught a rewrite loop in the first locale routing approach; UI pages now use native [locale] segments with no rewrite. Next.js streamed not-found responses are verified through the 404 fallback/noindex marker when headers already started. Local PostgreSQL is intentionally disallowed by the production database guard, so room integration checks use development mode. Default Turbopack development repeatedly refreshed without source changes; explicit webpack development restored stable hydration and controls while retaining Turborepo orchestration and the default production build. A root-level DOM reveal observer caused a hydration warning; replaced it with React-owned Reveal section boundaries. Browser viewport override was not honored (actual width remained 1920); no mobile viewport execution is claimed. Responsive breakpoints are implemented; no physical hardware validation is added.
The user supplied a 914 px example showing a two-row header. The navigation now uses one row at every breakpoint, groups learning/rules/hardware in a native disclosure, and puts all links under Explore on small screens. Outside click, Escape and link activation close the disclosure. The flag and logo retain dedicated columns.
Implementation 0b83a84 deployed successfully; GitHub Actions run 44026941428 passed software, firmware and hardware. Production checks verified 69 localized pages, 23 general pages, all twelve ZIP entries/source comparisons and private-room fixture c4853107-033b-4d1e-8ef5-1ace3eedb12d (paused). Vercel adds an HTML deployment attribute before lang; the locale smoke assertion now locates the html start tag instead of relying on attribute order. Native disclosure opening and Escape closing were checked in the compiled local navbar before its follow-up deployment.
2026-11-17 — bounded landing container
The user requested equal section widths and stronger responsive bounds. Added a shared site-container with a 1280 px maximum and fluid side gutters for the landing main, header and footer. Every direct landing section now fills that one parent rather than independently choosing 1320/1440 px or full-viewport padding. Fractional grids use minmax(0, …); children have shrinkable minimum widths; the feature section no longer uses viewport-based horizontal padding. Hero buttons/specs wrap, tablet/mobile grids stack, and decorative hero motion is vertical only inside its own allocated column.
Browser DOM measurements at the available 1920 px CSS viewport confirmed identical 1280 px widths and matching left/right edges for header, hero, principles, cards, showcase, resources and footer, without horizontal document overflow. The browser's viewport override and zoom shortcuts were not honored; responsive breakpoints were reviewed, but narrower live viewport measurements are not claimed. Production build and type checks passed before deployment.
2026-11-17 — spacing and rendered-language audit
User review found reference-library cards with no horizontal padding/row gap and mixed English/Portuguese. Added shared card padding/gap/section spacing, bordered reference cards and single-column small-screen layouts. The library now shares the bounded site container.
The rendered-copy audit found two translation bypasses: lesson titles stripped their number before catalog lookup, and the hardware Markdown used a heading replacement without calling the localized-document loader. Corrected both, along with short roles/labels, download labels, form options, accessibility descriptions and placeholders. Added translated dynamic referee prose based on structured metadata, preserving protocol messages and robot IDs. All 26 controlled API/service errors have Portuguese/Spanish entries.
test:translations parses actual HTML across 69 localized pages, including individual words, options and accessible attributes, with explicit narrow exceptions for filenames, brands, language names and legitimate cognates. The revised build reports zero untranslated UI candidates and zero untranslated controlled errors. The previous route-only checks could verify navigation/language tags without detecting untranslated body content; this additional audit prevents that gap. Web tests now contain 40 cases (99 total across workspaces when PostgreSQL is included). Production build and type checks pass.
Local final verification passed: all 99 workspace tests, production build/type checks, 69 rendered translation pages with zero candidates, locale navigation/cookies, 23 general pages and twelve-entry ZIP comparisons. Browser inspection confirmed translated lesson titles, a 1280 px library container, 32 px card padding and 24 px grid gaps at the available desktop viewport. Screenshot: docs/assets/library-localized.jpg. Narrow viewport execution is not claimed.