Skip to content

Frontend University A+ examiner, CSS pin, and gym Mongo shop/CMS - #134

Open
usrname1git wants to merge 15 commits into
mainfrom
feat/university-capstone-and-gym-ops
Open

usrname1git wants to merge 15 commits into
mainfrom
feat/university-capstone-and-gym-ops

Conversation

@usrname1git

Copy link
Copy Markdown
Owner

Follow-up to #133. Gym/university only. Kernel, Heal, Galaxy, and architecture docs stay out.

What landed

  • Cycle 5 delivery exam: shop cart/checkout and Trippus-style CMS login against isolated Mongo godbrain_gym (never Alexandria godbrain). Lab API is same-origin on the evaluate server.
  • Examiner v10: WCAG contrast on themed paper (gradient background-color is not white). tokenOf no-ops non-Elements. Error-boundary clicks are force+short timeout so a crash does not hang 28s.
  • Honest tutor: TypeError/deadline is an examiner bug, not pastel. Contrast STOP names dark ink #10243a. Error-boundary canned keeps the crash button outside the boundary. Learner feedback does not leak fixture strings.
  • CSS pin: university styles land getReference() styles.css before Playwright. Qwen does not get to mint-on-mint the tokens course.
  • A+ hold: examinerHolds is 10 samples and 100% on the current examiner. Mastered C1 is not replayed as a growth course. Idle is ladder-complete only when every course holds at 100%.
  • Dashboard/Watch: newest-first gallery, skip missing desktop; university-only task mastery; Watch starts dashboard Hidden and prints dash=4177/pid=; gym banner is ledger/courses, not “18 exercises”.

Tests

npm test in godbrain_core/skill_lab: 117 pass, 0 fail, 4 skip (shop/CMS Playwright skip when Mongo is down in CI).

Live desk (not in this PR)

Session after v10+pin: 122/122, 0 fails. 119 retained-lesson, 3 Qwen generates. Ledger already graduated through CMS. Current loop is A+ revalidation of crowned courses, not a cold first-sit exam. Do not Stop-Qwen.

Autismo added 12 commits September 18, 2026 05:12
Qwen often closes the component but not the files envelope. Close the unterminated App string and both objects so a 3k cut is a candidate, not attempt_parse_failed.
Learners throw render-crash, not god-crash. Filter Error-at-Component logs without clipping away the React addendum. Reset-parent-state remains a real fail.
The examiner requires panelTitle gone after crash. GPU tutor told Qwen to keep it visible. Canned cause: fallbackTitle only, reset parent armed.
Qwen hid proof behind Open; the generic token hint lied. Examiner now fails visual-seed-copy-visible, and canned tutor says render proof without extra clicks.
Nested Get-FrontendGymPause.ps1 threw OutOfMemoryException and killed the worker. CS2 sleep is tasklist plus a 10-minute last_seen window, in-process.
h1, lede, h2 and article text must be >=4.5:1 on their painted background. The marketing seed uses ink on light paper; navy/white blocks stay. Light gray on white is a fail even if the footer is readable.
Dashboard no longer shares the gym worker event loop with Playwright. Watch starts dashboard then gym --no-dashboard.
Examiner v10 measures real contrast on themed paper, not default white.
Tutor names TypeError and deadlines instead of yelling pastel. University
styles land reference CSS before Playwright. A+ hold is 10 samples at 100%.
Cycle 5 shop/CMS talk to godbrain_gym, never Alexandria. Watch owns the
hidden dashboard and prints ledger/courses instead of 18 exercises.
Copilot AI lite review requested due to automatic review settings September 19, 2026 00:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

It introduces a broken mongosh helper script (ensure-gym-mongo.js) and a hard-coded user-specific mongosh path that will break on other machines/CI.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

This PR extends the Frontend University “gym/university” subsystem with a new Cycle 5 delivery exam (shop cart/checkout + CMS admin session) backed by an isolated MongoDB database (godbrain_gym), while also tightening the browser examiner and scheduler behavior to enforce contrast and “100% holds” before declaring the ladder complete.

