Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Screenshots

# Phone screenshots of the main screens, in light and dark, from a fresh app
# filled with three weeks of practice (web/scripts/screenshots.mjs). Each pull
# request gets them on the branch screenshots/<its branch>, which reviews and
# the README link to; nothing is committed to the pull request itself.

on:
pull_request:
paths: ['web/**', 'backend/**', '.github/workflows/screenshots.yml']

concurrency:
group: screenshots-${{ github.head_ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
screenshots:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 26
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build the app
run: |
(cd web && npm ci)
make build
- name: Start it with an empty database
run: |
cd dist
./reckon serve --http=127.0.0.1:8090 --dir="$RUNNER_TEMP/pb_data" > "$RUNNER_TEMP/reckon.log" 2>&1 &
for _ in $(seq 30); do curl -fs http://127.0.0.1:8090/api/health && break; sleep 1; done
- name: Take the screenshots
working-directory: web
env:
TZ: Europe/Brussels
run: |
# the one-time code a fresh install asks for on its setup screen
export RECKON_SETUP_CODE=$(cat "$RUNNER_TEMP/pb_data/setup_code")
npm i --no-save playwright
npx playwright install --with-deps chromium
node scripts/screenshots.mjs "$RUNNER_TEMP/shots"
- name: Server log
if: failure()
run: cat "$RUNNER_TEMP/reckon.log"
- name: Publish them on screenshots/${{ github.head_ref }}
env:
BRANCH: screenshots/${{ github.head_ref }}
SHA: ${{ github.event.pull_request.head.sha }}
TOKEN: ${{ github.token }}
run: |
cd "$RUNNER_TEMP/shots"
git init -q -b "$BRANCH"
git add .
git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \
commit -qm "Screenshots of $SHA"
git push -qf "https://x-access-token:$TOKEN@github.com/$GITHUB_REPOSITORY.git" "HEAD:refs/heads/$BRANCH"
40 changes: 23 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
# Changelog

What changed in each release of reckon. Installs update to the newest release; see
What changed in each release of Reckon. Installs update to the newest release; see
[docs/deploy.md](docs/deploy.md#updates-and-versions).

## Unreleased
## 0.1.0 (2026-11-17)

- Every published image carries a software bill of materials (SBOM), and an OpenSSF
Scorecard run checks the repository's security practices every week.
- golang.org/x/net 0.62.0, which fixes GO-2026-6860.
- SECURITY.md: how to report a problem privately, and how quickly fixes ship.
- Security scans on every pull request and every Monday: CodeQL, govulncheck, Grype
(web and worker dependencies, released images), dependency review and gitleaks.
- The containers' filesystems are read-only apart from `pb_data` and `/tmp`.
- The compose file follows the major version (`:1`) instead of `:latest`, and the
installer fetches the compose files of the newest release instead of `main`.
The first release: practice for the numerical reasoning tests used in job applications.

## 1.0.0 (2026-11-04)

- Releases: a `vX.Y.Z` tag publishes `:X.Y.Z`, `:X.Y`, `:X` and `:latest`, and installs follow
`:latest`, so they only update to a release. `main` publishes `:edge`.
- Every published image has a signed provenance attestation (`gh attestation verify`).
- Security and maintenance section in the README.
- Four kinds of question, each with nine levels: number series, number grids, number
figures and function boxes, generated fresh every time.
- Lessons of eight questions with instant feedback. Six right on your own moves a skill up a
level.
- A **Hint** under every question: how to think about this kind of question, and a pointer
for this one that doesn't give the answer away.
- **Show solution**: a plain-language walkthrough, one step at a time, highlighting the boxes
each step is about.
- Adaptive mock tests, full (15 questions, 30 minutes) or quick (8 questions, 12 minutes),
scored as a stanine from 1 to 9 with its margin of error, the score per question type and
what to practise next.
- Progress: test results over time, accuracy and pace per question type, four weeks of
activity, and every lesson and test to review with its worked solutions.
- XP, a daily goal and a streak, with an optional evening reminder when the streak would
break.
- Each person's practice is private to them, the owner included; download it as a file or
start again from **Me**.
- Built on plasto: setup code, accounts for a household, rate-limited sign-in, a locked-down
container, nightly backups, signed images and security scans. Includes Shoppa's fix for push
notifications on iPhones and Troye's fix for missed-job checks.
9 changes: 7 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# CLAUDE.md

reckon is a self-hosted app built on the plasto template: a Go backend on PocketBase (`backend/`)
serving a Svelte 5 + Tailwind web app (`web/`).
Reckon is a self-hosted trainer for the numerical reasoning tests used in job applications,
built on the plasto template: a Go backend on PocketBase (`backend/`) serving a Svelte 5 +
Tailwind web app (`web/`). How questions and scores are made is in `docs/plan.md`.

## Commands

Expand All @@ -22,6 +23,10 @@ serving a Svelte 5 + Tailwind web app (`web/`).
- Heavy work (ML, scraping, LLM calls) goes in a Python worker under `workers/` that uses
`plasto_worker.Client`; workers write records, Go hooks react. Allow workers in API rules
with `@request.auth.collectionName = "workers"`.
- Questions, hints, solutions and adaptive scoring live in `web/src/lib/engine.ts`; its tests
check every worked sum. Keep hint and solution text plain: everyday words, no jargon.
- Each person's practice is private: API rules on `progress` and `practice_sessions` allow
only `user = @request.auth.id`, the owner included. Keep it that way.
- `docs/first-feature.md` walks through adding a feature across every layer.
- Deploy files are in `deploy/` (see `docs/deploy.md`); `make smoke` runs the images with
`deploy/docker-compose.yml` end to end, and CI runs it on every PR.
Expand Down
Loading
Loading