Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7dab2b3
docs: add AI-agent documentation (AGENTS.md, CLAUDE.md, docs/agents)
Karanvir1729 Oct 8, 2026
f3636b2
runtime: default mode is observe; guard opt-in, heal experimental
Karanvir1729 Oct 8, 2026
b435acb
ci: GitHub Actions for @genclass/runtime; commit the root lockfile
Karanvir1729 Oct 8, 2026
b561244
docs: refresh all agent docs for situation-v2; honest READMEs; OPEN_T…
Karanvir1729 Oct 8, 2026
6ac4737
docs: READMEs name 0.1.0-alpha.1 as the current npm version
Karanvir1729 Oct 8, 2026
806a296
release: @genclass/runtime 0.1.0-alpha.1
Karanvir1729 Oct 8, 2026
c16a3b0
docs: record the @genclass/runtime 0.1.0-alpha.1 publish
Karanvir1729 Oct 8, 2026
dabbce2
merge origin/runtime (eff18cb): v2 data done, one-command install, re…
Karanvir1729 Oct 8, 2026
10e5c3b
chore: sync lockfile after merging origin/runtime
Karanvir1729 Oct 8, 2026
054da38
runtime: observe mode never holds or delays deliveries; background de…
Karanvir1729 Oct 8, 2026
f107013
runtime: redact F2 diffs and numeric/array secrets under secret conta…
Karanvir1729 Oct 8, 2026
4e95373
merge origin/runtime (5bc40c9): runtime batch 6 (model-provided gate …
Karanvir1729 Oct 8, 2026
7dda2ce
docs: READMEs and RELEASE.md for the next release (0.1.0-beta.0 with …
Karanvir1729 Oct 8, 2026
92e6b99
docs: merge origin/runtime eff18cb into the agent docs; record the ob…
Karanvir1729 Oct 8, 2026
33739ad
Merge branch 'mvp-v2-merge' into mvp-v2-b6
Karanvir1729 Oct 8, 2026
7a7f03e
merge origin/runtime (76d5dd3): runtime batch 7 (retry only when safe…
Karanvir1729 Oct 8, 2026
38ff62b
install CLI: observe default, safe remove, browser-app detection, SRI…
Karanvir1729 Oct 8, 2026
02e4583
merge origin/runtime (25bfb21): runtime batch 8 (relation learner pre…
Karanvir1729 Oct 8, 2026
f4c4e52
CLI: fetch-model defaults to @genclass/runtime-model@0.1.0 on jsDeliv…
Karanvir1729 Oct 8, 2026
ba11126
runtime-model: package @genclass/runtime-model
Karanvir1729 Oct 8, 2026
bcbee89
runtime-model: model card for r17-v2b (genclass-runtime-r17 2.0.0-rc2…
Karanvir1729 Oct 8, 2026
9695830
release: @genclass/runtime 0.1.0-beta.0 (ships with @genclass/runtime…
Karanvir1729 Oct 8, 2026
1f0f617
runtime-model: final 0.1.0 gates (on-policy refit) and model card
Karanvir1729 Oct 8, 2026
da97588
docs: record @genclass/runtime 0.1.0-beta.0 and @genclass/runtime-mod…
Karanvir1729 Oct 8, 2026
c465b1f
docs: the model is published; update remaining agent docs
Karanvir1729 Oct 8, 2026
eb54902
Merge origin/runtime (v0.1.0-beta.1: model 0.2.0, aggressiveness, bat…
Karanvir1729 Oct 9, 2026
55c51a3
release: @genclass/runtime 0.1.0-beta.2 (observe default + beta.1's m…
Karanvir1729 Oct 9, 2026
ed82578
telemetry: Cloudflare collector worker (genclass-telemetry, R2 gzip J…
Karanvir1729 Oct 9, 2026
28b7976
runtime: default-on anonymous telemetry (InitOptions.telemetry)
Karanvir1729 Oct 9, 2026
10fc607
docs: disclose default-on telemetry (TELEMETRY.md, READMEs, CHANGELOG…
Karanvir1729 Oct 9, 2026
df6a12f
release: @genclass/runtime 0.1.0-beta.3 (default-on anonymous telemet…
Karanvir1729 Oct 9, 2026
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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [main, runtime, mvp, mvp-v2]
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
runtime:
name: "@genclass/runtime: typecheck, build, unit tests"
runs-on: ubuntu-latest
timeout-minutes: 15
env:
# onnxruntime-node (dev-only, for the model parity tests) would otherwise download CUDA binaries on Linux.
ONNXRUNTIME_NODE_INSTALL: skip
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install
run: npm ci --no-audit --no-fund

- name: Typecheck
run: npm run typecheck -w @genclass/runtime

- name: Build
run: npm run build -w @genclass/runtime

# Browser (Playwright) tests are excluded. Model parity tests skip without a model directory (GENCLASS_MODEL_DIR).
# The perf budgets run in their own step: they time a 5,000-item store and are noisy next to parallel test files.
- name: Unit tests
working-directory: packages/runtime
env:
NODE_OPTIONS: --expose-gc
run: npx vitest run --exclude "test/browser/**" --exclude test/review-perf.test.ts

- name: Perf budgets
working-directory: packages/runtime
env:
NODE_OPTIONS: --expose-gc
run: npx vitest run test/review-perf.test.ts --retry=2
240 changes: 240 additions & 0 deletions AGENTS.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GenClass-lib: monorepo for @genclass/runtime, a self-healing web-app runtime with a local ONNX model (situation-v2, default mode observe), plus its training-data simulator (sim/), real-browser corpus (realapps/), model training (training/) and demos (demos/). Live team handoff: HANDOFF.md. Agent instructions live in AGENTS.md, imported below; the doc index is docs/agents/README.md.

@AGENTS.md
13 changes: 7 additions & 6 deletions HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ It observes user actions, async ops, network, state writes, errors, timing and c
salient it asks a small local GenClass model (ONNX on WebGPU or WASM, in a Web Worker) for a diagnosis and a
generic action. It has no hardcoded bug rules.

- **Modes:** observe → guard (default; minimal reversible actions at ≥ 0.9) → heal.
- **Modes:** observe (default since mvp-v2; reports only) → guard (opt-in; minimal reversible actions at ≥ 0.9 with the balanced profile) → heal (experimental).
- **Product principle:** never make a correct app worse; false positives kill it; everything must be observable
and undoable.

## Current state

| piece | state |
|---|---|
| npm | `@genclass/runtime@0.1.0-alpha.0` published (org `genclass`, owner meharpro). The alpha takes no actions: it has no published model yet. Each publish needs the user's 2FA, so give them the exact `npm publish <tgz> --access public` command. |
| npm | `@genclass/runtime@0.1.0-beta.0` is `latest` (published 2026-10-08 ~13:40 UTC from 1f0f617; default `observe`, loads the model by default) and `@genclass/runtime-model@0.1.0` is `latest` (`r17-v2b` = `genclass-runtime-r17` 2.0.0-rc2; the default model URL `https://cdn.jsdelivr.net/npm/@genclass/runtime-model@0.1.0/files/` resolves). `0.1.0-alpha.1` (806a296, no model) was `latest` before; `0.1.0-alpha.0` (older v1 build) is deprecated (org `genclass`, owner meharpro). Each publish needs the user's 2FA, so give them the exact `npm publish <tgz> --access public` command. |
| git | Branch `runtime` (also fast-forwarded into `main` once). Tags: `situation-v1` (old format), `situation-v2` (**current frozen training format**, commit 6e5e86e), `v0.1.0-alpha.0` (GitHub pre-release). |
| runtime | Batch 5 done; 346 tests pass. Decisions happen at the network boundary (`delivery` trigger). Store writes are never held by default. The never-worse sweep over 66 real apps with an always-passive model changed 0/396 clean runs. |
| model | Round 1 (v1 data): R17 9.6 MB, guard false-intervention rate (FIR) 0.05%, recall on clear cases only ~8%. The cause is analysed in `sim/SEPARABILITY.md`; the fixes are in v2. **No v2 model trained yet.** |
| model | Round 1 (v1 data): R17 9.6 MB, guard false-intervention rate (FIR) 0.05%, recall on clear cases only ~8%. The cause is analysed in `sim/SEPARABILITY.md`; the fixes are in v2. Since 2026-10-08 the v2 model `r17-v2b` is published as `@genclass/runtime-model@0.1.0` (gates guard 0.80 {mutation 0.95}, heal 0.85 {failure 0.95, inconsistency 0.85}, report 0.85). |
| data | SIM is generating about 10M gold + 50M unlabeled rows on v2 (20 Azure nodes) into `train:/data/sim-out/v2-*`. REAL is generating about 495k real-browser gold rows (c01, c10, c11) into `train:/data/real-out/`. Locations are in `training/NEEDS.md`. |
| training | Next: 150M teacher on v2 gold, then teacher-labels the unlabeled rows, then distil R17 (default) and R32, then DAgger via SIM `--on-policy`. Plan: `training/PLAN-v1.md`; log: `training/LOG.md`; eval: `training/EVAL.md`. |

Expand Down Expand Up @@ -86,7 +86,8 @@ generic action. It has no hardcoded bug rules.
```

Then check the job logs on the nodes, as described in each agent's README/LOG.
3. Pick up the next unfinished item in `OPEN_TASKS.md`. The usual order is: v2 data collected → teacher →
distillation → EVAL → model package `@genclass/runtime-model@0.1.0` (the default CDN URL the runtime loads) →
rerun the demos with the trained model → `@genclass/runtime@0.1.0` (2FA by the user).
3. Pick up the next unfinished item in `OPEN_TASKS.md`. The usual order was: v2 data collected → teacher →
distillation → EVAL → model package `@genclass/runtime-model@0.1.0` (the default CDN URL the runtime loads;
published 2026-10-08 together with `@genclass/runtime@0.1.0-beta.0`) → rerun the demos with the trained model →
`@genclass/runtime@0.1.0` (2FA by the user).
4. Report honestly: false-intervention rate next to every recall or bug-fix number.
Loading
Loading