Changes:

  • Add Cycle 5 competencies/tasks plus a same-origin /api/lab/* evaluate-server API that seeds and verifies persistence in godbrain_gym for shop/CMS exercises.
  • Upgrade the Playwright examiner to v10 (contrast check against themed backgrounds, more robust error-boundary actions/log filtering, evaluator-family handling across hash bumps).
  • Update gym scheduler/dashboard/watchdog behavior to reflect “hold = 10 samples @ 100%”, support dashboard as a first-class command, and reduce gallery noise.
File Description
scripts/​Watch-FrontendGymOvernight.ps1 Watchdog updates: CS2 sleep probing, dashboard autostart/heartbeat display refinements, port probing changes.
scripts/​Verify-SkillLab.ps1 Updates header comment to reflect legacy verification role.
scripts/​Start-CreationLabDashboard.cmd Adds a convenience launcher for the dashboard command.
scripts/​Register-CreationLabDashboard.ps1 Adds scheduled-task registration to run the dashboard out-of-band.
scripts/​Invoke-FrontendGym.ps1 Adds dashboard to the validated command set and forwards to gym.mjs.
godbrain_core/​skill_lab/​university.test.mjs Adds tests for skipping courses with missing trusted contracts and Cycle 5 sequencing.
godbrain_core/​skill_lab/​scheduler.test.mjs Adds/updates tests for examiner-hold logic, contract hiding, and ladder completion behavior.
godbrain_core/​skill_lab/​scheduler.mjs Implements evaluator-family grouping, examinerHolds, and ladder-complete selection behavior.
godbrain_core/​skill_lab/​references.mjs Adjusts themed CSS tokens and adds reference apps for shop/CMS tasks.
godbrain_core/​skill_lab/​README.md Documents Cycle 5 delivery exam and same-origin lab API expectations.
godbrain_core/​skill_lab/​gym.test.mjs Expands tests for truncation repair, canned tutor guidance, infra error classification, and lesson-plan behavior across evaluator-family bumps.
godbrain_core/​skill_lab/​gym.mjs Adds dashboard command, evaluator-family lesson reuse, CS2 sleep probing, and “pinned CSS”/contrast reset behavior.
godbrain_core/​skill_lab/​gym-lab.test.mjs Adds integration tests (skipped when Mongo unavailable) for shop/CMS persistence/isolation.
godbrain_core/​skill_lab/​gym-lab-db.mjs Implements Mongo-backed seed/read/write helpers via mongosh for the Cycle 5 lab API.
godbrain_core/​skill_lab/​gym-lab-api.mjs Implements same-origin /api/lab/* routes for shop/CMS exercises.
godbrain_core/​skill_lab/​gym-core.mjs Adds evaluator-family logic, contrast “washed ink” detection, better candidate repair, and “ladder_complete” state.
godbrain_core/​skill_lab/​ensure-gym-mongo.js Adds a mongosh script intended to create indexes/metadata for godbrain_gym.
godbrain_core/​skill_lab/​dashboard/​dashboard.js Updates dashboard UI to reflect ladder-complete vs stale-under-examiner states and labeling.
godbrain_core/​skill_lab/​dashboard.test.mjs Adjusts dashboard test fixtures to include/omit desktop artifacts appropriately.
godbrain_core/​skill_lab/​dashboard.mjs Uses university tasks preferentially when present; filters gallery to desktop-bearing candidates.
godbrain_core/​skill_lab/​curriculum.mjs Adds the shop and CMS tasks to the trusted task list.
godbrain_core/​skill_lab/​course-factory.mjs Skips university courses whose trusted contract is missing in-process; bumps definition version.
godbrain_core/​skill_lab/​competencies.mjs Adds Cycle 5 competencies and prerequisite chain (visual-god → shop → CMS).
godbrain_core/​skill_lab/​browser.test.mjs Adds contrast/error-boundary tests and (Mongo-gated) shop/CMS examiner tests; skips lab refs when Mongo is down.
godbrain_core/​skill_lab/​browser.mjs Examiner v10: adds lab task props + same-origin API + Mongo persistence checks; adds WCAG-ish contrast checks; improves boundary action robustness.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread godbrain_core/skill_lab/ensure-gym-mongo.js Outdated
Comment thread godbrain_core/skill_lab/gym-lab-db.mjs
Autismo added 3 commits September 19, 2026 02:35
GodBrainGymWatch was powershell.exe ConvertFrom-Json of the 189-lesson
graph (0xc00000fd / -1073741571). Glance through node instead, and trust
the Qwen receipt pid if :8888 is already up.
ensure-gym-mongo.js binds getSiblingDB to gym. Gym lab finds mongosh via
GODBRAIN_MONGOSH, LOCALAPPDATA, or PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants