[repo] Fabrica: Ianitor onboarded (Aula page, e2e showcase, tests, 0.2.0) #11

Manually merged
mnovak merged 0 commits from feature/fabrica-onboarding into main 2026-11-19 02:01:14 +01:00
Owner

Ianitor onboarded to Fabrica: the six items of Fabrica docs/36_app_onboarding.md, applied to a server app. The design is in docs/fabrica.md, the release steps in docs/release.md, and the ROADMAP Status and Handover are updated.

What

# Item Ianitor now
1 Fabrica app app.yaml has aula: true and tagPrefix: v, with one server part. The release is started by its tag; there is no desktop part, because there is no installer.
2 Aula page AULA.md, .fabrica/aula/brief.md, .fabrica/aula.yaml (five file: shots), .fabrica/notes/0.2.0.md. The release adds fabrica aula page and a source archive (scripts/pack-source.mjs): Aula publishes nothing without a download, which is why v0.1.0 shows no files.
3 Updates fabrica-deploy@ianitor (deploy.yaml, unchanged). The reasons are in docs/fabrica.md part 3.
4 Canalis Not applicable. Canalis is a device-local layer for Tauri and .NET apps, and Ianitor has no process, window or scheme on a device (part 4).
5 Showcase A Playwright suite in apps/web on the built UI and the demo control plane, at a fixed instant and zone. It runs the six §4 flows with their clicks counted, each recorded as a video, and takes the five Aula shots. Every visited page is checked for real-looking names. Videos wait for Fabrica's videos: (Pensum #jd3x1h).
6 Tests .fabrica/tests.yaml has the target web, also the merge gate. .fabrica/artifex/e2e.yaml runs on windows-e2e. There is no android target: no Android build.

Also in this PR:

  • apps/web/scripts/shots.mjs is removed; the suite replaces it.
  • The demo keeps the hosts it is given, names device requests by what was asked, and serves a share token that cannot read as a name.
  • Version 0.2.0.
  • The visual gate waits one release (Pensum #j4yav1).

Verified (Windows, Edge, under heavy load from other sessions)

  • Playwright: web 6/6 and aula 5/5. fabrica tests run --target web: 6/6 (run 20261119-013433-wqrm).
  • vitest 21 (smoke 15, demo 6). svelte-check: 0 errors. tsc -p e2e/tsconfig.json: clean.
  • fabrica artifex check: 0 problems (3 pipelines, app.yaml, aula.yaml, tests.yaml, brief). fabrica pensum check: 0. fabrica preflight ianitor: 0 blockers.
  • fabrica aula shots (5 × 1440×900), fabrica notes --version 0.2.0 (the highlights first), fabrica aula page, node scripts/pack-source.mjs 0.2.0 (248 files). Each PNG was looked at.
  • No Rust file changed.

Adversarial self-review

  • A picture or video leaks Mark's network. The UI talks only to the demo control plane on 127.0.0.1. realLooking runs on every visited page's body text, fields and links. It caught the stand-in's ish1.abc share token, which the demo now replaces, and the stand-in's "Mark's phone", which the demo replaces with the asked name. Still open: GET /applies/<id> for undo and restore answers the stand-in's generic Done x.home.test, which is invented but not pretty in a video.
  • The release breaks on the runner. Videos need Playwright's ffmpeg. The release now sets
    PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright', where ffmpeg-1011 (Playwright 1.56.1's) is. If a runner lacks it,
    the e2e step fails, and nothing is published or downloaded. The 180 s per-test timeout is generous because one flow
    took 72 s under load.
  • The source archive is not the tag. git archive HEAD runs in the run's clean worktree of the tag; it is deterministic and repeatable by anyone.
  • The clock. page.clock.setFixedTime freezes Date only; timers run, so polling works. The demo's server-side times use the same instant (mockApi.ts clock). The vitest tests keep the real clock (clock.fixed is null there).
  • /__demo/reset exists only in the e2e server (e2e/serve.ts), never in control.
  • Commit hygiene. apps/web/package.json's 0.2.0 landed in the [web] E2E commit, not the Release commit. The tree at HEAD is right (check-version 0.2.0 passes); history is not rewritten.
  • Not verified:
    • The e2e pipeline on windows-e2e.
    • The release run itself.
    • The Linux Rust suites and the Nix build.
    • Aula's entry: the server's modules/aula.nix needs files = [ "ianitor-*-src.tar.gz" ] (Configuration_Server).
