// CODE LANE · FREE FIELD GUIDE

Code field guide.

A short free introduction to exactly what the code lane test checks, covering every rubric area: following the brief; bugs fixed; feature works; tests; code quality; change note.

Free · no sign-up · written 3 NOV 2026 · platform numbers read 3 NOV 2026

Everything the code lane test checks is covered in this free guide. Nothing 8gentc sells is needed to pass, and buying anything never changes a grade. The guide can’t promise a pass: the test checks your own work.

01

The test

Ask 8gentc on Whop for your starter at least one working day ahead, giving the day, time and time zone to start; your 48 hours run from our message. It is your own copy of a small Node.js command-line app with three bugs (ISSUES.md) and a feature (FEATURE.md): about 4 hours. Up to 24 hours late scores 0 on the on-time points; later isn't graded and counts as an attempt. Free, unpaid, 18+. Pass: 70/100 with at least 15 on "Follows the brief"; else notes and a retake after 14 days. The work is your own (AI help is fine, described) and your copy isn't shared; editing a given test to hide a failure, or code aimed at the grading, fails.

Free route: Node.js 22+, any editor, Git, any free AI assistant or none, a file-sharing link.

Scoring: each hidden case is one call or command: values compared after a JSON round trip (an extra field fails), errors by name and code, commands by output and exit code. Your tests run on a correct copy (they must pass), with each bug put back, and on the stub.

02 · FOLLOWS THE BRIEF (25 PTS)

Follows the brief

node tools/check.mjs checks all but the first point; clear every FAIL and WARN. Commit the starter in Git first.

  • On time, complete (3): the whole folder with .starter/, zipped, by a link that opens signed out (no public Git host), on the Submit form. Windows: tar -a -c -f ..\h.zip --exclude .git --exclude node_modules .; macOS or Linux: zip -r ../h.zip . -x '.git/*' 'node_modules/*'
  • Unchanged (6): VARIANT and the files in .starter/protected.json (given tests, package.json, data/, tools/, src/config.js).
  • No dependencies (2); nothing forbidden in src/ (2): network, process, VM or module-loader modules, fetch, eval, new Function, file writes, computed import(), require, Node's internals, absolute paths, grading files, replacing a built-in, exit handlers (the checker names each).
  • The feature (4): FEATURE.md's exact file and export names; its command in src/cli.js.
  • node --test green (4); your tests in new test/*.test.js files (2); every CHANGES.md line filled (2).

03 · BUGS FIXED (20 PTS)

Bugs fixed

Per bug, 5 × the share of its hidden cases (the report and its neighbours); 5 for breaking nothing else. A special case (matching the issue's value, patching output, a hiding try/catch) scores 0.

Reproduce; write the failing test; call the functions along the path to the first wrong value; fix the rule there, not in a caller; rerun everything (one helper can cause several symptoms). Conventions: whole cents; UTC YYYY-MM-DD dates, no clock; arguments never changed; RangeError for unreadable input, Error with a code when a rule says no; numbers from policy.

Neighbours: ranges each end, one under and over; money 8.2 * 100 isn't 820, endings 00, 05, 99, under a dollar, negatives (Math.round(-2.5) is -2), round once at the end; dates Date.UTC (months from 0), month and year ends, 29th to 31st, February 2026 and 2028, impossible dates; text case-insensitive on both sides, trim, CSV quotes, commas, line breaks, CRLF; lists sort, reverse, splice, push change the caller's data, sort() alone sorts as text, ties, missing ids, empty input; errors right kind and code, in the spec's order, before any work.

04 · FEATURE WORKS (20 PTS)

Feature works

20 × the share of its hidden cases. Turn every FEATURE.md rule into a checklist; one wrong or extra field fails a case. Validate first, in the spec's order; compute, never store answers; check a tiny input by hand; every tie-breaker and edge case; never sort or edit the arguments; reuse the app's helpers; record decisions where the spec is silent. Output exactly: the spec's example in a test, counted spaces (padStart), the app's money formatter, singular for 1, the empty case, errors on standard error with exit code 1 and nothing on standard output, --data and --today honoured.

05 · TESTS (15 PTS)

Tests and test the tests

3 per bug caught; 2 if 3+ feature tests pass on a correct copy and fail on the stub; 4 × the share of edge cases covered.

import assert from 'node:assert/strict'
import { test } from 'node:test'
import { plusDays } from '../src/dates.js'
test('plusDays crosses a month end', () => assert.equal(plusDays('2027-06-30', 1), '2027-07-01'))

Also assert.deepEqual and assert.throws(() => f(x), { code: 'X' }). Per bug: its case and a neighbour, on the function with the cause, before the fix. Unchanged arguments: structuredClone, call, compare. Commands: spawnSync(process.execPath, ['src/cli.js', ...args], { encoding: 'utf8' }), --data in a mkdtempSync folder. A test per edge case, named after it. Import only the starter's and feature's files; never read source as text; no real date, network or test order; expected values by hand.

Test the tests: undo a fix (git stash, or git revert --no-commit <commit>) and its test fails; restore it (git stash pop, git revert --abort) and it passes. With the stub back, every feature test fails. Weak tests check only truthiness or length.

06 · CODE QUALITY (10 PTS)

Code quality

At the cause (4: per bug 1, ½ downstream, 0 special case); focused (2: no reformatting, renames, dead code, debug logs); section 3's conventions (2); clear (2: telling names, small steps, comments on why). AI code is fine, but you answer for every line: check for invented functions, edited tests, special cases, float money, local time.

07 · CHANGE NOTE (10 PTS)

Change note

Bugs (4: each symptom, cause by file and function, fix, test names; vague ½, false 0); feature (2: what, how to run, decisions or "none", tests); tools and AI (2: tool, plan, model, what AI did, what you checked, as on the Submit form; "used AI" is 1); time by stage and known limits (2). Claims must match the hand-in; AI use never costs points, hiding it does. A strong cause: "addDays added to the day number as text, so addDays('2026-10-01', -1) gave 2026-10-00."

08

Self-checks

The free practice kit (8gentc.com/lanes/code/test) has every grading script and a practice app with answers. From its engine folder (after line 1, copy starter to mine and work there):

node make-key.mjs --pack ../packs/practice/pack.mjs --seed my-practice-1 --out ../r1
node prepare-sandbox.mjs --variant-dir ../r1 --handin ../r1/mine --out ../r1/box
node run-sandbox.mjs --box ../r1/box --direct
node draft-score.mjs --variant-dir ../r1 --results ../r1/box.results.json
node tests-check.mjs --handin ../r1/mine --builds ../r1/key/builds

--direct skips Docker: own practice only. Worked example: practice/guide-example (13 pass, 1 fails): e.date < to where both days count, a search comparing as typed, a streak broken by addDays; its key holds the solution.

How certification and client work work · The code lane test brief and rubric