Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/scripts/ck_allen_ui_test.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / scripts / ck_allen_ui_test.sh` 59 lines ยท 3857 bytes Raw Blame History 1 #!/bin/sh 2 # ck_allen_ui_test.sh -- host test of Allen's home (native/kernel/ui: the 3 # night sky, his presence, the water and ink round him, the screen around them) and his first local 4 # answers (native/kernel/svc/allen_reply.c). 5 # 1. Allen's answers: "Hello Allen" (any case, punctuation, spacing) gives 6 # "Hello Humanity."; anything it does not know gives "I don't know that yet." 7 # 2. Allen's typeface: every printable character rasterizes, measures and 8 # has ink. 9 # 3. The startup at 3840x2160 BGRX: stars come out, two black holes merge, 10 # Allen forms; the bar comes up when he wakes, takes a typed line, he 11 # answers under him; left alone, only he stays on screen; a saved note 12 # shows on the notes map and goes again. Drawing only what changed must 13 # match drawing everything. 1280x800 RGBX with a padded pitch: red and 14 # blue swap, nothing past the visible width, and three helper threads 15 # draw exactly the same frames as one. 16 # 4. Goodbye: stationary stars fade while Allen folds into a thin line of light, 17 # then a point and black. Six phase captures; no displaced stars, shrinking 18 # line width, no late flash, completed black acknowledgement and safe wake. 19 # 5. Coordinates typed to Allen become his place (allen_place_test.c). 20 # 6. Every mind mode and replayed activity phase: no newly introduced warm or 21 # white interior hot spots, bounded geometry, and meaningful visibility; 22 # adversarial warm/white, enlarged-disc and missing-being controls. 23 # 7. Native Milky Way samples and compact catalogue/twinkle point footprints; 24 # coarse-grid, static-bloom and dynamic-bloom controls must be rejected. 25 # 8. A streamed answer: each later fragment joins the letters already showing 26 # and never blanks them (scripts/ck_allen_ui_stream_test.sh, L853). 27 # Pictures of each state land in target/native-kernel-allen-ui/ for a person 28 # to look at. Hosted only. Ends with "AIENOS_ALLEN_UI: PASS" or 29 # "AIENOS_ALLEN_UI: FAIL ". 30 set -u 31 cd "$(dirname "$0")/.." 32 K=native/kernel 33 OUT=target/native-kernel-allen-ui 34 W=$(mktemp -d "${TMPDIR:-/tmp}/ck_allen_ui.XXXXXX") 35 trap 'rm -rf "$W"' EXIT 36 fail() { echo "AIENOS_ALLEN_UI: FAIL $*"; exit 1; } 37 CC=${HOSTCC:-cc} 38 mkdir -p "$OUT" 39 $CC -std=gnu11 -O2 -Wall -Wextra -Werror -pthread -o "$W/test" $K/ui/tests/allen_ui_test.c $K/ui/allen_ui.c $K/svc/allen_code.c \ 40 $K/ui/paint.c $K/ui/night.c $K/ui/sky_real.c $K/ui/sky_data.c $K/ui/mind.c $K/ui/flow.c \ 41 $K/ui/allen_font.c $K/ui/canvas.c $K/svc/allen_scene.c $K/svc/allen_reply.c $K/svc/allen_notes.c $K/svc/allen_intent.c \ 42 $K/svc/setup_wizard.c $K/svc/setup_inv.c || fail "test does not build" 43 "$W/test" "$OUT" || fail "window checks" 44 echo "pictures: $OUT" 45 $CC -std=gnu11 -O2 -Wall -Wextra -Werror -o "$W/exit" $K/ui/tests/allen_exit_test.c $K/svc/allen_code.c \ 46 $K/ui/paint.c $K/ui/night.c $K/ui/sky_real.c $K/ui/sky_data.c $K/ui/mind.c $K/ui/flow.c \ 47 $K/ui/allen_font.c $K/ui/canvas.c $K/svc/allen_scene.c $K/svc/allen_reply.c $K/svc/allen_notes.c $K/svc/allen_intent.c \ 48 $K/svc/setup_wizard.c $K/svc/setup_inv.c || fail "exit test does not build" 49 "$W/exit" || fail "exit lifecycle checks" 50 51 # 5. Coordinates typed to Allen ("35 north 90 west", "35.1, -90.0") become his place; lines that are no place 52 # (arithmetic, names, a bare pair of numbers) do not (native/kernel/svc/tests/allen_place_test.c). 53 $CC -std=gnu11 -O2 -Wall -Wextra -Werror -I $K/svc -o "$W/place" $K/svc/tests/allen_place_test.c $K/svc/allen_reply.c \ 54 $K/svc/allen_notes.c $K/svc/allen_intent.c || fail "place test does not build" 55 "$W/place" || fail "place checks" 56 sh scripts/ck_mind_phases_test.sh || fail "mind phase checks" 57 sh scripts/ck_sky_sharpness_test.sh || fail "native sky sharpness checks" 58 sh scripts/ck_allen_ui_stream_test.sh || fail "streamed answer restarts" 59 echo "AIENOS_ALLEN_UI: PASS"