Ianitor onboarded to Fabrica: the six items of Fabrica `docs/36_app_onboarding.md`, applied to a server app. The design is in docs/fabrica.md, the release steps in docs/release.md, and the ROADMAP Status and Handover are updated. ## What | # | Item | Ianitor now | | :-- | :-- | :-- | | 1 | Fabrica app | `app.yaml` has `aula: true` and `tagPrefix: v`, with one server part. The release is started by its tag; there is no desktop part, because there is no installer. | | 2 | Aula page | `AULA.md`, `.fabrica/aula/brief.md`, `.fabrica/aula.yaml` (five `file:` shots), `.fabrica/notes/0.2.0.md`. The release adds `fabrica aula page` and a source archive (`scripts/pack-source.mjs`): Aula publishes nothing without a download, which is why v0.1.0 shows no files. | | 3 | Updates | `fabrica-deploy@ianitor` (deploy.yaml, unchanged). The reasons are in docs/fabrica.md part 3. | | 4 | Canalis | Not applicable. Canalis is a device-local layer for Tauri and .NET apps, and Ianitor has no process, window or scheme on a device (part 4). | | 5 | Showcase | A Playwright suite in apps/web on the built UI and the demo control plane, at a fixed instant and zone. It runs the six §4 flows with their clicks counted, each recorded as a video, and takes the five Aula shots. Every visited page is checked for real-looking names. Videos wait for Fabrica's `videos:` (Pensum `#jd3x1h`). | | 6 | Tests | `.fabrica/tests.yaml` has the target `web`, also the merge gate. `.fabrica/artifex/e2e.yaml` runs on `windows-e2e`. There is no android target: no Android build. | Also in this PR: - `apps/web/scripts/shots.mjs` is removed; the suite replaces it. - The demo keeps the hosts it is given, names device requests by what was asked, and serves a share token that cannot read as a name. - Version 0.2.0. - The visual gate waits one release (Pensum `#j4yav1`). ## Verified (Windows, Edge, under heavy load from other sessions) - Playwright: web 6/6 and aula 5/5. `fabrica tests run --target web`: 6/6 (run `20261119-013433-wqrm`). - vitest 21 (smoke 15, demo 6). svelte-check: 0 errors. `tsc -p e2e/tsconfig.json`: clean. - `fabrica artifex check`: 0 problems (3 pipelines, app.yaml, aula.yaml, tests.yaml, brief). `fabrica pensum check`: 0. `fabrica preflight ianitor`: 0 blockers. - `fabrica aula shots` (5 × 1440×900), `fabrica notes --version 0.2.0` (the highlights first), `fabrica aula page`, `node scripts/pack-source.mjs 0.2.0` (248 files). Each PNG was looked at. - No Rust file changed. ## Adversarial self-review - **A picture or video leaks Mark's network.** The UI talks only to the demo control plane on 127.0.0.1. `realLooking` runs on every visited page's body text, fields and links. It caught the stand-in's `ish1.abc` share token, which the demo now replaces, and the stand-in's "Mark's phone", which the demo replaces with the asked name. Still open: `GET /applies/<id>` for undo and restore answers the stand-in's generic `Done x.home.test`, which is invented but not pretty in a video. - **The release breaks on the runner.** Videos need Playwright's ffmpeg. The release now sets `PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'`, where `ffmpeg-1011` (Playwright 1.56.1's) is. If a runner lacks it, the `e2e` step fails, and nothing is published or downloaded. The 180 s per-test timeout is generous because one flow took 72 s under load. - **The source archive is not the tag.** `git archive HEAD` runs in the run's clean worktree of the tag; it is deterministic and repeatable by anyone. - **The clock.** `page.clock.setFixedTime` freezes `Date` only; timers run, so polling works. The demo's server-side times use the same instant (`mockApi.ts` `clock`). The vitest tests keep the real clock (`clock.fixed` is null there). - **`/__demo/reset`** exists only in the e2e server (`e2e/serve.ts`), never in control. - **Commit hygiene.** `apps/web/package.json`'s 0.2.0 landed in the `[web] E2E` commit, not the `Release` commit. The tree at HEAD is right (`check-version 0.2.0` passes); history is not rewritten. - **Not verified:** - The `e2e` pipeline on `windows-e2e`. - The release run itself. - The Linux Rust suites and the Nix build. - Aula's entry: the server's `modules/aula.nix` needs `files = [ "ianitor-*-src.tar.gz" ]` (Configuration_Server).
mnovak added 5 commits 2026-11-19 01:53:41 +01:00
mnovak added 1 commit 2026-11-19 01:56:19 +01:00
mnovak manually merged commit 7aa8b0ea62 into main 2026-11-19 02:01:14 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#11