A permanent handler code is hardcoded in the Cloud Function. It cannot be rotated or expired from this console. To disable it, the hash must be removed from functions/index.js and redeployed.
Generate Handler Code
Generate a new handler activation code. The plaintext is shown once -- save it before closing.
Every rule the scanner can report, read from its source code, with what the latest run found.
Loading rule definitions...
How to Run the Quality Pipeline
Run these commands from the project root on the build machine. Reports are written to _tools/reports/ and the findings store is updated at _tools/nexus/findings.json.
Full Pipeline (recommended)
nexus full
Runs EduScan, Sprint, HED, Audit, Spellbook, and Todo spokes. Syncs all findings into findings.json. Use this before any deploy.
Status Dashboard
nexus status
Prints a consolidated view of findings by source and severity. Fast — reads from the existing findings.json without re-scanning.
EduScan Only
nexus scan
Runs only the EduScan spoke. Faster than a full pipeline run when only content quality matters.
Deploy Gate
nexus gate --strict
Fails with exit code 1 if any critical findings exist across EduScan, HED, or Audit sources. Integrate into CI to block bad deploys.
Auto-Triage
nexus triage --apply
Creates sprint backlog items from high-severity findings that have no existing sprint ticket. Add --dry-run to preview without writing.
Direct EduScan (strict profile)
node eduscan/cli.js --profile strict
Bypass Nexus and invoke EduScan directly with the strict ruleset. Outputs TREASURE_MAP.json. Run from _tools/.
Pull HED Export
nexus pull hed
Fetches the latest HED export from the Cloud Function endpoint and caches it locally for the HED spoke adapter.
Note:_tools/ is gitignored. Report files must be generated locally and are never deployed. The findings.json is the only durable store; it is not tracked in git by default and must be explicitly added if you want to commit a snapshot.
Account Operations
Site notice
A bar across the top of every page, for planned maintenance or a known problem. Visitors see a change within 5 minutes. Each visitor can dismiss it; editing the message shows it to them again. Text only, up to 280 characters.
White-label tenant students see it too, so keep the wording brand-neutral (say "the platform", not "Hexworth"). It is not shown on quiz and exam pages, so do not schedule maintenance during an exam.
Loading the current notice...
Merge Accounts
Select two user accounts to merge. The higher XP, combined completions, and primary email are kept.
Bulk Student Import
Upload a CSV file with columns: email, displayName, house, classCode
Orphan Detection
Find accounts with no class membership and no activity in 30+ days.
Role Management
Current Admins & Handlers
Loading roles...
Grant / Revoke Role
Search for a user, then grant or revoke admin or handler privileges. Changes take effect on their next page load.
Tasks
--
Open
--
In Progress
--
Done Today
--
Total Active
--
My Tasks
New Task
No file selected
Open
0
Loading...
In Progress
0
Recently Done
0
Task Detail
Status
Assign To
Comments
No comments yet.
Spellbook
--
Total Spells
--
Sealed
--
Bound
--
Scribed
--
Cast
--
Banished
--
Most Recent
Spell Library
Loading spells...
SPELL-000
Static snapshot — run nexus full --publish to sync live data
Tenant Management
Loading tenants...
Create New Tenant
Edit Tenant
Tenant Details
Licensed Content
Enabled Features
Deployment Coming Soon
Build pipeline in development — tracked in WL-13. Deploy type selection is saved with tenant config and will be used once the pipeline is live.
Deploy Status
Last Deployed
Never
Deploy URL
--
Content Included
--
Build Version
--
Deploy History
Date
Version
Type
Status
Size
No deployments yet
Classes
No classes yet.
Student Progress
Loading students...
Danger Zone
Deleting a tenant is a soft-delete that marks it as deleted and makes the dashboard inaccessible.
Tenant data is preserved for audit purposes but cannot be easily restored.
CTF Tournament Management
Field Manual — How CTF Tournaments Work
\u25B6
1. Create a Tournament
Click "+ Create Tournament" and fill in the details:
Name — what participants see (e.g., "Spring 2026 CTF")
Join Code — short alphanumeric code you share with participants (e.g., SPRING26)
Scoring — Static (fixed points) or Dynamic (points decay as more teams solve)
Duration — total time in minutes once the tournament starts
Freeze — scoreboard hides scores for the last N minutes to prevent flag sharing
2. Add Challenges
Each challenge needs a title, category, point value, flag, and description.
Flags are case-sensitive exact match (e.g., HEX{example_flag})
Flags are never stored in plaintext — they are SHA-256 hashed with a tournament-scoped salt at creation time
Hints are optional — format: cost|hint text (one per line). The cost is deducted from the team's score
You can also Import Pack — upload a JSON file with pre-made challenges for reuse across tournaments
3. Tournament Lifecycle
DRAFT → LOBBY → ACTIVE → FROZEN → ENDED
DRAFT — Tournament created but not visible. Edit freely. Delete available.
LOBBY — Click "Open Registration." Participants use the lobby link to sign in and join a team.
ACTIVE — Click "Start Tournament." Countdown begins. Teams solve challenges and submit flags.
FROZEN — Scoreboard hides live scores for the final N minutes. Submissions still accepted.
ENDED — No more submissions. Final scores locked. Podium reveals standings. Export results as JSON.
4. Teams
Six default teams are created automatically with every tournament:
Red CellBlue ShieldGreen OpsGold StrikePurple HazeCyan Storm
Participants join teams from the lobby page — they sign in with their Hexworth account and click "Join Team." They can leave and switch teams while in LOBBY status.
5. Sharing Links
When you click Manage on a tournament, you get three shareable items:
Join Code — short code participants enter (e.g., SPRING26)
Lobby Link — full URL to the lobby page where participants sign in and join teams
Podium Link — full URL to the live scoreboard (no login required, spectator-friendly)
Project the podium on a screen during the event for maximum engagement.
6. Scoring Models
Static — each challenge is worth its assigned points, period. Simple and predictable.
Dynamic — challenges start at max points and decay as more teams solve them. Rewards teams that crack hard challenges first. Formula: points = max(floor, base * decay^solveCount)
Tiebreaker: teams with equal scores are ranked by who reached that score first (earliest lastSolveTime wins).
7. Security
Flags are SHA-256 hashed with a tournament-scoped salt — never stored in plaintext
All scoring is server-side (Cloud Functions) — clients cannot manipulate scores
Submissions are rate-limited to prevent brute-force guessing
Every submission is logged with timestamp, team, and user for forensic review
Scoreboard freeze prevents last-minute flag sharing between teams
8. Challenge Pack Format (for Import)
{
"packName": "Beginner Web Challenges",
"challenges": [
{
"title": "Hidden in Plain Sight",
"category": "web",
"points": 100,
"flag": "HEX{view_source_is_your_friend}",
"description": "The flag is somewhere on this page...",
"hints": [
{ "cost": 25, "text": "Try looking at the source code" }
]
}
]
}
Loading tournaments...
Create New Tournament
Challenges
No challenges added yet. Click "+ Add Challenge" to begin.
Tournament Details
DRAFT
Join Code
Scan to join
Opens the public join page — no Google account needed. The join code is NOT in the QR: read it out, so a photographed code does not become the gate.
Older tournaments stored flagHash and flagSalt on the challenge document, which is publicly readable. Phase 1 copies them to the admin-only flagSecrets collection and changes nothing else. Phase 2 removes the public copies, and refuses to touch any challenge whose secret is not safely stored first.
Join Code Migration
Tournaments created before the join code became a real gate keep it in a joinCode field on the publicly readable tournament document, where anyone can read it without signing in. Phase 1 copies it to the admin-only private/config and marks the tournament as code-gated, changing nothing a running event depends on. Phase 2 removes the public copy, and refuses any tournament whose private copy is not confirmed first. Rotating a code does not fix this: a new code in the same public field is equally exposed.
Real Box Assignment
Point a team at a real machine for one challenge. Students never read this record: the board asks a Cloud Function, which checks team membership server side and returns the details only to that team. Leave it unset for simulated challenges.
Real Box Pool
Record each physical machine ONCE. Team id is optional and pins a box to a specific team (the Engine 1 clones are already named per team, so team-blue maps to the blue-shield box). Then Wire pool to all teams writes every per-team assignment for the challenge selected above, in one atomic batch, and claims each box so it cannot be wired to a second tournament at the same time. Release pool frees this tournament's boxes for the next event without deleting any team's assignment. Students never read these documents: the board asks a Cloud Function that checks membership server side.
Per-Team Flags
For a challenge backed by REAL per-team machines. Run sudo _tools/engine1/provision/perteam-flags.sh on bc2, which mints one flag per box and prints a JSON block, then paste that block here. Each team is then graded against its own flag only, and a team with no entry is refused rather than graded against another team's secret. Keys are matched to teams through each team's existing box assignment for the challenge selected above, so wire the pool first. Use Preview to see the mapping before anything is written; nothing is written unless every team resolves. Leave this alone for simulated challenges, where one shared flag is correct because there is one box.
Registered Teams
No teams registered yet.
Challenges
Live Submission Feed
Add Challenge
Select Arena Boxes
Hub Registry
Create a Hub
Stands up a structured-but-empty hub, tracked from creation, and invisible until you publish it.
It renders at /houses/hub/<id>. Fill it with content later, then flip it to Published.
Hub id (from label): -
Dynamic Hubs
Loading hubs...
Hub Health
Reconciles the three views of a hub so nothing silently diverges: in existence
(static registry + dynamic Firestore hubs), in gallery (has a cover in
covers/manifest.json), and by name (canonical label list, to catch
duplicates). This panel runs the reconciliation live with Firestore access; the same
checks are enforced as a deploy gate in hub-registry-audit.js (Gate 2.5),
which defers the orphan check to a credentialed run since it cannot see dynamic hubs offline.
Three-way audit
Reconciling hubs...
Enumeration (hubs by name)
House card lists (drift vs registry)
Each house page hand-maintains its own config.paths card list, separate from the
registry. This enumerates all 13 and reconciles each card against a registry hub by
link target (so python-it and python-for-it match if they
point to the same page). Generated by gen-house-cards.js.
Course Tree Mapper
Visualize navigation structure for any course hub. Data generated by eduscan --tree --all
Review Games SANDBOX
Shared data-driven game engines (one engine per type, any course) plus the Game Forge — the build that converts legacy hardcoded game clones into this format and audits their quality. Isolated test build, not yet merged into production hubs.
Arcade Fixes COCKPIT
Health of the arcade games in games.html from the last audit (…) — . Functional/render checks load every game headless and watch for JS errors, failed assets, and blank renders. Content shows each game's last audit score joined with the shipped-fix ledger: fixed (a gated fix shipped), assessed (audited, not yet fixed), pending (not audited). A fixed game keeps its last-audit score until re-audited. Full regen: node _tools/arcade-fixes/arcade-audit.mjs then redeploy. Each shipped fix auto-refreshes the content dimension via _tools/arcade-fixes/record-fix.sh.
Loading arcade health…
Needs attention
functional issues, broken first. Click a game for details.
All games
grouped by house. Click a game for its health and a play link.