what goes wrong for this kind of app

Every app of this kind meets the same hard questions. This list names what grug asks before trusting the app: the answer the code gives, or "missing" when it gives none. A missing answer stays visible, so a reader can plan around the gap. The list is a prompt, never a complete one: the school adds what else it finds.

21 questions from the catalog: 0 answers in code, 4 partial, 2 missing, 15 not applicable.

what goes wrong for pong-typescript

classes: universal

Each section says what this game does about one failure mode and points at the code behind the verdict.

network-loss

not-applicable

The game runs in one local frame. The sources hold no client, no socket and no address to call, so a lost connection has nothing to break. The proof searches every source file for network calls.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'curl|socket|http|fetch' *.ts

It prints:

absent

retries-and-backoff

not-applicable

There is no request to retry and no stream to reconnect. An input flag is read each frame by input.ts:13#read_input; the game has no transport that could fail. The proof shows that retry code is absent.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'retry|backoff|attempt' *.ts

It prints:

absent

duplicate-submits

not-applicable

A move comes from held keys and a restart comes from one press edge at input.ts:17#pressedge. There is no form and no submit action that could arrive twice. The proof searches for submit and double-send words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'submit|POST|double' *.ts

It prints:

absent

partial-failure

not-applicable

No step writes durable data. A goal changes two integer scores and serve resets the ball; a crash leaves the frame gone and nothing saved. The proof shows there is no store to stop halfway.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'database|INSERT|UPDATE|save|load' *.ts

It prints:

absent

concurrent-writers

not-applicable

One caller owns the state, and the loop in main.ts:9#clock calls update on one thread before drawing. There is no second writer to conflict with it. The proof searches the sources for threads and locks.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'thread|spawn|mutex' *.ts

It prints:

absent

clocks-and-time-zones

partial

Frame time comes from the caller at main.ts:9#clock, and update.ts:8#0.25 caps it before the accumulator spends it. A test calls advance at update.ts:11#advance with a chosen frame_time, so the frame clock is injected at the function boundary; the game still has no wall clock, calendar or time zone.

money-and-rounding

not-applicable

Scores count points in integers at scoring.ts:4#goalcheck and the screen takes text at draw.ts:44#textout. There are no amounts, currencies or fractions of a cent. The proof searches the sources for money words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'money|price|currency|dollar' *.ts

It prints:

absent

input-at-the-boundary

partial

input.ts:13#read_input reads three keyboard flags into a typed snapshot, and input.ts:17#pressedge gives restart one press edge. The game accepts no payload, so there is no size or type to validate. Held keys still behave like held keys; there is no key remapping or dead-key handling.

authentication

not-applicable

Every key reaches the same local frame. No caller presents an identity and no action checks one. The proof searches the sources for login and identity words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'auth|login|identity|credential' *.ts

It prints:

absent

authorization

not-applicable

There are no roles and no protected actions. The left paddle reads the player's keys and the right paddle follows the ball, both in update.ts:43#keypair. The proof searches for role and permission words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'role|permission|admin' *.ts

It prints:

absent

secrets-and-config

not-applicable

The program takes no environment value and reads no config file. The proof searches the sources for environment and config names.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'getenv|env_var|config|\.env|secret|token' *.ts

It prints:

absent

schema-changes

not-applicable

There is no stored data and no schema to change. A fresh run reads the same six TypeScript files and starts from init_game at state.ts:23#init_game. The proof searches for migration and table words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'migration|schema|table' *.ts

It prints:

absent

backup-and-restore

not-applicable

Scores live in memory for one session and end when the frame loop stops. There is no saved game to back up or restore. The proof searches for save and restore entry points.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'backup|restore|save_game|load_game' *.ts

It prints:

absent

observability

missing

The game draws scores from draw.ts:39#scorepair and prints no diagnostics. A crash leaves no log line and there is no counter a person could read after the frame loop stops. The proof searches the sources for logging and metric calls.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'printf|Log|log|trace|metric' *.ts

It prints:

absent

limits-and-load

partial

update.ts:8#0.25 caps the time a frame can add, and update.ts:7#stepcap caps catch-up steps, so a slow frame has a bound. The court is 800 units wide at state.ts:14#800 and the player count is two. No load test measures frame time under stress.

dependency-outage

not-applicable

The four modules call no service. main.ts:9#clock passes a frame time from the caller into advance, and the drawing commands are plain values. The proof searches for an unavailable endpoint or provider.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'unavailable|endpoint|provider' *.ts

It prints:

absent

data-retention-and-privacy

not-applicable

The state at state.ts:6#aggregate holds two scores and ball coordinates. No name, address or identifier enters it, and nothing leaves the process. The proof searches for personal data words.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'email|user_id|personal|analytics' *.ts

It prints:

absent

deployment-and-rollback

not-applicable

A player reads the source in this repository and runs it locally. The sources contain no deployment path and no release step. The proof searches for those words in the code.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'deploy|docker|release|rollback' *.ts

It prints:

absent

security-basics

not-applicable

The program returns fixed drawing commands. It parses no request body, evaluates no string and builds no query. The proof searches for those calls.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh 'innerHTML|eval|shell|exec|sql' *.ts

It prints:

absent

accessibility

partial

The on-screen hint at draw.ts:50#arrows names the keys, and the game plays with a keyboard. Colours carry no essential meaning: the ball is a circle and the paddles are rectangles. There is no screen reader support and no way to remap keys.

tests-of-the-risky-parts

missing

There are no test declarations in the source files. The collision passes and the score rules are checked here by reading code and by proofs over grep output, with no test that fails when a bounce breaks. The proof shows that no TypeScript test attribute is present.

proof: grug ran this, and check runs it again

run sh proofs/absent.sh '@\(test\)' *.ts

It prints:

absent