CodeQL / File created without restricting permissions
A file may be created here with mode 0666, which would make it world-writable.
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
A file may be created here with mode 0666, which would make it world-writable.
This use of offset 'n' should follow the range check.
This use of offset 'n' should follow the range check.
This use of offset 'n' should follow the range check.
This use of offset 'n' should follow the range check.
A file may be created here with mode 0666, which would make it world-writable.
The size argument of this snprintf call is derived from its return value, which may exceed the size of the buffer and overflow.
The size argument of this snprintf call is derived from its return value, which may exceed the size of the buffer and overflow.
A file may be created here with mode 0666, which would make it world-writable.
A file may be created here with mode 0666, which would make it world-writable.
This use of offset 'n' should follow the range check.
Multiplication result may overflow 'unsigned int' before it is converted to 'unsigned long'.
A file may be created here with mode 0666, which would make it world-writable.
Multiplication result may overflow 'unsigned int' before it is converted to 'unsigned long'.
A file may be created here with mode 0666, which would make it world-writable.
The size argument of this snprintf call is derived from its return value, which may exceed the size of the buffer and overflow.
A file may be created here with mode 0666, which would make it world-writable.
Multiplication result may overflow 'int' before it is converted to 'unsigned long'.
A file may be created here with mode 0666, which would make it world-writable.
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/77414dfbbd900575.bundle -o 77414dfbbd900575.bundle git fetch 77414dfbbd900575.bundle refs/pull/495/head
github-import 1
aien-dev/aienux
495
12b508becf1d3cb7a3bceaf02bc3066253994494
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":495,"url":"https://github.com/aien-dev/aienux/pull/495","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:34Z","metadata":"unavailable","state_derived":true}
diff --git a/.crumb b/.crumb index 239ac3e3..29c9d186 100644 --- a/.crumb +++ b/.crumb @@ -22,44 +22,44 @@ "children": [ { "digest": "fc491bf9ab591bdc2065379f71a34d4a572d866f7225e74745dcaf73c773bac7", - "last_commit": "5e0c797", + "last_commit": "7e5c1f8f", "name": "crates", "purpose": "Directory crates. Purpose not yet described by a human." }, { - "digest": "a59c8f9ed7fc2e2b7479b0f27b51563d256adfd2e2399cef59af0f055419c21e", - "last_commit": "5e0c797", + "digest": "35d5555ff4f23d370106e874ec0d5f9aa4f7d87e37c9589d1dbbcd5bd533640d", + "last_commit": "432c9447", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { - "digest": "45c897a7055a0c25a1ee482e5dd8674f527bc91d12bae901c9e73ed3ada3d7d2", - "last_commit": "5e0c797", + "digest": "773512413893fb607ea2e93c237b7ec15c3c55d8c656e8224a42b92b6bf0a6e5", + "last_commit": "a14aa34c", "name": "native", "purpose": "Directory native. Purpose not yet described by a human." }, { "digest": "57b4d8b99549c2e7921fb7d62b2dd99a1e6a4d9607d5c7604d83ab397effd1b9", - "last_commit": "5e0c797", + "last_commit": "5e0c7970", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." }, { "digest": "e891c078bec120c3fdb14e13b7dd25d69054f608c2ea632adf2fd2b6e45d8fa1", - "last_commit": "29e884d", + "last_commit": "29e884d5", "name": "tools", "purpose": "First-party host artifact preparation tools" } ], - "children_root": "sha256:6b121afe0e7bc6ab5114ae4880e57aae282a8df324ba86582fc88ae21dedd7a5", - "compiled_at": "2026-11-06T14:27:34Z", + "children_root": "sha256:a3a646af619fe37df90fe0a2f31bb24001a00dc3b3df2586c0b3ee62d63e5fb9", + "compiled_at": "2026-11-06T15:04:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:496b6e4c7536b56a766b0a7fd834a4e6609e37c053ebdac83776fa2f4e1fc3aa", - "evidence_files": 392, - "evidence_root": "sha256:21295040af737637275f8863f93700421b9552286e96e613ae8de21f7ad8d6c1", - "files": 4150, - "generated_at_commit": "6b4712e54f53ba3c2d0cd3c3f085802846f54fa6", - "source_tree": "sha256:ae21d112bdcaf36f03a56f61a4357b8dde8b276504bfa4e76ed7987d6d6e2b34" + "digest": "sha256:c39e5b525ec642c343546c7150304feba2adb0dc4f6138b060d4f68106dce3b3", + "evidence_files": 1474, + "evidence_root": "sha256:c9bebaaf662519bc6f3e7d03368e629ad54c8af2005adc6984363ed5b004a6e9", + "files": 5355, + "generated_at_commit": "a14aa34c9249188cc771a2a565494b5ce61ad432", + "source_tree": "sha256:2992687a070375993f346cda9f9eb9577ab8e6f4dd588056e36858fa08e6b837" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index f420829b..9581644f 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -30,14 +30,14 @@ } ], "children_root": "sha256:efb4a0449db172a441d8663f55ab48d6d81405e011961fd54213541c119b6852", - "compiled_at": "2026-11-06T12:57:47Z", + "compiled_at": "2026-11-06T14:13:40Z", "compiler": "crumb-compile/1", - "digest": "sha256:a59c8f9ed7fc2e2b7479b0f27b51563d256adfd2e2399cef59af0f055419c21e", + "digest": "sha256:35d5555ff4f23d370106e874ec0d5f9aa4f7d87e37c9589d1dbbcd5bd533640d", "evidence_files": 3, "evidence_root": "sha256:dc6e023412ded01aca886a94dc13859cb37ae664a28cff201db34893e3fab9ee", - "files": 319, - "generated_at_commit": "f26a7a2fe1dbd0632b1b9fcaeacb6d18ec8707e8", - "source_tree": "sha256:7e5a28140bdcda9e128acb2a57f22e16478fba1b791d12fecc129c9a23a4d69a" + "files": 323, + "generated_at_commit": "432c9447df58c134b21be92447164f33f92e70b2", + "source_tree": "sha256:9f0c276b6ee819366889a290556874f77bc3875493eb828705c1b3878f4d7122" }, "owner_lane": "", "provenance": { diff --git a/docs/superpowers/plans/2026-10-23-allen-omega-implementation.md b/docs/superpowers/plans/2026-10-23-allen-omega-implementation.md new file mode 100644 index 00000000..5fe64ffa --- /dev/null +++ b/docs/superpowers/plans/2026-10-23-allen-omega-implementation.md @@ -0,0 +1,16 @@ +# L694 implementation checkpoints + +1. Verify immutable compiler hash and compile/execute minimal probe. Freeze grammar + from pinned omc.om and founding OMEGESE language decisions. +2. Runtime state with behavioral RED stubs, native GREEN, rejection/recovery and + stale-ID mutant. Commit/push executable checkpoint evidence. +3. CODE and courier protocol, independently frozen exact fixtures, partial/reorder/ + loss/duplicate/session/capacity cases. No transport claim. +4. Import pinned native SHA core. Memory/note codecs and simulated two-copy fault + transactions. Compare independently produced golden bytes. Never equate SHA + with keyed authentication or rollback freshness. +5. Code rows, scene/state and native buffer rendering receipts. Record limits of + full visual equivalence and device integration. +6. Fresh source replay, behavioral mutants, strict repository gate, hashes and + committed evidence closure. Push exact branch and verify remote. WIP until + target gates; do not close L694. diff --git a/docs/superpowers/plans/2026-10-23-allen-portable-build.md b/docs/superpowers/plans/2026-10-23-allen-portable-build.md new file mode 100644 index 00000000..b623a987 --- /dev/null +++ b/docs/superpowers/plans/2026-10-23-allen-portable-build.md @@ -0,0 +1,21 @@ +# Allen portable seeded build + +This continues the existing Alpha delivery contract in `native/omega/allen/ALPHA.md`. +It removes one acquisition blocker, not the unfinished hosted/iMac qualification. + +1. Reproduce the private compiler-path dependency with the real pinned compiler + copied to a fresh directory. Add build-orchestration checks for a changed + compiler, invalid source, existing output and dangling output links. +2. Let `build-one.sh` select `OMEGA_COMPILER`, defaulting to the repository-local + `build/allen-toolchain/build/bootstrap/omc`. Retain the fixed compiler digest. + Publish an executable only after successful compilation and ELF inspection; + never replace an existing output, including a dangling link. +3. Document source-only reconstruction of omega-bridge commit + `0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9`. Rebuild from its Git archive and + verify the existing compiler digest before executing the complete Allen gate + from a clean source export outside the developer checkout. +4. Record actual results and remaining launch gates. Push the tested candidate + through the existing publication desk; do not label this a public alpha. + +No compiler implementation, product runtime, identity, memory or service changes. +Shell remains external build/test orchestration; all compiled probes are Omega. diff --git a/docs/superpowers/specs/2026-10-23-allen-omega-design.md b/docs/superpowers/specs/2026-10-23-allen-omega-design.md new file mode 100644 index 00000000..27227490 --- /dev/null +++ b/docs/superpowers/specs/2026-10-23-allen-omega-design.md @@ -0,0 +1,45 @@ +# L694 Allen Omega contract freeze (WIP) + +Approved authority: /home/drakestapleton/handoffs/briefs/L694-allen-omega.md. +Baseline da55660ea7337f2b6a42095fcd1fb6ddebe1cc7c. No master sequencing change. + +All new implementation and test programs are handwritten seeded Omega. Shell, +Git, sed, cat, sha256sum, readelf and quiet-build are external development tools. +No foreign runtime, generated C, compiler edits, service changes or deployment. + +## Contract and source map + +* svc/allen_intent.c: JOB/SAY/WAIT, code and code-more vs ordinary model chat. +* x86/kmain_x86.c code_request/courier_step: one outstanding job, immediate code + acknowledgment, stale sequence rejection, 20s slow and 30s silence timeout. +* svc/allen_code.c: 32768 bytes, 128-byte pieces, 256 slots, IEEE CRC32, 800 + lines, escaped newline/backslash. Complete code alone becomes displayable. +* x86/courier_udp{.h,_x86.c}: ALLEN-COURIER v=1, 16 lowercase hex session, + 1000-byte JOB pieces, 4096-byte job; ordered LINE delivery, duplicate GOT, + wrong-session refusal. Protocol core only; no socket attachment. +* svc/allen_memory.c: AIENALM1, versions 2/3/4; payload 40 + 113*nfacts + + (v>=3 ? 24 : 0) + (v>=4 ? 12 : 0). Header64, generation64 at16, + SHA256(header[0:32] || payload), zero header24:32 and trailing unit bytes. + Facts32 maximum, notes512. AIENNOT1 note length1..127; index, start, gone. + Two-copy save writes older, flushes, reads back, then publishes generation. +* svc/allen_scene.h, docs/ALLEN_CANVAS.md and ui/allen_ui.c: bounded scene, + calm sky/presence, no traditional desktop; code row wrapping and scrolling. + +## Boundary and intentional changes + +Fixed pools, explicit lengths, no pointer/heap/OS provider. Runtime caller supplies +monotonic milliseconds and session; identity remains Allen unless restored. +Overflow rejects whole operation rather than silently truncating user/model text. +Request IDs never reused across reset. Duplicate conflicting pieces rejected; +malformed numeric overflow rejected. No checksum claimed to authenticate a sender. +Disk tests use fixed buffers and injected failures, never a physical disk. SHA +integrity, keyed authorization, and freshness are independent; latter two are +unimplemented here and are never inferred from a successful SHA check. + +## Required unclosed gates + +Full legacy semantic/UI equivalence, transcript persistence, qualified native +provider integration, x86 EFI image, MMIO/interrupt/keyboard/framebuffer/disk/NIC, +iMac QEMU chat/keyboard/bootdisk and signed physical trial. Seed compiler currently +emits Linux AArch64 only. FR1/8/9/16 remain with L408; no C bridge may satisfy them. +Hermes JSON/WebSocket/admission belongs to L690 and is not reimplemented here. diff --git a/docs/superpowers/specs/2026-10-23-allen-omega-platform-gates.md b/docs/superpowers/specs/2026-10-23-allen-omega-platform-gates.md new file mode 100644 index 00000000..7630e503 --- /dev/null +++ b/docs/superpowers/specs/2026-10-23-allen-omega-platform-gates.md @@ -0,0 +1,31 @@ +# L694 required provider handoff, WIP + +No new compiler request or owner. Existing FR1/8/9/16 stay with L408. +L690's gateway implementation is untouched. No deployment is authorized here. + +Verified immutable compiler source at omega-bridge-native-development +0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9, seed/omc/omc.om: +vs_fd/vs_arr/vs_off/vs_end implement Linux read/write, main startup exits via93; +elfhdr fixes ELF AArch64 and program headers. No x86/EFI codegen, MMIO, +interrupt, disk, socket or clock API is present at this checkpoint. This is an +inspection of the actual pinned compiler, not an inference from an old roadmap. +The fresh source-native bootstrap reproduces hash191b776e. There are no compiler +edits here and no foreign wrapper may substitute for the missing target. + +| Existing dependency | Actual L694 entry/state to bind | Smallest qualification receipt needed | +| --- | --- | --- | +| FR9 x86 EFI/native target | same handwritten runtime/probe and tests | Source-only compiler pin produces nonempty PE32+ AMD64 EFI image with inspected headers, native marker in isolated iMac QEMU; then same behavioral gates on that target. Current ELF is not EFI. | +| FR8 privileged/device interfaces | Frame192x128, render/glow; start/heard/tick milliseconds | Native typed MMIO/port/IRQ/monotonic interface with bounds/refusals; keyboard event changes Prompt, frame buffer observes native pixels, monotonic timeout test. No C/asm wrapper to count as Omega product implementation. | +| FR1 durable storage provider | Enc4096, Unit4096; Tx target/generation, txwrite/txflush/txread; nwrite/nflush/nread | Native block read/write/flush on isolated disposable simulated/QEMU disk,512B and4KB geometry, fault at each phase, restart chooses valid newest; old copy bytes unchanged. Hash integrity, keyed authorization and anti-rollback each report separately. | +| FR16 bounded transport | In/Inlen, packet Outb/Outlen, qreceive/qtake | Immutable native socket/readiness/close API, isolated loopback recorded datagrams, partial writes/reads, EOF/error/timeout, malformed and session mismatch. No production endpoint. | +| iMac execution | cohesive runtime plus qualified providers | Existing iMac QEMU boot/chat/keyboard/bootdisk gates with complete Omega execution closure; then parent-signed physical trial. All remain NOT_RUN. | + +Exact provider API names are not invented here: no qualified interface for these +features is supplied by the pinned compiler. The owner must hand off its actual +immutable signatures and executable receipts. L694's fixed-pool entry points +above define the consumer side, not an alternate socket or driver implementation. + +Independent portable work remains in native/omega/allen/README.md. In particular, +a component render is not full visual parity and state restoration is not actual +durable transcript continuity. These are implementation gaps beyond platform +blocking and must remain visible to the parent. L694 is not closed or READY. diff --git a/evidence/allen-omega-L694/CLOSURE.md b/evidence/allen-omega-L694/CLOSURE.md new file mode 100644 index 00000000..fe056a16 --- /dev/null +++ b/evidence/allen-omega-L694/CLOSURE.md @@ -0,0 +1,46 @@ +# Immutable-source acceptance closure, WIP + +Implementation source commit: a19ed49 (full ID in handoff). +Reconstructed through `git archive a19ed49 native/omega/allen` plus committed +wire/stdio fixtures into fresh target/allen-omega-L694/immutable-source. +No inherited binary or receipt was treated as fresh acceptance. + +Executed command: + +```sh +quiet-build target/allen-omega-L694/immutable-source/native/omega/allen/gate.sh \ + /home/drakestapleton/handoffs/allen-omega-L694/build/final-native1 +``` + +Exit0. All13 test/render/fixture programs and the standalone Allen executable +compile successfully to nonempty static Linux AArch64 ELF before execution. +879 native behavioral checks,0 failed. Memory golden comparison0; stdio golden +comparison0; actual native rendering exit0. Five compiled mutants fail the original +gates with exits3/2/2/7/1. final/ contains exact per-check outputs and SHA256s of +all executable and source inputs. source-closure.log verifies the archived inputs +also match the current implementation. No code changed after source commit. + +Source-only compiler bootstrap at pinned bridge0fc7d866 succeeds, exit0, +stage1==stage2 and supplied compiler hash==rebuilt hash191b776e. bootstrap.log and +compiler.sha256 preserve the result. Shell/readelf/hash tools are external tools, +not a product runtime or a compiler implementation fallback. + +Strict repository verification exit101: four unchanged Rust courier tests require +loopback sockets prohibited by the sandbox. Formatting passed. Separate +`cargo clippy --offline --all-targets -- -D warnings` exit0, zero warnings. +Strict suite is FAIL, not waived, not an Omega gate. + +Publishing: original worktree Git metadata cannot be written under managed +permissions. A bare publication metadata directory was initialized in the permitted +handoff root from the baseline, using the existing worktree as its explicit +--work-tree. No second worktree or worker was created. Implementation commit and +closure commit are recorded there on feat/allen-omega-L694. Origin is the original +`git@github.com:aien-dev/aienux.git`. Push exit128 because github.com does not +resolve; push.log preserves it. Remote exact hash verification is unavailable. +A prerequisite-based Git bundle permits parent publication without rewriting the +implementation. No PR, merge, issue closure, service or deployment action occurred. + +Required target and remaining portable gates: +[provider handoff](../../docs/superpowers/specs/2026-10-23-allen-omega-platform-gates.md), +[module limits](../../native/omega/allen/README.md). Verdict WIP / TARGET NOT_RUN / +REMOTE PUBLICATION BLOCKED. This is neither whole Allen replacement nor live. diff --git a/evidence/allen-omega-L694/L722/L719-original-review.md b/evidence/allen-omega-L694/L722/L719-original-review.md new file mode 100644 index 00000000..2e45d9b5 --- /dev/null +++ b/evidence/allen-omega-L694/L722/L719-original-review.md @@ -0,0 +1,17 @@ +# L719 independent review — L694 native Allen milestone + +**Reviewed source:** `8049f5ddbfb3284498e54ed582768a399dcc99d5` (baseline `da55660ea7337f2b6a42095fcd1fb6ddebe1cc7c`). Exported the source/docs and committed evidence into private `~/handoffs/L719-review`; production/source/worktree and ledgers were not modified. Pinned compiler SHA-256 verified as `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`. + +## Finding + +**Medium — oversized stdio command lines are silently discarded instead of refused.** `native/omega/allen/main.om:135-140` sets `Lstate[1]` when the 8192-byte line buffer fills, but on newline `main.om:123-133` takes the `else` branch, clears the overflow flag and line length, and continues without reporting an error or terminating. This contradicts the stated whole-operation overflow refusal (`native/omega/allen/README.md:66-70`) at the actual standalone integration boundary. + +**Reproduction:** compiled the unmodified concatenated Omega core + `main.om` using the pinned compiler via `build-one.sh`; nonempty static AArch64 ELF check passed. Fed `ASK ` + 8189 `x` bytes (8193-byte line, one byte beyond the 8192-byte line buffer) + newline, then `ASK hi\n`. The process exited `0`, stderr was empty, and stdout was 473 bytes containing a `JOB 1 chat ...` packet ending with `the person said something in passing.\thi\n`. Thus the oversized first line was silently skipped and the next command was processed; the caller receives no refusal/error for the dropped command. Probe ELF SHA-256: `c22923a20f4bd9f30a3bc8e51544b10533a7c0a20bc65856a107a163362312e8`; stdout SHA-256: `52777ab25b070876095242a799846ece3098d472751e98e33c0eac18ffaa9477`; stderr SHA-256: `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`. Probe artifacts are under `~/handoffs/L719-review/probe-output/`. + +## Evidence checked / limits + +- `evidence/allen-omega-L694/CLOSURE.md` says the exact immutable replay compiled 13 Omega test/render/fixture programs plus standalone Allen, ran 879 checks, compared the 4096-byte memory golden, and exercised five compiled behavioral mutants. The committed per-test logs have the claimed line counts (runtime 28, CODE 23, courier 24, memory 79, edges 352, short 20, long 292); `final-replay.log` records the same mutant exits and `target=NOT_RUN; live=NOT_RUN`. +- The gate does not test stdio overflow: `gate.sh:33-37` exercises only the canned `stdio-input.txt` and compares its two golden outputs. `main.om` is separately compiled and run in that path, but has no direct oversized-line case in the committed test sources. +- Known missing iMac/provider/UI/scene parity and non-qualification are explicitly disclosed in the README/design/platform gates and are not reported as newly discovered defects. I did not rerun the parent-owned broad gate or alter any production files. + +**Disposition:** one concrete boundary defect reproduced; no conclusion of full Allen qualification. Target, live attachment, iMac/platform parity, and the broader strict suite remain outside this review's verified scope (the saved closure separately records four sandbox-denied socket tests in the strict Rust suite). diff --git a/evidence/allen-omega-L694/L722/README.md b/evidence/allen-omega-L694/L722/README.md new file mode 100644 index 00000000..14410c6b --- /dev/null +++ b/evidence/allen-omega-L694/L722/README.md @@ -0,0 +1,5 @@ +# L722 correction of L719 stdio overflow + +Original8049f5d executable received an Omega-generated8201-byte input:8193-byte ASK line, newline, valid ASK hi. Actual RED exit0 with473 stdout bytes proves silent loss and subsequent job execution. After correction the standalone input loop returns65 as soon as a byte exceeds capacity; subsequent commands are not dispatched. The public gate requires exit65 and both outputs empty. All879 existing native checks and5 compiled behavioral mutants still pass their original expectations, memory and stdio goldens unchanged. Review source and reproduction are retained, not replaced by a no-findings claim. + +Independent corrective review pending. Whole portability/full repository/iMac acceptance remains open. diff --git a/evidence/allen-omega-L694/L722/binaries.sha256 b/evidence/allen-omega-L694/L722/binaries.sha256 new file mode 100644 index 00000000..b2fd7b35 --- /dev/null +++ b/evidence/allen-omega-L694/L722/binaries.sha256 @@ -0,0 +1,20 @@ +da36a1ca8ceb536ad5e831560c10ef2f4e995e256f9525fb256470109d840810 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/readback-mutant +798543784942f29bc405e5a560a73ec50025553d5190f0d00fc59aa8e5376c69 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/view +be4ff5265e6e46962c9a35008bcf8a9127c7d9fbcc00db58f9a40c8a4008fb5d /home/drakestapleton/handoffs/allen-omega-L694/L722/green/allen +ac0bc89319605462156184f3f39e62e7cc12e2748d8feb3d39c80e91d383dbef /home/drakestapleton/handoffs/allen-omega-L694/L722/green/reply +f75db42bc8ee80899ccfda45022a6be3d80c439922edd6c36eee2c36de30ffec /home/drakestapleton/handoffs/allen-omega-L694/L722/green/hash-mutant +0039a6d288e11ec70b12b1af15909bb308c6b72f08cb39c51fe06aad245e2690 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/golden +d3ed86f446ac73fc813f8cb905e0fa30e8fc26d9984c3e47ced86424690fc3d9 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/session-mutant +bb17eefbb058191b0669ab15529051c5de99e0f25448e05501d8fc7f9532b3af /home/drakestapleton/handoffs/allen-omega-L694/L722/green/intent +9bbf95a44321be8d57043d5daa68f4945d2eac63be7e5befa260db79a6defea8 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/fixture +52f05863a960da4e021bae3eecb161792663ce3dfcc701a685a9f93b65570ff7 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/runtime +b6d231c1a1b1cb2fcdea6fcbbc3419aa5aec92ff9fc9984d261dcbc26943b737 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/code +d30797bb341012516081fb6620ec21c6e3f428194ab9968b2181f8074786eba6 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/edges +87676023c7d49e5ea9346f84c71aed4511046bd29f76ed91eea3fd727660ad8d /home/drakestapleton/handoffs/allen-omega-L694/L722/green/render +7391168db6c88324a04881498ad7b671fd306226921e050d9777e090d0e6cc6e /home/drakestapleton/handoffs/allen-omega-L694/L722/green/stale-mutant +3031d8376ce13d13b8ff55005600e36caf14ac4a59362611f2f5aefd639fe238 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/courier +44601a3b526c1e799b908342454f1fd3992ac70b83a396a04f2daef8e06ef21c /home/drakestapleton/handoffs/allen-omega-L694/L722/green/scene +fd080b24d5b5833f70237e966c4bc8688dc4aadba8486b739dc7694fcaf99f6d /home/drakestapleton/handoffs/allen-omega-L694/L722/green/paint +0e1de4f532b286d8a0fe320bb9b9d61a0724b545e65d27e1fc43e497fac2ec7f /home/drakestapleton/handoffs/allen-omega-L694/L722/green/crc-mutant +71f99242bcad6ede239b240602470fcf3d5da3267eb47a1ad522241958222367 /home/drakestapleton/handoffs/allen-omega-L694/L722/green/stdio-overflow-input +1a210071b068ef5e527dc66651ab635c53971add8b9cfab09c2fdff2290ff6dd /home/drakestapleton/handoffs/allen-omega-L694/L722/green/memory diff --git a/evidence/allen-omega-L694/L722/code.log b/evidence/allen-omega-L694/L722/code.log new file mode 100644 index 00000000..e7e197b7 --- /dev/null +++ b/evidence/allen-omega-L694/L722/code.log @@ -0,0 +1,23 @@ +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 diff --git a/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.in b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.in new file mode 100644 index 00000000..a4f3dd77 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.in @@ -0,0 +1,2 @@ +ASK xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +ASK hi diff --git a/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.om b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.om new file mode 100644 index 00000000..9a0fc255 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.om @@ -0,0 +1,29 @@ +note L723 independent exact-capacity command followed by valid positive control. +global Bytes uchar 8192 +text Tail "\nASK hi\n" +fn main to int +for i ulong len Bytes +put Bytes i 120 +end +put Bytes 0 65 +put Bytes 1 83 +put Bytes 2 75 +put Bytes 3 32 +sent = ulong 0 +while lt sent len Bytes +n = write 1 Bytes sent sub len Bytes sent +if le n 0 +ret 2 +end +sent = add sent ulong n +end +sent = ulong 0 +while lt sent len Tail +n = write 1 Tail sent sub len Tail sent +if le n 0 +ret 2 +end +sent = add sent ulong n +end +ret 0 +end diff --git a/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.stderr b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.stdout b/evidence/allen-omega-L694/L722/corrective-review/exact-boundary.stdout new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/overflow.in b/evidence/allen-omega-L694/L722/corrective-review/overflow.in new file mode 100644 index 00000000..6103faf0 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/overflow.in @@ -0,0 +1,2 @@ +ASK xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +ASK hi diff --git a/evidence/allen-omega-L694/L722/corrective-review/overflow.stderr b/evidence/allen-omega-L694/L722/corrective-review/overflow.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/overflow.stdout b/evidence/allen-omega-L694/L722/corrective-review/overflow.stdout new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.in b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.in new file mode 100644 index 00000000..b21a8d65 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.in @@ -0,0 +1 @@ +ASK xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \ No newline at end of file diff --git a/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.om b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.om new file mode 100644 index 00000000..7de23b0e --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.om @@ -0,0 +1,20 @@ +note L723 independent over-capacity line terminated by EOF, no newline. +global Bytes uchar 8193 +fn main to int +for i ulong len Bytes +put Bytes i 120 +end +put Bytes 0 65 +put Bytes 1 83 +put Bytes 2 75 +put Bytes 3 32 +sent = ulong 0 +while lt sent len Bytes +n = write 1 Bytes sent sub len Bytes sent +if le n 0 +ret 2 +end +sent = add sent ulong n +end +ret 0 +end diff --git a/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.stderr b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.stdout b/evidence/allen-omega-L694/L722/corrective-review/oversize-eof.stdout new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/corrective-review/parent-verification.json b/evidence/allen-omega-L694/L722/corrective-review/parent-verification.json new file mode 100644 index 00000000..fe4bb353 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/parent-verification.json @@ -0,0 +1,29 @@ +{ + "source": "13d02ab4b7145579f6d3faa53442167bfcdcd7bc", + "source_closure_match": true, + "binary_sha256": "be4ff5265e6e46962c9a35008bcf8a9127c7d9fbcc00db58f9a40c8a4008fb5d", + "probes": { + "overflow": { + "exit": 65, + "stdout_bytes": 0, + "stderr_bytes": 0, + "input_bytes": 8201 + }, + "oversize-eof": { + "exit": 65, + "stdout_bytes": 0, + "stderr_bytes": 0, + "input_bytes": 8193 + }, + "exact-boundary": { + "exit": 65, + "stdout_bytes": 0, + "stderr_bytes": 0, + "input_bytes": 8200 + }, + "positive": { + "exit": 0, + "golden_cmp": 0 + } + } +} diff --git a/evidence/allen-omega-L694/L722/corrective-review/positive.stderr b/evidence/allen-omega-L694/L722/corrective-review/positive.stderr new file mode 100644 index 00000000..7d40356d --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/positive.stderr @@ -0,0 +1,2 @@ +I need to code that. Let me send it off to the Spark. +Code ready. diff --git a/evidence/allen-omega-L694/L722/corrective-review/positive.stdout b/evidence/allen-omega-L694/L722/corrective-review/positive.stdout new file mode 100644 index 00000000..db964ea1 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/positive.stdout @@ -0,0 +1 @@ +JOB 1 code the person asked Allen for code. make me a calculator diff --git a/evidence/allen-omega-L694/L722/corrective-review/report.md b/evidence/allen-omega-L694/L722/corrective-review/report.md new file mode 100644 index 00000000..cddafe43 --- /dev/null +++ b/evidence/allen-omega-L694/L722/corrective-review/report.md @@ -0,0 +1,19 @@ +# L723 independent corrective review — L722 stdio overflow + +**Result: no findings in the scoped correction.** Reviewed exact commit `13d02ab4b7145579f6d3faa53442167bfcdcd7bc` against parent `7f4cb7aa54164f71e2e26b0b834119af3e3839e5`. Checkout was clean and at the requested commit. The runtime change replaces the overflow-flag set with immediate status `65`; therefore neither newline handling nor any subsequent command can clear the condition and continue dispatching. The gate adds a generated 8193-byte command followed by `ASK hi`, requiring status 65 and empty stdout/stderr. No unrelated behavior or production files were changed in this review. + +## Independent rebuild and probes + +Rebuilt standalone `main.om` plus the exact pinned core at commit source with pinned `omc` SHA-256 `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`. `build-one.sh` succeeded; ELF was static AArch64 EXEC. Rebuilt executable SHA-256: `be4ff5265e6e46962c9a35008bcf8a9127c7d9fbcc00db58f9a40c8a4008fb5d`. + +- **8193-byte line + newline + later valid command:** independently compiled the committed Omega input generator and ran it through the rebuilt executable. Input was 8201 bytes total; process returned `65`, stdout `0` bytes, stderr `0` bytes. The later `ASK hi` was not dispatched. +- **8193-byte line ending at EOF (no newline):** independently authored/compiled an Omega generator. Input was 8193 bytes; process returned `65`, stdout/stderr each `0` bytes. +- **8192-byte line boundary, followed by newline and valid command:** independently authored/compiled an Omega generator. Input was 8200 bytes and spans the runtime's 8192-byte read buffer boundary. Process returned `65`, stdout/stderr each `0` bytes. This establishes refusal at the exact-size line boundary case, but does not distinguish overflow detection from downstream refusal of the extremely long `ASK` payload; no stronger interpretation is claimed. +- **Positive control:** ran the established valid stdio fixture through the rebuilt executable; returned `0` and stdout/stderr matched their committed goldens byte-for-byte (`cmp` passed). + +The first two overflow cases directly exercise the immediate-return branch, including a subsequent command in the newline case. Exact-source broad suite was not duplicated; parent brief records its existing 879-check/five-mutant run. No iMac, target, live-service, or full qualification claim is made. + +## Artifacts + +Review report: `~/handoffs/L723-review/report.md`. +Independent sources, generated fixtures, rebuilt executable, and captured outputs: `~/handoffs/L723-review/rebuild/`. These are review artifacts only; no source-tree edits were made. diff --git a/evidence/allen-omega-L694/L722/courier.log b/evidence/allen-omega-L694/L722/courier.log new file mode 100644 index 00000000..8402df49 --- /dev/null +++ b/evidence/allen-omega-L694/L722/courier.log @@ -0,0 +1,24 @@ +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 +214 0 +215 0 +216 0 +217 0 +218 0 +219 0 +220 0 +221 0 +222 0 +223 0 +224 0 diff --git a/evidence/allen-omega-L694/L722/edges.log b/evidence/allen-omega-L694/L722/edges.log new file mode 100644 index 00000000..e8d0deea --- /dev/null +++ b/evidence/allen-omega-L694/L722/edges.log @@ -0,0 +1,352 @@ +1201 0 +1202 0 +1203 0 +1204 0 +1205 0 +1206 0 +1207 0 +1208 0 +1209 0 +1210 0 +1211 0 +1212 0 +1213 0 +1214 0 +1220 0 +1221 0 +1222 0 +1223 0 +1224 0 +1225 0 +1226 0 +1227 0 +1228 0 +1229 0 +1230 0 +1231 0 +1232 0 +1233 0 +1234 0 +1235 0 +1236 0 +1237 0 +1238 0 +1239 0 +1240 0 +1241 0 +1242 0 +1243 0 +1244 0 +1245 0 +1246 0 +1247 0 +1248 0 +1249 0 +1250 0 +1251 0 +1252 0 +1253 0 +1254 0 +1255 0 +1256 0 +1257 0 +1258 0 +1259 0 +1260 0 +1261 0 +1262 0 +1301 0 +1302 0 +1303 0 +1304 0 +1305 0 +1306 0 +1310 0 +1311 0 +1312 0 +1313 0 +1314 0 +1315 0 +1316 0 +1317 0 +1318 0 +1319 0 +1320 0 +1321 0 +1322 0 +1323 0 +1324 0 +1325 0 +1326 0 +1327 0 +1328 0 +1329 0 +1330 0 +1331 0 +1332 0 +1333 0 +1334 0 +1335 0 +1336 0 +1337 0 +1338 0 +1339 0 +1340 0 +1341 0 +1342 0 +1343 0 +1344 0 +1345 0 +1346 0 +1347 0 +1348 0 +1349 0 +1350 0 +1351 0 +1352 0 +1353 0 +1354 0 +1355 0 +1356 0 +1357 0 +1358 0 +1359 0 +1360 0 +1361 0 +1362 0 +1363 0 +1364 0 +1365 0 +1366 0 +1367 0 +1368 0 +1369 0 +1370 0 +1371 0 +1372 0 +1373 0 +1374 0 +1375 0 +1376 0 +1377 0 +1378 0 +1379 0 +1380 0 +1381 0 +1382 0 +1383 0 +1384 0 +1385 0 +1386 0 +1387 0 +1388 0 +1389 0 +1390 0 +1391 0 +1392 0 +1393 0 +1394 0 +1395 0 +1396 0 +1397 0 +1398 0 +1399 0 +1400 0 +1401 0 +1402 0 +1403 0 +1404 0 +1405 0 +1406 0 +1407 0 +1408 0 +1409 0 +1410 0 +1411 0 +1412 0 +1413 0 +1414 0 +1415 0 +1416 0 +1417 0 +1418 0 +1419 0 +1420 0 +1421 0 +1422 0 +1423 0 +1424 0 +1425 0 +1426 0 +1427 0 +1428 0 +1429 0 +1430 0 +1431 0 +1432 0 +1433 0 +1434 0 +1435 0 +1436 0 +1437 0 +1438 0 +1439 0 +1440 0 +1441 0 +1442 0 +1443 0 +1444 0 +1445 0 +1446 0 +1447 0 +1448 0 +1449 0 +1450 0 +1451 0 +1452 0 +1453 0 +1454 0 +1455 0 +1456 0 +1457 0 +1458 0 +1459 0 +1460 0 +1461 0 +1462 0 +1463 0 +1464 0 +1465 0 +1466 0 +1467 0 +1468 0 +1469 0 +1470 0 +1471 0 +1472 0 +1473 0 +1474 0 +1475 0 +1476 0 +1477 0 +1478 0 +1479 0 +1480 0 +1481 0 +1482 0 +1483 0 +1484 0 +1485 0 +1486 0 +1487 0 +1488 0 +1489 0 +1490 0 +1491 0 +1492 0 +1493 0 +1494 0 +1495 0 +1496 0 +1497 0 +1498 0 +1499 0 +1500 0 +1501 0 +1502 0 +1503 0 +1504 0 +1505 0 +1506 0 +1507 0 +1508 0 +1509 0 +1510 0 +1511 0 +1512 0 +1513 0 +1514 0 +1515 0 +1516 0 +1517 0 +1518 0 +1519 0 +1520 0 +1521 0 +1522 0 +1523 0 +1524 0 +1525 0 +1526 0 +1527 0 +1528 0 +1529 0 +1530 0 +1531 0 +1532 0 +1533 0 +1534 0 +1535 0 +1536 0 +1537 0 +1538 0 +1539 0 +1540 0 +1541 0 +1542 0 +1543 0 +1544 0 +1545 0 +1546 0 +1547 0 +1548 0 +1549 0 +1550 0 +1551 0 +1552 0 +1553 0 +1554 0 +1555 0 +1556 0 +1557 0 +1558 0 +1559 0 +1560 0 +1561 0 +1562 0 +1563 0 +1564 0 +1565 0 +1570 0 +1571 0 +1572 0 +1575 0 +1573 0 +1574 0 +1600 0 +1601 0 +1602 0 +1603 0 +1604 0 +1605 0 +1606 0 +1607 0 +1610 0 +1611 0 +1612 0 +1613 0 +1614 0 +1615 0 +1616 0 +1617 0 +1701 0 +1702 0 +1703 0 +1704 0 +1705 0 +1706 0 +1707 0 +1708 0 +1709 0 +1710 0 +1711 0 diff --git a/evidence/allen-omega-L694/L722/green.exit b/evidence/allen-omega-L694/L722/green.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L722/green.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L722/green.log b/evidence/allen-omega-L694/L722/green.log new file mode 100644 index 00000000..d6630414 --- /dev/null +++ b/evidence/allen-omega-L694/L722/green.log @@ -0,0 +1,21 @@ +runtime compile=0 native-exit=0 +code compile=0 native-exit=0 +courier compile=0 native-exit=0 +memory compile=0 native-exit=0 +intent compile=0 native-exit=0 +reply compile=0 native-exit=0 +view compile=0 native-exit=0 +scene compile=0 native-exit=0 +paint compile=0 native-exit=0 +edges compile=0 native-exit=0 +fixture compile=0 native-exit=0 +golden compile=0 native-exit=0 +render compile=0 native-exit=0 +stdio native-exit=0 golden-cmp=0 +stdio overflow native-exit=65 no-later-command=PASS +stale mutant compile=0 rejected-exit=3 +crc mutant compile=0 rejected-exit=2 +hash mutant compile=0 rejected-exit=2 +readback mutant compile=0 rejected-exit=7 +session mutant compile=0 rejected-exit=1 +ALLEN_OMEGA_HOST: PASS; target=NOT_RUN; live=NOT_RUN diff --git a/evidence/allen-omega-L694/L722/input.txt b/evidence/allen-omega-L694/L722/input.txt new file mode 100644 index 00000000..6103faf0 --- /dev/null +++ b/evidence/allen-omega-L694/L722/input.txt @@ -0,0 +1,2 @@ +ASK xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +ASK hi diff --git a/evidence/allen-omega-L694/L722/intent.log b/evidence/allen-omega-L694/L722/intent.log new file mode 100644 index 00000000..5371bd36 --- /dev/null +++ b/evidence/allen-omega-L694/L722/intent.log @@ -0,0 +1,8 @@ +501 0 +502 0 +503 0 +504 0 +505 0 +506 0 +507 0 +508 0 diff --git a/evidence/allen-omega-L694/L722/long.log b/evidence/allen-omega-L694/L722/long.log new file mode 100644 index 00000000..0a060bc8 --- /dev/null +++ b/evidence/allen-omega-L694/L722/long.log @@ -0,0 +1,292 @@ +401 0 +410 0 +411 0 +412 0 +413 0 +414 0 +415 0 +416 0 +417 0 +418 0 +419 0 +420 0 +421 0 +422 0 +423 0 +424 0 +425 0 +426 0 +427 0 +428 0 +429 0 +430 0 +431 0 +432 0 +433 0 +434 0 +435 0 +436 0 +437 0 +438 0 +439 0 +440 0 +441 0 +442 0 +443 0 +444 0 +445 0 +446 0 +447 0 +448 0 +449 0 +450 0 +451 0 +452 0 +453 0 +454 0 +455 0 +456 0 +457 0 +458 0 +459 0 +460 0 +461 0 +462 0 +463 0 +464 0 +465 0 +466 0 +467 0 +468 0 +469 0 +470 0 +471 0 +472 0 +473 0 +474 0 +475 0 +476 0 +477 0 +478 0 +479 0 +480 0 +481 0 +482 0 +483 0 +484 0 +485 0 +486 0 +487 0 +488 0 +489 0 +490 0 +491 0 +492 0 +493 0 +494 0 +495 0 +496 0 +497 0 +498 0 +499 0 +500 0 +501 0 +502 0 +503 0 +504 0 +505 0 +506 0 +507 0 +508 0 +509 0 +510 0 +511 0 +512 0 +513 0 +514 0 +515 0 +516 0 +517 0 +518 0 +519 0 +520 0 +521 0 +522 0 +523 0 +524 0 +525 0 +526 0 +527 0 +528 0 +529 0 +530 0 +531 0 +532 0 +533 0 +534 0 +535 0 +536 0 +537 0 +538 0 +539 0 +540 0 +541 0 +542 0 +543 0 +544 0 +545 0 +546 0 +547 0 +548 0 +549 0 +550 0 +402 0 +403 0 +404 0 +405 0 +406 0 +700 0 +701 0 +702 0 +703 0 +704 0 +705 0 +706 0 +707 0 +708 0 +709 0 +710 0 +711 0 +712 0 +713 0 +714 0 +715 0 +716 0 +717 0 +718 0 +719 0 +720 0 +721 0 +722 0 +723 0 +724 0 +725 0 +726 0 +727 0 +728 0 +729 0 +730 0 +731 0 +732 0 +733 0 +734 0 +735 0 +736 0 +737 0 +738 0 +739 0 +740 0 +741 0 +742 0 +743 0 +744 0 +745 0 +746 0 +747 0 +748 0 +749 0 +750 0 +751 0 +752 0 +753 0 +754 0 +755 0 +756 0 +757 0 +758 0 +759 0 +760 0 +761 0 +762 0 +763 0 +764 0 +765 0 +766 0 +767 0 +768 0 +769 0 +770 0 +771 0 +772 0 +773 0 +774 0 +775 0 +776 0 +777 0 +778 0 +779 0 +780 0 +781 0 +782 0 +783 0 +784 0 +785 0 +786 0 +787 0 +788 0 +789 0 +790 0 +791 0 +792 0 +793 0 +794 0 +795 0 +796 0 +797 0 +798 0 +799 0 +800 0 +801 0 +802 0 +803 0 +804 0 +805 0 +806 0 +807 0 +808 0 +809 0 +810 0 +811 0 +812 0 +813 0 +814 0 +815 0 +816 0 +817 0 +818 0 +819 0 +820 0 +821 0 +822 0 +823 0 +824 0 +825 0 +826 0 +827 0 +828 0 +829 0 +830 0 +831 0 +832 0 +833 0 +834 0 +835 0 +836 0 +837 0 +838 0 +839 0 +840 0 +841 0 +407 0 +408 0 +409 0 diff --git a/evidence/allen-omega-L694/L722/memory.log b/evidence/allen-omega-L694/L722/memory.log new file mode 100644 index 00000000..5928102e --- /dev/null +++ b/evidence/allen-omega-L694/L722/memory.log @@ -0,0 +1,79 @@ +301 0 +302 0 +303 0 +304 0 +305 0 +306 0 +307 0 +308 0 +309 0 +310 0 +311 0 +312 0 +313 0 +314 0 +315 0 +316 0 +317 0 +318 0 +319 0 +320 0 +321 0 +322 0 +323 0 +324 0 +325 0 +326 0 +327 0 +328 0 +329 0 +330 0 +331 0 +332 0 +333 0 +334 0 +335 0 +336 0 +337 0 +338 0 +339 0 +340 0 +341 0 +342 0 +343 0 +344 0 +345 0 +346 0 +347 0 +348 0 +349 0 +350 0 +351 0 +352 0 +362 0 +363 0 +353 0 +354 0 +355 0 +356 0 +357 0 +358 0 +359 0 +360 0 +364 0 +365 0 +366 0 +367 0 +368 0 +369 0 +370 0 +371 0 +372 0 +373 0 +374 0 +375 0 +376 0 +377 0 +378 0 +379 0 +361 0 diff --git a/evidence/allen-omega-L694/L722/paint.log b/evidence/allen-omega-L694/L722/paint.log new file mode 100644 index 00000000..281a5bd2 --- /dev/null +++ b/evidence/allen-omega-L694/L722/paint.log @@ -0,0 +1,11 @@ +1101 0 +1102 0 +1103 0 +1104 0 +1105 0 +1106 0 +1107 0 +1108 0 +1109 0 +1110 0 +1111 0 diff --git a/evidence/allen-omega-L694/L722/red.exit b/evidence/allen-omega-L694/L722/red.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L722/red.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L722/red.stderr b/evidence/allen-omega-L694/L722/red.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/red.stdout b/evidence/allen-omega-L694/L722/red.stdout new file mode 100644 index 00000000..a44ca483 --- /dev/null +++ b/evidence/allen-omega-L694/L722/red.stdout @@ -0,0 +1 @@ +JOB 1 chat You are the far hands of Allen, a quiet presence living in AIENOS on the person's computer. You answer as Allen; the person sees only your words, as if Allen said them. Plain English, short sentences, no headings, no lists, no greetings, no apologies. Plain letters and punctuation only: no dashes, no curly quotes, no symbols. Never mention a model, a prompt or instructions. the person said something in passing. Answer in one or two warm, plain sentences. hi diff --git a/evidence/allen-omega-L694/L722/reply.log b/evidence/allen-omega-L694/L722/reply.log new file mode 100644 index 00000000..d11a72ad --- /dev/null +++ b/evidence/allen-omega-L694/L722/reply.log @@ -0,0 +1,15 @@ +801 0 +802 0 +803 0 +804 0 +805 0 +806 0 +807 0 +808 0 +809 0 +810 0 +811 0 +812 0 +813 0 +814 0 +815 0 diff --git a/evidence/allen-omega-L694/L722/runtime.log b/evidence/allen-omega-L694/L722/runtime.log new file mode 100644 index 00000000..5168e6f3 --- /dev/null +++ b/evidence/allen-omega-L694/L722/runtime.log @@ -0,0 +1,28 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 diff --git a/evidence/allen-omega-L694/L722/scene.log b/evidence/allen-omega-L694/L722/scene.log new file mode 100644 index 00000000..44a4b2b1 --- /dev/null +++ b/evidence/allen-omega-L694/L722/scene.log @@ -0,0 +1,14 @@ +1001 0 +1002 0 +1003 0 +1004 0 +1005 0 +1006 0 +1007 0 +1008 0 +1009 0 +1010 0 +1011 0 +1012 0 +1013 0 +1014 0 diff --git a/evidence/allen-omega-L694/L722/short.log b/evidence/allen-omega-L694/L722/short.log new file mode 100644 index 00000000..a9da2dc8 --- /dev/null +++ b/evidence/allen-omega-L694/L722/short.log @@ -0,0 +1,20 @@ +401 0 +410 0 +411 0 +412 0 +413 0 +414 0 +402 0 +403 0 +404 0 +405 0 +406 0 +700 0 +701 0 +702 0 +703 0 +704 0 +705 0 +407 0 +408 0 +409 0 diff --git a/evidence/allen-omega-L694/L722/source.sha256 b/evidence/allen-omega-L694/L722/source.sha256 new file mode 100644 index 00000000..ef1fdc60 --- /dev/null +++ b/evidence/allen-omega-L694/L722/source.sha256 @@ -0,0 +1,35 @@ +184f4270c72c4eca6a7afdd28b70a608f2e237980b12c8a7bfc2c7d2c3e625b9 native/omega/allen/base.om +795ca28627a19f1088de0f23277e79cdac921ff88451c606c7b655ce0f2e8a5b native/omega/allen/build-one.sh +4d2235ac5d6b237695b1c3112f70ebdfa0cebafa2ec8e691e4be4de37a62199b native/omega/allen/code.om +76ee9cdeaac036905c76dfa29f42bf5a78d1259ad1656adfaa24916c3b93550d native/omega/allen/courier.om +e056022d8dd4a3976d5d392e52bf6a5e2bf81334ee6b3a58c61cdf56778c4d41 native/omega/allen/gate.sh +9d71a653870eeef678f95df04db9c38aedaadd06e7c74bf3e5d9fde6e28f82f8 native/omega/allen/golden.sh +06087bc573ebb876a0ed80f6025c592fb4b1d23335169c3da402824fd1482c35 native/omega/allen/intent.om +4bc37c95d553364c5d2925d8ff9e8a53b1a61974513e6f492f77b7ebb05bbda4 native/omega/allen/main.om +068292abd04d3a61b063fc5380b22a56c4235a87915c219ebf3b37d16d7bc9c7 native/omega/allen/memory.om +b4d7b6e6cd680d2ba1eec2978b0cbb81ffc63035b73f5c3726bdad97a7b6aa04 native/omega/allen/paint.om +46ba5562bcbbd808e6557f1f49e296e022c292ea0b718b1516312f10a9828cca native/omega/allen/README.md +e50a7f673aaee92aba4a3aec303aa93b071121c09ad05d4ad1dcc2deb9706dcc native/omega/allen/reply.om +5b01eae03204d08f6d207ef29f2ba09a1d9f249f1738f68f151214675a4ff2ed native/omega/allen/runtime.om +c8d4a437b41538cc1eeb62a2029c6993d41e5ef90cc7b26c8e1c92bc98ec57d3 native/omega/allen/scene.om +f085198549d1c235a97574ff6f6560ce82217611f4051fc3dbbc8286aab6d536 native/omega/allen/tests/check.om +b76438a85257bd95768115047be286c107e3723628a16a0541870732d0849a42 native/omega/allen/tests/code.om +98105e1c30626f54da07940fe0415637730b7e112ea39ba2aae1f2d648993373 native/omega/allen/tests/courier.om +f524aab74657dc2e9e4330bf42bc05ef01ce3e8f08a05c80371be0c0a33764d3 native/omega/allen/tests/edges.om +a2e8bcde92d522216a4fa99559dd3bcba096aea86127364587dadcc2bfb585af native/omega/allen/tests/fixture.om +c9ef2bee7cbd1c072c6045d62c55f3bdd938901e91792cee72ea57fb8f25a198 native/omega/allen/tests/golden.om +8ba742d85ea510586f3cf86661bc0f28c5d99b59981c2d3fb220705efad24564 native/omega/allen/tests/intent.om +861d9af698b021056cceb6c00ae3458558db415963fe832d3fca7da55731cf7b native/omega/allen/tests/memory.om +13e4db7436165783c6aad48497ffe89fa6e5ba3de928e66a766c29e1e817fcf5 native/omega/allen/tests/paint.om +e6d232d92d74d88423cebbbbfc6e403ea9b865b80c909e1d23087001d905035a native/omega/allen/tests/probe.om +8fbc8a0517900efd771a994686356416a0fea5e20cfd9bc26c787850398113df native/omega/allen/tests/render.om +094a5e833bae7dfd3b013e3f015f143e9d7bd3efe9b9c896a7f58b09e1ec14b8 native/omega/allen/tests/reply.om +bab9b0e853aa4b62918353a5d1625a3171deebfb639e599fe9751b5a61a3df62 native/omega/allen/tests/runtime.om +b9c84d9a58658589137764fe60209d8320550dd8ed99fa6026df65ba48737e4f native/omega/allen/tests/scene.om +521fff50f312b64801017b1349d9a31dac6eac50eb989d93d2dbac4e100f5007 native/omega/allen/tests/stdio-overflow.om +89aee5326b428147ea6da9aa739b6679e214ed114ae5f41d3b70299cf864092c native/omega/allen/tests/view.om +0d96a4ff68ad6d4b6f1f30f713b18d5184912ba8dd389f86aa7710db079abcb0 native/omega/allen/vendor/OMEGA-LICENSE +b234738e8ce81b3d67586deb41fdaab4543169d4b69e86fd3dc28a08432ab5fc native/omega/allen/vendor/PROVENANCE.md +992ec4a4957271b442740598136887a5c610effcd8ae9fb9480a006a4f181097 native/omega/allen/vendor/sha256-core.om +0781cdcec18570a57afbe3be4a6717dd2d1fa4c887b49a3e4cb542b594f8a041 native/omega/allen/vendor/sha256.om +abbefd2f7dc48f2ac28b9526f5c2e5b369da4b7c5e84dde6e6a3cd20bd5687ac native/omega/allen/view.om diff --git a/evidence/allen-omega-L694/L722/stdio-overflow.stderr b/evidence/allen-omega-L694/L722/stdio-overflow.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/stdio-overflow.stdout b/evidence/allen-omega-L694/L722/stdio-overflow.stdout new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L722/view.log b/evidence/allen-omega-L694/L722/view.log new file mode 100644 index 00000000..8b194f11 --- /dev/null +++ b/evidence/allen-omega-L694/L722/view.log @@ -0,0 +1,13 @@ +901 0 +902 0 +903 0 +904 0 +905 0 +906 0 +907 0 +908 0 +909 0 +910 0 +911 0 +912 0 +913 0 diff --git a/evidence/allen-omega-L694/L725/README.md b/evidence/allen-omega-L694/L725/README.md new file mode 100644 index 00000000..071985d9 --- /dev/null +++ b/evidence/allen-omega-L694/L725/README.md @@ -0,0 +1,50 @@ +# L725: native Omega courier lifecycle + +Partial host-native milestone under L694. This is not socket, Ethernet, model, +x86 EFI or physical iMac qualification. The provider must supply actual monotonic +milliseconds, link state, datagram bytes and whole-datagram send results. All new +product and executable test source is handwritten seeded Omega. Existing shell +and host tools only build, inspect, run, compare and inventory the artifacts. + +## Executed evidence + +- `full.log` and `full.exit`: complete native gate returned 0. `counts.json` + inventories 1092 executed passing checks, including 213 scheduler checks and + the original 879 checks. Existing memory/stdio goldens and stdio overflow + refusal remain passing. +- Seven compiled behavioral mutants were rejected: stale 3, CRC 2, hash 2, + readback 7, session 1, keepalive 40, ACK-stop 27. Compilation and nonempty static + AArch64 EXEC checks precede every run, including the mutants. +- `source.sha256` binds all consumed native-tree files; parent compared each + listed hash against source immediately before committing. `binaries.sha256` + binds actual native artifacts under the named handoff output directory. +- The final scheduler tests cover 4096-byte jobs across five datagrams with + byte-by-byte payload comparisons, failed-send retry, retry deadlines, HELLO/HI + readiness/expiry, ACK and LINE retry stop, duplicate GOT, queue backpressure, + cancellation, next-job reset, malformed/stale sessions and backward clocks. + +## RED and fixture corrections retained + +1. `red.om`/`red.exit`: initial test assembly omitted runtime.om, which code.om + references. Compiler error 3 is a fixture setup error, not behavioral RED. +2. `red2.om`/`red2.log`/`red2.exit`: compiled Omega stub, 78 failures among 108 + checks. The first real implementation then ran with six failures in packet + inspection (`green1.log`). Diagnosis: the existing test logger itself writes + to Outb, overwriting pending datagrams before test inspection. +3. The test-only `test` wrapper now preserves Outb/Outlen/Err around logging. + `red3` reran the compilable stub: 76 of 108 checks fail, exit 76. The same + unchanged production implementation passes all 108 (`green2`). No assertion + or production refusal was removed to resolve the fixture defect. +4. Expanded maximum-capacity/backpressure coverage passes 213 checks (`green3`), + then the combined native gate passes all 1092. The two new compiled mutants + prove the real timing and acknowledgement assertions detect behavioral faults. + +The original L719 finding and L722 RED/GREEN remain retained. The separate L723 +corrective review is archived under `../L722/corrective-review`, with exact-source +closure and binary identity checked, its three boundary probes rerun by the +parent, and positive control compared byte-for-byte. That review clears only the +stdio correction; it does not review this new scheduler. + +Independent scheduler review remains pending. The broad legacy repository strict +suite runs separately; its outcome is not inferred from this native gate. No +READY/merge/deployment/full-platform claim is made here. diff --git a/evidence/allen-omega-L694/L725/ackstop-mutant.log b/evidence/allen-omega-L694/L725/ackstop-mutant.log new file mode 100644 index 00000000..5d0598cb --- /dev/null +++ b/evidence/allen-omega-L694/L725/ackstop-mutant.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 1 +65 1 +66 0 +67 0 +68 0 +69 1 +70 1 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 1 +165 0 +166 0 +167 0 +168 0 +169 1 +170 0 +171 1 +172 1 +173 0 +174 1 +175 0 +176 0 +177 0 +178 1 +179 0 +180 1 +181 0 +182 1 +183 0 +184 1 +185 0 +186 1 +187 0 +188 1 +189 0 +190 1 +191 0 +192 1 +193 0 +194 1 +195 1 +196 1 +197 1 +198 0 +199 1 +200 0 +201 0 +202 1 +203 1 +204 1 +205 0 +206 1 +207 1 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L725/binaries.sha256 b/evidence/allen-omega-L694/L725/binaries.sha256 new file mode 100644 index 00000000..984a1e7e --- /dev/null +++ b/evidence/allen-omega-L694/L725/binaries.sha256 @@ -0,0 +1,23 @@ +6a815fd66fdb6886af1a8dc857d6951268b43340bfd0f5dcf5ed7e677d384357 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/scheduler +3036ba651bd6825a31db6f1d9ec60ad52b1f0c56a3fd525fda6c0b1da3f1ff7b /home/drakestapleton/handoffs/allen-omega-L694/L725/full/readback-mutant +b106da82966dfc959663bf943dfd01a8f70cced034efba51e476ea78f0f0f5dc /home/drakestapleton/handoffs/allen-omega-L694/L725/full/view +3f9aae22be9800849c7a05049b0e6b0b758a5b4e67ee1e133910a66e75100c27 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/allen +2259fa1fb28693c519fbe85ee7c805c8e2b7ccc5f4b29a0fb28ef7809f14dc6a /home/drakestapleton/handoffs/allen-omega-L694/L725/full/reply +e4d98c22d7c51637fd1d9d0da06eee2144fb70bbf7e435f786cc313d458887f5 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/ackstop-mutant +7d3946f72b32b9a70780c79deaeea4f7f0fbb2587907106a3e4e655445f7b218 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/hash-mutant +688b4eeb6c7846fb36fea2884d8296d4643dd11c74da6988793e785929ad89e4 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/golden +762e48ed7daa7e2027d4e06717ff23bd11744094504e9c6ba538e2d68171d547 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/session-mutant +2e6de4e1d216916e74bc08329cdabbd44681d483e1726463ceebe1d56bca1c63 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/intent +b852b5d51bfcc096b2f35ea131709d28aeb26ebe1fa7626655d8abe9c67fa292 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/fixture +cca90a4f538ae8150a479b5c4ea269008b7cee1fe73056e1da8e3bbcc70146da /home/drakestapleton/handoffs/allen-omega-L694/L725/full/runtime +b4aef9ff0a2b5060802824247f5f56aa9fe37e0e52b4f86c2d93b867fef6a0cd /home/drakestapleton/handoffs/allen-omega-L694/L725/full/code +4cc03fb5f9d9cc34d5d0a0dbfd68fc96d66e1e5cc0371217abbc4ec7dee9c295 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/edges +c970301a150f75278d60c3599efdbbea9a17abf83d951cc289bd6062bb1e0cd8 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/render +db8433262d65d28e0521a4b07bcfb98a866937d018738504581dc15894531014 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/stale-mutant +929dcee90baf941017010d78ff9ca7c6e76d6c8ac71b2402b00c49c29e51144d /home/drakestapleton/handoffs/allen-omega-L694/L725/full/courier +7de38ac1871bc16d3b83d1a89730d4e567d34145588295c3ec3b34a577fb4e51 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/scene +2a9151fd8824c485536e364fd3509dc8acdaff7ff3d6a9cafac189a48b1a7362 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/paint +bcb251faa2cd3f2c6fbc203f0fd9b59e2fd9b961254426699b7684c64c5ea4c9 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/crc-mutant +71f99242bcad6ede239b240602470fcf3d5da3267eb47a1ad522241958222367 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/stdio-overflow-input +2f0e5b78f242e27e87d2b07b150d12ccbf3ebf03e3be38d45aeb67e8aa1f486c /home/drakestapleton/handoffs/allen-omega-L694/L725/full/keepalive-mutant +0865317bcebeb9dbf958344f716abcc0a3ed473ddb3cb482bbce056764d057a8 /home/drakestapleton/handoffs/allen-omega-L694/L725/full/memory diff --git a/evidence/allen-omega-L694/L725/code.log b/evidence/allen-omega-L694/L725/code.log new file mode 100644 index 00000000..e7e197b7 --- /dev/null +++ b/evidence/allen-omega-L694/L725/code.log @@ -0,0 +1,23 @@ +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 diff --git a/evidence/allen-omega-L694/L725/counts.json b/evidence/allen-omega-L694/L725/counts.json new file mode 100644 index 00000000..d4f468dd --- /dev/null +++ b/evidence/allen-omega-L694/L725/counts.json @@ -0,0 +1,19 @@ +{ + "checks": { + "runtime": 28, + "code": 23, + "courier": 24, + "scheduler": 213, + "memory": 79, + "intent": 8, + "reply": 15, + "view": 13, + "scene": 14, + "paint": 11, + "edges": 352, + "short": 20, + "long": 292 + }, + "total": 1092, + "compiled_mutants_rejected": 7 +} diff --git a/evidence/allen-omega-L694/L725/courier.log b/evidence/allen-omega-L694/L725/courier.log new file mode 100644 index 00000000..8402df49 --- /dev/null +++ b/evidence/allen-omega-L694/L725/courier.log @@ -0,0 +1,24 @@ +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 +214 0 +215 0 +216 0 +217 0 +218 0 +219 0 +220 0 +221 0 +222 0 +223 0 +224 0 diff --git a/evidence/allen-omega-L694/L725/crc-mutant.log b/evidence/allen-omega-L694/L725/crc-mutant.log new file mode 100644 index 00000000..a0d90bd4 --- /dev/null +++ b/evidence/allen-omega-L694/L725/crc-mutant.log @@ -0,0 +1,23 @@ +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 1 +117 1 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 diff --git a/evidence/allen-omega-L694/L725/edges.log b/evidence/allen-omega-L694/L725/edges.log new file mode 100644 index 00000000..e8d0deea --- /dev/null +++ b/evidence/allen-omega-L694/L725/edges.log @@ -0,0 +1,352 @@ +1201 0 +1202 0 +1203 0 +1204 0 +1205 0 +1206 0 +1207 0 +1208 0 +1209 0 +1210 0 +1211 0 +1212 0 +1213 0 +1214 0 +1220 0 +1221 0 +1222 0 +1223 0 +1224 0 +1225 0 +1226 0 +1227 0 +1228 0 +1229 0 +1230 0 +1231 0 +1232 0 +1233 0 +1234 0 +1235 0 +1236 0 +1237 0 +1238 0 +1239 0 +1240 0 +1241 0 +1242 0 +1243 0 +1244 0 +1245 0 +1246 0 +1247 0 +1248 0 +1249 0 +1250 0 +1251 0 +1252 0 +1253 0 +1254 0 +1255 0 +1256 0 +1257 0 +1258 0 +1259 0 +1260 0 +1261 0 +1262 0 +1301 0 +1302 0 +1303 0 +1304 0 +1305 0 +1306 0 +1310 0 +1311 0 +1312 0 +1313 0 +1314 0 +1315 0 +1316 0 +1317 0 +1318 0 +1319 0 +1320 0 +1321 0 +1322 0 +1323 0 +1324 0 +1325 0 +1326 0 +1327 0 +1328 0 +1329 0 +1330 0 +1331 0 +1332 0 +1333 0 +1334 0 +1335 0 +1336 0 +1337 0 +1338 0 +1339 0 +1340 0 +1341 0 +1342 0 +1343 0 +1344 0 +1345 0 +1346 0 +1347 0 +1348 0 +1349 0 +1350 0 +1351 0 +1352 0 +1353 0 +1354 0 +1355 0 +1356 0 +1357 0 +1358 0 +1359 0 +1360 0 +1361 0 +1362 0 +1363 0 +1364 0 +1365 0 +1366 0 +1367 0 +1368 0 +1369 0 +1370 0 +1371 0 +1372 0 +1373 0 +1374 0 +1375 0 +1376 0 +1377 0 +1378 0 +1379 0 +1380 0 +1381 0 +1382 0 +1383 0 +1384 0 +1385 0 +1386 0 +1387 0 +1388 0 +1389 0 +1390 0 +1391 0 +1392 0 +1393 0 +1394 0 +1395 0 +1396 0 +1397 0 +1398 0 +1399 0 +1400 0 +1401 0 +1402 0 +1403 0 +1404 0 +1405 0 +1406 0 +1407 0 +1408 0 +1409 0 +1410 0 +1411 0 +1412 0 +1413 0 +1414 0 +1415 0 +1416 0 +1417 0 +1418 0 +1419 0 +1420 0 +1421 0 +1422 0 +1423 0 +1424 0 +1425 0 +1426 0 +1427 0 +1428 0 +1429 0 +1430 0 +1431 0 +1432 0 +1433 0 +1434 0 +1435 0 +1436 0 +1437 0 +1438 0 +1439 0 +1440 0 +1441 0 +1442 0 +1443 0 +1444 0 +1445 0 +1446 0 +1447 0 +1448 0 +1449 0 +1450 0 +1451 0 +1452 0 +1453 0 +1454 0 +1455 0 +1456 0 +1457 0 +1458 0 +1459 0 +1460 0 +1461 0 +1462 0 +1463 0 +1464 0 +1465 0 +1466 0 +1467 0 +1468 0 +1469 0 +1470 0 +1471 0 +1472 0 +1473 0 +1474 0 +1475 0 +1476 0 +1477 0 +1478 0 +1479 0 +1480 0 +1481 0 +1482 0 +1483 0 +1484 0 +1485 0 +1486 0 +1487 0 +1488 0 +1489 0 +1490 0 +1491 0 +1492 0 +1493 0 +1494 0 +1495 0 +1496 0 +1497 0 +1498 0 +1499 0 +1500 0 +1501 0 +1502 0 +1503 0 +1504 0 +1505 0 +1506 0 +1507 0 +1508 0 +1509 0 +1510 0 +1511 0 +1512 0 +1513 0 +1514 0 +1515 0 +1516 0 +1517 0 +1518 0 +1519 0 +1520 0 +1521 0 +1522 0 +1523 0 +1524 0 +1525 0 +1526 0 +1527 0 +1528 0 +1529 0 +1530 0 +1531 0 +1532 0 +1533 0 +1534 0 +1535 0 +1536 0 +1537 0 +1538 0 +1539 0 +1540 0 +1541 0 +1542 0 +1543 0 +1544 0 +1545 0 +1546 0 +1547 0 +1548 0 +1549 0 +1550 0 +1551 0 +1552 0 +1553 0 +1554 0 +1555 0 +1556 0 +1557 0 +1558 0 +1559 0 +1560 0 +1561 0 +1562 0 +1563 0 +1564 0 +1565 0 +1570 0 +1571 0 +1572 0 +1575 0 +1573 0 +1574 0 +1600 0 +1601 0 +1602 0 +1603 0 +1604 0 +1605 0 +1606 0 +1607 0 +1610 0 +1611 0 +1612 0 +1613 0 +1614 0 +1615 0 +1616 0 +1617 0 +1701 0 +1702 0 +1703 0 +1704 0 +1705 0 +1706 0 +1707 0 +1708 0 +1709 0 +1710 0 +1711 0 diff --git a/evidence/allen-omega-L694/L725/full.exit b/evidence/allen-omega-L694/L725/full.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L725/full.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L725/full.log b/evidence/allen-omega-L694/L725/full.log new file mode 100644 index 00000000..e681192a --- /dev/null +++ b/evidence/allen-omega-L694/L725/full.log @@ -0,0 +1,24 @@ +runtime compile=0 native-exit=0 +code compile=0 native-exit=0 +courier compile=0 native-exit=0 +scheduler compile=0 native-exit=0 +memory compile=0 native-exit=0 +intent compile=0 native-exit=0 +reply compile=0 native-exit=0 +view compile=0 native-exit=0 +scene compile=0 native-exit=0 +paint compile=0 native-exit=0 +edges compile=0 native-exit=0 +fixture compile=0 native-exit=0 +golden compile=0 native-exit=0 +render compile=0 native-exit=0 +stdio native-exit=0 golden-cmp=0 +stdio overflow native-exit=65 no-later-command=PASS +stale mutant compile=0 rejected-exit=3 +crc mutant compile=0 rejected-exit=2 +hash mutant compile=0 rejected-exit=2 +readback mutant compile=0 rejected-exit=7 +session mutant compile=0 rejected-exit=1 +keepalive mutant compile=0 rejected-exit=40 +ackstop mutant compile=0 rejected-exit=27 +ALLEN_OMEGA_HOST: PASS; target=NOT_RUN; live=NOT_RUN diff --git a/evidence/allen-omega-L694/L725/green1.exit b/evidence/allen-omega-L694/L725/green1.exit new file mode 100644 index 00000000..1e8b3149 --- /dev/null +++ b/evidence/allen-omega-L694/L725/green1.exit @@ -0,0 +1 @@ +6 diff --git a/evidence/allen-omega-L694/L725/green1.log b/evidence/allen-omega-L694/L725/green1.log new file mode 100644 index 00000000..be7f31cb --- /dev/null +++ b/evidence/allen-omega-L694/L725/green1.log @@ -0,0 +1,108 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 1 +37 1 +38 1 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 1 +47 1 +48 1 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 diff --git a/evidence/allen-omega-L694/L725/green2.exit b/evidence/allen-omega-L694/L725/green2.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L725/green2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L725/green2.log b/evidence/allen-omega-L694/L725/green2.log new file mode 100644 index 00000000..eae3b0e8 --- /dev/null +++ b/evidence/allen-omega-L694/L725/green2.log @@ -0,0 +1,108 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 diff --git a/evidence/allen-omega-L694/L725/green3.exit b/evidence/allen-omega-L694/L725/green3.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L725/green3.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L725/green3.log b/evidence/allen-omega-L694/L725/green3.log new file mode 100644 index 00000000..1d8ffd12 --- /dev/null +++ b/evidence/allen-omega-L694/L725/green3.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 0 +170 0 +171 0 +172 0 +173 0 +174 0 +175 0 +176 0 +177 0 +178 0 +179 0 +180 0 +181 0 +182 0 +183 0 +184 0 +185 0 +186 0 +187 0 +188 0 +189 0 +190 0 +191 0 +192 0 +193 0 +194 0 +195 0 +196 0 +197 0 +198 0 +199 0 +200 0 +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L725/hash-mutant.log b/evidence/allen-omega-L694/L725/hash-mutant.log new file mode 100644 index 00000000..c75cfefb --- /dev/null +++ b/evidence/allen-omega-L694/L725/hash-mutant.log @@ -0,0 +1,79 @@ +301 0 +302 0 +303 0 +304 0 +305 0 +306 0 +307 0 +308 0 +309 1 +310 1 +311 0 +312 0 +313 0 +314 0 +315 0 +316 0 +317 0 +318 0 +319 0 +320 0 +321 0 +322 0 +323 0 +324 0 +325 0 +326 0 +327 0 +328 0 +329 0 +330 0 +331 0 +332 0 +333 0 +334 0 +335 0 +336 0 +337 0 +338 0 +339 0 +340 0 +341 0 +342 0 +343 0 +344 0 +345 0 +346 0 +347 0 +348 0 +349 0 +350 0 +351 0 +352 0 +362 0 +363 0 +353 0 +354 0 +355 0 +356 0 +357 0 +358 0 +359 0 +360 0 +364 0 +365 0 +366 0 +367 0 +368 0 +369 0 +370 0 +371 0 +372 0 +373 0 +374 0 +375 0 +376 0 +377 0 +378 0 +379 0 +361 0 diff --git a/evidence/allen-omega-L694/L725/independent-review/hello.expected b/evidence/allen-omega-L694/L725/independent-review/hello.expected new file mode 100644 index 00000000..d6d7c0c9 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/hello.expected @@ -0,0 +1 @@ +ALLEN-COURIER v=1 run=000000000000004d kind=HELLO seq=0 part=0/0 bytes=0 diff --git a/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.full.om b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.full.om new file mode 100644 index 00000000..1b076d8d --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.full.om @@ -0,0 +1,2764 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note SHA256 core reused byte-for-byte from native Omega TRN1 at 12251e3403d42931ada27dc1c54b3b610954be5d. +note Reads stdin up to 8 MiB and emits lowercase hex plus LF only after successful EOF. +global Buf uchar 8192 +global H uint 8 +global Vv uint 8 +global W uint 64 +global K uint 64 +global Hb uchar 64 +global Hs ulong 2 +global Hash uchar 32 +global Out uchar 65 +text Hex "0123456789abcdef" + +fn rotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn round i ulong to void +e = get Vv 4 +a = get Vv 0 +s = xor xor rotate e 6 rotate e 11 rotate e 25 +c = xor and e get Vv 5 and not e get Vv 6 +t = add add get Vv 7 s add c add get K i get W i +s = xor xor rotate a 2 rotate a 13 rotate a 22 +c = and a get Vv 1 +c = xor c and a get Vv 2 +c = xor c and get Vv 1 get Vv 2 +u = add s c +put Vv 7 get Vv 6 +put Vv 6 get Vv 5 +put Vv 5 e +put Vv 4 add get Vv 3 t +put Vv 3 get Vv 2 +put Vv 2 get Vv 1 +put Vv 1 a +put Vv 0 add t u +end + +fn block to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get Hb add mul i 4 j +end +put W i x +end +for j ulong 48 +i = add j 16 +x = get W sub i 15 +y = get W sub i 2 +s = xor xor rotate x 7 rotate x 18 shr x 3 +t = xor xor rotate y 17 rotate y 19 shr y 10 +put W i add add get W sub i 16 s add get W sub i 7 t +end +for i ulong 8 +put Vv i get H i +end +for i ulong 64 +round i +end +for i ulong 8 +put H i add get H i get Vv i +end +end + +fn hinit to void +put H 0 1779033703 +put H 1 3144134277 +put H 2 1013904242 +put H 3 2773480762 +put H 4 1359893119 +put H 5 2600822924 +put H 6 528734635 +put H 7 1541459225 +put Hs 0 0 +put Hs 1 0 +end + +fn hbyte c uchar to void +p = get Hs 0 +put Hb p c +p = add p 1 +put Hs 1 add get Hs 1 1 +if eq p 64 +block +p = 0 +end +put Hs 0 p +end + +fn update off ulong count ulong to void +for i ulong count +hbyte get Buf add off i +end +end + +fn finish to void +bits = mul get Hs 1 8 +hbyte 128 +while ne get Hs 0 56 +hbyte 0 +end +for i ulong 8 +hbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get H div i 4 +put Hash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn constants to void +put K 0 1116352408 +put K 1 1899447441 +put K 2 3049323471 +put K 3 3921009573 +put K 4 961987163 +put K 5 1508970993 +put K 6 2453635748 +put K 7 2870763221 +put K 8 3624381080 +put K 9 310598401 +put K 10 607225278 +put K 11 1426881987 +put K 12 1925078388 +put K 13 2162078206 +put K 14 2614888103 +put K 15 3248222580 +put K 16 3835390401 +put K 17 4022224774 +put K 18 264347078 +put K 19 604807628 +put K 20 770255983 +put K 21 1249150122 +put K 22 1555081692 +put K 23 1996064986 +put K 24 2554220882 +put K 25 2821834349 +put K 26 2952996808 +put K 27 3210313671 +put K 28 3336571891 +put K 29 3584528711 +put K 30 113926993 +put K 31 338241895 +put K 32 666307205 +put K 33 773529912 +put K 34 1294757372 +put K 35 1396182291 +put K 36 1695183700 +put K 37 1986661051 +put K 38 2177026350 +put K 39 2456956037 +put K 40 2730485921 +put K 41 2820302411 +put K 42 3259730800 +put K 43 3345764771 +put K 44 3516065817 +put K 45 3600352804 +put K 46 4094571909 +put K 47 275423344 +put K 48 430227734 +put K 49 506948616 +put K 50 659060556 +put K 51 883997877 +put K 52 958139571 +put K 53 1322822218 +put K 54 1537002063 +put K 55 1747873779 +put K 56 1955562222 +put K 57 2024104815 +put K 58 2227730452 +put K 59 2361852424 +put K 60 2428436474 +put K 61 2756734187 +put K 62 3204031479 +put K 63 3329325298 +end + +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note Courier client lifecycle; injected monotonic milliseconds, no host clock/socket. +note T lastclock, HIvalid, HIat, HELLOvalid, HELLOat, active, acked, jobat, +note joblength, cursor, pendingkind, pendingpart, reserved, GOTpart, reserved, reserved. +note Serialized API: qnext publishes one datagram; qsent records actual send result. +note Consume Outb before another serializer; failed sends leave retries due. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +if eq run 0 +ret false +end +qbegin run 0 +for i ulong 16 +put T i 0 +end +put T 0 now +ret true +end +fn qready now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if eq get T 1 0 +ret false +end +ret lt sub now get T 2 30000 +end +fn qsubmit now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +n = get Inlen 0 +if or eq n 0 gt n 4096 +ret false +end +if ge get Q 1 4294967295 +ret false +end +seq = add get Q 1 1 +qbegin get Q 0 seq +for i ulong n +c = get In i +if or eq c 10 eq c 13 +c = uchar 32 +end +put JobOut i c +end +put T 0 now +put T 5 1 +put T 6 0 +put T 7 now +put T 8 n +put T 9 1 +put T 13 0 +ret true +end +fn qnext now ulong link bool to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +put T 0 now +if not link +ret false +end +if ne get T 13 0 +put Inlen 0 0 +if not packet 3 get Q 1 get T 13 0 0 +ret false +end +put T 10 3 +put T 11 get T 13 +ret true +end +delay = ulong 2000 +if qready now +delay = ulong 10000 +end +if or eq get T 3 0 ge sub now get T 4 delay +put Inlen 0 0 +if not packet 5 0 0 0 0 +ret false +end +put T 10 5 +put T 11 0 +ret true +end +if or eq get T 5 0 ne get T 6 0 +ret false +end +part = get T 9 +if eq part 0 +if lt sub now get T 7 2000 +ret false +end +part = ulong 1 +end +n = get T 8 +total = div add n 999 1000 +off = mul sub part 1 1000 +size = sub n off +if gt size 1000 +size = ulong 1000 +end +for i ulong size +put In i get JobOut add off i +end +put Inlen 0 size +if not packet 1 get Q 1 part total n +ret false +end +put T 10 1 +put T 11 part +ret true +end +fn qsent now ulong ok bool to bool +if or eq get T 10 0 lt now get T 0 +ret false +end +kind = get T 10 +part = get T 11 +put T 0 now +put T 10 0 +put T 11 0 +if not ok +ret true +end +if eq kind 5 +put T 3 1 +put T 4 now +end +if eq kind 3 +if eq get T 13 part +put T 13 0 +end +end +if eq kind 1 +if or ne get T 6 0 ge part div add get T 8 999 1000 +put T 9 0 +put T 7 now +else +put T 9 add part 1 +end +end +ret true +end +fn qincoming now ulong to ulong +if or eq get Q 0 0 lt now get T 0 +ret 0 +end +if not pkparse +ret 0 +end +kind = get N 0 +if eq kind 6 +if or ne get N 1 0 ne get N 2 0 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if ne get N 6 0 +ret 0 +end +put T 0 now +put T 1 1 +put T 2 now +ret 1 +end +if or eq get T 5 0 ne get N 1 get Q 1 +ret 0 +end +if eq kind 4 +if or ne get N 2 0 ne get N 3 0 +ret 0 +end +if or ne get N 4 0 ne get N 6 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +ret 1 +end +if ne kind 2 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if and ne get T 13 0 ne get T 13 get N 2 +ret 0 +end +result = qreceive +if eq result 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +put T 13 get N 2 +ret result +end +fn qcancel to void +put T 5 0 +put T 6 0 +put T 8 0 +put T 9 0 +put T 10 0 +put T 11 0 +put T 13 0 +put Q 3 0 +put Q 4 0 +end +note Legacy application record codec; SHA is unkeyed integrity ONLY. +global Unit uchar 4096 +global Enc uchar 4096 +global Mem uchar 3692 +global Md ulong 3 +global Note uchar 128 +global Ns ulong 4 +text Magic "AIENALM1" +text Nmagic "AIENNOT1" +fn get32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Unit add off i mul i 8 +end +ret v +end +fn get64 off ulong to ulong +ret or get32 off shl get32 add off 4 32 +end +fn put32 off ulong v ulong to void +for i ulong 4 +put Unit add off i uchar and shr v mul i 8 255 +end +end +fn put64 off ulong v ulong to void +put32 off and v 4294967295 +put32 add off 4 shr v 32 +end +fn mem32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Mem add off i mul i 8 +end +ret v +end +fn mset32 off ulong v ulong to void +for i ulong 4 +put Mem add off i uchar and shr v mul i 8 255 +end +end +fn zeroend off ulong to bool +for i ulong sub ulong 4096 off +if ne get Unit add off i 0 +ret false +end +end +ret true +end +fn fieldok off ulong cap ulong name bool to bool +n = ulong 0 +while lt n cap +if eq get Unit add off n 0 +for j ulong sub cap n +if ne get Unit add add off n j 0 +ret false +end +end +ret true +end +c = get Unit add off n +lower = and ge c 97 le c 122 +digit = isdigit c +if name +if eq n 0 +if not or and ge c 65 le c 90 digit +ret false +end +else +if not or lower digit +ret false +end +end +else +if eq c 32 +if or eq n 0 eq n sub cap 1 +ret false +end +if eq get Unit add off add n 1 0 +ret false +end +if eq get Unit add off sub n 1 32 +ret false +end +else +if not or lower digit +ret false +end +end +end +n = add n 1 +end +ret false +end +fn digest count ulong to void +hinit +for i ulong 32 +hbyte get Unit i +end +for i ulong count +hbyte get Unit add i 64 +end +finish +end +fn hashok count ulong to bool +digest count +d = uchar 0 +for i ulong 32 +d = or d xor get Hash i get Unit add i 32 +end +ret eq d 0 +end +fn seal count ulong to void +digest count +for i ulong 32 +put Unit add i 32 get Hash i +end +end +fn memvalid to bool +for i ulong 8 +if ne get Unit i get Magic i +ret false +end +end +ver = get32 8 +if or lt ver 2 gt ver 4 +ret false +end +n = get32 96 +if or gt n 32 gt get32 100 512 +ret false +end +size = add 40 mul n 113 +if ge ver 3 +size = add size 24 +end +if eq ver 4 +size = add size 12 +end +if or ne size get32 12 eq get64 16 0 +ret false +end +for i ulong 8 +if ne get Unit add i 24 0 +ret false +end +end +if not zeroend add 64 size +ret false +end +if not hashok size +ret false +end +if not fieldok 72 24 true +ret false +end +for i ulong n +off = add 104 mul i 113 +if or eq get Unit off 0 eq get Unit add off 48 0 +ret false +end +if not fieldok off 48 false +ret false +end +if not fieldok add off 48 64 false +ret false +end +if gt get Unit add off 112 1 +ret false +end +end +off = add 104 mul n 113 +if ge ver 3 +if not fieldok off 24 true +ret false +end +end +if eq ver 4 +if ne get Unit add off 27 0 +ret false +end +end +ret true +end +fn memdec to bool +if not memvalid +ret false +end +size = get32 12 +for i ulong 3692 +put Mem i 0 +end +for i ulong size +put Mem i get Unit add i 64 +end +put Md 0 get64 16 +put Md 1 get32 8 +put Md 2 size +ret true +end +fn memenc gen ulong to bool +n = mem32 32 +if or gt n 32 eq gen 0 +ret false +end +size = add 76 mul n 113 +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Magic i +end +put32 8 4 +put32 12 size +put64 16 gen +for i ulong size +put Unit add i 64 get Mem i +end +seal size +if not memvalid +ret false +end +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +fn noteval index ulong to bool +for i ulong 8 +if ne get Unit i get Nmagic i +ret false +end +end +n = get32 12 +if or eq n 0 ge n 128 +ret false +end +if or ne get32 8 1 ne get32 16 index +ret false +end +if or gt get32 24 1 ne get32 28 0 +ret false +end +if not zeroend add n 64 +ret false +end +for i ulong n +c = get Unit add i 64 +if or lt c 32 gt c 126 +ret false +end +end +ret hashok n +end +fn notedec index ulong to bool +if not noteval index +ret false +end +n = get32 12 +for i ulong 128 +put Note i 0 +end +for i ulong n +put Note i get Unit add i 64 +end +put Ns 0 n +put Ns 1 index +put Ns 2 get32 20 +put Ns 3 get32 24 +ret true +end +fn noteenc to bool +n = get Ns 0 +if or eq n 0 ge n 128 +ret false +end +if or gt get Ns 1 511 gt get Ns 2 4294967295 +ret false +end +if gt get Ns 3 1 +ret false +end +for i ulong n +c = get Note i +if or lt c 32 gt c 126 +ret false +end +end +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Nmagic i +end +put32 8 1 +put32 12 n +put32 16 get Ns 1 +put32 20 get Ns 2 +put32 24 get Ns 3 +for i ulong n +put Unit add i 64 get Note i +end +seal n +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +note Store St gen,newest,valid. Tx phase,target,newgen. Provider owns actual I/O. +global St ulong 3 +global Nt ulong 2 +global Load ulong 1 +global Tx ulong 3 +fn txbegin to bool +if ne get Nt 0 0 +ret false +end +if or ne get Tx 0 0 eq get St 0 18446744073709551615 +ret false +end +if not memenc add get St 0 1 +ret false +end +put Tx 1 0 +if ne get St 0 0 +put Tx 1 sub ulong 1 get St 1 +end +put Tx 2 add get St 0 1 +put Tx 0 1 +ret true +end +fn txwrite ok bool to bool +if ne get Tx 0 1 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 2 +ret true +end +fn txflush ok bool to bool +if ne get Tx 0 2 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 3 +ret true +end +fn txread ok bool to bool +if ne get Tx 0 3 +ret false +end +put Tx 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Unit i get Enc i +end +if ne d 0 +ret false +end +put St 0 get Tx 2 +put St 1 get Tx 1 +if lt get St 2 2 +put St 2 add get St 2 1 +end +ret true +end +note Load each copy once into Unit. Caller resets St and calls loadcopy0,1. +fn loadbeg to void +for i ulong 3 +put St i 0 +end +put Load 0 0 +end +fn loadcopy slot ulong to bool +if gt slot 1 +ret false +end +if ne and get Load 0 shl ulong 1 slot 0 +ret false +end +if not memvalid +ret false +end +put Load 0 or get Load 0 shl ulong 1 slot +put St 2 add get St 2 1 +if gt get64 16 get St 0 +b = memdec +put St 0 get Md 0 +put St 1 slot +end +ret true +end +note Note transaction completes before the parent copy may publish its count. +fn nbegin to bool +if or ne get Nt 0 0 ne get Tx 0 0 +ret false +end +if not noteenc +ret false +end +put Nt 1 get Ns 1 +put Nt 0 1 +ret true +end +fn nwrite ok bool to bool +if ne get Nt 0 1 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 2 +ret true +end +fn nflush ok bool to bool +if ne get Nt 0 2 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 3 +ret true +end +fn nread ok bool to bool +if ne get Nt 0 3 +ret false +end +put Nt 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Enc i get Unit i +end +if ne d 0 +ret false +end +ret noteval get Nt 1 +end +note Intent vocabulary frozen from svc/allen_intent.c. It selects jobs, never answers. +global Fold uchar 160 +global Fn ulong 2 +text Lists "please|can you|could you|would you|will you|i d like you to|i want you to|i need you to|allen|hey allen|ok|okay\nwrite|make|build|create|code|program|generate|implement|develop|give me a|i need a|i want a\ncode|program|programs|script|scripts|function|functions|app|apps|application|game|games|website|web page|webpage|calculator|converter|parser|compiler|interpreter|algorithm|class|api|server|bot|regex|unit test|unit tests|cli|command line tool|snake|tetris|pong|todo app|to do app|to do list app|timer app|stopwatch|python|javascript|typescript|rust|golang|java|kotlin|swift|ruby|php|html|css|sql|bash|shell script|c program|c code|in c|c plus plus|cpp|mojo|zig|haskell|lua|perl\npoem|poems|haiku|story|stories|song|songs|letter|email|essay|joke|jokes|limerick|speech\ncode|program|script\nnow|add|also|and|change|make it|make the|rename|remove|delete|replace|use|fix|put|give it|let it|instead|then|next|can it|could it|it should|the|move|turn|show|split|convert it|rewrite|port it|translate it|explain it\nwrite|make|build|create|code|program|draft|compose|generate|design|implement|invent|name|give me a|i need a|i want a\na poem|a haiku|a story|a song|a script|a function|a program|a list of|some code|a letter|an email|a plan for|a name for\nexplain|what is|what are|whats|what s|why|how does|how do|how is|how are|describe|tell me about|what does|who was|who is|define|when was|when did|where is|is it true\ndifference between|mean|means\ndo|run|fix|find|search|look up|check|open|send|start|stop|install|set up|plan|schedule|calculate|work out|convert|translate|summarize|summarise|list|sort|count|compare|turn|go\n" +fn foldin to void +n = ulong 0 +space = false +for i ulong get Inlen 0 +c = get In i +if and ge c 65 le c 90 +c = add sub c 65 97 +end +if or and ge c 97 le c 122 isdigit c +if and space gt n 0 +put Fold n uchar 32 +n = add n 1 +end +put Fold n c +n = add n 1 +space = false +else +space = true +end +end +put Fn 0 n +put Fn 1 0 +end +fn phrase at ulong off ulong size ulong to bool +if gt add at size get Fn 0 +ret false +end +for i ulong size +if ne get Fold add at i get Lists add off i +ret false +end +end +if lt add at size get Fn 0 +if ne get Fold add at size 32 +ret false +end +end +ret true +end +fn inphrase off ulong size ulong anypos bool to bool +if not anypos +ret phrase get Fn 1 off size +end +count = sub get Fn 0 get Fn 1 +for i ulong count +at = add i get Fn 1 +ok = eq at get Fn 1 +if gt at 0 +ok = or ok eq get Fold sub at 1 32 +end +if ok +if phrase at off size +ret true +end +end +end +ret false +end +fn listed group ulong anypos bool to ulong +g = ulong 0 +s = ulong 0 +for p ulong len Lists +c = get Lists p +if or eq c 124 eq c 10 +if eq g group +if inphrase s sub p s anypos +ret sub p s +end +end +s = add p 1 +if eq c 10 +g = add g 1 +end +end +end +ret 0 +end +fn classify to ulong +if not textok +ret 0 +end +foldin +skip = listed 0 false +while gt skip 0 +if ge add get Fn 1 skip get Fn 0 +skip = 0 +else +put Fn 1 add add get Fn 1 skip 1 +skip = listed 0 false +end +end +if and ne get R 6 0 gt listed 5 false 0 +ret 3 +end +plain = listed 4 false +if or eq plain 4 eq plain 7 +ret 2 +end +if and gt listed 3 true 0 eq listed 4 true 0 +ret 1 +end +if and gt listed 1 false 0 gt listed 2 true 0 +ret 2 +end +ret 1 +end +note Ordinary want enum0chat,1make,2explain,3do. +fn jobwant to ulong +if gt listed 8 false 0 +ret 2 +end +if or gt listed 6 false 0 gt listed 7 true 0 +ret 1 +end +if gt listed 10 false 0 +ret 3 +end +if gt listed 9 true 0 +ret 2 +end +ret 0 +end +text Job "JOB " +text Codeask " asked " +text Forcode " for code.\t" +text Formore " to change the code just shown.\t" +text Wantstr "chatmakeexplaindo" +text Intro "You are the far hands of " +text Home ", a quiet presence living in AIENOS on " +text Comp "'s computer. You answer as " +text Sees "; " +text Words " sees only your words, as if " +text Said " said them. Plain English, short sentences, no headings, no lists, no greetings, no apologies. Plain letters and punctuation only: no dashes, no curly quotes, no symbols. Never mention a model, a prompt or instructions. " +text Make " asked for something to be made. Make it whole and correct. Begin with one short sentence saying what you made, then the work itself." +text Explain " asked to understand something. Explain it in three plain sentences at most, the heart of it first, no more than is needed." +text Doing " asked for something to be done. " +text Cannot " cannot yet act outside this computer, so say in two or three short sentences what you would do, in order, and what you would need." +text Chat " said something in passing. Answer in one or two warm, plain sentences." +text Allen "Allen" +text Person "the person" +fn selfemit to void +off = add 40 mul mem32 32 113 +if eq get Mem off 0 +for i ulong len Allen +emitb get Allen i +end +else +for i ulong 24 +c = get Mem add off i +if eq c 0 +ret +end +emitb c +end +end +end +fn whoemit to void +if eq get Mem 8 0 +for i ulong len Person +emitb get Person i +end +else +for i ulong 24 +c = get Mem add i 8 +if eq c 0 +ret +end +emitb c +end +end +end +fn jobbuild kind ulong seq ulong to bool +if or lt kind 1 gt kind 3 +ret false +end +if or eq seq 0 gt seq 4294967295 +ret false +end +if not textok +ret false +end +outreset +for i ulong len Job +emitb get Job i +end +emitn seq +emitb 32 +if gt kind 1 +emitb 99 +emitb 111 +emitb 100 +emitb 101 +if eq kind 3 +emitb 45 +emitb 109 +emitb 111 +emitb 114 +emitb 101 +end +emitb 32 +whoemit +for i ulong len Codeask +emitb get Codeask i +end +selfemit +if eq kind 3 +for i ulong len Formore +emitb get Formore i +end +else +for i ulong len Forcode +emitb get Forcode i +end +end +else +w = jobwant +off = ulong 0 +size = ulong 4 +if eq w 1 +off = 4 +end +if eq w 2 +off = 8 +size = 7 +end +if eq w 3 +off = 15 +size = 2 +end +for i ulong size +emitb get Wantstr add off i +end +emitb 32 +for i ulong len Intro +emitb get Intro i +end +selfemit +for i ulong len Home +emitb get Home i +end +whoemit +for i ulong len Comp +emitb get Comp i +end +selfemit +for i ulong len Sees +emitb get Sees i +end +whoemit +for i ulong len Words +emitb get Words i +end +selfemit +for i ulong len Said +emitb get Said i +end +whoemit +if eq w 0 +for i ulong len Chat +emitb get Chat i +end +end +if eq w 1 +for i ulong len Make +emitb get Make i +end +end +if eq w 2 +for i ulong len Explain +emitb get Explain i +end +end +if eq w 3 +for i ulong len Doing +emitb get Doing i +end +selfemit +for i ulong len Cannot +emitb get Cannot i +end +end +emitb 9 +end +for i ulong get Inlen 0 +emitb get In i +end +ret le get Outlen 0 4096 +end +note SAY/WAIT parser, staged folded bytes. Native CODE receive remains separate. +global Say uchar 160 +global S ulong 5 +fn sayhead to bool +put P 0 0 +put P 2 0 +if ineq 0 87 +expect 87 +expect 65 +expect 73 +expect 84 +expect 32 +number +put S 0 get P 1 +put S 1 0 +put S 2 0 +if ne get P 0 get Inlen 0 +ret false +end +ret eq get P 2 0 +end +expect 83 +expect 65 +expect 89 +expect 32 +number +put S 0 get P 1 +expect 32 +if ne get P 2 0 +ret false +end +put S 1 1 +put S 2 1 +save = get P 0 +number +part = get P 1 +if ineq get P 0 47 +expect 47 +number +put S 2 get P 1 +expect 32 +if or ne get P 2 0 eq part 0 +ret false +end +put S 1 part +else +put P 0 save +put P 2 0 +end +put S 3 get P 0 +ret eq get P 2 0 +end +fn sayfold to bool +n = ulong 0 +p = get S 3 +space = true +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if or ineq p 110 ineq p 116 +c = 32 +p = add p 1 +end +end +if or lt c 32 ge c 127 +c = 32 +end +if eq c 32 +if not space +if ge n 159 +ret false +end +put Say n c +n = add n 1 +end +space = true +else +if ge n 159 +ret false +end +put Say n c +n = add n 1 +space = false +end +end +if gt n 0 +if eq get Say sub n 1 32 +n = sub n 1 +end +end +put S 4 n +ret true +end +note Return1 accepted,2 request AGAIN,3 give up after retry;0 rejected. +fn saytake now ulong to ulong +if or eq get R 1 0 gt get Inlen 0 319 +ret 0 +end +if not sayhead +ret 0 +end +if or ne get S 0 get R 0 lt now get R 4 +ret 0 +end +if eq get S 1 0 +b = heard get S 0 now +ret 1 +end +if not sayfold +ret 0 +end +if gt get R 2 1 +if eq get S 2 0 +ret 0 +end +if ne get C 0 get R 0 +ret 0 +end +if ne codestat 2 +if eq get R 13 0 +put R 13 1 +outreset +emitb 65 +emitb 71 +emitb 65 +emitb 73 +emitb 78 +emitb 32 +emitn get R 0 +ret 2 +end +cancel +ret 3 +end +else +if ne get S 1 add get R 11 1 +ret 0 +end +if and ne get S 2 0 ne get S 2 get S 1 +ret 0 +end +end +n = get R 8 +if or eq get S 1 1 gt get R 2 1 +n = 0 +end +join = ulong 0 +if and gt n 0 gt get S 4 0 +join = 1 +end +if gt add add n join get S 4 159 +ret 0 +end +if gt get R 2 1 +if not codeshow get R 0 +ret 0 +end +end +if eq join 1 +put Answer n uchar 32 +n = add n 1 +end +for i ulong get S 4 +put Answer add n i get Say i +end +put R 8 add n get S 4 +put R 11 get S 1 +put R 4 now +if ne get S 2 0 +put R 1 0 +histadd 1 +end +ret 1 +end +note Exact legacy code row wrapping, at most4096 rows; full code retained. +global Rowst ulong 4096 +global Rowlen ulong 4096 +global Rowline ulong 4096 +global View ulong 4 +global Vwork ulong 6 +note Vwork cols,maxrows,line,start,end. +fn onerow s ulong first bool to ulong +take = sub get Vwork 4 s +cols = get Vwork 0 +if gt take cols +take = cols +j = cols +while gt j div cols 2 +if eq get Code sub add s j 1 32 +take = j +j = 0 +else +j = sub j 1 +end +end +end +slot = get View 0 +put Rowst slot s +put Rowlen slot take +put Rowline slot 0 +if first +put Rowline slot get Vwork 2 +end +put View 0 add slot 1 +ret add s take +end +fn rowroom pos ulong to bool +ret and lt pos get C 2 lt get View 0 get Vwork 1 +end +fn moreline s ulong to bool +ret and lt s get Vwork 4 lt get View 0 get Vwork 1 +end +fn rows cols ulong maxrows ulong to bool +if or eq cols 0 gt maxrows 4096 +ret false +end +if ne codestat 2 +ret false +end +put Vwork 0 cols +put Vwork 1 maxrows +put Vwork 2 1 +put View 0 0 +put View 1 0 +pos = ulong 0 +while rowroom pos +stop = pos +while lt stop get C 2 +if eq get Code stop 10 +put Vwork 4 stop +stop = get C 2 +else +stop = add stop 1 +put Vwork 4 stop +end +end +s = pos +if lt get View 0 maxrows +s = onerow s true +end +while moreline s +s = onerow s false +end +pos = add get Vwork 4 1 +put Vwork 2 add get Vwork 2 1 +end +ret true +end +fn scroll delta long page ulong to ulong +last = ulong 0 +if gt get View 0 page +last = sub get View 0 page +end +if gt get View 1 last +put View 1 last +end +top = long get View 1 +if lt delta 0 +if lt delta neg top +put View 1 0 +ret 0 +end +else +if gt ulong delta sub last get View 1 +put View 1 last +ret last +end +end +top = add top delta +put View 1 ulong top +ret ulong top +end +note Scene state: tone,water,has-say,nthings,used,lines,rejected,over. +global Sc ulong 8 +global Things ulong 64 +global Stext uchar 2304 +global Sw ulong 4 +global Fields uchar 1536 +global Flens ulong 6 +global Soffs ulong 6 +text Vocab "mood|say|note|list|number|quote|person|timer|picture|video|left|right|above|warm|quiet|bloom|rise|fade|to|from|night|dawn|deep|clear|slow|still|lively|" +fn scword beg ulong size ulong to ulong +s = ulong 0 +word = ulong 1 +for i ulong len Vocab +if eq get Vocab i 124 +if eq sub i s size +same = true +for j ulong size +if ne get In add beg j get Vocab add s j +same = false +end +end +if same +ret word +end +end +word = add word 1 +s = add i 1 +end +end +ret 0 +end +fn fieldcap kind ulong field ulong to ulong +if eq kind 2 +if eq field 0 +ret 48 +end +ret 64 +end +if eq kind 1 +if eq field 0 +ret 48 +end +ret 240 +end +if eq kind 3 +if eq field 0 +ret 16 +end +ret 64 +end +if eq kind 4 +if eq field 0 +ret 220 +end +ret 48 +end +if eq kind 5 +if eq field 0 +ret 32 +end +ret 200 +end +if eq kind 6 +if eq field 0 +ret 24 +end +ret 64 +end +if eq field 0 +ret 120 +end +ret 64 +end +fn scfield slot ulong beg ulong stop ulong kind ulong to bool +s = beg +e = stop +while lt s e +if eq get In s 32 +s = add s 1 +else +ret fieldend slot s e kind +end +end +put Flens slot 0 +ret true +end +fn fieldend slot ulong s ulong stop ulong kind ulong to bool +e = stop +while gt e s +if eq get In sub e 1 32 +e = sub e 1 +else +n = sub e s +if gt n fieldcap kind slot +ret false +end +for i ulong n +c = get In add s i +if or lt c 32 gt c 126 +ret false +end +put Fields add mul slot 256 i c +end +put Flens slot n +ret true +end +end +put Flens slot 0 +ret true +end +fn scfields beg ulong stop ulong kind ulong to ulong +slot = ulong 0 +s = beg +for i ulong sub stop beg +p = add beg i +if eq get In p 124 +if ge slot 5 +ret 0 +end +if not scfield slot s p kind +ret 0 +end +slot = add slot 1 +s = add p 1 +end +end +if not scfield slot s stop kind +ret 0 +end +n = add slot 1 +if and ne kind 2 gt n 2 +ret 0 +end +if eq get Flens 0 0 +ret 0 +end +if eq kind 5 +if or lt n 2 eq get Flens 1 0 +ret 0 +end +end +if eq kind 3 +hasdigit = false +for i ulong get Flens 0 +if isdigit get Fields i +hasdigit = true +end +end +if not hasdigit +ret 0 +end +end +ret n +end +fn scput slot ulong to ulong +off = get Sc 4 +n = get Flens slot +for i ulong n +put Stext add off i get Fields add mul slot 256 i +end +put Stext add off n 0 +put Sc 4 add add off n 1 +ret off +end +fn scmod word ulong base ulong to void +if and ge word 11 le word 13 +put Things add base 1 sub word 10 +end +if and ge word 16 le word 18 +put Things add base 2 sub word 16 +end +if and ge word 19 le word 20 +put Things add base 3 sub word 18 +end +if eq word 14 +put Things add base 4 1 +end +if eq word 15 +put Things add base 5 1 +end +end +fn scsay beg ulong stop ulong to bool +if ne get Sc 2 0 +ret false +end +n = sub stop beg +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In add beg i +if or lt c 32 gt c 126 +ret false +end +put Fields i c +end +put Flens 0 n +put Sc 2 1 +put Sw 3 scput 0 +ret true +end +fn scln beg ulong stop ulong to bool +p = beg +while lt p stop +if or eq get In p 32 eq get In p 58 +ret scbody beg p stop +end +p = add p 1 +end +ret false +end +fn scbody beg ulong wordend ulong stop ulong to bool +word = scword beg sub wordend beg +if eq word 2 +s = add wordend 1 +if lt s stop +if eq get In s 58 +s = add s 1 +end +end +while lt s stop +if eq get In s 32 +s = add s 1 +else +ret scsay s stop +end +end +ret false +end +if eq word 1 +s = add wordend 1 +for p ulong sub stop s +at = add add wordend 1 p +if eq get In at 32 +w = scword s sub at s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +s = add at 1 +end +end +w = scword s sub stop s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +ret true +end +if or lt word 3 gt word 10 +ret false +end +if ge get Sc 3 4 +put Sc 7 add get Sc 7 1 +ret false +end +put Sw 0 sub word 2 +colon = wordend +while lt colon stop +if eq get In colon 58 +put Sw 1 wordend +put Sw 2 colon +ret scthing add colon 1 stop +end +colon = add colon 1 +end +ret false +end +fn scthing beg ulong stop ulong to bool +n = scfields beg stop get Sw 0 +if eq n 0 +ret false +end +need = n +for i ulong n +need = add need get Flens i +end +if gt add get Sc 4 need 2304 +ret false +end +base = mul get Sc 3 16 +put Things base get Sw 0 +put Things add base 6 n +s = get Sw 1 +for p ulong sub get Sw 2 s +at = add get Sw 1 p +if eq get In at 32 +w = scword s sub at s +scmod w base +s = add at 1 +end +end +w = scword s sub get Sw 2 s +scmod w base +for i ulong n +put Things add add base 7 i scput i +end +put Sc 3 add get Sc 3 1 +ret true +end +fn scene to bool +for i ulong 8 +put Sc i 0 +end +for i ulong 64 +put Things i 0 +end +put Sw 3 0 +n = get Inlen 0 +if gt n 2048 +n = 2048 +end +s = ulong 0 +for p ulong n +if eq get In p 10 +if gt p s +if lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s p +put Sc 6 add get Sc 6 1 +end +else +put Sc 7 add get Sc 7 1 +end +end +s = add p 1 +end +end +if and lt s n lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s n +put Sc 6 add get Sc 6 1 +end +end +ret or ne get Sc 2 0 ne get Sc 3 0 +end +note Handwritten Omega port of paint.h ck_add, ck_scale, ck_mix and paint.c ck_glow. +note Bounded192x128 RAM canvas. This is rendering core, not full sky/font/device UI. +global Frame uint 24576 +global G ulong 6 +global Fb uchar 73728 +fn channel c uint shift uint to uint +ret and shr c shift 255 +end +fn addcolor d uint c uint a uint to uint +v = uint 0 +for i uint 3 +s = mul i 8 +n = add channel d s shr mul channel c s a 8 +if gt n 255 +n = 255 +end +v = or v shl n s +end +ret v +end +fn scale c uint f uint to uint +ret or and shr mul and c 16711935 f 8 16711935 and shr mul and c 65280 f 8 65280 +end +fn mix d uint c uint a uint to uint +if ge a 256 +ret c +end +ret add scale d sub uint 256 a scale c a +end +fn distance x ulong y ulong to ulong +dx = sub add mul long x 16 8 long get G 0 +dy = sub add mul long y 16 8 long get G 1 +ret ulong add mul dx dx mul dy dy +end +fn weight d2 ulong r2 ulong to ulong +inv = div ulong 1099511627776 r2 +f = sub ulong 256 shr mul d2 inv 32 +w = shr mul shr mul f f 8 f 8 +ret shr mul w get G 4 8 +end +fn glowpix x ulong y ulong to void +d2 = distance x y +r2 = mul get G 2 get G 2 +if ge d2 r2 +ret +end +a = uint weight d2 r2 +at = add mul y 192 x +put Frame at addcolor get Frame at uint get G 3 a +end +fn glow cx ulong cy ulong radius ulong color ulong alpha ulong to bool +if or eq radius 0 gt radius 8192 +ret false +end +if or gt cx 8192 gt cy 8192 +ret false +end +if or gt color 16777215 gt alpha 512 +ret false +end +put G 0 cx +put G 1 cy +put G 2 radius +put G 3 color +put G 4 alpha +for y ulong 128 +for x ulong 192 +glowpix x y +end +end +ret true +end +fn render to void +for i ulong 24576 +put Frame i 0 +end +note Frozen component pose; same halo and heart colors/weights as ck_mind_draw. +b = glow 1536 1024 1088 3951314 68 +b = glow 1536 1024 640 7363839 46 +b = glow 1536 1024 400 16765610 89 +b = glow 1536 1024 160 16772310 218 +b = glow 1536 1024 50 16775920 230 +end +fn frameout to bool +for i ulong 24576 +c = get Frame i +put Fb mul i 3 uchar channel c 16 +put Fb add mul i 3 1 uchar channel c 8 +put Fb add mul i 3 2 uchar channel c 0 +end +n = ulong 0 +while lt n len Fb +w = write 1 Fb n sub len Fb n +if le w 0 +ret false +end +n = add n ulong w +end +ret true +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note Independent serialized lifecycle boundary probes; all assertions run in Omega. +global SavedOut uchar 8192 +fn test ok bool to void +n = get Outlen 0 +e = get Err 0 +for i ulong n +put SavedOut i get Outb i +end +check ok add get Checks 0 1 +for i ulong n +put Outb i get SavedOut i +end +put Outlen 0 n +put Err 0 e +end +fn copyout to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn controlr kind ulong to void +put Inlen 0 0 +b = packet kind get Q 1 0 0 0 +copyout +end +fn liner part ulong value ulong to void +put Inlen 0 1 +put In 0 uchar value +b = packet 2 get Q 1 part 0 0 +copyout +end +fn main to int +test qstart 77 100 +test qnext 100 true +test qsent 100 true +test not qnext 2099 true +test qnext 2100 true +test qsent 2100 true +controlr 6 +test eq qincoming 2101 1 +test qready 2101 +note First failed JOB must be immediately retryable; ACK while no send is outstanding then suppresses retries. +put Inlen 0 3 +put In 0 65 +put In 1 66 +put In 2 67 +test qsubmit 2102 +test qnext 2102 true +test eq get T 10 1 +test qsent 2102 false +test eq get T 10 0 +test qnext 2102 true +test qsent 2102 true +controlr 4 +test eq qincoming 2103 1 +test eq get T 6 1 +test not qnext 4101 true +note Send one line, fail its GOT, then accept duplicate and retry GOT until success. +liner 1 65 +test eq qincoming 4102 1 +test qnext 4102 true +test eq get T 10 3 +test qsent 4102 false +test eq get T 13 1 +liner 1 65 +test eq qincoming 4103 2 +test qnext 4103 true +test qsent 4103 true +test eq get T 13 0 +test qtake +test eq get In 0 65 +test not qtake +note Pending GOT is discarded by cancel; cancelled sequence cannot later emit old receipt. +liner 2 66 +test eq qincoming 4104 1 +test qnext 4104 true +test eq get T 10 3 +qcancel +test eq get T 10 0 +test eq get T 13 0 +test not qsent 4104 true +test not qnext 4104 true +test eq get Q 4 0 +note New submission after cancel uses new sequence; stale old ACK is rejected. +put Inlen 0 1 +put In 0 90 +test qsubmit 4105 +test eq get Q 1 2 +put Inlen 0 0 +b = packet 4 1 0 0 0 +copyout +test eq qincoming 4106 0 +test eq get T 6 0 +test qnext 4106 true +test eq get T 10 1 +test qsent 4106 true +controlr 4 +test eq qincoming 4107 1 +note Existing ready state expires at the strict 30000ms edge, then HELLO uses 2s. +test qready 32100 +test qnext 32100 true +test qsent 32100 true +test not qready 32101 +test not qnext 32101 true +test qnext 34100 true +test eq get T 10 5 +test qsent 34106 true +note Once any LINE is accepted, a later backward-clock packet cannot move clock/state. +liner 1 82 +test eq qincoming 34107 1 +old = get T 0 +liner 2 83 +test eq qincoming 34106 0 +test eq get T 0 old +test eq get Q 2 1 +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.log b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.log new file mode 100644 index 00000000..9a5ae0eb --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.log @@ -0,0 +1,58 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 diff --git a/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.om b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.om new file mode 100644 index 00000000..37e29b0e --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/lifecycle-review.om @@ -0,0 +1,118 @@ +note Independent serialized lifecycle boundary probes; all assertions run in Omega. +global SavedOut uchar 8192 +fn test ok bool to void +n = get Outlen 0 +e = get Err 0 +for i ulong n +put SavedOut i get Outb i +end +check ok add get Checks 0 1 +for i ulong n +put Outb i get SavedOut i +end +put Outlen 0 n +put Err 0 e +end +fn copyout to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn controlr kind ulong to void +put Inlen 0 0 +b = packet kind get Q 1 0 0 0 +copyout +end +fn liner part ulong value ulong to void +put Inlen 0 1 +put In 0 uchar value +b = packet 2 get Q 1 part 0 0 +copyout +end +fn main to int +test qstart 77 100 +test qnext 100 true +test qsent 100 true +test not qnext 2099 true +test qnext 2100 true +test qsent 2100 true +controlr 6 +test eq qincoming 2101 1 +test qready 2101 +note First failed JOB must be immediately retryable; ACK while no send is outstanding then suppresses retries. +put Inlen 0 3 +put In 0 65 +put In 1 66 +put In 2 67 +test qsubmit 2102 +test qnext 2102 true +test eq get T 10 1 +test qsent 2102 false +test eq get T 10 0 +test qnext 2102 true +test qsent 2102 true +controlr 4 +test eq qincoming 2103 1 +test eq get T 6 1 +test not qnext 4101 true +note Send one line, fail its GOT, then accept duplicate and retry GOT until success. +liner 1 65 +test eq qincoming 4102 1 +test qnext 4102 true +test eq get T 10 3 +test qsent 4102 false +test eq get T 13 1 +liner 1 65 +test eq qincoming 4103 2 +test qnext 4103 true +test qsent 4103 true +test eq get T 13 0 +test qtake +test eq get In 0 65 +test not qtake +note Pending GOT is discarded by cancel; cancelled sequence cannot later emit old receipt. +liner 2 66 +test eq qincoming 4104 1 +test qnext 4104 true +test eq get T 10 3 +qcancel +test eq get T 10 0 +test eq get T 13 0 +test not qsent 4104 true +test not qnext 4104 true +test eq get Q 4 0 +note New submission after cancel uses new sequence; stale old ACK is rejected. +put Inlen 0 1 +put In 0 90 +test qsubmit 4105 +test eq get Q 1 2 +put Inlen 0 0 +b = packet 4 1 0 0 0 +copyout +test eq qincoming 4106 0 +test eq get T 6 0 +test qnext 4106 true +test eq get T 10 1 +test qsent 4106 true +controlr 4 +test eq qincoming 4107 1 +note Existing ready state expires at the strict 30000ms edge, then HELLO uses 2s. +test qready 32100 +test qnext 32100 true +test qsent 32100 true +test not qready 32101 +test not qnext 32101 true +test qnext 34100 true +test eq get T 10 5 +test qsent 34106 true +note Once any LINE is accepted, a later backward-clock packet cannot move clock/state. +liner 1 82 +test eq qincoming 34107 1 +old = get T 0 +liner 2 83 +test eq qincoming 34106 0 +test eq get T 0 old +test eq get Q 2 1 +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L725/independent-review/parent-verification.json b/evidence/allen-omega-L694/L725/independent-review/parent-verification.json new file mode 100644 index 00000000..36dc9db2 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/parent-verification.json @@ -0,0 +1,13 @@ +{ + "source": "ae16b168e3c135a4770b4400f4cb9a18dcb289f4", + "exact_core_and_test_closure": true, + "checks": { + "scheduler": 213, + "lifecycle-review": 58 + }, + "parent_rebuild_byte_identical": true, + "parent_probe_exit": 0, + "wire_bytes": 73, + "wire_cmp": 0, + "scope": "host-only; transport and target unqualified" +} diff --git a/evidence/allen-omega-L694/L725/independent-review/report.md b/evidence/allen-omega-L694/L725/independent-review/report.md new file mode 100644 index 00000000..20459335 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/report.md @@ -0,0 +1,27 @@ +# L730 independent review — native Omega courier lifecycle + +## Scope and provenance + +- Reviewed exact candidate `ae16b168e3c135a4770b4400f4cb9a18dcb289f4` against parent `13d02ab4b7145579f6d3faa53442167bfcdcd7bc` in `~/workspace/aienos-allen-omega-L694`. +- Exported candidate source to `~/handoffs/L730-review/source` and rebuilt from that immutable export; local git worktree was clean at review start. +- Reviewed `native/omega/allen/scheduler.om`, its regression suite and API documentation, the reused Omega courier core, and legacy `native/kernel/x86/courier_udp.h` / `courier_udp_x86.c` wire behavior. +- Compiler SHA-256: `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`. + +## Results + +**No findings** in the reviewed serialized lifecycle and tested boundary sequences. + +Executed from the exact export with the pinned `build-one.sh` path: + +1. Rebuilt and ran the narrow scheduler suite: compile exit 0, static AArch64 ELF64 EXEC with no `INTERP`/`NEEDED`, native exit 0, `213` assertions and `0` failures. Combined source SHA-256 `f92c69dd168d6f95984c9150af0544f11a9b265b4aa350e15dc3e3b7bf1de947`; executable SHA-256 `6a815fd66fdb6886af1a8dc857d6951268b43340bfd0f5dcf5ed7e677d384357`. +2. Independently authored and ran `build/lifecycle-review.om` as Omega against the candidate scheduler. Compile exit 0, native exit 0, `58` assertions, `0` failures. Sequences covered failed JOB send/retry, ACK suppressing retries, failed GOT retained through duplicate/retry, `qcancel` discarding pending receipt, post-cancel sequence advancement and stale ACK refusal, strict HI expiry and 2s/10s HELLO timing, and backward-clock LINE refusal without state movement. Full-probe source SHA-256 `46096dd4e85af3c5338088a9b5842cc53286f1eca7a09baf2b5eefe7ed164074`; executable SHA-256 `0e0ecd1704cc4bb5b8187e1b2fd0899b353f1acf78f5ab39b92dc90cfb14aaff`. +3. Built and executed a separate minimal Omega program producing the first HELLO, then compared the resulting bytes with the literal legacy header form using `cmp`: **PASS**, 73 bytes exact (`ALLEN-COURIER v=1 run=000000000000004d kind=HELLO seq=0 part=0/0 bytes=0\n`). Wire executable SHA-256 `7e34ddd7422c798c7abd1f1e551f793152539a5ff431d3c175168c43e2b5f08c`; raw emitted bytes SHA-256 `a33f0ab1a0cbf950f93fb4b85808f4b8af02271426c8f60583060a95bde4f801`. + +The existing courier parser binds packets to the current run and sequence; the lifecycle suite exercises retries, ordered line delivery/duplicate receipts, queue-full recovery, cancellation and refusal boundaries. No source or production files were modified. No live sockets, service/device calls, iMac or physical-target qualification were performed or inferred; this is host-only native execution, not transport/deployment qualification. + +## Review artifacts + +- Export: `~/handoffs/L730-review/source` +- Narrow native suite executable/log/source: `~/handoffs/L730-review/build/scheduler`, `scheduler.log`, `scheduler.om` +- Independent Omega probe source/full-source/executable/log: `~/handoffs/L730-review/build/lifecycle-review.om`, `lifecycle-review.full.om`, `lifecycle-review`, `lifecycle-review.log` +- Wire probe source/executable/raw bytes/expected bytes: `~/handoffs/L730-review/build/wire.om`, `wire`, `wire.bin`, `hello.expected` diff --git a/evidence/allen-omega-L694/L725/independent-review/scheduler.log b/evidence/allen-omega-L694/L725/independent-review/scheduler.log new file mode 100644 index 00000000..1d8ffd12 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/scheduler.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 0 +170 0 +171 0 +172 0 +173 0 +174 0 +175 0 +176 0 +177 0 +178 0 +179 0 +180 0 +181 0 +182 0 +183 0 +184 0 +185 0 +186 0 +187 0 +188 0 +189 0 +190 0 +191 0 +192 0 +193 0 +194 0 +195 0 +196 0 +197 0 +198 0 +199 0 +200 0 +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L725/independent-review/wire.bin b/evidence/allen-omega-L694/L725/independent-review/wire.bin new file mode 100644 index 00000000..d6d7c0c9 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/wire.bin @@ -0,0 +1 @@ +ALLEN-COURIER v=1 run=000000000000004d kind=HELLO seq=0 part=0/0 bytes=0 diff --git a/evidence/allen-omega-L694/L725/independent-review/wire.full.om b/evidence/allen-omega-L694/L725/independent-review/wire.full.om new file mode 100644 index 00000000..804a550a --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/wire.full.om @@ -0,0 +1,2635 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note SHA256 core reused byte-for-byte from native Omega TRN1 at 12251e3403d42931ada27dc1c54b3b610954be5d. +note Reads stdin up to 8 MiB and emits lowercase hex plus LF only after successful EOF. +global Buf uchar 8192 +global H uint 8 +global Vv uint 8 +global W uint 64 +global K uint 64 +global Hb uchar 64 +global Hs ulong 2 +global Hash uchar 32 +global Out uchar 65 +text Hex "0123456789abcdef" + +fn rotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn round i ulong to void +e = get Vv 4 +a = get Vv 0 +s = xor xor rotate e 6 rotate e 11 rotate e 25 +c = xor and e get Vv 5 and not e get Vv 6 +t = add add get Vv 7 s add c add get K i get W i +s = xor xor rotate a 2 rotate a 13 rotate a 22 +c = and a get Vv 1 +c = xor c and a get Vv 2 +c = xor c and get Vv 1 get Vv 2 +u = add s c +put Vv 7 get Vv 6 +put Vv 6 get Vv 5 +put Vv 5 e +put Vv 4 add get Vv 3 t +put Vv 3 get Vv 2 +put Vv 2 get Vv 1 +put Vv 1 a +put Vv 0 add t u +end + +fn block to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get Hb add mul i 4 j +end +put W i x +end +for j ulong 48 +i = add j 16 +x = get W sub i 15 +y = get W sub i 2 +s = xor xor rotate x 7 rotate x 18 shr x 3 +t = xor xor rotate y 17 rotate y 19 shr y 10 +put W i add add get W sub i 16 s add get W sub i 7 t +end +for i ulong 8 +put Vv i get H i +end +for i ulong 64 +round i +end +for i ulong 8 +put H i add get H i get Vv i +end +end + +fn hinit to void +put H 0 1779033703 +put H 1 3144134277 +put H 2 1013904242 +put H 3 2773480762 +put H 4 1359893119 +put H 5 2600822924 +put H 6 528734635 +put H 7 1541459225 +put Hs 0 0 +put Hs 1 0 +end + +fn hbyte c uchar to void +p = get Hs 0 +put Hb p c +p = add p 1 +put Hs 1 add get Hs 1 1 +if eq p 64 +block +p = 0 +end +put Hs 0 p +end + +fn update off ulong count ulong to void +for i ulong count +hbyte get Buf add off i +end +end + +fn finish to void +bits = mul get Hs 1 8 +hbyte 128 +while ne get Hs 0 56 +hbyte 0 +end +for i ulong 8 +hbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get H div i 4 +put Hash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn constants to void +put K 0 1116352408 +put K 1 1899447441 +put K 2 3049323471 +put K 3 3921009573 +put K 4 961987163 +put K 5 1508970993 +put K 6 2453635748 +put K 7 2870763221 +put K 8 3624381080 +put K 9 310598401 +put K 10 607225278 +put K 11 1426881987 +put K 12 1925078388 +put K 13 2162078206 +put K 14 2614888103 +put K 15 3248222580 +put K 16 3835390401 +put K 17 4022224774 +put K 18 264347078 +put K 19 604807628 +put K 20 770255983 +put K 21 1249150122 +put K 22 1555081692 +put K 23 1996064986 +put K 24 2554220882 +put K 25 2821834349 +put K 26 2952996808 +put K 27 3210313671 +put K 28 3336571891 +put K 29 3584528711 +put K 30 113926993 +put K 31 338241895 +put K 32 666307205 +put K 33 773529912 +put K 34 1294757372 +put K 35 1396182291 +put K 36 1695183700 +put K 37 1986661051 +put K 38 2177026350 +put K 39 2456956037 +put K 40 2730485921 +put K 41 2820302411 +put K 42 3259730800 +put K 43 3345764771 +put K 44 3516065817 +put K 45 3600352804 +put K 46 4094571909 +put K 47 275423344 +put K 48 430227734 +put K 49 506948616 +put K 50 659060556 +put K 51 883997877 +put K 52 958139571 +put K 53 1322822218 +put K 54 1537002063 +put K 55 1747873779 +put K 56 1955562222 +put K 57 2024104815 +put K 58 2227730452 +put K 59 2361852424 +put K 60 2428436474 +put K 61 2756734187 +put K 62 3204031479 +put K 63 3329325298 +end + +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note Courier client lifecycle; injected monotonic milliseconds, no host clock/socket. +note T lastclock, HIvalid, HIat, HELLOvalid, HELLOat, active, acked, jobat, +note joblength, cursor, pendingkind, pendingpart, reserved, GOTpart, reserved, reserved. +note Serialized API: qnext publishes one datagram; qsent records actual send result. +note Consume Outb before another serializer; failed sends leave retries due. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +if eq run 0 +ret false +end +qbegin run 0 +for i ulong 16 +put T i 0 +end +put T 0 now +ret true +end +fn qready now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if eq get T 1 0 +ret false +end +ret lt sub now get T 2 30000 +end +fn qsubmit now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +n = get Inlen 0 +if or eq n 0 gt n 4096 +ret false +end +if ge get Q 1 4294967295 +ret false +end +seq = add get Q 1 1 +qbegin get Q 0 seq +for i ulong n +c = get In i +if or eq c 10 eq c 13 +c = uchar 32 +end +put JobOut i c +end +put T 0 now +put T 5 1 +put T 6 0 +put T 7 now +put T 8 n +put T 9 1 +put T 13 0 +ret true +end +fn qnext now ulong link bool to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +put T 0 now +if not link +ret false +end +if ne get T 13 0 +put Inlen 0 0 +if not packet 3 get Q 1 get T 13 0 0 +ret false +end +put T 10 3 +put T 11 get T 13 +ret true +end +delay = ulong 2000 +if qready now +delay = ulong 10000 +end +if or eq get T 3 0 ge sub now get T 4 delay +put Inlen 0 0 +if not packet 5 0 0 0 0 +ret false +end +put T 10 5 +put T 11 0 +ret true +end +if or eq get T 5 0 ne get T 6 0 +ret false +end +part = get T 9 +if eq part 0 +if lt sub now get T 7 2000 +ret false +end +part = ulong 1 +end +n = get T 8 +total = div add n 999 1000 +off = mul sub part 1 1000 +size = sub n off +if gt size 1000 +size = ulong 1000 +end +for i ulong size +put In i get JobOut add off i +end +put Inlen 0 size +if not packet 1 get Q 1 part total n +ret false +end +put T 10 1 +put T 11 part +ret true +end +fn qsent now ulong ok bool to bool +if or eq get T 10 0 lt now get T 0 +ret false +end +kind = get T 10 +part = get T 11 +put T 0 now +put T 10 0 +put T 11 0 +if not ok +ret true +end +if eq kind 5 +put T 3 1 +put T 4 now +end +if eq kind 3 +if eq get T 13 part +put T 13 0 +end +end +if eq kind 1 +if or ne get T 6 0 ge part div add get T 8 999 1000 +put T 9 0 +put T 7 now +else +put T 9 add part 1 +end +end +ret true +end +fn qincoming now ulong to ulong +if or eq get Q 0 0 lt now get T 0 +ret 0 +end +if not pkparse +ret 0 +end +kind = get N 0 +if eq kind 6 +if or ne get N 1 0 ne get N 2 0 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if ne get N 6 0 +ret 0 +end +put T 0 now +put T 1 1 +put T 2 now +ret 1 +end +if or eq get T 5 0 ne get N 1 get Q 1 +ret 0 +end +if eq kind 4 +if or ne get N 2 0 ne get N 3 0 +ret 0 +end +if or ne get N 4 0 ne get N 6 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +ret 1 +end +if ne kind 2 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if and ne get T 13 0 ne get T 13 get N 2 +ret 0 +end +result = qreceive +if eq result 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +put T 13 get N 2 +ret result +end +fn qcancel to void +put T 5 0 +put T 6 0 +put T 8 0 +put T 9 0 +put T 10 0 +put T 11 0 +put T 13 0 +put Q 3 0 +put Q 4 0 +end +note Legacy application record codec; SHA is unkeyed integrity ONLY. +global Unit uchar 4096 +global Enc uchar 4096 +global Mem uchar 3692 +global Md ulong 3 +global Note uchar 128 +global Ns ulong 4 +text Magic "AIENALM1" +text Nmagic "AIENNOT1" +fn get32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Unit add off i mul i 8 +end +ret v +end +fn get64 off ulong to ulong +ret or get32 off shl get32 add off 4 32 +end +fn put32 off ulong v ulong to void +for i ulong 4 +put Unit add off i uchar and shr v mul i 8 255 +end +end +fn put64 off ulong v ulong to void +put32 off and v 4294967295 +put32 add off 4 shr v 32 +end +fn mem32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Mem add off i mul i 8 +end +ret v +end +fn mset32 off ulong v ulong to void +for i ulong 4 +put Mem add off i uchar and shr v mul i 8 255 +end +end +fn zeroend off ulong to bool +for i ulong sub ulong 4096 off +if ne get Unit add off i 0 +ret false +end +end +ret true +end +fn fieldok off ulong cap ulong name bool to bool +n = ulong 0 +while lt n cap +if eq get Unit add off n 0 +for j ulong sub cap n +if ne get Unit add add off n j 0 +ret false +end +end +ret true +end +c = get Unit add off n +lower = and ge c 97 le c 122 +digit = isdigit c +if name +if eq n 0 +if not or and ge c 65 le c 90 digit +ret false +end +else +if not or lower digit +ret false +end +end +else +if eq c 32 +if or eq n 0 eq n sub cap 1 +ret false +end +if eq get Unit add off add n 1 0 +ret false +end +if eq get Unit add off sub n 1 32 +ret false +end +else +if not or lower digit +ret false +end +end +end +n = add n 1 +end +ret false +end +fn digest count ulong to void +hinit +for i ulong 32 +hbyte get Unit i +end +for i ulong count +hbyte get Unit add i 64 +end +finish +end +fn hashok count ulong to bool +digest count +d = uchar 0 +for i ulong 32 +d = or d xor get Hash i get Unit add i 32 +end +ret eq d 0 +end +fn seal count ulong to void +digest count +for i ulong 32 +put Unit add i 32 get Hash i +end +end +fn memvalid to bool +for i ulong 8 +if ne get Unit i get Magic i +ret false +end +end +ver = get32 8 +if or lt ver 2 gt ver 4 +ret false +end +n = get32 96 +if or gt n 32 gt get32 100 512 +ret false +end +size = add 40 mul n 113 +if ge ver 3 +size = add size 24 +end +if eq ver 4 +size = add size 12 +end +if or ne size get32 12 eq get64 16 0 +ret false +end +for i ulong 8 +if ne get Unit add i 24 0 +ret false +end +end +if not zeroend add 64 size +ret false +end +if not hashok size +ret false +end +if not fieldok 72 24 true +ret false +end +for i ulong n +off = add 104 mul i 113 +if or eq get Unit off 0 eq get Unit add off 48 0 +ret false +end +if not fieldok off 48 false +ret false +end +if not fieldok add off 48 64 false +ret false +end +if gt get Unit add off 112 1 +ret false +end +end +off = add 104 mul n 113 +if ge ver 3 +if not fieldok off 24 true +ret false +end +end +if eq ver 4 +if ne get Unit add off 27 0 +ret false +end +end +ret true +end +fn memdec to bool +if not memvalid +ret false +end +size = get32 12 +for i ulong 3692 +put Mem i 0 +end +for i ulong size +put Mem i get Unit add i 64 +end +put Md 0 get64 16 +put Md 1 get32 8 +put Md 2 size +ret true +end +fn memenc gen ulong to bool +n = mem32 32 +if or gt n 32 eq gen 0 +ret false +end +size = add 76 mul n 113 +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Magic i +end +put32 8 4 +put32 12 size +put64 16 gen +for i ulong size +put Unit add i 64 get Mem i +end +seal size +if not memvalid +ret false +end +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +fn noteval index ulong to bool +for i ulong 8 +if ne get Unit i get Nmagic i +ret false +end +end +n = get32 12 +if or eq n 0 ge n 128 +ret false +end +if or ne get32 8 1 ne get32 16 index +ret false +end +if or gt get32 24 1 ne get32 28 0 +ret false +end +if not zeroend add n 64 +ret false +end +for i ulong n +c = get Unit add i 64 +if or lt c 32 gt c 126 +ret false +end +end +ret hashok n +end +fn notedec index ulong to bool +if not noteval index +ret false +end +n = get32 12 +for i ulong 128 +put Note i 0 +end +for i ulong n +put Note i get Unit add i 64 +end +put Ns 0 n +put Ns 1 index +put Ns 2 get32 20 +put Ns 3 get32 24 +ret true +end +fn noteenc to bool +n = get Ns 0 +if or eq n 0 ge n 128 +ret false +end +if or gt get Ns 1 511 gt get Ns 2 4294967295 +ret false +end +if gt get Ns 3 1 +ret false +end +for i ulong n +c = get Note i +if or lt c 32 gt c 126 +ret false +end +end +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Nmagic i +end +put32 8 1 +put32 12 n +put32 16 get Ns 1 +put32 20 get Ns 2 +put32 24 get Ns 3 +for i ulong n +put Unit add i 64 get Note i +end +seal n +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +note Store St gen,newest,valid. Tx phase,target,newgen. Provider owns actual I/O. +global St ulong 3 +global Nt ulong 2 +global Load ulong 1 +global Tx ulong 3 +fn txbegin to bool +if ne get Nt 0 0 +ret false +end +if or ne get Tx 0 0 eq get St 0 18446744073709551615 +ret false +end +if not memenc add get St 0 1 +ret false +end +put Tx 1 0 +if ne get St 0 0 +put Tx 1 sub ulong 1 get St 1 +end +put Tx 2 add get St 0 1 +put Tx 0 1 +ret true +end +fn txwrite ok bool to bool +if ne get Tx 0 1 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 2 +ret true +end +fn txflush ok bool to bool +if ne get Tx 0 2 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 3 +ret true +end +fn txread ok bool to bool +if ne get Tx 0 3 +ret false +end +put Tx 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Unit i get Enc i +end +if ne d 0 +ret false +end +put St 0 get Tx 2 +put St 1 get Tx 1 +if lt get St 2 2 +put St 2 add get St 2 1 +end +ret true +end +note Load each copy once into Unit. Caller resets St and calls loadcopy0,1. +fn loadbeg to void +for i ulong 3 +put St i 0 +end +put Load 0 0 +end +fn loadcopy slot ulong to bool +if gt slot 1 +ret false +end +if ne and get Load 0 shl ulong 1 slot 0 +ret false +end +if not memvalid +ret false +end +put Load 0 or get Load 0 shl ulong 1 slot +put St 2 add get St 2 1 +if gt get64 16 get St 0 +b = memdec +put St 0 get Md 0 +put St 1 slot +end +ret true +end +note Note transaction completes before the parent copy may publish its count. +fn nbegin to bool +if or ne get Nt 0 0 ne get Tx 0 0 +ret false +end +if not noteenc +ret false +end +put Nt 1 get Ns 1 +put Nt 0 1 +ret true +end +fn nwrite ok bool to bool +if ne get Nt 0 1 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 2 +ret true +end +fn nflush ok bool to bool +if ne get Nt 0 2 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 3 +ret true +end +fn nread ok bool to bool +if ne get Nt 0 3 +ret false +end +put Nt 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Enc i get Unit i +end +if ne d 0 +ret false +end +ret noteval get Nt 1 +end +note Intent vocabulary frozen from svc/allen_intent.c. It selects jobs, never answers. +global Fold uchar 160 +global Fn ulong 2 +text Lists "please|can you|could you|would you|will you|i d like you to|i want you to|i need you to|allen|hey allen|ok|okay\nwrite|make|build|create|code|program|generate|implement|develop|give me a|i need a|i want a\ncode|program|programs|script|scripts|function|functions|app|apps|application|game|games|website|web page|webpage|calculator|converter|parser|compiler|interpreter|algorithm|class|api|server|bot|regex|unit test|unit tests|cli|command line tool|snake|tetris|pong|todo app|to do app|to do list app|timer app|stopwatch|python|javascript|typescript|rust|golang|java|kotlin|swift|ruby|php|html|css|sql|bash|shell script|c program|c code|in c|c plus plus|cpp|mojo|zig|haskell|lua|perl\npoem|poems|haiku|story|stories|song|songs|letter|email|essay|joke|jokes|limerick|speech\ncode|program|script\nnow|add|also|and|change|make it|make the|rename|remove|delete|replace|use|fix|put|give it|let it|instead|then|next|can it|could it|it should|the|move|turn|show|split|convert it|rewrite|port it|translate it|explain it\nwrite|make|build|create|code|program|draft|compose|generate|design|implement|invent|name|give me a|i need a|i want a\na poem|a haiku|a story|a song|a script|a function|a program|a list of|some code|a letter|an email|a plan for|a name for\nexplain|what is|what are|whats|what s|why|how does|how do|how is|how are|describe|tell me about|what does|who was|who is|define|when was|when did|where is|is it true\ndifference between|mean|means\ndo|run|fix|find|search|look up|check|open|send|start|stop|install|set up|plan|schedule|calculate|work out|convert|translate|summarize|summarise|list|sort|count|compare|turn|go\n" +fn foldin to void +n = ulong 0 +space = false +for i ulong get Inlen 0 +c = get In i +if and ge c 65 le c 90 +c = add sub c 65 97 +end +if or and ge c 97 le c 122 isdigit c +if and space gt n 0 +put Fold n uchar 32 +n = add n 1 +end +put Fold n c +n = add n 1 +space = false +else +space = true +end +end +put Fn 0 n +put Fn 1 0 +end +fn phrase at ulong off ulong size ulong to bool +if gt add at size get Fn 0 +ret false +end +for i ulong size +if ne get Fold add at i get Lists add off i +ret false +end +end +if lt add at size get Fn 0 +if ne get Fold add at size 32 +ret false +end +end +ret true +end +fn inphrase off ulong size ulong anypos bool to bool +if not anypos +ret phrase get Fn 1 off size +end +count = sub get Fn 0 get Fn 1 +for i ulong count +at = add i get Fn 1 +ok = eq at get Fn 1 +if gt at 0 +ok = or ok eq get Fold sub at 1 32 +end +if ok +if phrase at off size +ret true +end +end +end +ret false +end +fn listed group ulong anypos bool to ulong +g = ulong 0 +s = ulong 0 +for p ulong len Lists +c = get Lists p +if or eq c 124 eq c 10 +if eq g group +if inphrase s sub p s anypos +ret sub p s +end +end +s = add p 1 +if eq c 10 +g = add g 1 +end +end +end +ret 0 +end +fn classify to ulong +if not textok +ret 0 +end +foldin +skip = listed 0 false +while gt skip 0 +if ge add get Fn 1 skip get Fn 0 +skip = 0 +else +put Fn 1 add add get Fn 1 skip 1 +skip = listed 0 false +end +end +if and ne get R 6 0 gt listed 5 false 0 +ret 3 +end +plain = listed 4 false +if or eq plain 4 eq plain 7 +ret 2 +end +if and gt listed 3 true 0 eq listed 4 true 0 +ret 1 +end +if and gt listed 1 false 0 gt listed 2 true 0 +ret 2 +end +ret 1 +end +note Ordinary want enum0chat,1make,2explain,3do. +fn jobwant to ulong +if gt listed 8 false 0 +ret 2 +end +if or gt listed 6 false 0 gt listed 7 true 0 +ret 1 +end +if gt listed 10 false 0 +ret 3 +end +if gt listed 9 true 0 +ret 2 +end +ret 0 +end +text Job "JOB " +text Codeask " asked " +text Forcode " for code.\t" +text Formore " to change the code just shown.\t" +text Wantstr "chatmakeexplaindo" +text Intro "You are the far hands of " +text Home ", a quiet presence living in AIENOS on " +text Comp "'s computer. You answer as " +text Sees "; " +text Words " sees only your words, as if " +text Said " said them. Plain English, short sentences, no headings, no lists, no greetings, no apologies. Plain letters and punctuation only: no dashes, no curly quotes, no symbols. Never mention a model, a prompt or instructions. " +text Make " asked for something to be made. Make it whole and correct. Begin with one short sentence saying what you made, then the work itself." +text Explain " asked to understand something. Explain it in three plain sentences at most, the heart of it first, no more than is needed." +text Doing " asked for something to be done. " +text Cannot " cannot yet act outside this computer, so say in two or three short sentences what you would do, in order, and what you would need." +text Chat " said something in passing. Answer in one or two warm, plain sentences." +text Allen "Allen" +text Person "the person" +fn selfemit to void +off = add 40 mul mem32 32 113 +if eq get Mem off 0 +for i ulong len Allen +emitb get Allen i +end +else +for i ulong 24 +c = get Mem add off i +if eq c 0 +ret +end +emitb c +end +end +end +fn whoemit to void +if eq get Mem 8 0 +for i ulong len Person +emitb get Person i +end +else +for i ulong 24 +c = get Mem add i 8 +if eq c 0 +ret +end +emitb c +end +end +end +fn jobbuild kind ulong seq ulong to bool +if or lt kind 1 gt kind 3 +ret false +end +if or eq seq 0 gt seq 4294967295 +ret false +end +if not textok +ret false +end +outreset +for i ulong len Job +emitb get Job i +end +emitn seq +emitb 32 +if gt kind 1 +emitb 99 +emitb 111 +emitb 100 +emitb 101 +if eq kind 3 +emitb 45 +emitb 109 +emitb 111 +emitb 114 +emitb 101 +end +emitb 32 +whoemit +for i ulong len Codeask +emitb get Codeask i +end +selfemit +if eq kind 3 +for i ulong len Formore +emitb get Formore i +end +else +for i ulong len Forcode +emitb get Forcode i +end +end +else +w = jobwant +off = ulong 0 +size = ulong 4 +if eq w 1 +off = 4 +end +if eq w 2 +off = 8 +size = 7 +end +if eq w 3 +off = 15 +size = 2 +end +for i ulong size +emitb get Wantstr add off i +end +emitb 32 +for i ulong len Intro +emitb get Intro i +end +selfemit +for i ulong len Home +emitb get Home i +end +whoemit +for i ulong len Comp +emitb get Comp i +end +selfemit +for i ulong len Sees +emitb get Sees i +end +whoemit +for i ulong len Words +emitb get Words i +end +selfemit +for i ulong len Said +emitb get Said i +end +whoemit +if eq w 0 +for i ulong len Chat +emitb get Chat i +end +end +if eq w 1 +for i ulong len Make +emitb get Make i +end +end +if eq w 2 +for i ulong len Explain +emitb get Explain i +end +end +if eq w 3 +for i ulong len Doing +emitb get Doing i +end +selfemit +for i ulong len Cannot +emitb get Cannot i +end +end +emitb 9 +end +for i ulong get Inlen 0 +emitb get In i +end +ret le get Outlen 0 4096 +end +note SAY/WAIT parser, staged folded bytes. Native CODE receive remains separate. +global Say uchar 160 +global S ulong 5 +fn sayhead to bool +put P 0 0 +put P 2 0 +if ineq 0 87 +expect 87 +expect 65 +expect 73 +expect 84 +expect 32 +number +put S 0 get P 1 +put S 1 0 +put S 2 0 +if ne get P 0 get Inlen 0 +ret false +end +ret eq get P 2 0 +end +expect 83 +expect 65 +expect 89 +expect 32 +number +put S 0 get P 1 +expect 32 +if ne get P 2 0 +ret false +end +put S 1 1 +put S 2 1 +save = get P 0 +number +part = get P 1 +if ineq get P 0 47 +expect 47 +number +put S 2 get P 1 +expect 32 +if or ne get P 2 0 eq part 0 +ret false +end +put S 1 part +else +put P 0 save +put P 2 0 +end +put S 3 get P 0 +ret eq get P 2 0 +end +fn sayfold to bool +n = ulong 0 +p = get S 3 +space = true +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if or ineq p 110 ineq p 116 +c = 32 +p = add p 1 +end +end +if or lt c 32 ge c 127 +c = 32 +end +if eq c 32 +if not space +if ge n 159 +ret false +end +put Say n c +n = add n 1 +end +space = true +else +if ge n 159 +ret false +end +put Say n c +n = add n 1 +space = false +end +end +if gt n 0 +if eq get Say sub n 1 32 +n = sub n 1 +end +end +put S 4 n +ret true +end +note Return1 accepted,2 request AGAIN,3 give up after retry;0 rejected. +fn saytake now ulong to ulong +if or eq get R 1 0 gt get Inlen 0 319 +ret 0 +end +if not sayhead +ret 0 +end +if or ne get S 0 get R 0 lt now get R 4 +ret 0 +end +if eq get S 1 0 +b = heard get S 0 now +ret 1 +end +if not sayfold +ret 0 +end +if gt get R 2 1 +if eq get S 2 0 +ret 0 +end +if ne get C 0 get R 0 +ret 0 +end +if ne codestat 2 +if eq get R 13 0 +put R 13 1 +outreset +emitb 65 +emitb 71 +emitb 65 +emitb 73 +emitb 78 +emitb 32 +emitn get R 0 +ret 2 +end +cancel +ret 3 +end +else +if ne get S 1 add get R 11 1 +ret 0 +end +if and ne get S 2 0 ne get S 2 get S 1 +ret 0 +end +end +n = get R 8 +if or eq get S 1 1 gt get R 2 1 +n = 0 +end +join = ulong 0 +if and gt n 0 gt get S 4 0 +join = 1 +end +if gt add add n join get S 4 159 +ret 0 +end +if gt get R 2 1 +if not codeshow get R 0 +ret 0 +end +end +if eq join 1 +put Answer n uchar 32 +n = add n 1 +end +for i ulong get S 4 +put Answer add n i get Say i +end +put R 8 add n get S 4 +put R 11 get S 1 +put R 4 now +if ne get S 2 0 +put R 1 0 +histadd 1 +end +ret 1 +end +note Exact legacy code row wrapping, at most4096 rows; full code retained. +global Rowst ulong 4096 +global Rowlen ulong 4096 +global Rowline ulong 4096 +global View ulong 4 +global Vwork ulong 6 +note Vwork cols,maxrows,line,start,end. +fn onerow s ulong first bool to ulong +take = sub get Vwork 4 s +cols = get Vwork 0 +if gt take cols +take = cols +j = cols +while gt j div cols 2 +if eq get Code sub add s j 1 32 +take = j +j = 0 +else +j = sub j 1 +end +end +end +slot = get View 0 +put Rowst slot s +put Rowlen slot take +put Rowline slot 0 +if first +put Rowline slot get Vwork 2 +end +put View 0 add slot 1 +ret add s take +end +fn rowroom pos ulong to bool +ret and lt pos get C 2 lt get View 0 get Vwork 1 +end +fn moreline s ulong to bool +ret and lt s get Vwork 4 lt get View 0 get Vwork 1 +end +fn rows cols ulong maxrows ulong to bool +if or eq cols 0 gt maxrows 4096 +ret false +end +if ne codestat 2 +ret false +end +put Vwork 0 cols +put Vwork 1 maxrows +put Vwork 2 1 +put View 0 0 +put View 1 0 +pos = ulong 0 +while rowroom pos +stop = pos +while lt stop get C 2 +if eq get Code stop 10 +put Vwork 4 stop +stop = get C 2 +else +stop = add stop 1 +put Vwork 4 stop +end +end +s = pos +if lt get View 0 maxrows +s = onerow s true +end +while moreline s +s = onerow s false +end +pos = add get Vwork 4 1 +put Vwork 2 add get Vwork 2 1 +end +ret true +end +fn scroll delta long page ulong to ulong +last = ulong 0 +if gt get View 0 page +last = sub get View 0 page +end +if gt get View 1 last +put View 1 last +end +top = long get View 1 +if lt delta 0 +if lt delta neg top +put View 1 0 +ret 0 +end +else +if gt ulong delta sub last get View 1 +put View 1 last +ret last +end +end +top = add top delta +put View 1 ulong top +ret ulong top +end +note Scene state: tone,water,has-say,nthings,used,lines,rejected,over. +global Sc ulong 8 +global Things ulong 64 +global Stext uchar 2304 +global Sw ulong 4 +global Fields uchar 1536 +global Flens ulong 6 +global Soffs ulong 6 +text Vocab "mood|say|note|list|number|quote|person|timer|picture|video|left|right|above|warm|quiet|bloom|rise|fade|to|from|night|dawn|deep|clear|slow|still|lively|" +fn scword beg ulong size ulong to ulong +s = ulong 0 +word = ulong 1 +for i ulong len Vocab +if eq get Vocab i 124 +if eq sub i s size +same = true +for j ulong size +if ne get In add beg j get Vocab add s j +same = false +end +end +if same +ret word +end +end +word = add word 1 +s = add i 1 +end +end +ret 0 +end +fn fieldcap kind ulong field ulong to ulong +if eq kind 2 +if eq field 0 +ret 48 +end +ret 64 +end +if eq kind 1 +if eq field 0 +ret 48 +end +ret 240 +end +if eq kind 3 +if eq field 0 +ret 16 +end +ret 64 +end +if eq kind 4 +if eq field 0 +ret 220 +end +ret 48 +end +if eq kind 5 +if eq field 0 +ret 32 +end +ret 200 +end +if eq kind 6 +if eq field 0 +ret 24 +end +ret 64 +end +if eq field 0 +ret 120 +end +ret 64 +end +fn scfield slot ulong beg ulong stop ulong kind ulong to bool +s = beg +e = stop +while lt s e +if eq get In s 32 +s = add s 1 +else +ret fieldend slot s e kind +end +end +put Flens slot 0 +ret true +end +fn fieldend slot ulong s ulong stop ulong kind ulong to bool +e = stop +while gt e s +if eq get In sub e 1 32 +e = sub e 1 +else +n = sub e s +if gt n fieldcap kind slot +ret false +end +for i ulong n +c = get In add s i +if or lt c 32 gt c 126 +ret false +end +put Fields add mul slot 256 i c +end +put Flens slot n +ret true +end +end +put Flens slot 0 +ret true +end +fn scfields beg ulong stop ulong kind ulong to ulong +slot = ulong 0 +s = beg +for i ulong sub stop beg +p = add beg i +if eq get In p 124 +if ge slot 5 +ret 0 +end +if not scfield slot s p kind +ret 0 +end +slot = add slot 1 +s = add p 1 +end +end +if not scfield slot s stop kind +ret 0 +end +n = add slot 1 +if and ne kind 2 gt n 2 +ret 0 +end +if eq get Flens 0 0 +ret 0 +end +if eq kind 5 +if or lt n 2 eq get Flens 1 0 +ret 0 +end +end +if eq kind 3 +hasdigit = false +for i ulong get Flens 0 +if isdigit get Fields i +hasdigit = true +end +end +if not hasdigit +ret 0 +end +end +ret n +end +fn scput slot ulong to ulong +off = get Sc 4 +n = get Flens slot +for i ulong n +put Stext add off i get Fields add mul slot 256 i +end +put Stext add off n 0 +put Sc 4 add add off n 1 +ret off +end +fn scmod word ulong base ulong to void +if and ge word 11 le word 13 +put Things add base 1 sub word 10 +end +if and ge word 16 le word 18 +put Things add base 2 sub word 16 +end +if and ge word 19 le word 20 +put Things add base 3 sub word 18 +end +if eq word 14 +put Things add base 4 1 +end +if eq word 15 +put Things add base 5 1 +end +end +fn scsay beg ulong stop ulong to bool +if ne get Sc 2 0 +ret false +end +n = sub stop beg +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In add beg i +if or lt c 32 gt c 126 +ret false +end +put Fields i c +end +put Flens 0 n +put Sc 2 1 +put Sw 3 scput 0 +ret true +end +fn scln beg ulong stop ulong to bool +p = beg +while lt p stop +if or eq get In p 32 eq get In p 58 +ret scbody beg p stop +end +p = add p 1 +end +ret false +end +fn scbody beg ulong wordend ulong stop ulong to bool +word = scword beg sub wordend beg +if eq word 2 +s = add wordend 1 +if lt s stop +if eq get In s 58 +s = add s 1 +end +end +while lt s stop +if eq get In s 32 +s = add s 1 +else +ret scsay s stop +end +end +ret false +end +if eq word 1 +s = add wordend 1 +for p ulong sub stop s +at = add add wordend 1 p +if eq get In at 32 +w = scword s sub at s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +s = add at 1 +end +end +w = scword s sub stop s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +ret true +end +if or lt word 3 gt word 10 +ret false +end +if ge get Sc 3 4 +put Sc 7 add get Sc 7 1 +ret false +end +put Sw 0 sub word 2 +colon = wordend +while lt colon stop +if eq get In colon 58 +put Sw 1 wordend +put Sw 2 colon +ret scthing add colon 1 stop +end +colon = add colon 1 +end +ret false +end +fn scthing beg ulong stop ulong to bool +n = scfields beg stop get Sw 0 +if eq n 0 +ret false +end +need = n +for i ulong n +need = add need get Flens i +end +if gt add get Sc 4 need 2304 +ret false +end +base = mul get Sc 3 16 +put Things base get Sw 0 +put Things add base 6 n +s = get Sw 1 +for p ulong sub get Sw 2 s +at = add get Sw 1 p +if eq get In at 32 +w = scword s sub at s +scmod w base +s = add at 1 +end +end +w = scword s sub get Sw 2 s +scmod w base +for i ulong n +put Things add add base 7 i scput i +end +put Sc 3 add get Sc 3 1 +ret true +end +fn scene to bool +for i ulong 8 +put Sc i 0 +end +for i ulong 64 +put Things i 0 +end +put Sw 3 0 +n = get Inlen 0 +if gt n 2048 +n = 2048 +end +s = ulong 0 +for p ulong n +if eq get In p 10 +if gt p s +if lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s p +put Sc 6 add get Sc 6 1 +end +else +put Sc 7 add get Sc 7 1 +end +end +s = add p 1 +end +end +if and lt s n lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s n +put Sc 6 add get Sc 6 1 +end +end +ret or ne get Sc 2 0 ne get Sc 3 0 +end +note Handwritten Omega port of paint.h ck_add, ck_scale, ck_mix and paint.c ck_glow. +note Bounded192x128 RAM canvas. This is rendering core, not full sky/font/device UI. +global Frame uint 24576 +global G ulong 6 +global Fb uchar 73728 +fn channel c uint shift uint to uint +ret and shr c shift 255 +end +fn addcolor d uint c uint a uint to uint +v = uint 0 +for i uint 3 +s = mul i 8 +n = add channel d s shr mul channel c s a 8 +if gt n 255 +n = 255 +end +v = or v shl n s +end +ret v +end +fn scale c uint f uint to uint +ret or and shr mul and c 16711935 f 8 16711935 and shr mul and c 65280 f 8 65280 +end +fn mix d uint c uint a uint to uint +if ge a 256 +ret c +end +ret add scale d sub uint 256 a scale c a +end +fn distance x ulong y ulong to ulong +dx = sub add mul long x 16 8 long get G 0 +dy = sub add mul long y 16 8 long get G 1 +ret ulong add mul dx dx mul dy dy +end +fn weight d2 ulong r2 ulong to ulong +inv = div ulong 1099511627776 r2 +f = sub ulong 256 shr mul d2 inv 32 +w = shr mul shr mul f f 8 f 8 +ret shr mul w get G 4 8 +end +fn glowpix x ulong y ulong to void +d2 = distance x y +r2 = mul get G 2 get G 2 +if ge d2 r2 +ret +end +a = uint weight d2 r2 +at = add mul y 192 x +put Frame at addcolor get Frame at uint get G 3 a +end +fn glow cx ulong cy ulong radius ulong color ulong alpha ulong to bool +if or eq radius 0 gt radius 8192 +ret false +end +if or gt cx 8192 gt cy 8192 +ret false +end +if or gt color 16777215 gt alpha 512 +ret false +end +put G 0 cx +put G 1 cy +put G 2 radius +put G 3 color +put G 4 alpha +for y ulong 128 +for x ulong 192 +glowpix x y +end +end +ret true +end +fn render to void +for i ulong 24576 +put Frame i 0 +end +note Frozen component pose; same halo and heart colors/weights as ck_mind_draw. +b = glow 1536 1024 1088 3951314 68 +b = glow 1536 1024 640 7363839 46 +b = glow 1536 1024 400 16765610 89 +b = glow 1536 1024 160 16772310 218 +b = glow 1536 1024 50 16775920 230 +end +fn frameout to bool +for i ulong 24576 +c = get Frame i +put Fb mul i 3 uchar channel c 16 +put Fb add mul i 3 1 uchar channel c 8 +put Fb add mul i 3 2 uchar channel c 0 +end +n = ulong 0 +while lt n len Fb +w = write 1 Fb n sub len Fb n +if le w 0 +ret false +end +n = add n ulong w +end +ret true +end +fn main to int +a = qstart 77 100 +b = qnext 100 true +w = write 1 Outb 0 get Outlen 0 +ret 0 +end diff --git a/evidence/allen-omega-L694/L725/independent-review/wire.om b/evidence/allen-omega-L694/L725/independent-review/wire.om new file mode 100644 index 00000000..63d75935 --- /dev/null +++ b/evidence/allen-omega-L694/L725/independent-review/wire.om @@ -0,0 +1,6 @@ +fn main to int +a = qstart 77 100 +b = qnext 100 true +w = write 1 Outb 0 get Outlen 0 +ret 0 +end diff --git a/evidence/allen-omega-L694/L725/intent.log b/evidence/allen-omega-L694/L725/intent.log new file mode 100644 index 00000000..5371bd36 --- /dev/null +++ b/evidence/allen-omega-L694/L725/intent.log @@ -0,0 +1,8 @@ +501 0 +502 0 +503 0 +504 0 +505 0 +506 0 +507 0 +508 0 diff --git a/evidence/allen-omega-L694/L725/keepalive-mutant.log b/evidence/allen-omega-L694/L725/keepalive-mutant.log new file mode 100644 index 00000000..2e3415df --- /dev/null +++ b/evidence/allen-omega-L694/L725/keepalive-mutant.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 1 +19 1 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 1 +54 1 +55 1 +56 1 +57 0 +58 0 +59 1 +60 0 +61 0 +62 0 +63 0 +64 0 +65 1 +66 0 +67 0 +68 0 +69 1 +70 1 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 1 +170 0 +171 1 +172 1 +173 0 +174 1 +175 0 +176 0 +177 0 +178 1 +179 1 +180 1 +181 1 +182 1 +183 1 +184 1 +185 1 +186 1 +187 1 +188 1 +189 1 +190 1 +191 1 +192 1 +193 1 +194 1 +195 1 +196 1 +197 1 +198 0 +199 1 +200 0 +201 0 +202 1 +203 1 +204 1 +205 0 +206 1 +207 1 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L725/long.log b/evidence/allen-omega-L694/L725/long.log new file mode 100644 index 00000000..0a060bc8 --- /dev/null +++ b/evidence/allen-omega-L694/L725/long.log @@ -0,0 +1,292 @@ +401 0 +410 0 +411 0 +412 0 +413 0 +414 0 +415 0 +416 0 +417 0 +418 0 +419 0 +420 0 +421 0 +422 0 +423 0 +424 0 +425 0 +426 0 +427 0 +428 0 +429 0 +430 0 +431 0 +432 0 +433 0 +434 0 +435 0 +436 0 +437 0 +438 0 +439 0 +440 0 +441 0 +442 0 +443 0 +444 0 +445 0 +446 0 +447 0 +448 0 +449 0 +450 0 +451 0 +452 0 +453 0 +454 0 +455 0 +456 0 +457 0 +458 0 +459 0 +460 0 +461 0 +462 0 +463 0 +464 0 +465 0 +466 0 +467 0 +468 0 +469 0 +470 0 +471 0 +472 0 +473 0 +474 0 +475 0 +476 0 +477 0 +478 0 +479 0 +480 0 +481 0 +482 0 +483 0 +484 0 +485 0 +486 0 +487 0 +488 0 +489 0 +490 0 +491 0 +492 0 +493 0 +494 0 +495 0 +496 0 +497 0 +498 0 +499 0 +500 0 +501 0 +502 0 +503 0 +504 0 +505 0 +506 0 +507 0 +508 0 +509 0 +510 0 +511 0 +512 0 +513 0 +514 0 +515 0 +516 0 +517 0 +518 0 +519 0 +520 0 +521 0 +522 0 +523 0 +524 0 +525 0 +526 0 +527 0 +528 0 +529 0 +530 0 +531 0 +532 0 +533 0 +534 0 +535 0 +536 0 +537 0 +538 0 +539 0 +540 0 +541 0 +542 0 +543 0 +544 0 +545 0 +546 0 +547 0 +548 0 +549 0 +550 0 +402 0 +403 0 +404 0 +405 0 +406 0 +700 0 +701 0 +702 0 +703 0 +704 0 +705 0 +706 0 +707 0 +708 0 +709 0 +710 0 +711 0 +712 0 +713 0 +714 0 +715 0 +716 0 +717 0 +718 0 +719 0 +720 0 +721 0 +722 0 +723 0 +724 0 +725 0 +726 0 +727 0 +728 0 +729 0 +730 0 +731 0 +732 0 +733 0 +734 0 +735 0 +736 0 +737 0 +738 0 +739 0 +740 0 +741 0 +742 0 +743 0 +744 0 +745 0 +746 0 +747 0 +748 0 +749 0 +750 0 +751 0 +752 0 +753 0 +754 0 +755 0 +756 0 +757 0 +758 0 +759 0 +760 0 +761 0 +762 0 +763 0 +764 0 +765 0 +766 0 +767 0 +768 0 +769 0 +770 0 +771 0 +772 0 +773 0 +774 0 +775 0 +776 0 +777 0 +778 0 +779 0 +780 0 +781 0 +782 0 +783 0 +784 0 +785 0 +786 0 +787 0 +788 0 +789 0 +790 0 +791 0 +792 0 +793 0 +794 0 +795 0 +796 0 +797 0 +798 0 +799 0 +800 0 +801 0 +802 0 +803 0 +804 0 +805 0 +806 0 +807 0 +808 0 +809 0 +810 0 +811 0 +812 0 +813 0 +814 0 +815 0 +816 0 +817 0 +818 0 +819 0 +820 0 +821 0 +822 0 +823 0 +824 0 +825 0 +826 0 +827 0 +828 0 +829 0 +830 0 +831 0 +832 0 +833 0 +834 0 +835 0 +836 0 +837 0 +838 0 +839 0 +840 0 +841 0 +407 0 +408 0 +409 0 diff --git a/evidence/allen-omega-L694/L725/memory.log b/evidence/allen-omega-L694/L725/memory.log new file mode 100644 index 00000000..5928102e --- /dev/null +++ b/evidence/allen-omega-L694/L725/memory.log @@ -0,0 +1,79 @@ +301 0 +302 0 +303 0 +304 0 +305 0 +306 0 +307 0 +308 0 +309 0 +310 0 +311 0 +312 0 +313 0 +314 0 +315 0 +316 0 +317 0 +318 0 +319 0 +320 0 +321 0 +322 0 +323 0 +324 0 +325 0 +326 0 +327 0 +328 0 +329 0 +330 0 +331 0 +332 0 +333 0 +334 0 +335 0 +336 0 +337 0 +338 0 +339 0 +340 0 +341 0 +342 0 +343 0 +344 0 +345 0 +346 0 +347 0 +348 0 +349 0 +350 0 +351 0 +352 0 +362 0 +363 0 +353 0 +354 0 +355 0 +356 0 +357 0 +358 0 +359 0 +360 0 +364 0 +365 0 +366 0 +367 0 +368 0 +369 0 +370 0 +371 0 +372 0 +373 0 +374 0 +375 0 +376 0 +377 0 +378 0 +379 0 +361 0 diff --git a/evidence/allen-omega-L694/L725/paint.log b/evidence/allen-omega-L694/L725/paint.log new file mode 100644 index 00000000..281a5bd2 --- /dev/null +++ b/evidence/allen-omega-L694/L725/paint.log @@ -0,0 +1,11 @@ +1101 0 +1102 0 +1103 0 +1104 0 +1105 0 +1106 0 +1107 0 +1108 0 +1109 0 +1110 0 +1111 0 diff --git a/evidence/allen-omega-L694/L725/readback-mutant.log b/evidence/allen-omega-L694/L725/readback-mutant.log new file mode 100644 index 00000000..268002ad --- /dev/null +++ b/evidence/allen-omega-L694/L725/readback-mutant.log @@ -0,0 +1,79 @@ +301 0 +302 0 +303 0 +304 0 +305 0 +306 0 +307 0 +308 0 +309 0 +310 0 +311 0 +312 0 +313 0 +314 0 +315 0 +316 0 +317 0 +318 0 +319 0 +320 0 +321 0 +322 0 +323 0 +324 0 +325 0 +326 0 +327 0 +328 0 +329 0 +330 0 +331 0 +332 0 +333 0 +334 0 +335 0 +336 0 +337 0 +338 1 +339 1 +340 0 +341 0 +342 0 +343 0 +344 1 +345 0 +346 0 +347 0 +348 0 +349 1 +350 1 +351 0 +352 0 +362 0 +363 0 +353 1 +354 0 +355 0 +356 0 +357 0 +358 0 +359 0 +360 0 +364 0 +365 0 +366 0 +367 0 +368 0 +369 0 +370 0 +371 0 +372 0 +373 0 +374 0 +375 0 +376 0 +377 0 +378 0 +379 1 +361 0 diff --git a/evidence/allen-omega-L694/L725/red.exit b/evidence/allen-omega-L694/L725/red.exit new file mode 100644 index 00000000..00750edc --- /dev/null +++ b/evidence/allen-omega-L694/L725/red.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/allen-omega-L694/L725/red.om b/evidence/allen-omega-L694/L725/red.om new file mode 100644 index 00000000..6d248235 --- /dev/null +++ b/evidence/allen-omega-L694/L725/red.om @@ -0,0 +1,834 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note L725 compilable behavioral stub, retained only in RED evidence. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +ret false +end +fn qready now ulong to bool +ret false +end +fn qsubmit now ulong to bool +ret false +end +fn qnext now ulong link bool to bool +ret false +end +fn qsent now ulong ok bool to bool +ret false +end +fn qincoming now ulong to ulong +ret 0 +end +fn qcancel to void +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note Native courier lifecycle regression. Clock values are injected milliseconds. +text Lineone "SAY 1 1/1 Model text." +fn test ok bool to void +check ok add get Checks 0 1 +end +fn tcopy to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn control kind ulong seq ulong to void +put Inlen 0 0 +b = packet kind seq 0 0 0 +tcopy +end +fn linepkt part ulong to void +put Inlen 0 len Lineone +for i ulong len Lineone +put In i get Lineone i +end +b = packet 2 get Q 1 part 0 0 +tcopy +end +fn jobinput to void +put Inlen 0 1001 +for i ulong 1001 +put In i 120 +end +put In 999 10 +put In 1000 121 +end +fn main to int +test qstart 42 100 +test not qready 100 +test not qnext 100 false +test eq get T 3 0 +test qnext 100 true +test eq get T 10 5 +test not qnext 100 true +test qsent 100 false +test eq get T 3 0 +test qnext 101 true +test qsent 101 true +test eq get T 3 1 +test not qnext 2100 true +test qnext 2101 true +test qsent 2101 true +control 6 0 +test eq qincoming 2102 1 +test qready 2102 +test not qnext 12100 true +test qnext 12101 true +test eq get T 10 5 +test qsent 12101 true +test qready 32101 +test not qready 32102 +test qnext 32102 true +test qsent 32102 true +test not qnext 32101 true +test eq get T 0 32102 +jobinput +test qsubmit 32103 +test eq get Q 1 1 +test eq get JobOut 999 32 +test eq get JobOut 1000 121 +test not qsubmit 32103 +test qnext 32103 true +test eq get T 10 1 +test eq get T 11 1 +tcopy +test pkparse +test eq get N 6 1000 +test eq get In add get N 5 999 32 +test qsent 32103 false +test eq get T 9 1 +test qnext 32104 true +test eq get T 11 1 +test qsent 32104 true +test qnext 32104 true +test eq get T 11 2 +tcopy +test pkparse +test eq get N 6 1 +test eq get In get N 5 121 +test qsent 32104 true +test eq get T 9 0 +control 6 0 +test eq qincoming 32105 1 +test qready 32105 +test not qnext 34103 true +test qnext 34104 true +test eq get T 10 1 +test eq get T 11 1 +test qsent 34104 true +test qnext 34104 true +test eq get T 11 2 +test qsent 34104 true +control 4 2 +test eq qincoming 34105 0 +test eq get T 6 0 +control 4 1 +test eq qincoming 34105 1 +test eq get T 6 1 +test not qnext 36104 true +linepkt 1 +test eq qincoming 36105 1 +test eq get Q 4 1 +test eq get T 13 1 +test qnext 36105 true +test eq get T 10 3 +test qsent 36105 false +test eq get T 13 1 +linepkt 1 +test eq qincoming 36106 2 +test eq get Q 4 1 +test qnext 36106 true +test eq get T 10 3 +test qsent 36106 true +test eq get T 13 0 +test qtake +test eq get Inlen 0 len Lineone +test not qtake +linepkt 2 +test eq qincoming 36107 1 +linepkt 3 +test eq qincoming 36107 0 +test eq get Q 2 2 +test eq get Q 4 1 +test qnext 36108 true +test qsent 36108 true +linepkt 3 +test eq qincoming 36109 1 +test eq get Q 2 3 +qcancel +test eq get T 5 0 +linepkt 4 +test eq qincoming 36110 0 +jobinput +test qsubmit 36111 +test eq get Q 1 2 +test eq get Q 4 0 +control 6 0 +test eq qincoming 36112 1 +control 6 0 +put In 22 49 +test eq qincoming 36113 0 +test eq get T 2 36112 +control 4 2 +test eq qincoming 36110 0 +test eq get T 6 0 +qcancel +put Q 1 4294967295 +jobinput +test not qsubmit 36114 +test eq get Q 1 4294967295 +test not qstart 0 36114 +test eq get Q 0 42 +test qstart 43 0 +put Inlen 0 4097 +test not qsubmit 0 +test eq get Q 1 0 +put Inlen 0 0 +test not qsubmit 0 +test not qsent 0 true +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L725/red2.exit b/evidence/allen-omega-L694/L725/red2.exit new file mode 100644 index 00000000..8e14edce --- /dev/null +++ b/evidence/allen-omega-L694/L725/red2.exit @@ -0,0 +1 @@ +78 diff --git a/evidence/allen-omega-L694/L725/red2.log b/evidence/allen-omega-L694/L725/red2.log new file mode 100644 index 00000000..852ff9e0 --- /dev/null +++ b/evidence/allen-omega-L694/L725/red2.log @@ -0,0 +1,108 @@ +1 1 +2 0 +3 0 +4 0 +5 1 +6 1 +7 0 +8 1 +9 0 +10 1 +11 1 +12 1 +13 0 +14 1 +15 1 +16 1 +17 1 +18 0 +19 1 +20 1 +21 1 +22 1 +23 0 +24 1 +25 1 +26 0 +27 1 +28 1 +29 1 +30 1 +31 1 +32 0 +33 1 +34 1 +35 1 +36 1 +37 1 +38 1 +39 1 +40 1 +41 1 +42 1 +43 1 +44 1 +45 1 +46 1 +47 1 +48 1 +49 1 +50 0 +51 1 +52 1 +53 0 +54 1 +55 1 +56 1 +57 1 +58 1 +59 1 +60 1 +61 0 +62 0 +63 1 +64 1 +65 0 +66 1 +67 1 +68 1 +69 1 +70 1 +71 1 +72 1 +73 1 +74 1 +75 1 +76 1 +77 1 +78 0 +79 1 +80 1 +81 0 +82 1 +83 0 +84 1 +85 1 +86 1 +87 1 +88 1 +89 1 +90 0 +91 0 +92 1 +93 1 +94 0 +95 1 +96 0 +97 1 +98 0 +99 0 +100 0 +101 0 +102 0 +103 1 +104 1 +105 0 +106 1 +107 0 +108 0 diff --git a/evidence/allen-omega-L694/L725/red2.om b/evidence/allen-omega-L694/L725/red2.om new file mode 100644 index 00000000..ff7cf4b2 --- /dev/null +++ b/evidence/allen-omega-L694/L725/red2.om @@ -0,0 +1,979 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note L725 compilable behavioral stub, retained only in RED evidence. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +ret false +end +fn qready now ulong to bool +ret false +end +fn qsubmit now ulong to bool +ret false +end +fn qnext now ulong link bool to bool +ret false +end +fn qsent now ulong ok bool to bool +ret false +end +fn qincoming now ulong to ulong +ret 0 +end +fn qcancel to void +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note Native courier lifecycle regression. Clock values are injected milliseconds. +text Lineone "SAY 1 1/1 Model text." +fn test ok bool to void +check ok add get Checks 0 1 +end +fn tcopy to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn control kind ulong seq ulong to void +put Inlen 0 0 +b = packet kind seq 0 0 0 +tcopy +end +fn linepkt part ulong to void +put Inlen 0 len Lineone +for i ulong len Lineone +put In i get Lineone i +end +b = packet 2 get Q 1 part 0 0 +tcopy +end +fn jobinput to void +put Inlen 0 1001 +for i ulong 1001 +put In i 120 +end +put In 999 10 +put In 1000 121 +end +fn main to int +test qstart 42 100 +test not qready 100 +test not qnext 100 false +test eq get T 3 0 +test qnext 100 true +test eq get T 10 5 +test not qnext 100 true +test qsent 100 false +test eq get T 3 0 +test qnext 101 true +test qsent 101 true +test eq get T 3 1 +test not qnext 2100 true +test qnext 2101 true +test qsent 2101 true +control 6 0 +test eq qincoming 2102 1 +test qready 2102 +test not qnext 12100 true +test qnext 12101 true +test eq get T 10 5 +test qsent 12101 true +test qready 32101 +test not qready 32102 +test qnext 32102 true +test qsent 32102 true +test not qnext 32101 true +test eq get T 0 32102 +jobinput +test qsubmit 32103 +test eq get Q 1 1 +test eq get JobOut 999 32 +test eq get JobOut 1000 121 +test not qsubmit 32103 +test qnext 32103 true +test eq get T 10 1 +test eq get T 11 1 +tcopy +test pkparse +test eq get N 6 1000 +test eq get In add get N 5 999 32 +test qsent 32103 false +test eq get T 9 1 +test qnext 32104 true +test eq get T 11 1 +test qsent 32104 true +test qnext 32104 true +test eq get T 11 2 +tcopy +test pkparse +test eq get N 6 1 +test eq get In get N 5 121 +test qsent 32104 true +test eq get T 9 0 +control 6 0 +test eq qincoming 32105 1 +test qready 32105 +test not qnext 34103 true +test qnext 34104 true +test eq get T 10 1 +test eq get T 11 1 +test qsent 34104 true +test qnext 34104 true +test eq get T 11 2 +test qsent 34104 true +control 4 2 +test eq qincoming 34105 0 +test eq get T 6 0 +control 4 1 +test eq qincoming 34105 1 +test eq get T 6 1 +test not qnext 36104 true +linepkt 1 +test eq qincoming 36105 1 +test eq get Q 4 1 +test eq get T 13 1 +test qnext 36105 true +test eq get T 10 3 +test qsent 36105 false +test eq get T 13 1 +linepkt 1 +test eq qincoming 36106 2 +test eq get Q 4 1 +test qnext 36106 true +test eq get T 10 3 +test qsent 36106 true +test eq get T 13 0 +test qtake +test eq get Inlen 0 len Lineone +test not qtake +linepkt 2 +test eq qincoming 36107 1 +linepkt 3 +test eq qincoming 36107 0 +test eq get Q 2 2 +test eq get Q 4 1 +test qnext 36108 true +test qsent 36108 true +linepkt 3 +test eq qincoming 36109 1 +test eq get Q 2 3 +qcancel +test eq get T 5 0 +linepkt 4 +test eq qincoming 36110 0 +jobinput +test qsubmit 36111 +test eq get Q 1 2 +test eq get Q 4 0 +control 6 0 +test eq qincoming 36112 1 +control 6 0 +put In 22 49 +test eq qincoming 36113 0 +test eq get T 2 36112 +control 4 2 +test eq qincoming 36110 0 +test eq get T 6 0 +qcancel +put Q 1 4294967295 +jobinput +test not qsubmit 36114 +test eq get Q 1 4294967295 +test not qstart 0 36114 +test eq get Q 0 42 +test qstart 43 0 +put Inlen 0 4097 +test not qsubmit 0 +test eq get Q 1 0 +put Inlen 0 0 +test not qsubmit 0 +test not qsent 0 true +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L725/red3.exit b/evidence/allen-omega-L694/L725/red3.exit new file mode 100644 index 00000000..dd475631 --- /dev/null +++ b/evidence/allen-omega-L694/L725/red3.exit @@ -0,0 +1 @@ +76 diff --git a/evidence/allen-omega-L694/L725/red3.log b/evidence/allen-omega-L694/L725/red3.log new file mode 100644 index 00000000..e47b4d39 --- /dev/null +++ b/evidence/allen-omega-L694/L725/red3.log @@ -0,0 +1,108 @@ +1 1 +2 0 +3 0 +4 0 +5 1 +6 1 +7 0 +8 1 +9 0 +10 1 +11 1 +12 1 +13 0 +14 1 +15 1 +16 1 +17 1 +18 0 +19 1 +20 1 +21 1 +22 1 +23 0 +24 1 +25 1 +26 0 +27 1 +28 1 +29 1 +30 1 +31 1 +32 0 +33 1 +34 1 +35 1 +36 0 +37 1 +38 1 +39 1 +40 1 +41 1 +42 1 +43 1 +44 1 +45 1 +46 0 +47 1 +48 1 +49 1 +50 0 +51 1 +52 1 +53 0 +54 1 +55 1 +56 1 +57 1 +58 1 +59 1 +60 1 +61 0 +62 0 +63 1 +64 1 +65 0 +66 1 +67 1 +68 1 +69 1 +70 1 +71 1 +72 1 +73 1 +74 1 +75 1 +76 1 +77 1 +78 0 +79 1 +80 1 +81 0 +82 1 +83 0 +84 1 +85 1 +86 1 +87 1 +88 1 +89 1 +90 0 +91 0 +92 1 +93 1 +94 0 +95 1 +96 0 +97 1 +98 0 +99 0 +100 0 +101 0 +102 0 +103 1 +104 1 +105 0 +106 1 +107 0 +108 0 diff --git a/evidence/allen-omega-L694/L725/red3.om b/evidence/allen-omega-L694/L725/red3.om new file mode 100644 index 00000000..56ecba1f --- /dev/null +++ b/evidence/allen-omega-L694/L725/red3.om @@ -0,0 +1,991 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note L725 compilable behavioral stub, retained only in RED evidence. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +ret false +end +fn qready now ulong to bool +ret false +end +fn qsubmit now ulong to bool +ret false +end +fn qnext now ulong link bool to bool +ret false +end +fn qsent now ulong ok bool to bool +ret false +end +fn qincoming now ulong to ulong +ret 0 +end +fn qcancel to void +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note Native courier lifecycle regression. Clock values are injected milliseconds. +text Lineone "SAY 1 1/1 Model text." +note check writes through Outb; preserve the actual pending datagram around logging. +global SavedOut uchar 8192 +fn test ok bool to void +n = get Outlen 0 +e = get Err 0 +for i ulong n +put SavedOut i get Outb i +end +check ok add get Checks 0 1 +for i ulong n +put Outb i get SavedOut i +end +put Outlen 0 n +put Err 0 e +end +fn tcopy to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn control kind ulong seq ulong to void +put Inlen 0 0 +b = packet kind seq 0 0 0 +tcopy +end +fn linepkt part ulong to void +put Inlen 0 len Lineone +for i ulong len Lineone +put In i get Lineone i +end +b = packet 2 get Q 1 part 0 0 +tcopy +end +fn jobinput to void +put Inlen 0 1001 +for i ulong 1001 +put In i 120 +end +put In 999 10 +put In 1000 121 +end +fn main to int +test qstart 42 100 +test not qready 100 +test not qnext 100 false +test eq get T 3 0 +test qnext 100 true +test eq get T 10 5 +test not qnext 100 true +test qsent 100 false +test eq get T 3 0 +test qnext 101 true +test qsent 101 true +test eq get T 3 1 +test not qnext 2100 true +test qnext 2101 true +test qsent 2101 true +control 6 0 +test eq qincoming 2102 1 +test qready 2102 +test not qnext 12100 true +test qnext 12101 true +test eq get T 10 5 +test qsent 12101 true +test qready 32101 +test not qready 32102 +test qnext 32102 true +test qsent 32102 true +test not qnext 32101 true +test eq get T 0 32102 +jobinput +test qsubmit 32103 +test eq get Q 1 1 +test eq get JobOut 999 32 +test eq get JobOut 1000 121 +test not qsubmit 32103 +test qnext 32103 true +test eq get T 10 1 +test eq get T 11 1 +tcopy +test pkparse +test eq get N 6 1000 +test eq get In add get N 5 999 32 +test qsent 32103 false +test eq get T 9 1 +test qnext 32104 true +test eq get T 11 1 +test qsent 32104 true +test qnext 32104 true +test eq get T 11 2 +tcopy +test pkparse +test eq get N 6 1 +test eq get In get N 5 121 +test qsent 32104 true +test eq get T 9 0 +control 6 0 +test eq qincoming 32105 1 +test qready 32105 +test not qnext 34103 true +test qnext 34104 true +test eq get T 10 1 +test eq get T 11 1 +test qsent 34104 true +test qnext 34104 true +test eq get T 11 2 +test qsent 34104 true +control 4 2 +test eq qincoming 34105 0 +test eq get T 6 0 +control 4 1 +test eq qincoming 34105 1 +test eq get T 6 1 +test not qnext 36104 true +linepkt 1 +test eq qincoming 36105 1 +test eq get Q 4 1 +test eq get T 13 1 +test qnext 36105 true +test eq get T 10 3 +test qsent 36105 false +test eq get T 13 1 +linepkt 1 +test eq qincoming 36106 2 +test eq get Q 4 1 +test qnext 36106 true +test eq get T 10 3 +test qsent 36106 true +test eq get T 13 0 +test qtake +test eq get Inlen 0 len Lineone +test not qtake +linepkt 2 +test eq qincoming 36107 1 +linepkt 3 +test eq qincoming 36107 0 +test eq get Q 2 2 +test eq get Q 4 1 +test qnext 36108 true +test qsent 36108 true +linepkt 3 +test eq qincoming 36109 1 +test eq get Q 2 3 +qcancel +test eq get T 5 0 +linepkt 4 +test eq qincoming 36110 0 +jobinput +test qsubmit 36111 +test eq get Q 1 2 +test eq get Q 4 0 +control 6 0 +test eq qincoming 36112 1 +control 6 0 +put In 22 49 +test eq qincoming 36113 0 +test eq get T 2 36112 +control 4 2 +test eq qincoming 36110 0 +test eq get T 6 0 +qcancel +put Q 1 4294967295 +jobinput +test not qsubmit 36114 +test eq get Q 1 4294967295 +test not qstart 0 36114 +test eq get Q 0 42 +test qstart 43 0 +put Inlen 0 4097 +test not qsubmit 0 +test eq get Q 1 0 +put Inlen 0 0 +test not qsubmit 0 +test not qsent 0 true +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L725/reply.log b/evidence/allen-omega-L694/L725/reply.log new file mode 100644 index 00000000..d11a72ad --- /dev/null +++ b/evidence/allen-omega-L694/L725/reply.log @@ -0,0 +1,15 @@ +801 0 +802 0 +803 0 +804 0 +805 0 +806 0 +807 0 +808 0 +809 0 +810 0 +811 0 +812 0 +813 0 +814 0 +815 0 diff --git a/evidence/allen-omega-L694/L725/runtime.log b/evidence/allen-omega-L694/L725/runtime.log new file mode 100644 index 00000000..5168e6f3 --- /dev/null +++ b/evidence/allen-omega-L694/L725/runtime.log @@ -0,0 +1,28 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 diff --git a/evidence/allen-omega-L694/L725/scene.log b/evidence/allen-omega-L694/L725/scene.log new file mode 100644 index 00000000..44a4b2b1 --- /dev/null +++ b/evidence/allen-omega-L694/L725/scene.log @@ -0,0 +1,14 @@ +1001 0 +1002 0 +1003 0 +1004 0 +1005 0 +1006 0 +1007 0 +1008 0 +1009 0 +1010 0 +1011 0 +1012 0 +1013 0 +1014 0 diff --git a/evidence/allen-omega-L694/L725/scheduler.log b/evidence/allen-omega-L694/L725/scheduler.log new file mode 100644 index 00000000..1d8ffd12 --- /dev/null +++ b/evidence/allen-omega-L694/L725/scheduler.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 0 +170 0 +171 0 +172 0 +173 0 +174 0 +175 0 +176 0 +177 0 +178 0 +179 0 +180 0 +181 0 +182 0 +183 0 +184 0 +185 0 +186 0 +187 0 +188 0 +189 0 +190 0 +191 0 +192 0 +193 0 +194 0 +195 0 +196 0 +197 0 +198 0 +199 0 +200 0 +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L725/session-mutant.log b/evidence/allen-omega-L694/L725/session-mutant.log new file mode 100644 index 00000000..9ce7ef78 --- /dev/null +++ b/evidence/allen-omega-L694/L725/session-mutant.log @@ -0,0 +1,24 @@ +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 1 +209 0 +210 0 +211 0 +212 0 +213 0 +214 0 +215 0 +216 0 +217 0 +218 0 +219 0 +220 0 +221 0 +222 0 +223 0 +224 0 diff --git a/evidence/allen-omega-L694/L725/short.log b/evidence/allen-omega-L694/L725/short.log new file mode 100644 index 00000000..a9da2dc8 --- /dev/null +++ b/evidence/allen-omega-L694/L725/short.log @@ -0,0 +1,20 @@ +401 0 +410 0 +411 0 +412 0 +413 0 +414 0 +402 0 +403 0 +404 0 +405 0 +406 0 +700 0 +701 0 +702 0 +703 0 +704 0 +705 0 +407 0 +408 0 +409 0 diff --git a/evidence/allen-omega-L694/L725/source.sha256 b/evidence/allen-omega-L694/L725/source.sha256 new file mode 100644 index 00000000..7147d854 --- /dev/null +++ b/evidence/allen-omega-L694/L725/source.sha256 @@ -0,0 +1,37 @@ +184f4270c72c4eca6a7afdd28b70a608f2e237980b12c8a7bfc2c7d2c3e625b9 native/omega/allen/base.om +795ca28627a19f1088de0f23277e79cdac921ff88451c606c7b655ce0f2e8a5b native/omega/allen/build-one.sh +4d2235ac5d6b237695b1c3112f70ebdfa0cebafa2ec8e691e4be4de37a62199b native/omega/allen/code.om +76ee9cdeaac036905c76dfa29f42bf5a78d1259ad1656adfaa24916c3b93550d native/omega/allen/courier.om +7c2e516c56b555bbd7fefa8f24b0b87b6013b0545a43c98e7c01269cccbf76d3 native/omega/allen/gate.sh +9d71a653870eeef678f95df04db9c38aedaadd06e7c74bf3e5d9fde6e28f82f8 native/omega/allen/golden.sh +06087bc573ebb876a0ed80f6025c592fb4b1d23335169c3da402824fd1482c35 native/omega/allen/intent.om +4bc37c95d553364c5d2925d8ff9e8a53b1a61974513e6f492f77b7ebb05bbda4 native/omega/allen/main.om +068292abd04d3a61b063fc5380b22a56c4235a87915c219ebf3b37d16d7bc9c7 native/omega/allen/memory.om +b4d7b6e6cd680d2ba1eec2978b0cbb81ffc63035b73f5c3726bdad97a7b6aa04 native/omega/allen/paint.om +e1a49f0f3fb01e92e8b474867d0fb68a3fc4da53c8fe5ad8411862c97f364843 native/omega/allen/README.md +e50a7f673aaee92aba4a3aec303aa93b071121c09ad05d4ad1dcc2deb9706dcc native/omega/allen/reply.om +5b01eae03204d08f6d207ef29f2ba09a1d9f249f1738f68f151214675a4ff2ed native/omega/allen/runtime.om +c8d4a437b41538cc1eeb62a2029c6993d41e5ef90cc7b26c8e1c92bc98ec57d3 native/omega/allen/scene.om +615dff78462a715153b3d891b2cfe146c318d3a0a26ae1aaa642484f965c12df native/omega/allen/scheduler.om +f085198549d1c235a97574ff6f6560ce82217611f4051fc3dbbc8286aab6d536 native/omega/allen/tests/check.om +b76438a85257bd95768115047be286c107e3723628a16a0541870732d0849a42 native/omega/allen/tests/code.om +98105e1c30626f54da07940fe0415637730b7e112ea39ba2aae1f2d648993373 native/omega/allen/tests/courier.om +f524aab74657dc2e9e4330bf42bc05ef01ce3e8f08a05c80371be0c0a33764d3 native/omega/allen/tests/edges.om +a2e8bcde92d522216a4fa99559dd3bcba096aea86127364587dadcc2bfb585af native/omega/allen/tests/fixture.om +c9ef2bee7cbd1c072c6045d62c55f3bdd938901e91792cee72ea57fb8f25a198 native/omega/allen/tests/golden.om +8ba742d85ea510586f3cf86661bc0f28c5d99b59981c2d3fb220705efad24564 native/omega/allen/tests/intent.om +861d9af698b021056cceb6c00ae3458558db415963fe832d3fca7da55731cf7b native/omega/allen/tests/memory.om +13e4db7436165783c6aad48497ffe89fa6e5ba3de928e66a766c29e1e817fcf5 native/omega/allen/tests/paint.om +e6d232d92d74d88423cebbbbfc6e403ea9b865b80c909e1d23087001d905035a native/omega/allen/tests/probe.om +8fbc8a0517900efd771a994686356416a0fea5e20cfd9bc26c787850398113df native/omega/allen/tests/render.om +094a5e833bae7dfd3b013e3f015f143e9d7bd3efe9b9c896a7f58b09e1ec14b8 native/omega/allen/tests/reply.om +bab9b0e853aa4b62918353a5d1625a3171deebfb639e599fe9751b5a61a3df62 native/omega/allen/tests/runtime.om +b9c84d9a58658589137764fe60209d8320550dd8ed99fa6026df65ba48737e4f native/omega/allen/tests/scene.om +bf984fa9cf63ddb569147afc2a028ccdafdbeae2067125cf35d658e5d00f4c94 native/omega/allen/tests/scheduler.om +521fff50f312b64801017b1349d9a31dac6eac50eb989d93d2dbac4e100f5007 native/omega/allen/tests/stdio-overflow.om +89aee5326b428147ea6da9aa739b6679e214ed114ae5f41d3b70299cf864092c native/omega/allen/tests/view.om +0d96a4ff68ad6d4b6f1f30f713b18d5184912ba8dd389f86aa7710db079abcb0 native/omega/allen/vendor/OMEGA-LICENSE +b234738e8ce81b3d67586deb41fdaab4543169d4b69e86fd3dc28a08432ab5fc native/omega/allen/vendor/PROVENANCE.md +992ec4a4957271b442740598136887a5c610effcd8ae9fb9480a006a4f181097 native/omega/allen/vendor/sha256-core.om +0781cdcec18570a57afbe3be4a6717dd2d1fa4c887b49a3e4cb542b594f8a041 native/omega/allen/vendor/sha256.om +abbefd2f7dc48f2ac28b9526f5c2e5b369da4b7c5e84dde6e6a3cd20bd5687ac native/omega/allen/view.om diff --git a/evidence/allen-omega-L694/L725/stale-mutant.log b/evidence/allen-omega-L694/L725/stale-mutant.log new file mode 100644 index 00000000..ac2e3d09 --- /dev/null +++ b/evidence/allen-omega-L694/L725/stale-mutant.log @@ -0,0 +1,28 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 1 +7 1 +8 1 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 diff --git a/evidence/allen-omega-L694/L725/stdio-overflow.stderr b/evidence/allen-omega-L694/L725/stdio-overflow.stderr new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L725/stdio-overflow.stdout b/evidence/allen-omega-L694/L725/stdio-overflow.stdout new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L725/view.log b/evidence/allen-omega-L694/L725/view.log new file mode 100644 index 00000000..8b194f11 --- /dev/null +++ b/evidence/allen-omega-L694/L725/view.log @@ -0,0 +1,13 @@ +901 0 +902 0 +903 0 +904 0 +905 0 +906 0 +907 0 +908 0 +909 0 +910 0 +911 0 +912 0 +913 0 diff --git a/evidence/allen-omega-L694/L734/README.md b/evidence/allen-omega-L694/L734/README.md new file mode 100644 index 00000000..11126c92 --- /dev/null +++ b/evidence/allen-omega-L694/L734/README.md @@ -0,0 +1,55 @@ +# L734: native application binding + +This increment joins runtime prompt admission, intent/JOB construction, courier +scheduling, CODE assembly and SAY/WAIT consumption in handwritten seeded Omega. +It is an executed provider-facing core, not actual network/device attachment. +The existing development stdio main remains separate. No live service, machine, +physical disk, compiler or kernel provider was changed. + +## Actual results + +`full.log`, `full.exit` and `counts.json`: 1253 native checks pass, including +161 application checks. Nine separately compiled behavioral mutants are rejected: +stale3, CRC2, hash2, readback7, session1, keepalive40, ACK-stop27, pending-wire1, +application-CODE3. Each executable was built through the pinned compiler and +checked for nonempty static AArch64 EXEC before execution. Memory and stdio +goldens, and the overflow refusal regression, remain passing. + +`source.sha256` was checked against the current source bytes before this commit. +`binaries.sha256` inventories actual compiled executables in the fresh handoff +output directory. Build orchestration and log/hash collection use existing host +tools; product and executable test/probe logic are Omega only. + +## RED/GREEN and construction failures + +- Initial `red.om` did not compile: text identifiers longer than the selected + compiler's eight-byte global-name limit returned error13. Tests were corrected + to the actual grammar. This was not counted as behavioral RED. +- `red2` is a compilable stub: 131 executed assertions,103 failures, exit103. +- Initial real implementation `green1.om` exceeded the selected compiler's + sixteen-slot expression budget (error12). Extracting the retry-admission helper + preserved behavior; `green2` executed133 checks with exit0. The two additional + executed assertions are conditional send-result checks skipped by the stub. +- Pending-output regression: a code-completion LINE could cause saytake to write + AGAIN into Outb while a previously offered JOB was awaiting send-result + reporting. `pending-red` executed154 checks with one failure. The application + now preserves the complete outgoing bytes/length/error around reply handling; + `pending-green` executes154 checks, zero failures. The final compiled + pendingwire mutant independently reintroduces this defect and fails. +- Stale-inner-CODE regression: an accepted current transport envelope containing + an old CODE ID could populate the old assembly buffer during a newer chat, + before heard rejected its logical ID. `stalecode-red` executes161 checks with + three state-mutation failures. The application now validates active code-kind + and assembly/conversation binding before calling codetake. The same cases pass + in the full suite, and the compiled appcode mutant fails those three checks. + +Tests exercise real serialized protocol bytes through the application calls: +chat prompt->JOB->LINE->retained answer, immediate code acknowledgement, +missing-code AGAIN after GOT, distinct conversation/wire IDs, stale inner reply +refusal, complete CRC-checked code before display, cancellation/reset, failed send, +WAIT, slow notice, silence timeout, backward clocks and invalid admission. + +Independent review pending. The earlier completed strict legacy repository suite +is retained in ../parent-strict; it is not silently relabeled as qualification +of this new native source. Native socket/clock/device integration, full portable +parity, x86 EFI/QEMU and physical iMac execution remain open under L694. diff --git a/evidence/allen-omega-L694/L734/ackstop-mutant.log b/evidence/allen-omega-L694/L734/ackstop-mutant.log new file mode 100644 index 00000000..5d0598cb --- /dev/null +++ b/evidence/allen-omega-L694/L734/ackstop-mutant.log @@ -0,0 +1,213 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 1 +65 1 +66 0 +67 0 +68 0 +69 1 +70 1 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 1 +165 0 +166 0 +167 0 +168 0 +169 1 +170 0 +171 1 +172 1 +173 0 +174 1 +175 0 +176 0 +177 0 +178 1 +179 0 +180 1 +181 0 +182 1 +183 0 +184 1 +185 0 +186 1 +187 0 +188 1 +189 0 +190 1 +191 0 +192 1 +193 0 +194 1 +195 1 +196 1 +197 1 +198 0 +199 1 +200 0 +201 0 +202 1 +203 1 +204 1 +205 0 +206 1 +207 1 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 diff --git a/evidence/allen-omega-L694/L734/appcode-mutant.log b/evidence/allen-omega-L694/L734/appcode-mutant.log new file mode 100644 index 00000000..a7e8e5a9 --- /dev/null +++ b/evidence/allen-omega-L694/L734/appcode-mutant.log @@ -0,0 +1,161 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 1 +76 1 +77 1 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 diff --git a/evidence/allen-omega-L694/L734/application.log b/evidence/allen-omega-L694/L734/application.log new file mode 100644 index 00000000..57341bc5 --- /dev/null +++ b/evidence/allen-omega-L694/L734/application.log @@ -0,0 +1,161 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 diff --git a/evidence/allen-omega-L694/L734/binaries.sha256 b/evidence/allen-omega-L694/L734/binaries.sha256 new file mode 100644 index 00000000..ac54dc46 --- /dev/null +++ b/evidence/allen-omega-L694/L734/binaries.sha256 @@ -0,0 +1,26 @@ +6d650ec56ff5ff9d069b042e6651962b68cd9ef674c33c4efe76345c4e97dbfe /home/drakestapleton/handoffs/allen-omega-L694/L734/full/scheduler +fdae94ddf868f701e5b2b97187206f11dd4d2b53601edee6fab7e2d8c541b782 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/readback-mutant +3bec6065cb044eb019e143bfa0e2eacbe58c92a11069a701f196591512de424d /home/drakestapleton/handoffs/allen-omega-L694/L734/full/view +144fcf58ba2d37e28e31f70901ddee2816bc73e392837edc9d33a37cfdd8da39 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/allen +56d7b62cc9ee2088bec592fcdcb08e1460727ee924f5f6dc57609b440ce4bfdb /home/drakestapleton/handoffs/allen-omega-L694/L734/full/reply +1b084c60c51bb6bff0e86b6e33bdd7f8ae20c439358a59040b10557ef4480922 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/ackstop-mutant +d35f99663a6b6c38cfe73466cd957406ce1a02e0fbcd7d4e6d517916adb2e892 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/hash-mutant +7ab3d4b929b9783974fce2bba19d348f05825f21486b2392a4f53fac3f0f3545 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/golden +7a77f860a281df4f67cf253eebbd73d4d2a74c9e4e00e1dd4e56af826aff54cb /home/drakestapleton/handoffs/allen-omega-L694/L734/full/session-mutant +8eb6d85cb109b38f0b63ddd3728d97ae44846bf023dadd85c9a5ddfe5938bfaa /home/drakestapleton/handoffs/allen-omega-L694/L734/full/intent +1e112b3a8a29fd8af52ae5e5dded6d9960a8aca5c5191c32ebb19ba0ac657e42 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/fixture +a899184689994913953a995f6535fa154d7c7ac021033157dee9540d3895422b /home/drakestapleton/handoffs/allen-omega-L694/L734/full/runtime +d0c7123c568256add05f01477def3aaa2f610817cc68a4c8dbed0e898bf33494 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/code +99c557b76691198da03677762b605ea874be85ce8ab06650d3d77747ae2efba5 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/edges +ac9fee41c760e6c47990f12b76052958c57c6142be09d26b349d9c9ac01fa669 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/appcode-mutant +171d20f70aa37afc3e8d3a6d1a7350f6bdc3f2064473ff247c616733297e0dc7 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/render +8208fb15282d590f8ac6a68805a7ecc1ef59976421f75cfd3045a0d9156b69b4 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/stale-mutant +0b38ec713cfd0fcb7d2dbe82a571bd3666ecc840231b02cb703b74ea3b077ad5 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/courier +f16baa5e99569377dc55617fd83c24cfdf414597ee86f2f8e33f9eb091b7e166 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/scene +e9dc0394cdacc031f299f53c3ba91658a6d33476e9b75f7abf2605707bbf2312 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/pendingwire-mutant +ca4def5b75b6c1b85e1f15630e447d86e42ef1a4f9532f023c9cbc20dcc0005b /home/drakestapleton/handoffs/allen-omega-L694/L734/full/paint +aecb6d628b7dd4656b980f228304c0bc64ec53b7f8fc627dd9920802e162fec6 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/crc-mutant +71f99242bcad6ede239b240602470fcf3d5da3267eb47a1ad522241958222367 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/stdio-overflow-input +4b639c76d4301d413bf7c1e213bcc1c8d83c4588cacd4bec5a60fd282a9a6fac /home/drakestapleton/handoffs/allen-omega-L694/L734/full/keepalive-mutant +b61eb63933ae35b49cb17722f9835ba2311055b2fbfe16acdf89f9c7436a7a92 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/memory +987c3ac961f1dc5297ac8a48e71a6c3b203babb6e8ef6503b982b537a3efe469 /home/drakestapleton/handoffs/allen-omega-L694/L734/full/application diff --git a/evidence/allen-omega-L694/L734/code.log b/evidence/allen-omega-L694/L734/code.log new file mode 100644 index 00000000..e7e197b7 --- /dev/null +++ b/evidence/allen-omega-L694/L734/code.log @@ -0,0 +1,23 @@ +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 diff --git a/evidence/allen-omega-L694/L734/counts.json b/evidence/allen-omega-L694/L734/counts.json new file mode 100644 index 00000000..26d8e50a --- /dev/null +++ b/evidence/allen-omega-L694/L734/counts.json @@ -0,0 +1,20 @@ +{ + "checks": { + "runtime": 28, + "code": 23, + "courier": 24, + "scheduler": 213, + "application": 161, + "memory": 79, + "intent": 8, + "reply": 15, + "view": 13, + "scene": 14, + "paint": 11, + "edges": 352, + "short": 20, + "long": 292 + }, + "total": 1253, + "compiled_mutants_rejected": 9 +} diff --git a/evidence/allen-omega-L694/L734/courier.log b/evidence/allen-omega-L694/L734/courier.log new file mode 100644 index 00000000..8402df49 --- /dev/null +++ b/evidence/allen-omega-L694/L734/courier.log @@ -0,0 +1,24 @@ +201 0 +202 0 +203 0 +204 0 +205 0 +206 0 +207 0 +208 0 +209 0 +210 0 +211 0 +212 0 +213 0 +214 0 +215 0 +216 0 +217 0 +218 0 +219 0 +220 0 +221 0 +222 0 +223 0 +224 0 diff --git a/evidence/allen-omega-L694/L734/crc-mutant.log b/evidence/allen-omega-L694/L734/crc-mutant.log new file mode 100644 index 00000000..a0d90bd4 --- /dev/null +++ b/evidence/allen-omega-L694/L734/crc-mutant.log @@ -0,0 +1,23 @@ +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 1 +117 1 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 diff --git a/evidence/allen-omega-L694/L734/edges.log b/evidence/allen-omega-L694/L734/edges.log new file mode 100644 index 00000000..e8d0deea --- /dev/null +++ b/evidence/allen-omega-L694/L734/edges.log @@ -0,0 +1,352 @@ +1201 0 +1202 0 +1203 0 +1204 0 +1205 0 +1206 0 +1207 0 +1208 0 +1209 0 +1210 0 +1211 0 +1212 0 +1213 0 +1214 0 +1220 0 +1221 0 +1222 0 +1223 0 +1224 0 +1225 0 +1226 0 +1227 0 +1228 0 +1229 0 +1230 0 +1231 0 +1232 0 +1233 0 +1234 0 +1235 0 +1236 0 +1237 0 +1238 0 +1239 0 +1240 0 +1241 0 +1242 0 +1243 0 +1244 0 +1245 0 +1246 0 +1247 0 +1248 0 +1249 0 +1250 0 +1251 0 +1252 0 +1253 0 +1254 0 +1255 0 +1256 0 +1257 0 +1258 0 +1259 0 +1260 0 +1261 0 +1262 0 +1301 0 +1302 0 +1303 0 +1304 0 +1305 0 +1306 0 +1310 0 +1311 0 +1312 0 +1313 0 +1314 0 +1315 0 +1316 0 +1317 0 +1318 0 +1319 0 +1320 0 +1321 0 +1322 0 +1323 0 +1324 0 +1325 0 +1326 0 +1327 0 +1328 0 +1329 0 +1330 0 +1331 0 +1332 0 +1333 0 +1334 0 +1335 0 +1336 0 +1337 0 +1338 0 +1339 0 +1340 0 +1341 0 +1342 0 +1343 0 +1344 0 +1345 0 +1346 0 +1347 0 +1348 0 +1349 0 +1350 0 +1351 0 +1352 0 +1353 0 +1354 0 +1355 0 +1356 0 +1357 0 +1358 0 +1359 0 +1360 0 +1361 0 +1362 0 +1363 0 +1364 0 +1365 0 +1366 0 +1367 0 +1368 0 +1369 0 +1370 0 +1371 0 +1372 0 +1373 0 +1374 0 +1375 0 +1376 0 +1377 0 +1378 0 +1379 0 +1380 0 +1381 0 +1382 0 +1383 0 +1384 0 +1385 0 +1386 0 +1387 0 +1388 0 +1389 0 +1390 0 +1391 0 +1392 0 +1393 0 +1394 0 +1395 0 +1396 0 +1397 0 +1398 0 +1399 0 +1400 0 +1401 0 +1402 0 +1403 0 +1404 0 +1405 0 +1406 0 +1407 0 +1408 0 +1409 0 +1410 0 +1411 0 +1412 0 +1413 0 +1414 0 +1415 0 +1416 0 +1417 0 +1418 0 +1419 0 +1420 0 +1421 0 +1422 0 +1423 0 +1424 0 +1425 0 +1426 0 +1427 0 +1428 0 +1429 0 +1430 0 +1431 0 +1432 0 +1433 0 +1434 0 +1435 0 +1436 0 +1437 0 +1438 0 +1439 0 +1440 0 +1441 0 +1442 0 +1443 0 +1444 0 +1445 0 +1446 0 +1447 0 +1448 0 +1449 0 +1450 0 +1451 0 +1452 0 +1453 0 +1454 0 +1455 0 +1456 0 +1457 0 +1458 0 +1459 0 +1460 0 +1461 0 +1462 0 +1463 0 +1464 0 +1465 0 +1466 0 +1467 0 +1468 0 +1469 0 +1470 0 +1471 0 +1472 0 +1473 0 +1474 0 +1475 0 +1476 0 +1477 0 +1478 0 +1479 0 +1480 0 +1481 0 +1482 0 +1483 0 +1484 0 +1485 0 +1486 0 +1487 0 +1488 0 +1489 0 +1490 0 +1491 0 +1492 0 +1493 0 +1494 0 +1495 0 +1496 0 +1497 0 +1498 0 +1499 0 +1500 0 +1501 0 +1502 0 +1503 0 +1504 0 +1505 0 +1506 0 +1507 0 +1508 0 +1509 0 +1510 0 +1511 0 +1512 0 +1513 0 +1514 0 +1515 0 +1516 0 +1517 0 +1518 0 +1519 0 +1520 0 +1521 0 +1522 0 +1523 0 +1524 0 +1525 0 +1526 0 +1527 0 +1528 0 +1529 0 +1530 0 +1531 0 +1532 0 +1533 0 +1534 0 +1535 0 +1536 0 +1537 0 +1538 0 +1539 0 +1540 0 +1541 0 +1542 0 +1543 0 +1544 0 +1545 0 +1546 0 +1547 0 +1548 0 +1549 0 +1550 0 +1551 0 +1552 0 +1553 0 +1554 0 +1555 0 +1556 0 +1557 0 +1558 0 +1559 0 +1560 0 +1561 0 +1562 0 +1563 0 +1564 0 +1565 0 +1570 0 +1571 0 +1572 0 +1575 0 +1573 0 +1574 0 +1600 0 +1601 0 +1602 0 +1603 0 +1604 0 +1605 0 +1606 0 +1607 0 +1610 0 +1611 0 +1612 0 +1613 0 +1614 0 +1615 0 +1616 0 +1617 0 +1701 0 +1702 0 +1703 0 +1704 0 +1705 0 +1706 0 +1707 0 +1708 0 +1709 0 +1710 0 +1711 0 diff --git a/evidence/allen-omega-L694/L734/full.exit b/evidence/allen-omega-L694/L734/full.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L734/full.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L734/full.log b/evidence/allen-omega-L694/L734/full.log new file mode 100644 index 00000000..6e989ecf --- /dev/null +++ b/evidence/allen-omega-L694/L734/full.log @@ -0,0 +1,27 @@ +runtime compile=0 native-exit=0 +code compile=0 native-exit=0 +courier compile=0 native-exit=0 +scheduler compile=0 native-exit=0 +application compile=0 native-exit=0 +memory compile=0 native-exit=0 +intent compile=0 native-exit=0 +reply compile=0 native-exit=0 +view compile=0 native-exit=0 +scene compile=0 native-exit=0 +paint compile=0 native-exit=0 +edges compile=0 native-exit=0 +fixture compile=0 native-exit=0 +golden compile=0 native-exit=0 +render compile=0 native-exit=0 +stdio native-exit=0 golden-cmp=0 +stdio overflow native-exit=65 no-later-command=PASS +stale mutant compile=0 rejected-exit=3 +crc mutant compile=0 rejected-exit=2 +hash mutant compile=0 rejected-exit=2 +readback mutant compile=0 rejected-exit=7 +session mutant compile=0 rejected-exit=1 +keepalive mutant compile=0 rejected-exit=40 +ackstop mutant compile=0 rejected-exit=27 +pendingwire mutant compile=0 rejected-exit=1 +appcode mutant compile=0 rejected-exit=3 +ALLEN_OMEGA_HOST: PASS; target=NOT_RUN; live=NOT_RUN diff --git a/evidence/allen-omega-L694/L734/green1.om b/evidence/allen-omega-L694/L734/green1.om new file mode 100644 index 00000000..ec79f64b --- /dev/null +++ b/evidence/allen-omega-L694/L734/green1.om @@ -0,0 +1,3098 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note SHA256 core reused byte-for-byte from native Omega TRN1 at 12251e3403d42931ada27dc1c54b3b610954be5d. +note Reads stdin up to 8 MiB and emits lowercase hex plus LF only after successful EOF. +global Buf uchar 8192 +global H uint 8 +global Vv uint 8 +global W uint 64 +global K uint 64 +global Hb uchar 64 +global Hs ulong 2 +global Hash uchar 32 +global Out uchar 65 +text Hex "0123456789abcdef" + +fn rotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn round i ulong to void +e = get Vv 4 +a = get Vv 0 +s = xor xor rotate e 6 rotate e 11 rotate e 25 +c = xor and e get Vv 5 and not e get Vv 6 +t = add add get Vv 7 s add c add get K i get W i +s = xor xor rotate a 2 rotate a 13 rotate a 22 +c = and a get Vv 1 +c = xor c and a get Vv 2 +c = xor c and get Vv 1 get Vv 2 +u = add s c +put Vv 7 get Vv 6 +put Vv 6 get Vv 5 +put Vv 5 e +put Vv 4 add get Vv 3 t +put Vv 3 get Vv 2 +put Vv 2 get Vv 1 +put Vv 1 a +put Vv 0 add t u +end + +fn block to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get Hb add mul i 4 j +end +put W i x +end +for j ulong 48 +i = add j 16 +x = get W sub i 15 +y = get W sub i 2 +s = xor xor rotate x 7 rotate x 18 shr x 3 +t = xor xor rotate y 17 rotate y 19 shr y 10 +put W i add add get W sub i 16 s add get W sub i 7 t +end +for i ulong 8 +put Vv i get H i +end +for i ulong 64 +round i +end +for i ulong 8 +put H i add get H i get Vv i +end +end + +fn hinit to void +put H 0 1779033703 +put H 1 3144134277 +put H 2 1013904242 +put H 3 2773480762 +put H 4 1359893119 +put H 5 2600822924 +put H 6 528734635 +put H 7 1541459225 +put Hs 0 0 +put Hs 1 0 +end + +fn hbyte c uchar to void +p = get Hs 0 +put Hb p c +p = add p 1 +put Hs 1 add get Hs 1 1 +if eq p 64 +block +p = 0 +end +put Hs 0 p +end + +fn update off ulong count ulong to void +for i ulong count +hbyte get Buf add off i +end +end + +fn finish to void +bits = mul get Hs 1 8 +hbyte 128 +while ne get Hs 0 56 +hbyte 0 +end +for i ulong 8 +hbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get H div i 4 +put Hash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn constants to void +put K 0 1116352408 +put K 1 1899447441 +put K 2 3049323471 +put K 3 3921009573 +put K 4 961987163 +put K 5 1508970993 +put K 6 2453635748 +put K 7 2870763221 +put K 8 3624381080 +put K 9 310598401 +put K 10 607225278 +put K 11 1426881987 +put K 12 1925078388 +put K 13 2162078206 +put K 14 2614888103 +put K 15 3248222580 +put K 16 3835390401 +put K 17 4022224774 +put K 18 264347078 +put K 19 604807628 +put K 20 770255983 +put K 21 1249150122 +put K 22 1555081692 +put K 23 1996064986 +put K 24 2554220882 +put K 25 2821834349 +put K 26 2952996808 +put K 27 3210313671 +put K 28 3336571891 +put K 29 3584528711 +put K 30 113926993 +put K 31 338241895 +put K 32 666307205 +put K 33 773529912 +put K 34 1294757372 +put K 35 1396182291 +put K 36 1695183700 +put K 37 1986661051 +put K 38 2177026350 +put K 39 2456956037 +put K 40 2730485921 +put K 41 2820302411 +put K 42 3259730800 +put K 43 3345764771 +put K 44 3516065817 +put K 45 3600352804 +put K 46 4094571909 +put K 47 275423344 +put K 48 430227734 +put K 49 506948616 +put K 50 659060556 +put K 51 883997877 +put K 52 958139571 +put K 53 1322822218 +put K 54 1537002063 +put K 55 1747873779 +put K 56 1955562222 +put K 57 2024104815 +put K 58 2227730452 +put K 59 2361852424 +put K 60 2428436474 +put K 61 2756734187 +put K 62 3204031479 +put K 63 3329325298 +end + +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note Courier client lifecycle; injected monotonic milliseconds, no host clock/socket. +note T lastclock, HIvalid, HIat, HELLOvalid, HELLOat, active, acked, jobat, +note joblength, cursor, pendingkind, pendingpart, reserved, GOTpart, reserved, reserved. +note Serialized API: qnext publishes one datagram; qsent records actual send result. +note Consume Outb before another serializer; failed sends leave retries due. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +if eq run 0 +ret false +end +qbegin run 0 +for i ulong 16 +put T i 0 +end +put T 0 now +ret true +end +fn qready now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if eq get T 1 0 +ret false +end +ret lt sub now get T 2 30000 +end +fn qsubmit now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +n = get Inlen 0 +if or eq n 0 gt n 4096 +ret false +end +if ge get Q 1 4294967295 +ret false +end +seq = add get Q 1 1 +qbegin get Q 0 seq +for i ulong n +c = get In i +if or eq c 10 eq c 13 +c = uchar 32 +end +put JobOut i c +end +put T 0 now +put T 5 1 +put T 6 0 +put T 7 now +put T 8 n +put T 9 1 +put T 13 0 +ret true +end +fn qnext now ulong link bool to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +put T 0 now +if not link +ret false +end +if ne get T 13 0 +put Inlen 0 0 +if not packet 3 get Q 1 get T 13 0 0 +ret false +end +put T 10 3 +put T 11 get T 13 +ret true +end +delay = ulong 2000 +if qready now +delay = ulong 10000 +end +if or eq get T 3 0 ge sub now get T 4 delay +put Inlen 0 0 +if not packet 5 0 0 0 0 +ret false +end +put T 10 5 +put T 11 0 +ret true +end +if or eq get T 5 0 ne get T 6 0 +ret false +end +part = get T 9 +if eq part 0 +if lt sub now get T 7 2000 +ret false +end +part = ulong 1 +end +n = get T 8 +total = div add n 999 1000 +off = mul sub part 1 1000 +size = sub n off +if gt size 1000 +size = ulong 1000 +end +for i ulong size +put In i get JobOut add off i +end +put Inlen 0 size +if not packet 1 get Q 1 part total n +ret false +end +put T 10 1 +put T 11 part +ret true +end +fn qsent now ulong ok bool to bool +if or eq get T 10 0 lt now get T 0 +ret false +end +kind = get T 10 +part = get T 11 +put T 0 now +put T 10 0 +put T 11 0 +if not ok +ret true +end +if eq kind 5 +put T 3 1 +put T 4 now +end +if eq kind 3 +if eq get T 13 part +put T 13 0 +end +end +if eq kind 1 +if or ne get T 6 0 ge part div add get T 8 999 1000 +put T 9 0 +put T 7 now +else +put T 9 add part 1 +end +end +ret true +end +fn qincoming now ulong to ulong +if or eq get Q 0 0 lt now get T 0 +ret 0 +end +if not pkparse +ret 0 +end +kind = get N 0 +if eq kind 6 +if or ne get N 1 0 ne get N 2 0 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if ne get N 6 0 +ret 0 +end +put T 0 now +put T 1 1 +put T 2 now +ret 1 +end +if or eq get T 5 0 ne get N 1 get Q 1 +ret 0 +end +if eq kind 4 +if or ne get N 2 0 ne get N 3 0 +ret 0 +end +if or ne get N 4 0 ne get N 6 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +ret 1 +end +if ne kind 2 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if and ne get T 13 0 ne get T 13 get N 2 +ret 0 +end +result = qreceive +if eq result 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +put T 13 get N 2 +ret result +end +fn qcancel to void +put T 5 0 +put T 6 0 +put T 8 0 +put T 9 0 +put T 10 0 +put T 11 0 +put T 13 0 +put Q 3 0 +put Q 4 0 +end +note Legacy application record codec; SHA is unkeyed integrity ONLY. +global Unit uchar 4096 +global Enc uchar 4096 +global Mem uchar 3692 +global Md ulong 3 +global Note uchar 128 +global Ns ulong 4 +text Magic "AIENALM1" +text Nmagic "AIENNOT1" +fn get32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Unit add off i mul i 8 +end +ret v +end +fn get64 off ulong to ulong +ret or get32 off shl get32 add off 4 32 +end +fn put32 off ulong v ulong to void +for i ulong 4 +put Unit add off i uchar and shr v mul i 8 255 +end +end +fn put64 off ulong v ulong to void +put32 off and v 4294967295 +put32 add off 4 shr v 32 +end +fn mem32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Mem add off i mul i 8 +end +ret v +end +fn mset32 off ulong v ulong to void +for i ulong 4 +put Mem add off i uchar and shr v mul i 8 255 +end +end +fn zeroend off ulong to bool +for i ulong sub ulong 4096 off +if ne get Unit add off i 0 +ret false +end +end +ret true +end +fn fieldok off ulong cap ulong name bool to bool +n = ulong 0 +while lt n cap +if eq get Unit add off n 0 +for j ulong sub cap n +if ne get Unit add add off n j 0 +ret false +end +end +ret true +end +c = get Unit add off n +lower = and ge c 97 le c 122 +digit = isdigit c +if name +if eq n 0 +if not or and ge c 65 le c 90 digit +ret false +end +else +if not or lower digit +ret false +end +end +else +if eq c 32 +if or eq n 0 eq n sub cap 1 +ret false +end +if eq get Unit add off add n 1 0 +ret false +end +if eq get Unit add off sub n 1 32 +ret false +end +else +if not or lower digit +ret false +end +end +end +n = add n 1 +end +ret false +end +fn digest count ulong to void +hinit +for i ulong 32 +hbyte get Unit i +end +for i ulong count +hbyte get Unit add i 64 +end +finish +end +fn hashok count ulong to bool +digest count +d = uchar 0 +for i ulong 32 +d = or d xor get Hash i get Unit add i 32 +end +ret eq d 0 +end +fn seal count ulong to void +digest count +for i ulong 32 +put Unit add i 32 get Hash i +end +end +fn memvalid to bool +for i ulong 8 +if ne get Unit i get Magic i +ret false +end +end +ver = get32 8 +if or lt ver 2 gt ver 4 +ret false +end +n = get32 96 +if or gt n 32 gt get32 100 512 +ret false +end +size = add 40 mul n 113 +if ge ver 3 +size = add size 24 +end +if eq ver 4 +size = add size 12 +end +if or ne size get32 12 eq get64 16 0 +ret false +end +for i ulong 8 +if ne get Unit add i 24 0 +ret false +end +end +if not zeroend add 64 size +ret false +end +if not hashok size +ret false +end +if not fieldok 72 24 true +ret false +end +for i ulong n +off = add 104 mul i 113 +if or eq get Unit off 0 eq get Unit add off 48 0 +ret false +end +if not fieldok off 48 false +ret false +end +if not fieldok add off 48 64 false +ret false +end +if gt get Unit add off 112 1 +ret false +end +end +off = add 104 mul n 113 +if ge ver 3 +if not fieldok off 24 true +ret false +end +end +if eq ver 4 +if ne get Unit add off 27 0 +ret false +end +end +ret true +end +fn memdec to bool +if not memvalid +ret false +end +size = get32 12 +for i ulong 3692 +put Mem i 0 +end +for i ulong size +put Mem i get Unit add i 64 +end +put Md 0 get64 16 +put Md 1 get32 8 +put Md 2 size +ret true +end +fn memenc gen ulong to bool +n = mem32 32 +if or gt n 32 eq gen 0 +ret false +end +size = add 76 mul n 113 +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Magic i +end +put32 8 4 +put32 12 size +put64 16 gen +for i ulong size +put Unit add i 64 get Mem i +end +seal size +if not memvalid +ret false +end +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +fn noteval index ulong to bool +for i ulong 8 +if ne get Unit i get Nmagic i +ret false +end +end +n = get32 12 +if or eq n 0 ge n 128 +ret false +end +if or ne get32 8 1 ne get32 16 index +ret false +end +if or gt get32 24 1 ne get32 28 0 +ret false +end +if not zeroend add n 64 +ret false +end +for i ulong n +c = get Unit add i 64 +if or lt c 32 gt c 126 +ret false +end +end +ret hashok n +end +fn notedec index ulong to bool +if not noteval index +ret false +end +n = get32 12 +for i ulong 128 +put Note i 0 +end +for i ulong n +put Note i get Unit add i 64 +end +put Ns 0 n +put Ns 1 index +put Ns 2 get32 20 +put Ns 3 get32 24 +ret true +end +fn noteenc to bool +n = get Ns 0 +if or eq n 0 ge n 128 +ret false +end +if or gt get Ns 1 511 gt get Ns 2 4294967295 +ret false +end +if gt get Ns 3 1 +ret false +end +for i ulong n +c = get Note i +if or lt c 32 gt c 126 +ret false +end +end +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Nmagic i +end +put32 8 1 +put32 12 n +put32 16 get Ns 1 +put32 20 get Ns 2 +put32 24 get Ns 3 +for i ulong n +put Unit add i 64 get Note i +end +seal n +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +note Store St gen,newest,valid. Tx phase,target,newgen. Provider owns actual I/O. +global St ulong 3 +global Nt ulong 2 +global Load ulong 1 +global Tx ulong 3 +fn txbegin to bool +if ne get Nt 0 0 +ret false +end +if or ne get Tx 0 0 eq get St 0 18446744073709551615 +ret false +end +if not memenc add get St 0 1 +ret false +end +put Tx 1 0 +if ne get St 0 0 +put Tx 1 sub ulong 1 get St 1 +end +put Tx 2 add get St 0 1 +put Tx 0 1 +ret true +end +fn txwrite ok bool to bool +if ne get Tx 0 1 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 2 +ret true +end +fn txflush ok bool to bool +if ne get Tx 0 2 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 3 +ret true +end +fn txread ok bool to bool +if ne get Tx 0 3 +ret false +end +put Tx 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Unit i get Enc i +end +if ne d 0 +ret false +end +put St 0 get Tx 2 +put St 1 get Tx 1 +if lt get St 2 2 +put St 2 add get St 2 1 +end +ret true +end +note Load each copy once into Unit. Caller resets St and calls loadcopy0,1. +fn loadbeg to void +for i ulong 3 +put St i 0 +end +put Load 0 0 +end +fn loadcopy slot ulong to bool +if gt slot 1 +ret false +end +if ne and get Load 0 shl ulong 1 slot 0 +ret false +end +if not memvalid +ret false +end +put Load 0 or get Load 0 shl ulong 1 slot +put St 2 add get St 2 1 +if gt get64 16 get St 0 +b = memdec +put St 0 get Md 0 +put St 1 slot +end +ret true +end +note Note transaction completes before the parent copy may publish its count. +fn nbegin to bool +if or ne get Nt 0 0 ne get Tx 0 0 +ret false +end +if not noteenc +ret false +end +put Nt 1 get Ns 1 +put Nt 0 1 +ret true +end +fn nwrite ok bool to bool +if ne get Nt 0 1 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 2 +ret true +end +fn nflush ok bool to bool +if ne get Nt 0 2 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 3 +ret true +end +fn nread ok bool to bool +if ne get Nt 0 3 +ret false +end +put Nt 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Enc i get Unit i +end +if ne d 0 +ret false +end +ret noteval get Nt 1 +end +note Intent vocabulary frozen from svc/allen_intent.c. It selects jobs, never answers. +global Fold uchar 160 +global Fn ulong 2 +text Lists "please|can you|could you|would you|will you|i d like you to|i want you to|i need you to|allen|hey allen|ok|okay\nwrite|make|build|create|code|program|generate|implement|develop|give me a|i need a|i want a\ncode|program|programs|script|scripts|function|functions|app|apps|application|game|games|website|web page|webpage|calculator|converter|parser|compiler|interpreter|algorithm|class|api|server|bot|regex|unit test|unit tests|cli|command line tool|snake|tetris|pong|todo app|to do app|to do list app|timer app|stopwatch|python|javascript|typescript|rust|golang|java|kotlin|swift|ruby|php|html|css|sql|bash|shell script|c program|c code|in c|c plus plus|cpp|mojo|zig|haskell|lua|perl\npoem|poems|haiku|story|stories|song|songs|letter|email|essay|joke|jokes|limerick|speech\ncode|program|script\nnow|add|also|and|change|make it|make the|rename|remove|delete|replace|use|fix|put|give it|let it|instead|then|next|can it|could it|it should|the|move|turn|show|split|convert it|rewrite|port it|translate it|explain it\nwrite|make|build|create|code|program|draft|compose|generate|design|implement|invent|name|give me a|i need a|i want a\na poem|a haiku|a story|a song|a script|a function|a program|a list of|some code|a letter|an email|a plan for|a name for\nexplain|what is|what are|whats|what s|why|how does|how do|how is|how are|describe|tell me about|what does|who was|who is|define|when was|when did|where is|is it true\ndifference between|mean|means\ndo|run|fix|find|search|look up|check|open|send|start|stop|install|set up|plan|schedule|calculate|work out|convert|translate|summarize|summarise|list|sort|count|compare|turn|go\n" +fn foldin to void +n = ulong 0 +space = false +for i ulong get Inlen 0 +c = get In i +if and ge c 65 le c 90 +c = add sub c 65 97 +end +if or and ge c 97 le c 122 isdigit c +if and space gt n 0 +put Fold n uchar 32 +n = add n 1 +end +put Fold n c +n = add n 1 +space = false +else +space = true +end +end +put Fn 0 n +put Fn 1 0 +end +fn phrase at ulong off ulong size ulong to bool +if gt add at size get Fn 0 +ret false +end +for i ulong size +if ne get Fold add at i get Lists add off i +ret false +end +end +if lt add at size get Fn 0 +if ne get Fold add at size 32 +ret false +end +end +ret true +end +fn inphrase off ulong size ulong anypos bool to bool +if not anypos +ret phrase get Fn 1 off size +end +count = sub get Fn 0 get Fn 1 +for i ulong count +at = add i get Fn 1 +ok = eq at get Fn 1 +if gt at 0 +ok = or ok eq get Fold sub at 1 32 +end +if ok +if phrase at off size +ret true +end +end +end +ret false +end +fn listed group ulong anypos bool to ulong +g = ulong 0 +s = ulong 0 +for p ulong len Lists +c = get Lists p +if or eq c 124 eq c 10 +if eq g group +if inphrase s sub p s anypos +ret sub p s +end +end +s = add p 1 +if eq c 10 +g = add g 1 +end +end +end +ret 0 +end +fn classify to ulong +if not textok +ret 0 +end +foldin +skip = listed 0 false +while gt skip 0 +if ge add get Fn 1 skip get Fn 0 +skip = 0 +else +put Fn 1 add add get Fn 1 skip 1 +skip = listed 0 false +end +end +if and ne get R 6 0 gt listed 5 false 0 +ret 3 +end +plain = listed 4 false +if or eq plain 4 eq plain 7 +ret 2 +end +if and gt listed 3 true 0 eq listed 4 true 0 +ret 1 +end +if and gt listed 1 false 0 gt listed 2 true 0 +ret 2 +end +ret 1 +end +note Ordinary want enum0chat,1make,2explain,3do. +fn jobwant to ulong +if gt listed 8 false 0 +ret 2 +end +if or gt listed 6 false 0 gt listed 7 true 0 +ret 1 +end +if gt listed 10 false 0 +ret 3 +end +if gt listed 9 true 0 +ret 2 +end +ret 0 +end +text Job "JOB " +text Codeask " asked " +text Forcode " for code.\t" +text Formore " to change the code just shown.\t" +text Wantstr "chatmakeexplaindo" +text Intro "You are the far hands of " +text Home ", a quiet presence living in AIENOS on " +text Comp "'s computer. You answer as " +text Sees "; " +text Words " sees only your words, as if " +text Said " said them. Plain English, short sentences, no headings, no lists, no greetings, no apologies. Plain letters and punctuation only: no dashes, no curly quotes, no symbols. Never mention a model, a prompt or instructions. " +text Make " asked for something to be made. Make it whole and correct. Begin with one short sentence saying what you made, then the work itself." +text Explain " asked to understand something. Explain it in three plain sentences at most, the heart of it first, no more than is needed." +text Doing " asked for something to be done. " +text Cannot " cannot yet act outside this computer, so say in two or three short sentences what you would do, in order, and what you would need." +text Chat " said something in passing. Answer in one or two warm, plain sentences." +text Allen "Allen" +text Person "the person" +fn selfemit to void +off = add 40 mul mem32 32 113 +if eq get Mem off 0 +for i ulong len Allen +emitb get Allen i +end +else +for i ulong 24 +c = get Mem add off i +if eq c 0 +ret +end +emitb c +end +end +end +fn whoemit to void +if eq get Mem 8 0 +for i ulong len Person +emitb get Person i +end +else +for i ulong 24 +c = get Mem add i 8 +if eq c 0 +ret +end +emitb c +end +end +end +fn jobbuild kind ulong seq ulong to bool +if or lt kind 1 gt kind 3 +ret false +end +if or eq seq 0 gt seq 4294967295 +ret false +end +if not textok +ret false +end +outreset +for i ulong len Job +emitb get Job i +end +emitn seq +emitb 32 +if gt kind 1 +emitb 99 +emitb 111 +emitb 100 +emitb 101 +if eq kind 3 +emitb 45 +emitb 109 +emitb 111 +emitb 114 +emitb 101 +end +emitb 32 +whoemit +for i ulong len Codeask +emitb get Codeask i +end +selfemit +if eq kind 3 +for i ulong len Formore +emitb get Formore i +end +else +for i ulong len Forcode +emitb get Forcode i +end +end +else +w = jobwant +off = ulong 0 +size = ulong 4 +if eq w 1 +off = 4 +end +if eq w 2 +off = 8 +size = 7 +end +if eq w 3 +off = 15 +size = 2 +end +for i ulong size +emitb get Wantstr add off i +end +emitb 32 +for i ulong len Intro +emitb get Intro i +end +selfemit +for i ulong len Home +emitb get Home i +end +whoemit +for i ulong len Comp +emitb get Comp i +end +selfemit +for i ulong len Sees +emitb get Sees i +end +whoemit +for i ulong len Words +emitb get Words i +end +selfemit +for i ulong len Said +emitb get Said i +end +whoemit +if eq w 0 +for i ulong len Chat +emitb get Chat i +end +end +if eq w 1 +for i ulong len Make +emitb get Make i +end +end +if eq w 2 +for i ulong len Explain +emitb get Explain i +end +end +if eq w 3 +for i ulong len Doing +emitb get Doing i +end +selfemit +for i ulong len Cannot +emitb get Cannot i +end +end +emitb 9 +end +for i ulong get Inlen 0 +emitb get In i +end +ret le get Outlen 0 4096 +end +note SAY/WAIT parser, staged folded bytes. Native CODE receive remains separate. +global Say uchar 160 +global S ulong 5 +fn sayhead to bool +put P 0 0 +put P 2 0 +if ineq 0 87 +expect 87 +expect 65 +expect 73 +expect 84 +expect 32 +number +put S 0 get P 1 +put S 1 0 +put S 2 0 +if ne get P 0 get Inlen 0 +ret false +end +ret eq get P 2 0 +end +expect 83 +expect 65 +expect 89 +expect 32 +number +put S 0 get P 1 +expect 32 +if ne get P 2 0 +ret false +end +put S 1 1 +put S 2 1 +save = get P 0 +number +part = get P 1 +if ineq get P 0 47 +expect 47 +number +put S 2 get P 1 +expect 32 +if or ne get P 2 0 eq part 0 +ret false +end +put S 1 part +else +put P 0 save +put P 2 0 +end +put S 3 get P 0 +ret eq get P 2 0 +end +fn sayfold to bool +n = ulong 0 +p = get S 3 +space = true +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if or ineq p 110 ineq p 116 +c = 32 +p = add p 1 +end +end +if or lt c 32 ge c 127 +c = 32 +end +if eq c 32 +if not space +if ge n 159 +ret false +end +put Say n c +n = add n 1 +end +space = true +else +if ge n 159 +ret false +end +put Say n c +n = add n 1 +space = false +end +end +if gt n 0 +if eq get Say sub n 1 32 +n = sub n 1 +end +end +put S 4 n +ret true +end +note Return1 accepted,2 request AGAIN,3 give up after retry;0 rejected. +fn saytake now ulong to ulong +if or eq get R 1 0 gt get Inlen 0 319 +ret 0 +end +if not sayhead +ret 0 +end +if or ne get S 0 get R 0 lt now get R 4 +ret 0 +end +if eq get S 1 0 +b = heard get S 0 now +ret 1 +end +if not sayfold +ret 0 +end +if gt get R 2 1 +if eq get S 2 0 +ret 0 +end +if ne get C 0 get R 0 +ret 0 +end +if ne codestat 2 +if eq get R 13 0 +put R 13 1 +outreset +emitb 65 +emitb 71 +emitb 65 +emitb 73 +emitb 78 +emitb 32 +emitn get R 0 +ret 2 +end +cancel +ret 3 +end +else +if ne get S 1 add get R 11 1 +ret 0 +end +if and ne get S 2 0 ne get S 2 get S 1 +ret 0 +end +end +n = get R 8 +if or eq get S 1 1 gt get R 2 1 +n = 0 +end +join = ulong 0 +if and gt n 0 gt get S 4 0 +join = 1 +end +if gt add add n join get S 4 159 +ret 0 +end +if gt get R 2 1 +if not codeshow get R 0 +ret 0 +end +end +if eq join 1 +put Answer n uchar 32 +n = add n 1 +end +for i ulong get S 4 +put Answer add n i get Say i +end +put R 8 add n get S 4 +put R 11 get S 1 +put R 4 now +if ne get S 2 0 +put R 1 0 +histadd 1 +end +ret 1 +end +note Exact legacy code row wrapping, at most4096 rows; full code retained. +global Rowst ulong 4096 +global Rowlen ulong 4096 +global Rowline ulong 4096 +global View ulong 4 +global Vwork ulong 6 +note Vwork cols,maxrows,line,start,end. +fn onerow s ulong first bool to ulong +take = sub get Vwork 4 s +cols = get Vwork 0 +if gt take cols +take = cols +j = cols +while gt j div cols 2 +if eq get Code sub add s j 1 32 +take = j +j = 0 +else +j = sub j 1 +end +end +end +slot = get View 0 +put Rowst slot s +put Rowlen slot take +put Rowline slot 0 +if first +put Rowline slot get Vwork 2 +end +put View 0 add slot 1 +ret add s take +end +fn rowroom pos ulong to bool +ret and lt pos get C 2 lt get View 0 get Vwork 1 +end +fn moreline s ulong to bool +ret and lt s get Vwork 4 lt get View 0 get Vwork 1 +end +fn rows cols ulong maxrows ulong to bool +if or eq cols 0 gt maxrows 4096 +ret false +end +if ne codestat 2 +ret false +end +put Vwork 0 cols +put Vwork 1 maxrows +put Vwork 2 1 +put View 0 0 +put View 1 0 +pos = ulong 0 +while rowroom pos +stop = pos +while lt stop get C 2 +if eq get Code stop 10 +put Vwork 4 stop +stop = get C 2 +else +stop = add stop 1 +put Vwork 4 stop +end +end +s = pos +if lt get View 0 maxrows +s = onerow s true +end +while moreline s +s = onerow s false +end +pos = add get Vwork 4 1 +put Vwork 2 add get Vwork 2 1 +end +ret true +end +fn scroll delta long page ulong to ulong +last = ulong 0 +if gt get View 0 page +last = sub get View 0 page +end +if gt get View 1 last +put View 1 last +end +top = long get View 1 +if lt delta 0 +if lt delta neg top +put View 1 0 +ret 0 +end +else +if gt ulong delta sub last get View 1 +put View 1 last +ret last +end +end +top = add top delta +put View 1 ulong top +ret ulong top +end +note Scene state: tone,water,has-say,nthings,used,lines,rejected,over. +global Sc ulong 8 +global Things ulong 64 +global Stext uchar 2304 +global Sw ulong 4 +global Fields uchar 1536 +global Flens ulong 6 +global Soffs ulong 6 +text Vocab "mood|say|note|list|number|quote|person|timer|picture|video|left|right|above|warm|quiet|bloom|rise|fade|to|from|night|dawn|deep|clear|slow|still|lively|" +fn scword beg ulong size ulong to ulong +s = ulong 0 +word = ulong 1 +for i ulong len Vocab +if eq get Vocab i 124 +if eq sub i s size +same = true +for j ulong size +if ne get In add beg j get Vocab add s j +same = false +end +end +if same +ret word +end +end +word = add word 1 +s = add i 1 +end +end +ret 0 +end +fn fieldcap kind ulong field ulong to ulong +if eq kind 2 +if eq field 0 +ret 48 +end +ret 64 +end +if eq kind 1 +if eq field 0 +ret 48 +end +ret 240 +end +if eq kind 3 +if eq field 0 +ret 16 +end +ret 64 +end +if eq kind 4 +if eq field 0 +ret 220 +end +ret 48 +end +if eq kind 5 +if eq field 0 +ret 32 +end +ret 200 +end +if eq kind 6 +if eq field 0 +ret 24 +end +ret 64 +end +if eq field 0 +ret 120 +end +ret 64 +end +fn scfield slot ulong beg ulong stop ulong kind ulong to bool +s = beg +e = stop +while lt s e +if eq get In s 32 +s = add s 1 +else +ret fieldend slot s e kind +end +end +put Flens slot 0 +ret true +end +fn fieldend slot ulong s ulong stop ulong kind ulong to bool +e = stop +while gt e s +if eq get In sub e 1 32 +e = sub e 1 +else +n = sub e s +if gt n fieldcap kind slot +ret false +end +for i ulong n +c = get In add s i +if or lt c 32 gt c 126 +ret false +end +put Fields add mul slot 256 i c +end +put Flens slot n +ret true +end +end +put Flens slot 0 +ret true +end +fn scfields beg ulong stop ulong kind ulong to ulong +slot = ulong 0 +s = beg +for i ulong sub stop beg +p = add beg i +if eq get In p 124 +if ge slot 5 +ret 0 +end +if not scfield slot s p kind +ret 0 +end +slot = add slot 1 +s = add p 1 +end +end +if not scfield slot s stop kind +ret 0 +end +n = add slot 1 +if and ne kind 2 gt n 2 +ret 0 +end +if eq get Flens 0 0 +ret 0 +end +if eq kind 5 +if or lt n 2 eq get Flens 1 0 +ret 0 +end +end +if eq kind 3 +hasdigit = false +for i ulong get Flens 0 +if isdigit get Fields i +hasdigit = true +end +end +if not hasdigit +ret 0 +end +end +ret n +end +fn scput slot ulong to ulong +off = get Sc 4 +n = get Flens slot +for i ulong n +put Stext add off i get Fields add mul slot 256 i +end +put Stext add off n 0 +put Sc 4 add add off n 1 +ret off +end +fn scmod word ulong base ulong to void +if and ge word 11 le word 13 +put Things add base 1 sub word 10 +end +if and ge word 16 le word 18 +put Things add base 2 sub word 16 +end +if and ge word 19 le word 20 +put Things add base 3 sub word 18 +end +if eq word 14 +put Things add base 4 1 +end +if eq word 15 +put Things add base 5 1 +end +end +fn scsay beg ulong stop ulong to bool +if ne get Sc 2 0 +ret false +end +n = sub stop beg +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In add beg i +if or lt c 32 gt c 126 +ret false +end +put Fields i c +end +put Flens 0 n +put Sc 2 1 +put Sw 3 scput 0 +ret true +end +fn scln beg ulong stop ulong to bool +p = beg +while lt p stop +if or eq get In p 32 eq get In p 58 +ret scbody beg p stop +end +p = add p 1 +end +ret false +end +fn scbody beg ulong wordend ulong stop ulong to bool +word = scword beg sub wordend beg +if eq word 2 +s = add wordend 1 +if lt s stop +if eq get In s 58 +s = add s 1 +end +end +while lt s stop +if eq get In s 32 +s = add s 1 +else +ret scsay s stop +end +end +ret false +end +if eq word 1 +s = add wordend 1 +for p ulong sub stop s +at = add add wordend 1 p +if eq get In at 32 +w = scword s sub at s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +s = add at 1 +end +end +w = scword s sub stop s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +ret true +end +if or lt word 3 gt word 10 +ret false +end +if ge get Sc 3 4 +put Sc 7 add get Sc 7 1 +ret false +end +put Sw 0 sub word 2 +colon = wordend +while lt colon stop +if eq get In colon 58 +put Sw 1 wordend +put Sw 2 colon +ret scthing add colon 1 stop +end +colon = add colon 1 +end +ret false +end +fn scthing beg ulong stop ulong to bool +n = scfields beg stop get Sw 0 +if eq n 0 +ret false +end +need = n +for i ulong n +need = add need get Flens i +end +if gt add get Sc 4 need 2304 +ret false +end +base = mul get Sc 3 16 +put Things base get Sw 0 +put Things add base 6 n +s = get Sw 1 +for p ulong sub get Sw 2 s +at = add get Sw 1 p +if eq get In at 32 +w = scword s sub at s +scmod w base +s = add at 1 +end +end +w = scword s sub get Sw 2 s +scmod w base +for i ulong n +put Things add add base 7 i scput i +end +put Sc 3 add get Sc 3 1 +ret true +end +fn scene to bool +for i ulong 8 +put Sc i 0 +end +for i ulong 64 +put Things i 0 +end +put Sw 3 0 +n = get Inlen 0 +if gt n 2048 +n = 2048 +end +s = ulong 0 +for p ulong n +if eq get In p 10 +if gt p s +if lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s p +put Sc 6 add get Sc 6 1 +end +else +put Sc 7 add get Sc 7 1 +end +end +s = add p 1 +end +end +if and lt s n lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s n +put Sc 6 add get Sc 6 1 +end +end +ret or ne get Sc 2 0 ne get Sc 3 0 +end +note Handwritten Omega port of paint.h ck_add, ck_scale, ck_mix and paint.c ck_glow. +note Bounded192x128 RAM canvas. This is rendering core, not full sky/font/device UI. +global Frame uint 24576 +global G ulong 6 +global Fb uchar 73728 +fn channel c uint shift uint to uint +ret and shr c shift 255 +end +fn addcolor d uint c uint a uint to uint +v = uint 0 +for i uint 3 +s = mul i 8 +n = add channel d s shr mul channel c s a 8 +if gt n 255 +n = 255 +end +v = or v shl n s +end +ret v +end +fn scale c uint f uint to uint +ret or and shr mul and c 16711935 f 8 16711935 and shr mul and c 65280 f 8 65280 +end +fn mix d uint c uint a uint to uint +if ge a 256 +ret c +end +ret add scale d sub uint 256 a scale c a +end +fn distance x ulong y ulong to ulong +dx = sub add mul long x 16 8 long get G 0 +dy = sub add mul long y 16 8 long get G 1 +ret ulong add mul dx dx mul dy dy +end +fn weight d2 ulong r2 ulong to ulong +inv = div ulong 1099511627776 r2 +f = sub ulong 256 shr mul d2 inv 32 +w = shr mul shr mul f f 8 f 8 +ret shr mul w get G 4 8 +end +fn glowpix x ulong y ulong to void +d2 = distance x y +r2 = mul get G 2 get G 2 +if ge d2 r2 +ret +end +a = uint weight d2 r2 +at = add mul y 192 x +put Frame at addcolor get Frame at uint get G 3 a +end +fn glow cx ulong cy ulong radius ulong color ulong alpha ulong to bool +if or eq radius 0 gt radius 8192 +ret false +end +if or gt cx 8192 gt cy 8192 +ret false +end +if or gt color 16777215 gt alpha 512 +ret false +end +put G 0 cx +put G 1 cy +put G 2 radius +put G 3 color +put G 4 alpha +for y ulong 128 +for x ulong 192 +glowpix x y +end +end +ret true +end +fn render to void +for i ulong 24576 +put Frame i 0 +end +note Frozen component pose; same halo and heart colors/weights as ck_mind_draw. +b = glow 1536 1024 1088 3951314 68 +b = glow 1536 1024 640 7363839 46 +b = glow 1536 1024 400 16765610 89 +b = glow 1536 1024 160 16772310 218 +b = glow 1536 1024 50 16775920 230 +end +fn frameout to bool +for i ulong 24576 +c = get Frame i +put Fb mul i 3 uchar channel c 16 +put Fb add mul i 3 1 uchar channel c 8 +put Fb add mul i 3 2 uchar channel c 0 +end +n = ulong 0 +while lt n len Fb +w = write 1 Fb n sub len Fb n +if le w 0 +ret false +end +n = add n ulong w +end +ret true +end +note Native application binding: conversation state, courier lifecycle and reply/code. +note A initialized, queued AGAIN bytes, per-call event, reserved. +note Events:0 none,1 visible answer/ack,2 AGAIN queued,3 code give-up, +note 4 refused LINE payload,5 slow notice,6 silence timeout. +note Transport acceptance is separate from payload acceptance: appreceive true +note means envelope accepted; inspect A2 for malformed payload, never invent text. +global A ulong 4 +global Appjob uchar 4096 +global Askin uchar 160 +fn appinit run ulong now ulong to bool +if or ne get A 0 0 ne get R 0 0 +ret false +end +if ne get Q 0 0 +ret false +end +if not qstart run now +ret false +end +constants +put A 0 1 +put A 1 0 +put A 2 0 +ret true +end +fn appclock now ulong to bool +if eq get A 0 0 +ret false +end +ret and ge now get T 0 ge now get R 4 +end +fn appask now ulong to bool +if not appclock now +ret false +end +if or ne get R 1 0 ne get A 1 0 +ret false +end +if or ne get T 10 0 ne get T 13 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +if or ge get R 0 4294967295 ge get Q 1 4294967295 +ret false +end +if not textok +ret false +end +kind = classify +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not jobbuild kind add get R 0 1 +ret false +end +n = get Inlen 0 +size = get Outlen 0 +for i ulong n +put Askin i get In i +end +for i ulong size +put Appjob i get Outb i +end +for i ulong size +put In i get Appjob i +end +put Inlen 0 size +queued = qsubmit now +for i ulong n +put In i get Askin i +end +put Inlen 0 n +if not queued +ret false +end +note start preconditions were checked before qsubmit; no concurrent calls permitted. +if not start kind now +qcancel +ret false +end +put A 2 0 +if gt kind 1 +codebeg get R 0 +put A 2 1 +end +ret true +end +fn appcancel to void +cancel +qcancel +put A 1 0 +put A 2 0 +end +fn appreset to void +appcancel +reset +end +fn apppoll now ulong link bool to bool +if not appclock now +ret false +end +put A 2 0 +put T 0 now +status = tick now +if eq status 1 +put A 2 5 +end +if eq status 2 +qcancel +put A 1 0 +put A 2 6 +end +note First acknowledge the triggering LINE; only then submit AGAIN under a new +note wire sequence. Its body keeps the original conversation ID. +if and gt get A 1 0 and eq get T 10 0 eq get T 13 0 +put Inlen 0 get A 1 +for i ulong get A 1 +put In i get Appjob i +end +if not qsubmit now +appcancel +put A 2 3 +ret false +end +put A 1 0 +end +ret qnext now link +end +fn appsent now ulong ok bool to bool +if not appclock now +ret false +end +if not qsent now ok +ret false +end +put A 2 0 +ret true +end +fn appreceive now ulong to bool +if not appclock now +ret false +end +result = qincoming now +if eq result 0 +ret false +end +put A 2 0 +if not qtake +ret true +end +if eq get R 1 0 +put A 2 4 +ret true +end +if ineq 0 67 +if codetake +if heard get C 0 now +ret true +end +end +put A 2 4 +ret true +end +if or ineq 0 83 ineq 0 87 +status = saytake now +if eq status 1 +if ne get S 1 0 +put A 2 1 +end +ret true +end +if eq status 2 +n = get Outlen 0 +if or eq n 0 gt n 4096 +cancel +put A 1 0 +put A 2 3 +ret true +end +for i ulong n +put Appjob i get Outb i +end +put A 1 n +put A 2 2 +ret true +end +if eq status 3 +put A 1 0 +put A 2 3 +ret true +end +end +put A 2 4 +ret true +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note End-to-end application core over real Omega protocol bytes; no socket simulation claim. +text Smallask "hello" +text Codeaskt "Please make me a calculator" +text Finaltxt " 1/1 Model answer." +text Codetxt " 1/1 9 3ce11e06 python print(1)\\n" +text Prefixes "SAY WAIT CODE " +text Againexp "AGAIN 2" +global SavedOut uchar 8192 +fn test ok bool to void +n = get Outlen 0 +e = get Err 0 +for i ulong n +put SavedOut i get Outb i +end +check ok add get Checks 0 1 +for i ulong n +put Outb i get SavedOut i +end +put Outlen 0 n +put Err 0 e +end +fn copyout to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn prompt code bool to void +if code +put Inlen 0 len Codeaskt +for i ulong len Codeaskt +put In i get Codeaskt i +end +else +put Inlen 0 len Smallask +for i ulong len Smallask +put In i get Smallask i +end +end +end +fn incoming part ulong seq ulong kind ulong to void +outreset +off = ulong 0 +size = ulong 4 +if eq kind 1 +off = ulong 4 +size = ulong 5 +end +if eq kind 2 +off = ulong 9 +size = ulong 5 +end +for i ulong size +emitb get Prefixes add off i +end +emitn seq +if eq kind 0 +for i ulong len Finaltxt +emitb get Finaltxt i +end +end +if eq kind 2 +for i ulong len Codetxt +emitb get Codetxt i +end +end +copyout +b = packet 2 get Q 1 part 0 0 +copyout +end +fn main to int +test not appinit 0 100 +test appinit 42 100 +test not appinit 43 100 +test eq get Q 0 42 +prompt false +test appask 100 +test eq get R 0 1 +test eq get Q 1 1 +test eq get R 9 1 +test eq get R 1 1 +test eq get A 2 0 +prompt false +test not appask 101 +test eq get R 9 1 +test apppoll 100 true +test eq get T 10 5 +test appsent 100 true +test apppoll 100 true +test eq get T 10 1 +copyout +test pkparse +test eq get N 1 1 +test eq get In get N 5 74 +test appsent 100 true +incoming 1 1 0 +test appreceive 101 +test eq get A 2 1 +test eq get R 1 0 +test eq get R 8 13 +test eq get R 9 2 +test eq get Answer 0 77 +prompt true +test not appask 102 +test eq get R 0 1 +test apppoll 102 true +test eq get T 10 3 +test appsent 102 true +note Code acknowledgement is visible immediately, but missing code requests AGAIN. +prompt true +test appask 103 +test eq get R 0 2 +test eq get Q 1 2 +test eq get R 2 2 +test eq get A 2 1 +test eq get R 8 len Ack +test apppoll 103 true +test appsent 103 false +test apppoll 104 true +test eq get T 10 1 +test appsent 104 true +incoming 1 2 0 +test appreceive 105 +test eq get A 2 2 +test eq get A 1 len Againexp +test eq get R 1 1 +test eq get R 13 1 +test apppoll 105 true +test eq get T 10 3 +test eq get Q 1 2 +test appsent 105 true +test apppoll 106 true +test eq get T 10 1 +test eq get Q 1 3 +test eq get R 0 2 +copyout +test pkparse +test eq get N 6 len Againexp +bad = ulong 0 +for i ulong len Againexp +if ne get In add get N 5 i get Againexp i +bad = add bad 1 +end +end +test eq bad 0 +test appsent 106 true +incoming 1 2 0 +test appreceive 107 +test eq get A 2 3 +test eq get R 1 0 +test eq get A 1 0 +note Reset cancels pending delivery without reusing either counter. +appreset +test eq get R 0 2 +test eq get Q 1 3 +test eq get R 9 0 +prompt false +test appask 108 +test eq get R 0 3 +test eq get Q 1 4 +test apppoll 108 true +test appsent 108 true +incoming 1 2 0 +test appreceive 109 +test eq get A 2 4 +test eq get R 1 1 +test eq get R 8 0 +test apppoll 109 true +test appsent 109 true +incoming 2 3 0 +test appreceive 110 +test eq get A 2 1 +test eq get R 1 0 +test eq get R 9 2 +test apppoll 110 true +test appsent 110 true +note Cancellation drops an outstanding send and stale response safely. +prompt false +test appask 111 +test apppoll 111 true +appcancel +test eq get R 1 0 +test eq get T 5 0 +test not appsent 111 true +incoming 1 4 0 +test not appreceive 112 +note Complete CODE bytes must arrive before a code response becomes visible. +prompt true +test appask 113 +test eq get R 0 5 +test eq get Q 1 6 +test apppoll 113 true +test appsent 113 true +incoming 1 5 2 +test appreceive 114 +test eq get A 2 0 +test eq codestat 2 +test eq get R 6 0 +test apppoll 114 true +test appsent 114 true +incoming 2 5 0 +test appreceive 115 +test eq get A 2 1 +test eq get R 6 1 +test eq get R 1 0 +test eq get Code 6 49 +test apppoll 115 true +test appsent 115 true +note WAIT updates silence deadline, no answer; slow and timeout cancel both layers. +prompt false +test appask 116 +test eq get R 0 6 +test apppoll 116 true +test appsent 116 true +incoming 1 6 1 +test appreceive 117 +test eq get A 2 0 +test eq get R 4 117 +test apppoll 117 true +test appsent 117 true +v = apppoll 20116 true +test eq get A 2 5 +test eq get R 1 1 +if v +test appsent 20116 true +end +v = apppoll 30116 true +test eq get R 1 1 +if v +test appsent 30116 true +end +v = apppoll 30117 true +test eq get A 2 6 +test eq get R 1 0 +test eq get T 5 0 +test eq get A 1 0 +if v +test appsent 30117 true +end +n = get R 9 +prompt false +test not appask 30116 +test eq get R 9 n +test not apppoll 30116 true +note Invalid prompt never becomes a pending job or transcript line. +put Inlen 0 160 +test not appask 30118 +test eq get R 9 n +test eq get R 0 6 +test eq get Q 1 7 +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L734/green2.exit b/evidence/allen-omega-L694/L734/green2.exit new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/evidence/allen-omega-L694/L734/green2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/allen-omega-L694/L734/green2.log b/evidence/allen-omega-L694/L734/green2.log new file mode 100644 index 00000000..d5e8237e --- /dev/null +++ b/evidence/allen-omega-L694/L734/green2.log @@ -0,0 +1,133 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 diff --git a/evidence/allen-omega-L694/L734/hash-mutant.log b/evidence/allen-omega-L694/L734/hash-mutant.log new file mode 100644 index 00000000..c75cfefb --- /dev/null +++ b/evidence/allen-omega-L694/L734/hash-mutant.log @@ -0,0 +1,79 @@ +301 0 +302 0 +303 0 +304 0 +305 0 +306 0 +307 0 +308 0 +309 1 +310 1 +311 0 +312 0 +313 0 +314 0 +315 0 +316 0 +317 0 +318 0 +319 0 +320 0 +321 0 +322 0 +323 0 +324 0 +325 0 +326 0 +327 0 +328 0 +329 0 +330 0 +331 0 +332 0 +333 0 +334 0 +335 0 +336 0 +337 0 +338 0 +339 0 +340 0 +341 0 +342 0 +343 0 +344 0 +345 0 +346 0 +347 0 +348 0 +349 0 +350 0 +351 0 +352 0 +362 0 +363 0 +353 0 +354 0 +355 0 +356 0 +357 0 +358 0 +359 0 +360 0 +364 0 +365 0 +366 0 +367 0 +368 0 +369 0 +370 0 +371 0 +372 0 +373 0 +374 0 +375 0 +376 0 +377 0 +378 0 +379 0 +361 0 diff --git a/evidence/allen-omega-L694/L734/independent-review/build/app-baseline.log b/evidence/allen-omega-L694/L734/independent-review/build/app-baseline.log new file mode 100644 index 00000000..2e8a428d --- /dev/null +++ b/evidence/allen-omega-L694/L734/independent-review/build/app-baseline.log @@ -0,0 +1,182 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 0 +170 0 +171 0 +172 0 +173 0 +174 0 +175 0 +176 0 +177 0 +178 0 +179 0 +180 0 +181 0 +182 0 diff --git a/evidence/allen-omega-L694/L734/independent-review/build/probe-final-50/probe.log b/evidence/allen-omega-L694/L734/independent-review/build/probe-final-50/probe.log new file mode 100644 index 00000000..107e4801 --- /dev/null +++ b/evidence/allen-omega-L694/L734/independent-review/build/probe-final-50/probe.log @@ -0,0 +1,50 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 diff --git a/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.log b/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.log new file mode 100644 index 00000000..2e8a428d --- /dev/null +++ b/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.log @@ -0,0 +1,182 @@ +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 +12 0 +13 0 +14 0 +15 0 +16 0 +17 0 +18 0 +19 0 +20 0 +21 0 +22 0 +23 0 +24 0 +25 0 +26 0 +27 0 +28 0 +29 0 +30 0 +31 0 +32 0 +33 0 +34 0 +35 0 +36 0 +37 0 +38 0 +39 0 +40 0 +41 0 +42 0 +43 0 +44 0 +45 0 +46 0 +47 0 +48 0 +49 0 +50 0 +51 0 +52 0 +53 0 +54 0 +55 0 +56 0 +57 0 +58 0 +59 0 +60 0 +61 0 +62 0 +63 0 +64 0 +65 0 +66 0 +67 0 +68 0 +69 0 +70 0 +71 0 +72 0 +73 0 +74 0 +75 0 +76 0 +77 0 +78 0 +79 0 +80 0 +81 0 +82 0 +83 0 +84 0 +85 0 +86 0 +87 0 +88 0 +89 0 +90 0 +91 0 +92 0 +93 0 +94 0 +95 0 +96 0 +97 0 +98 0 +99 0 +100 0 +101 0 +102 0 +103 0 +104 0 +105 0 +106 0 +107 0 +108 0 +109 0 +110 0 +111 0 +112 0 +113 0 +114 0 +115 0 +116 0 +117 0 +118 0 +119 0 +120 0 +121 0 +122 0 +123 0 +124 0 +125 0 +126 0 +127 0 +128 0 +129 0 +130 0 +131 0 +132 0 +133 0 +134 0 +135 0 +136 0 +137 0 +138 0 +139 0 +140 0 +141 0 +142 0 +143 0 +144 0 +145 0 +146 0 +147 0 +148 0 +149 0 +150 0 +151 0 +152 0 +153 0 +154 0 +155 0 +156 0 +157 0 +158 0 +159 0 +160 0 +161 0 +162 0 +163 0 +164 0 +165 0 +166 0 +167 0 +168 0 +169 0 +170 0 +171 0 +172 0 +173 0 +174 0 +175 0 +176 0 +177 0 +178 0 +179 0 +180 0 +181 0 +182 0 diff --git a/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.om b/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.om new file mode 100644 index 00000000..a5ebf72b --- /dev/null +++ b/evidence/allen-omega-L694/L734/independent-review/development/app-baseline.om @@ -0,0 +1,3226 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +while gt x 0 +put d n uchar add rem x 10 48 +n = add n 1 +x = div x 10 +end +while gt n 0 +n = sub n 1 +emitb get d n +end +end +fn outreset to void +put Outlen 0 0 +put Err 0 0 +end +fn ineq at ulong c uchar to bool +if ge at get Inlen 0 +ret false +end +ret eq get In at c +end +fn isdigit c uchar to bool +ret and ge c 48 le c 57 +end +note Parser cursor P0, number P1, error P2. Never wraps a u32. +global P ulong 3 +fn number to void +v = ulong 0 +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if not isdigit c +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +ret +end +if or ge n 10 gt v 429496729 +put P 2 1 +ret +end +v = add mul v 10 sub ulong c 48 +if gt v 4294967295 +put P 2 1 +ret +end +n = add n 1 +p = add p 1 +end +put P 0 p +put P 1 v +if eq n 0 +put P 2 1 +end +end +fn expect c uchar to void +p = get P 0 +if not ineq p c +put P 2 1 +else +put P 0 add p 1 +end +end +fn crc off ulong count ulong to uint +c = uint 4294967295 +for i ulong count +c = xor c uint get In add off i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note SHA256 core reused byte-for-byte from native Omega TRN1 at 12251e3403d42931ada27dc1c54b3b610954be5d. +note Reads stdin up to 8 MiB and emits lowercase hex plus LF only after successful EOF. +global Buf uchar 8192 +global H uint 8 +global Vv uint 8 +global W uint 64 +global K uint 64 +global Hb uchar 64 +global Hs ulong 2 +global Hash uchar 32 +global Out uchar 65 +text Hex "0123456789abcdef" + +fn rotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn round i ulong to void +e = get Vv 4 +a = get Vv 0 +s = xor xor rotate e 6 rotate e 11 rotate e 25 +c = xor and e get Vv 5 and not e get Vv 6 +t = add add get Vv 7 s add c add get K i get W i +s = xor xor rotate a 2 rotate a 13 rotate a 22 +c = and a get Vv 1 +c = xor c and a get Vv 2 +c = xor c and get Vv 1 get Vv 2 +u = add s c +put Vv 7 get Vv 6 +put Vv 6 get Vv 5 +put Vv 5 e +put Vv 4 add get Vv 3 t +put Vv 3 get Vv 2 +put Vv 2 get Vv 1 +put Vv 1 a +put Vv 0 add t u +end + +fn block to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get Hb add mul i 4 j +end +put W i x +end +for j ulong 48 +i = add j 16 +x = get W sub i 15 +y = get W sub i 2 +s = xor xor rotate x 7 rotate x 18 shr x 3 +t = xor xor rotate y 17 rotate y 19 shr y 10 +put W i add add get W sub i 16 s add get W sub i 7 t +end +for i ulong 8 +put Vv i get H i +end +for i ulong 64 +round i +end +for i ulong 8 +put H i add get H i get Vv i +end +end + +fn hinit to void +put H 0 1779033703 +put H 1 3144134277 +put H 2 1013904242 +put H 3 2773480762 +put H 4 1359893119 +put H 5 2600822924 +put H 6 528734635 +put H 7 1541459225 +put Hs 0 0 +put Hs 1 0 +end + +fn hbyte c uchar to void +p = get Hs 0 +put Hb p c +p = add p 1 +put Hs 1 add get Hs 1 1 +if eq p 64 +block +p = 0 +end +put Hs 0 p +end + +fn update off ulong count ulong to void +for i ulong count +hbyte get Buf add off i +end +end + +fn finish to void +bits = mul get Hs 1 8 +hbyte 128 +while ne get Hs 0 56 +hbyte 0 +end +for i ulong 8 +hbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get H div i 4 +put Hash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn constants to void +put K 0 1116352408 +put K 1 1899447441 +put K 2 3049323471 +put K 3 3921009573 +put K 4 961987163 +put K 5 1508970993 +put K 6 2453635748 +put K 7 2870763221 +put K 8 3624381080 +put K 9 310598401 +put K 10 607225278 +put K 11 1426881987 +put K 12 1925078388 +put K 13 2162078206 +put K 14 2614888103 +put K 15 3248222580 +put K 16 3835390401 +put K 17 4022224774 +put K 18 264347078 +put K 19 604807628 +put K 20 770255983 +put K 21 1249150122 +put K 22 1555081692 +put K 23 1996064986 +put K 24 2554220882 +put K 25 2821834349 +put K 26 2952996808 +put K 27 3210313671 +put K 28 3336571891 +put K 29 3584528711 +put K 30 113926993 +put K 31 338241895 +put K 32 666307205 +put K 33 773529912 +put K 34 1294757372 +put K 35 1396182291 +put K 36 1695183700 +put K 37 1986661051 +put K 38 2177026350 +put K 39 2456956037 +put K 40 2730485921 +put K 41 2820302411 +put K 42 3259730800 +put K 43 3345764771 +put K 44 3516065817 +put K 45 3600352804 +put K 46 4094571909 +put K 47 275423344 +put K 48 430227734 +put K 49 506948616 +put K 50 659060556 +put K 51 883997877 +put K 52 958139571 +put K 53 1322822218 +put K 54 1537002063 +put K 55 1747873779 +put K 56 1955562222 +put K 57 2024104815 +put K 58 2227730452 +put K 59 2361852424 +put K 60 2428436474 +put K 61 2756734187 +put K 62 3204031479 +put K 63 3329325298 +end + +note R: seq, active, kind (1 chat 2 code 3 more), asked, heard, slow, +note code-visible, prompt length, answer length, history count, session. +global R ulong 16 +global Prompt uchar 160 +global Answer uchar 160 +global Hist uchar 5120 +global Hlen ulong 32 +text Ack "I need to code that. Let me send it off to the Spark." +text Ackmore "Let me take that change to the Spark." +fn textok to bool +n = get Inlen 0 +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In i +if or lt c 32 gt c 126 +ret false +end +end +ret true +end +fn histadd which ulong to void +n = get R 9 +if eq n 32 +for i ulong 4960 +put Hist i get Hist add i 160 +end +for i ulong 31 +put Hlen i get Hlen add i 1 +end +n = 31 +end +size = get R add which 7 +for i ulong size +if eq which 0 +put Hist add mul n 160 i get Prompt i +else +put Hist add mul n 160 i get Answer i +end +end +put Hlen n size +put R 9 add n 1 +end +fn start kind ulong now ulong to bool +if or ne get R 1 0 ge get R 0 4294967295 +ret false +end +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not textok +ret false +end +for i ulong get Inlen 0 +put Prompt i get In i +end +put R 7 get Inlen 0 +put R 0 add get R 0 1 +put R 1 1 +put R 2 kind +put R 3 now +put R 4 now +put R 5 0 +put R 8 0 +put R 11 0 +put R 13 0 +if eq kind 2 +for i ulong len Ack +put Answer i get Ack i +end +put R 8 len Ack +end +if eq kind 3 +for i ulong len Ackmore +put Answer i get Ackmore i +end +put R 8 len Ackmore +end +histadd 0 +ret true +end +fn answer seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if or lt now get R 4 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +put R 4 now +put R 1 0 +histadd 1 +ret true +end +fn cancel to void +put R 1 0 +end +fn heard seq ulong now ulong to bool +if or eq get R 1 0 ne seq get R 0 +ret false +end +if lt now get R 4 +ret false +end +put R 4 now +ret true +end +fn tick now ulong to ulong +if or eq get R 1 0 lt now get R 4 +ret 0 +end +if ge sub now get R 4 30000 +cancel +ret 2 +end +if and eq get R 5 0 ge sub now get R 3 20000 +put R 5 1 +ret 1 +end +ret 0 +end +fn reset to void +for i ulong 9 +put R add i 1 0 +end +end +note Restore one externally decoded transcript line. No live job or ID reuse. +fn restore to bool +if or ne get R 1 0 not textok +ret false +end +for i ulong get Inlen 0 +put Answer i get In i +end +put R 8 get Inlen 0 +histadd 1 +ret true +end +note CODE protocol: C seq, parts, bytes, crc, got. D parsed header. +global C ulong 8 +global D ulong 8 +global Code uchar 32769 +global Have uchar 256 +global Piece uchar 128 +global Lang uchar 16 +global Newlang uchar 16 +fn codebeg seq ulong to void +for i ulong 8 +put C i 0 +end +put C 0 seq +for i ulong 256 +put Have i 0 +end +put Code 0 0 +end +fn decfield slot ulong sep uchar to void +number +put D slot get P 1 +expect sep +end +fn hexread to void +v = ulong 0 +for i ulong 8 +p = get P 0 +if ge p get Inlen 0 +put P 2 1 +ret +end +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +put P 2 1 +ret +end +v = add mul v 16 d +put P 0 add p 1 +end +put D 4 v +expect 32 +end +fn codehead to bool +put P 0 0 +put P 2 0 +expect 67 +expect 79 +expect 68 +expect 69 +expect 32 +decfield 0 32 +decfield 1 47 +decfield 2 32 +decfield 3 32 +hexread +if ne get P 2 0 +ret false +end +if or ne get D 0 get C 0 eq get D 3 0 +ret false +end +if gt get D 3 32768 +ret false +end +if ne get D 2 div add get D 3 127 128 +ret false +end +if or lt get D 1 1 gt get D 1 get D 2 +ret false +end +if ne get C 1 0 +if or ne get C 1 get D 2 ne get C 2 get D 3 +ret false +end +if ne get C 3 get D 4 +ret false +end +end +ret true +end +fn langread to bool +for i ulong 16 +put Newlang i 0 +end +n = ulong 0 +p = get P 0 +while lt p get Inlen 0 +c = get In p +if eq c 32 +if eq n 0 +ret false +end +put P 0 add p 1 +put D 5 n +ret true +end +ok = or and ge c 97 le c 122 isdigit c +ok = or ok or eq c 43 eq c 35 +ok = or ok or eq c 46 or eq c 95 eq c 45 +if or not ok ge n 15 +ret false +end +put Newlang n c +p = add p 1 +n = add n 1 +end +ret false +end +fn pieceread to ulong +p = get P 0 +n = ulong 0 +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if ge p get Inlen 0 +ret 129 +end +c = get In p +p = add p 1 +if eq c 110 +c = 10 +else +if ne c 92 +ret 129 +end +end +else +if or lt c 32 gt c 126 +ret 129 +end +end +if ge n 128 +ret 129 +end +put Piece n c +n = add n 1 +end +ret n +end +fn codetake to bool +if gt get Inlen 0 320 +ret false +end +if not codehead +ret false +end +if not langread +ret false +end +n = pieceread +want = ulong 128 +if eq get D 1 get D 2 +want = sub get D 3 mul sub get D 2 1 128 +end +if ne n want +ret false +end +slot = sub get D 1 1 +off = mul slot 128 +if ne get C 1 0 +for i ulong 16 +if ne get Lang i get Newlang i +ret false +end +end +end +if ne get Have slot 0 +for i ulong n +if ne get Code add off i get Piece i +ret false +end +end +ret true +end +put C 1 get D 2 +put C 2 get D 3 +put C 3 get D 4 +for i ulong 16 +put Lang i get Newlang i +end +for i ulong n +put Code add off i get Piece i +end +put Have slot 1 +put C 4 add get C 4 1 +ret true +end +fn codecrc to uint +c = uint 4294967295 +for i ulong get C 2 +c = xor c uint get Code i +for k ulong 8 +if ne and c 1 0 +c = xor shr c 1 3988292384 +else +c = shr c 1 +end +end +end +ret not c +end +fn codestat to ulong +if eq get C 1 0 +ret 0 +end +if lt get C 4 get C 1 +ret 1 +end +if ne ulong codecrc get C 3 +ret 3 +end +lines = ulong 0 +for i ulong get C 2 +c = get Code i +if eq c 0 +ret 3 +end +if eq c 10 +lines = add lines 1 +end +end +if ne get Code sub get C 2 1 10 +lines = add lines 1 +end +if gt lines 800 +ret 3 +end +put Code get C 2 0 +ret 2 +end +fn missing to ulong +if eq get C 1 0 +ret 1 +end +for i ulong get C 1 +if eq get Have i 0 +ret add i 1 +end +end +ret 0 +end +note Display admission is distinct from a model's closing sentence. +fn codeshow seq ulong to bool +if eq get R 1 0 +ret false +end +if or ne seq get R 0 ne seq get C 0 +ret false +end +if ne codestat 2 +ret false +end +put R 6 1 +ret true +end +note Pure courier datagrams. Q session, current seq, last LINE, head, count. +global Q ulong 8 +global N ulong 8 +global Queue uchar 2560 +global Qlens ulong 8 +global Jbuf uchar 4096 +global Jhave uchar 5 +global J ulong 3 +text Keys "ALLEN-COURIER v=1 run= kind= seq= part= bytes=" +text Kinds "JOBLINEGOTACKHELLOHI" +fn keyread off ulong count ulong to void +for i ulong count +expect get Keys add off i +end +end +fn keyemit off ulong count ulong to void +for i ulong count +emitb get Keys add off i +end +end +fn kindoff k ulong to ulong +if eq k 1 +ret 0 +end +if eq k 2 +ret 3 +end +if eq k 3 +ret 7 +end +if eq k 4 +ret 10 +end +if eq k 5 +ret 13 +end +ret 18 +end +fn kindlen k ulong to ulong +if eq k 2 +ret 4 +end +if eq k 5 +ret 5 +end +if eq k 6 +ret 2 +end +ret 3 +end +fn qbegin run ulong seq ulong to void +for i ulong 8 +put Q i 0 +end +put Q 0 run +put Q 1 seq +for i ulong 5 +put Jhave i 0 +end +for i ulong 3 +put J i 0 +end +end +note Serializer takes body In/Inlen; Outb/Outlen are published only on success. +fn packet k ulong seq ulong part ulong total ulong bytes ulong to bool +if or lt k 1 gt k 6 +ret false +end +if gt get Inlen 0 1000 +ret false +end +outreset +keyemit 0 22 +for i ulong 16 +d = and shr get Q 0 mul sub 15 i 4 15 +emitb get Digits d +end +keyemit 22 6 +off = kindoff k +for i ulong kindlen k +emitb get Kinds add off i +end +keyemit 28 5 +emitn seq +keyemit 33 6 +emitn part +emitb 47 +emitn total +keyemit 39 7 +emitn bytes +emitb 10 +for i ulong get Inlen 0 +emitb get In i +end +ret eq get Err 0 0 +end +fn pkparse to bool +if or gt get Inlen 0 1200 lt get Inlen 0 65 +ret false +end +put P 0 0 +put P 2 0 +keyread 0 22 +run = ulong 0 +for i ulong 16 +p = get P 0 +c = get In p +d = ulong 16 +if isdigit c +d = sub ulong c 48 +else +if and ge c 97 le c 102 +d = sub ulong c 87 +end +end +if ge d 16 +ret false +end +run = or shl run 4 d +put P 0 add p 1 +end +if ne run get Q 0 +ret false +end +keyread 22 6 +kind = ulong 0 +for k ulong 6 +at = get P 0 +off = kindoff add k 1 +size = kindlen add k 1 +ok = true +for i ulong size +if not ineq add at i get Kinds add off i +ok = false +end +end +if and ok ineq add at size 32 +kind = add k 1 +end +end +if eq kind 0 +ret false +end +put N 0 kind +put P 0 add get P 0 kindlen kind +keyread 28 5 +number +put N 1 get P 1 +keyread 33 6 +number +put N 2 get P 1 +expect 47 +number +put N 3 get P 1 +keyread 39 7 +number +put N 4 get P 1 +expect 10 +put N 5 get P 0 +put N 6 sub get Inlen 0 get P 0 +ret eq get P 2 0 +end +fn jobtake to ulong +note n via N4 +note part via N2 +note total via N3 +if or eq get N 4 0 gt get N 4 4096 +ret 0 +end +if ne get N 3 div add get N 4 999 1000 +ret 0 +end +if or eq get N 2 0 gt get N 2 get N 3 +ret 0 +end +want = ulong 1000 +if eq get N 2 get N 3 +want = sub get N 4 mul sub get N 3 1 1000 +end +if ne want get N 6 +ret 0 +end +if ne get J 0 0 +if or ne get J 0 get N 4 ne get J 1 get N 3 +ret 0 +end +end +slot = sub get N 2 1 +off = mul slot 1000 +if ne get Jhave slot 0 +for i ulong want +if ne get Jbuf add off i get In add get N 5 i +ret 0 +end +end +ret 2 +end +for i ulong want +put Jbuf add off i get In add get N 5 i +end +put Jhave slot 1 +put J 0 get N 4 +put J 1 get N 3 +put J 2 add get J 2 1 +ret 1 +end +note Return0 refused,1 accepted,2 duplicate requiring GOT/ACK again. +fn qreceive to ulong +if not pkparse +ret 0 +end +if ne get N 1 get Q 1 +ret 0 +end +kind = get N 0 +if eq kind 1 +ret jobtake +end +if ne kind 2 +if ne get N 6 0 +ret 0 +end +ret 1 +end +note part via N2 +if eq get N 2 0 +ret 0 +end +if le get N 2 get Q 2 +ret 2 +end +if or ne get N 2 add get Q 2 1 eq get Q 4 8 +ret 0 +end +n = get N 6 +if or eq n 0 gt n 319 +ret 0 +end +slot = rem add get Q 3 get Q 4 8 +for i ulong n +put Queue add mul slot 320 i get In add get N 5 i +end +put Qlens slot n +put Q 4 add get Q 4 1 +put Q 2 get N 2 +ret 1 +end +fn qtake to bool +if eq get Q 4 0 +ret false +end +slot = get Q 3 +n = get Qlens slot +for i ulong n +put In i get Queue add mul slot 320 i +end +put Inlen 0 n +put Q 3 rem add slot 1 8 +put Q 4 sub get Q 4 1 +ret true +end +note Courier client lifecycle; injected monotonic milliseconds, no host clock/socket. +note T lastclock, HIvalid, HIat, HELLOvalid, HELLOat, active, acked, jobat, +note joblength, cursor, pendingkind, pendingpart, reserved, GOTpart, reserved, reserved. +note Serialized API: qnext publishes one datagram; qsent records actual send result. +note Consume Outb before another serializer; failed sends leave retries due. +global T ulong 16 +global JobOut uchar 4096 +fn qstart run ulong now ulong to bool +if eq run 0 +ret false +end +qbegin run 0 +for i ulong 16 +put T i 0 +end +put T 0 now +ret true +end +fn qready now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if eq get T 1 0 +ret false +end +ret lt sub now get T 2 30000 +end +fn qsubmit now ulong to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +n = get Inlen 0 +if or eq n 0 gt n 4096 +ret false +end +if ge get Q 1 4294967295 +ret false +end +seq = add get Q 1 1 +qbegin get Q 0 seq +for i ulong n +c = get In i +if or eq c 10 eq c 13 +c = uchar 32 +end +put JobOut i c +end +put T 0 now +put T 5 1 +put T 6 0 +put T 7 now +put T 8 n +put T 9 1 +put T 13 0 +ret true +end +fn qnext now ulong link bool to bool +if or eq get Q 0 0 lt now get T 0 +ret false +end +if ne get T 10 0 +ret false +end +put T 0 now +if not link +ret false +end +if ne get T 13 0 +put Inlen 0 0 +if not packet 3 get Q 1 get T 13 0 0 +ret false +end +put T 10 3 +put T 11 get T 13 +ret true +end +delay = ulong 2000 +if qready now +delay = ulong 10000 +end +if or eq get T 3 0 ge sub now get T 4 delay +put Inlen 0 0 +if not packet 5 0 0 0 0 +ret false +end +put T 10 5 +put T 11 0 +ret true +end +if or eq get T 5 0 ne get T 6 0 +ret false +end +part = get T 9 +if eq part 0 +if lt sub now get T 7 2000 +ret false +end +part = ulong 1 +end +n = get T 8 +total = div add n 999 1000 +off = mul sub part 1 1000 +size = sub n off +if gt size 1000 +size = ulong 1000 +end +for i ulong size +put In i get JobOut add off i +end +put Inlen 0 size +if not packet 1 get Q 1 part total n +ret false +end +put T 10 1 +put T 11 part +ret true +end +fn qsent now ulong ok bool to bool +if or eq get T 10 0 lt now get T 0 +ret false +end +kind = get T 10 +part = get T 11 +put T 0 now +put T 10 0 +put T 11 0 +if not ok +ret true +end +if eq kind 5 +put T 3 1 +put T 4 now +end +if eq kind 3 +if eq get T 13 part +put T 13 0 +end +end +if eq kind 1 +if or ne get T 6 0 ge part div add get T 8 999 1000 +put T 9 0 +put T 7 now +else +put T 9 add part 1 +end +end +ret true +end +fn qincoming now ulong to ulong +if or eq get Q 0 0 lt now get T 0 +ret 0 +end +if not pkparse +ret 0 +end +kind = get N 0 +if eq kind 6 +if or ne get N 1 0 ne get N 2 0 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if ne get N 6 0 +ret 0 +end +put T 0 now +put T 1 1 +put T 2 now +ret 1 +end +if or eq get T 5 0 ne get N 1 get Q 1 +ret 0 +end +if eq kind 4 +if or ne get N 2 0 ne get N 3 0 +ret 0 +end +if or ne get N 4 0 ne get N 6 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +ret 1 +end +if ne kind 2 +ret 0 +end +if or ne get N 3 0 ne get N 4 0 +ret 0 +end +if and ne get T 13 0 ne get T 13 get N 2 +ret 0 +end +result = qreceive +if eq result 0 +ret 0 +end +put T 0 now +put T 6 1 +put T 9 0 +put T 13 get N 2 +ret result +end +fn qcancel to void +put T 5 0 +put T 6 0 +put T 8 0 +put T 9 0 +put T 10 0 +put T 11 0 +put T 13 0 +put Q 3 0 +put Q 4 0 +end +note Legacy application record codec; SHA is unkeyed integrity ONLY. +global Unit uchar 4096 +global Enc uchar 4096 +global Mem uchar 3692 +global Md ulong 3 +global Note uchar 128 +global Ns ulong 4 +text Magic "AIENALM1" +text Nmagic "AIENNOT1" +fn get32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Unit add off i mul i 8 +end +ret v +end +fn get64 off ulong to ulong +ret or get32 off shl get32 add off 4 32 +end +fn put32 off ulong v ulong to void +for i ulong 4 +put Unit add off i uchar and shr v mul i 8 255 +end +end +fn put64 off ulong v ulong to void +put32 off and v 4294967295 +put32 add off 4 shr v 32 +end +fn mem32 off ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get Mem add off i mul i 8 +end +ret v +end +fn mset32 off ulong v ulong to void +for i ulong 4 +put Mem add off i uchar and shr v mul i 8 255 +end +end +fn zeroend off ulong to bool +for i ulong sub ulong 4096 off +if ne get Unit add off i 0 +ret false +end +end +ret true +end +fn fieldok off ulong cap ulong name bool to bool +n = ulong 0 +while lt n cap +if eq get Unit add off n 0 +for j ulong sub cap n +if ne get Unit add add off n j 0 +ret false +end +end +ret true +end +c = get Unit add off n +lower = and ge c 97 le c 122 +digit = isdigit c +if name +if eq n 0 +if not or and ge c 65 le c 90 digit +ret false +end +else +if not or lower digit +ret false +end +end +else +if eq c 32 +if or eq n 0 eq n sub cap 1 +ret false +end +if eq get Unit add off add n 1 0 +ret false +end +if eq get Unit add off sub n 1 32 +ret false +end +else +if not or lower digit +ret false +end +end +end +n = add n 1 +end +ret false +end +fn digest count ulong to void +hinit +for i ulong 32 +hbyte get Unit i +end +for i ulong count +hbyte get Unit add i 64 +end +finish +end +fn hashok count ulong to bool +digest count +d = uchar 0 +for i ulong 32 +d = or d xor get Hash i get Unit add i 32 +end +ret eq d 0 +end +fn seal count ulong to void +digest count +for i ulong 32 +put Unit add i 32 get Hash i +end +end +fn memvalid to bool +for i ulong 8 +if ne get Unit i get Magic i +ret false +end +end +ver = get32 8 +if or lt ver 2 gt ver 4 +ret false +end +n = get32 96 +if or gt n 32 gt get32 100 512 +ret false +end +size = add 40 mul n 113 +if ge ver 3 +size = add size 24 +end +if eq ver 4 +size = add size 12 +end +if or ne size get32 12 eq get64 16 0 +ret false +end +for i ulong 8 +if ne get Unit add i 24 0 +ret false +end +end +if not zeroend add 64 size +ret false +end +if not hashok size +ret false +end +if not fieldok 72 24 true +ret false +end +for i ulong n +off = add 104 mul i 113 +if or eq get Unit off 0 eq get Unit add off 48 0 +ret false +end +if not fieldok off 48 false +ret false +end +if not fieldok add off 48 64 false +ret false +end +if gt get Unit add off 112 1 +ret false +end +end +off = add 104 mul n 113 +if ge ver 3 +if not fieldok off 24 true +ret false +end +end +if eq ver 4 +if ne get Unit add off 27 0 +ret false +end +end +ret true +end +fn memdec to bool +if not memvalid +ret false +end +size = get32 12 +for i ulong 3692 +put Mem i 0 +end +for i ulong size +put Mem i get Unit add i 64 +end +put Md 0 get64 16 +put Md 1 get32 8 +put Md 2 size +ret true +end +fn memenc gen ulong to bool +n = mem32 32 +if or gt n 32 eq gen 0 +ret false +end +size = add 76 mul n 113 +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Magic i +end +put32 8 4 +put32 12 size +put64 16 gen +for i ulong size +put Unit add i 64 get Mem i +end +seal size +if not memvalid +ret false +end +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +fn noteval index ulong to bool +for i ulong 8 +if ne get Unit i get Nmagic i +ret false +end +end +n = get32 12 +if or eq n 0 ge n 128 +ret false +end +if or ne get32 8 1 ne get32 16 index +ret false +end +if or gt get32 24 1 ne get32 28 0 +ret false +end +if not zeroend add n 64 +ret false +end +for i ulong n +c = get Unit add i 64 +if or lt c 32 gt c 126 +ret false +end +end +ret hashok n +end +fn notedec index ulong to bool +if not noteval index +ret false +end +n = get32 12 +for i ulong 128 +put Note i 0 +end +for i ulong n +put Note i get Unit add i 64 +end +put Ns 0 n +put Ns 1 index +put Ns 2 get32 20 +put Ns 3 get32 24 +ret true +end +fn noteenc to bool +n = get Ns 0 +if or eq n 0 ge n 128 +ret false +end +if or gt get Ns 1 511 gt get Ns 2 4294967295 +ret false +end +if gt get Ns 3 1 +ret false +end +for i ulong n +c = get Note i +if or lt c 32 gt c 126 +ret false +end +end +for i ulong 4096 +put Unit i 0 +end +for i ulong 8 +put Unit i get Nmagic i +end +put32 8 1 +put32 12 n +put32 16 get Ns 1 +put32 20 get Ns 2 +put32 24 get Ns 3 +for i ulong n +put Unit add i 64 get Note i +end +seal n +for i ulong 4096 +put Enc i get Unit i +end +ret true +end +note Store St gen,newest,valid. Tx phase,target,newgen. Provider owns actual I/O. +global St ulong 3 +global Nt ulong 2 +global Load ulong 1 +global Tx ulong 3 +fn txbegin to bool +if ne get Nt 0 0 +ret false +end +if or ne get Tx 0 0 eq get St 0 18446744073709551615 +ret false +end +if not memenc add get St 0 1 +ret false +end +put Tx 1 0 +if ne get St 0 0 +put Tx 1 sub ulong 1 get St 1 +end +put Tx 2 add get St 0 1 +put Tx 0 1 +ret true +end +fn txwrite ok bool to bool +if ne get Tx 0 1 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 2 +ret true +end +fn txflush ok bool to bool +if ne get Tx 0 2 +ret false +end +if not ok +put Tx 0 0 +ret false +end +put Tx 0 3 +ret true +end +fn txread ok bool to bool +if ne get Tx 0 3 +ret false +end +put Tx 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Unit i get Enc i +end +if ne d 0 +ret false +end +put St 0 get Tx 2 +put St 1 get Tx 1 +if lt get St 2 2 +put St 2 add get St 2 1 +end +ret true +end +note Load each copy once into Unit. Caller resets St and calls loadcopy0,1. +fn loadbeg to void +for i ulong 3 +put St i 0 +end +put Load 0 0 +end +fn loadcopy slot ulong to bool +if gt slot 1 +ret false +end +if ne and get Load 0 shl ulong 1 slot 0 +ret false +end +if not memvalid +ret false +end +put Load 0 or get Load 0 shl ulong 1 slot +put St 2 add get St 2 1 +if gt get64 16 get St 0 +b = memdec +put St 0 get Md 0 +put St 1 slot +end +ret true +end +note Note transaction completes before the parent copy may publish its count. +fn nbegin to bool +if or ne get Nt 0 0 ne get Tx 0 0 +ret false +end +if not noteenc +ret false +end +put Nt 1 get Ns 1 +put Nt 0 1 +ret true +end +fn nwrite ok bool to bool +if ne get Nt 0 1 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 2 +ret true +end +fn nflush ok bool to bool +if ne get Nt 0 2 +ret false +end +if not ok +put Nt 0 0 +ret false +end +put Nt 0 3 +ret true +end +fn nread ok bool to bool +if ne get Nt 0 3 +ret false +end +put Nt 0 0 +if not ok +ret false +end +d = uchar 0 +for i ulong 4096 +d = or d xor get Enc i get Unit i +end +if ne d 0 +ret false +end +ret noteval get Nt 1 +end +note Intent vocabulary frozen from svc/allen_intent.c. It selects jobs, never answers. +global Fold uchar 160 +global Fn ulong 2 +text Lists "please|can you|could you|would you|will you|i d like you to|i want you to|i need you to|allen|hey allen|ok|okay\nwrite|make|build|create|code|program|generate|implement|develop|give me a|i need a|i want a\ncode|program|programs|script|scripts|function|functions|app|apps|application|game|games|website|web page|webpage|calculator|converter|parser|compiler|interpreter|algorithm|class|api|server|bot|regex|unit test|unit tests|cli|command line tool|snake|tetris|pong|todo app|to do app|to do list app|timer app|stopwatch|python|javascript|typescript|rust|golang|java|kotlin|swift|ruby|php|html|css|sql|bash|shell script|c program|c code|in c|c plus plus|cpp|mojo|zig|haskell|lua|perl\npoem|poems|haiku|story|stories|song|songs|letter|email|essay|joke|jokes|limerick|speech\ncode|program|script\nnow|add|also|and|change|make it|make the|rename|remove|delete|replace|use|fix|put|give it|let it|instead|then|next|can it|could it|it should|the|move|turn|show|split|convert it|rewrite|port it|translate it|explain it\nwrite|make|build|create|code|program|draft|compose|generate|design|implement|invent|name|give me a|i need a|i want a\na poem|a haiku|a story|a song|a script|a function|a program|a list of|some code|a letter|an email|a plan for|a name for\nexplain|what is|what are|whats|what s|why|how does|how do|how is|how are|describe|tell me about|what does|who was|who is|define|when was|when did|where is|is it true\ndifference between|mean|means\ndo|run|fix|find|search|look up|check|open|send|start|stop|install|set up|plan|schedule|calculate|work out|convert|translate|summarize|summarise|list|sort|count|compare|turn|go\n" +fn foldin to void +n = ulong 0 +space = false +for i ulong get Inlen 0 +c = get In i +if and ge c 65 le c 90 +c = add sub c 65 97 +end +if or and ge c 97 le c 122 isdigit c +if and space gt n 0 +put Fold n uchar 32 +n = add n 1 +end +put Fold n c +n = add n 1 +space = false +else +space = true +end +end +put Fn 0 n +put Fn 1 0 +end +fn phrase at ulong off ulong size ulong to bool +if gt add at size get Fn 0 +ret false +end +for i ulong size +if ne get Fold add at i get Lists add off i +ret false +end +end +if lt add at size get Fn 0 +if ne get Fold add at size 32 +ret false +end +end +ret true +end +fn inphrase off ulong size ulong anypos bool to bool +if not anypos +ret phrase get Fn 1 off size +end +count = sub get Fn 0 get Fn 1 +for i ulong count +at = add i get Fn 1 +ok = eq at get Fn 1 +if gt at 0 +ok = or ok eq get Fold sub at 1 32 +end +if ok +if phrase at off size +ret true +end +end +end +ret false +end +fn listed group ulong anypos bool to ulong +g = ulong 0 +s = ulong 0 +for p ulong len Lists +c = get Lists p +if or eq c 124 eq c 10 +if eq g group +if inphrase s sub p s anypos +ret sub p s +end +end +s = add p 1 +if eq c 10 +g = add g 1 +end +end +end +ret 0 +end +fn classify to ulong +if not textok +ret 0 +end +foldin +skip = listed 0 false +while gt skip 0 +if ge add get Fn 1 skip get Fn 0 +skip = 0 +else +put Fn 1 add add get Fn 1 skip 1 +skip = listed 0 false +end +end +if and ne get R 6 0 gt listed 5 false 0 +ret 3 +end +plain = listed 4 false +if or eq plain 4 eq plain 7 +ret 2 +end +if and gt listed 3 true 0 eq listed 4 true 0 +ret 1 +end +if and gt listed 1 false 0 gt listed 2 true 0 +ret 2 +end +ret 1 +end +note Ordinary want enum0chat,1make,2explain,3do. +fn jobwant to ulong +if gt listed 8 false 0 +ret 2 +end +if or gt listed 6 false 0 gt listed 7 true 0 +ret 1 +end +if gt listed 10 false 0 +ret 3 +end +if gt listed 9 true 0 +ret 2 +end +ret 0 +end +text Job "JOB " +text Codeask " asked " +text Forcode " for code.\t" +text Formore " to change the code just shown.\t" +text Wantstr "chatmakeexplaindo" +text Intro "You are the far hands of " +text Home ", a quiet presence living in AIENOS on " +text Comp "'s computer. You answer as " +text Sees "; " +text Words " sees only your words, as if " +text Said " said them. Plain English, short sentences, no headings, no lists, no greetings, no apologies. Plain letters and punctuation only: no dashes, no curly quotes, no symbols. Never mention a model, a prompt or instructions. " +text Make " asked for something to be made. Make it whole and correct. Begin with one short sentence saying what you made, then the work itself." +text Explain " asked to understand something. Explain it in three plain sentences at most, the heart of it first, no more than is needed." +text Doing " asked for something to be done. " +text Cannot " cannot yet act outside this computer, so say in two or three short sentences what you would do, in order, and what you would need." +text Chat " said something in passing. Answer in one or two warm, plain sentences." +text Allen "Allen" +text Person "the person" +fn selfemit to void +off = add 40 mul mem32 32 113 +if eq get Mem off 0 +for i ulong len Allen +emitb get Allen i +end +else +for i ulong 24 +c = get Mem add off i +if eq c 0 +ret +end +emitb c +end +end +end +fn whoemit to void +if eq get Mem 8 0 +for i ulong len Person +emitb get Person i +end +else +for i ulong 24 +c = get Mem add i 8 +if eq c 0 +ret +end +emitb c +end +end +end +fn jobbuild kind ulong seq ulong to bool +if or lt kind 1 gt kind 3 +ret false +end +if or eq seq 0 gt seq 4294967295 +ret false +end +if not textok +ret false +end +outreset +for i ulong len Job +emitb get Job i +end +emitn seq +emitb 32 +if gt kind 1 +emitb 99 +emitb 111 +emitb 100 +emitb 101 +if eq kind 3 +emitb 45 +emitb 109 +emitb 111 +emitb 114 +emitb 101 +end +emitb 32 +whoemit +for i ulong len Codeask +emitb get Codeask i +end +selfemit +if eq kind 3 +for i ulong len Formore +emitb get Formore i +end +else +for i ulong len Forcode +emitb get Forcode i +end +end +else +w = jobwant +off = ulong 0 +size = ulong 4 +if eq w 1 +off = 4 +end +if eq w 2 +off = 8 +size = 7 +end +if eq w 3 +off = 15 +size = 2 +end +for i ulong size +emitb get Wantstr add off i +end +emitb 32 +for i ulong len Intro +emitb get Intro i +end +selfemit +for i ulong len Home +emitb get Home i +end +whoemit +for i ulong len Comp +emitb get Comp i +end +selfemit +for i ulong len Sees +emitb get Sees i +end +whoemit +for i ulong len Words +emitb get Words i +end +selfemit +for i ulong len Said +emitb get Said i +end +whoemit +if eq w 0 +for i ulong len Chat +emitb get Chat i +end +end +if eq w 1 +for i ulong len Make +emitb get Make i +end +end +if eq w 2 +for i ulong len Explain +emitb get Explain i +end +end +if eq w 3 +for i ulong len Doing +emitb get Doing i +end +selfemit +for i ulong len Cannot +emitb get Cannot i +end +end +emitb 9 +end +for i ulong get Inlen 0 +emitb get In i +end +ret le get Outlen 0 4096 +end +note SAY/WAIT parser, staged folded bytes. Native CODE receive remains separate. +global Say uchar 160 +global S ulong 5 +fn sayhead to bool +put P 0 0 +put P 2 0 +if ineq 0 87 +expect 87 +expect 65 +expect 73 +expect 84 +expect 32 +number +put S 0 get P 1 +put S 1 0 +put S 2 0 +if ne get P 0 get Inlen 0 +ret false +end +ret eq get P 2 0 +end +expect 83 +expect 65 +expect 89 +expect 32 +number +put S 0 get P 1 +expect 32 +if ne get P 2 0 +ret false +end +put S 1 1 +put S 2 1 +save = get P 0 +number +part = get P 1 +if ineq get P 0 47 +expect 47 +number +put S 2 get P 1 +expect 32 +if or ne get P 2 0 eq part 0 +ret false +end +put S 1 part +else +put P 0 save +put P 2 0 +end +put S 3 get P 0 +ret eq get P 2 0 +end +fn sayfold to bool +n = ulong 0 +p = get S 3 +space = true +while lt p get Inlen 0 +c = get In p +p = add p 1 +if eq c 92 +if or ineq p 110 ineq p 116 +c = 32 +p = add p 1 +end +end +if or lt c 32 ge c 127 +c = 32 +end +if eq c 32 +if not space +if ge n 159 +ret false +end +put Say n c +n = add n 1 +end +space = true +else +if ge n 159 +ret false +end +put Say n c +n = add n 1 +space = false +end +end +if gt n 0 +if eq get Say sub n 1 32 +n = sub n 1 +end +end +put S 4 n +ret true +end +note Return1 accepted,2 request AGAIN,3 give up after retry;0 rejected. +fn saytake now ulong to ulong +if or eq get R 1 0 gt get Inlen 0 319 +ret 0 +end +if not sayhead +ret 0 +end +if or ne get S 0 get R 0 lt now get R 4 +ret 0 +end +if eq get S 1 0 +b = heard get S 0 now +ret 1 +end +if not sayfold +ret 0 +end +if gt get R 2 1 +if eq get S 2 0 +ret 0 +end +if ne get C 0 get R 0 +ret 0 +end +if ne codestat 2 +if eq get R 13 0 +put R 13 1 +outreset +emitb 65 +emitb 71 +emitb 65 +emitb 73 +emitb 78 +emitb 32 +emitn get R 0 +ret 2 +end +cancel +ret 3 +end +else +if ne get S 1 add get R 11 1 +ret 0 +end +if and ne get S 2 0 ne get S 2 get S 1 +ret 0 +end +end +n = get R 8 +if or eq get S 1 1 gt get R 2 1 +n = 0 +end +join = ulong 0 +if and gt n 0 gt get S 4 0 +join = 1 +end +if gt add add n join get S 4 159 +ret 0 +end +if gt get R 2 1 +if not codeshow get R 0 +ret 0 +end +end +if eq join 1 +put Answer n uchar 32 +n = add n 1 +end +for i ulong get S 4 +put Answer add n i get Say i +end +put R 8 add n get S 4 +put R 11 get S 1 +put R 4 now +if ne get S 2 0 +put R 1 0 +histadd 1 +end +ret 1 +end +note Exact legacy code row wrapping, at most4096 rows; full code retained. +global Rowst ulong 4096 +global Rowlen ulong 4096 +global Rowline ulong 4096 +global View ulong 4 +global Vwork ulong 6 +note Vwork cols,maxrows,line,start,end. +fn onerow s ulong first bool to ulong +take = sub get Vwork 4 s +cols = get Vwork 0 +if gt take cols +take = cols +j = cols +while gt j div cols 2 +if eq get Code sub add s j 1 32 +take = j +j = 0 +else +j = sub j 1 +end +end +end +slot = get View 0 +put Rowst slot s +put Rowlen slot take +put Rowline slot 0 +if first +put Rowline slot get Vwork 2 +end +put View 0 add slot 1 +ret add s take +end +fn rowroom pos ulong to bool +ret and lt pos get C 2 lt get View 0 get Vwork 1 +end +fn moreline s ulong to bool +ret and lt s get Vwork 4 lt get View 0 get Vwork 1 +end +fn rows cols ulong maxrows ulong to bool +if or eq cols 0 gt maxrows 4096 +ret false +end +if ne codestat 2 +ret false +end +put Vwork 0 cols +put Vwork 1 maxrows +put Vwork 2 1 +put View 0 0 +put View 1 0 +pos = ulong 0 +while rowroom pos +stop = pos +while lt stop get C 2 +if eq get Code stop 10 +put Vwork 4 stop +stop = get C 2 +else +stop = add stop 1 +put Vwork 4 stop +end +end +s = pos +if lt get View 0 maxrows +s = onerow s true +end +while moreline s +s = onerow s false +end +pos = add get Vwork 4 1 +put Vwork 2 add get Vwork 2 1 +end +ret true +end +fn scroll delta long page ulong to ulong +last = ulong 0 +if gt get View 0 page +last = sub get View 0 page +end +if gt get View 1 last +put View 1 last +end +top = long get View 1 +if lt delta 0 +if lt delta neg top +put View 1 0 +ret 0 +end +else +if gt ulong delta sub last get View 1 +put View 1 last +ret last +end +end +top = add top delta +put View 1 ulong top +ret ulong top +end +note Scene state: tone,water,has-say,nthings,used,lines,rejected,over. +global Sc ulong 8 +global Things ulong 64 +global Stext uchar 2304 +global Sw ulong 4 +global Fields uchar 1536 +global Flens ulong 6 +global Soffs ulong 6 +text Vocab "mood|say|note|list|number|quote|person|timer|picture|video|left|right|above|warm|quiet|bloom|rise|fade|to|from|night|dawn|deep|clear|slow|still|lively|" +fn scword beg ulong size ulong to ulong +s = ulong 0 +word = ulong 1 +for i ulong len Vocab +if eq get Vocab i 124 +if eq sub i s size +same = true +for j ulong size +if ne get In add beg j get Vocab add s j +same = false +end +end +if same +ret word +end +end +word = add word 1 +s = add i 1 +end +end +ret 0 +end +fn fieldcap kind ulong field ulong to ulong +if eq kind 2 +if eq field 0 +ret 48 +end +ret 64 +end +if eq kind 1 +if eq field 0 +ret 48 +end +ret 240 +end +if eq kind 3 +if eq field 0 +ret 16 +end +ret 64 +end +if eq kind 4 +if eq field 0 +ret 220 +end +ret 48 +end +if eq kind 5 +if eq field 0 +ret 32 +end +ret 200 +end +if eq kind 6 +if eq field 0 +ret 24 +end +ret 64 +end +if eq field 0 +ret 120 +end +ret 64 +end +fn scfield slot ulong beg ulong stop ulong kind ulong to bool +s = beg +e = stop +while lt s e +if eq get In s 32 +s = add s 1 +else +ret fieldend slot s e kind +end +end +put Flens slot 0 +ret true +end +fn fieldend slot ulong s ulong stop ulong kind ulong to bool +e = stop +while gt e s +if eq get In sub e 1 32 +e = sub e 1 +else +n = sub e s +if gt n fieldcap kind slot +ret false +end +for i ulong n +c = get In add s i +if or lt c 32 gt c 126 +ret false +end +put Fields add mul slot 256 i c +end +put Flens slot n +ret true +end +end +put Flens slot 0 +ret true +end +fn scfields beg ulong stop ulong kind ulong to ulong +slot = ulong 0 +s = beg +for i ulong sub stop beg +p = add beg i +if eq get In p 124 +if ge slot 5 +ret 0 +end +if not scfield slot s p kind +ret 0 +end +slot = add slot 1 +s = add p 1 +end +end +if not scfield slot s stop kind +ret 0 +end +n = add slot 1 +if and ne kind 2 gt n 2 +ret 0 +end +if eq get Flens 0 0 +ret 0 +end +if eq kind 5 +if or lt n 2 eq get Flens 1 0 +ret 0 +end +end +if eq kind 3 +hasdigit = false +for i ulong get Flens 0 +if isdigit get Fields i +hasdigit = true +end +end +if not hasdigit +ret 0 +end +end +ret n +end +fn scput slot ulong to ulong +off = get Sc 4 +n = get Flens slot +for i ulong n +put Stext add off i get Fields add mul slot 256 i +end +put Stext add off n 0 +put Sc 4 add add off n 1 +ret off +end +fn scmod word ulong base ulong to void +if and ge word 11 le word 13 +put Things add base 1 sub word 10 +end +if and ge word 16 le word 18 +put Things add base 2 sub word 16 +end +if and ge word 19 le word 20 +put Things add base 3 sub word 18 +end +if eq word 14 +put Things add base 4 1 +end +if eq word 15 +put Things add base 5 1 +end +end +fn scsay beg ulong stop ulong to bool +if ne get Sc 2 0 +ret false +end +n = sub stop beg +if or eq n 0 gt n 159 +ret false +end +for i ulong n +c = get In add beg i +if or lt c 32 gt c 126 +ret false +end +put Fields i c +end +put Flens 0 n +put Sc 2 1 +put Sw 3 scput 0 +ret true +end +fn scln beg ulong stop ulong to bool +p = beg +while lt p stop +if or eq get In p 32 eq get In p 58 +ret scbody beg p stop +end +p = add p 1 +end +ret false +end +fn scbody beg ulong wordend ulong stop ulong to bool +word = scword beg sub wordend beg +if eq word 2 +s = add wordend 1 +if lt s stop +if eq get In s 58 +s = add s 1 +end +end +while lt s stop +if eq get In s 32 +s = add s 1 +else +ret scsay s stop +end +end +ret false +end +if eq word 1 +s = add wordend 1 +for p ulong sub stop s +at = add add wordend 1 p +if eq get In at 32 +w = scword s sub at s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +s = add at 1 +end +end +w = scword s sub stop s +if and ge w 21 le w 24 +put Sc 0 sub w 21 +end +if and ge w 25 le w 27 +put Sc 1 sub w 25 +end +ret true +end +if or lt word 3 gt word 10 +ret false +end +if ge get Sc 3 4 +put Sc 7 add get Sc 7 1 +ret false +end +put Sw 0 sub word 2 +colon = wordend +while lt colon stop +if eq get In colon 58 +put Sw 1 wordend +put Sw 2 colon +ret scthing add colon 1 stop +end +colon = add colon 1 +end +ret false +end +fn scthing beg ulong stop ulong to bool +n = scfields beg stop get Sw 0 +if eq n 0 +ret false +end +need = n +for i ulong n +need = add need get Flens i +end +if gt add get Sc 4 need 2304 +ret false +end +base = mul get Sc 3 16 +put Things base get Sw 0 +put Things add base 6 n +s = get Sw 1 +for p ulong sub get Sw 2 s +at = add get Sw 1 p +if eq get In at 32 +w = scword s sub at s +scmod w base +s = add at 1 +end +end +w = scword s sub get Sw 2 s +scmod w base +for i ulong n +put Things add add base 7 i scput i +end +put Sc 3 add get Sc 3 1 +ret true +end +fn scene to bool +for i ulong 8 +put Sc i 0 +end +for i ulong 64 +put Things i 0 +end +put Sw 3 0 +n = get Inlen 0 +if gt n 2048 +n = 2048 +end +s = ulong 0 +for p ulong n +if eq get In p 10 +if gt p s +if lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s p +put Sc 6 add get Sc 6 1 +end +else +put Sc 7 add get Sc 7 1 +end +end +s = add p 1 +end +end +if and lt s n lt get Sc 5 12 +put Sc 5 add get Sc 5 1 +if not scln s n +put Sc 6 add get Sc 6 1 +end +end +ret or ne get Sc 2 0 ne get Sc 3 0 +end +note Handwritten Omega port of paint.h ck_add, ck_scale, ck_mix and paint.c ck_glow. +note Bounded192x128 RAM canvas. This is rendering core, not full sky/font/device UI. +global Frame uint 24576 +global G ulong 6 +global Fb uchar 73728 +fn channel c uint shift uint to uint +ret and shr c shift 255 +end +fn addcolor d uint c uint a uint to uint +v = uint 0 +for i uint 3 +s = mul i 8 +n = add channel d s shr mul channel c s a 8 +if gt n 255 +n = 255 +end +v = or v shl n s +end +ret v +end +fn scale c uint f uint to uint +ret or and shr mul and c 16711935 f 8 16711935 and shr mul and c 65280 f 8 65280 +end +fn mix d uint c uint a uint to uint +if ge a 256 +ret c +end +ret add scale d sub uint 256 a scale c a +end +fn distance x ulong y ulong to ulong +dx = sub add mul long x 16 8 long get G 0 +dy = sub add mul long y 16 8 long get G 1 +ret ulong add mul dx dx mul dy dy +end +fn weight d2 ulong r2 ulong to ulong +inv = div ulong 1099511627776 r2 +f = sub ulong 256 shr mul d2 inv 32 +w = shr mul shr mul f f 8 f 8 +ret shr mul w get G 4 8 +end +fn glowpix x ulong y ulong to void +d2 = distance x y +r2 = mul get G 2 get G 2 +if ge d2 r2 +ret +end +a = uint weight d2 r2 +at = add mul y 192 x +put Frame at addcolor get Frame at uint get G 3 a +end +fn glow cx ulong cy ulong radius ulong color ulong alpha ulong to bool +if or eq radius 0 gt radius 8192 +ret false +end +if or gt cx 8192 gt cy 8192 +ret false +end +if or gt color 16777215 gt alpha 512 +ret false +end +put G 0 cx +put G 1 cy +put G 2 radius +put G 3 color +put G 4 alpha +for y ulong 128 +for x ulong 192 +glowpix x y +end +end +ret true +end +fn render to void +for i ulong 24576 +put Frame i 0 +end +note Frozen component pose; same halo and heart colors/weights as ck_mind_draw. +b = glow 1536 1024 1088 3951314 68 +b = glow 1536 1024 640 7363839 46 +b = glow 1536 1024 400 16765610 89 +b = glow 1536 1024 160 16772310 218 +b = glow 1536 1024 50 16775920 230 +end +fn frameout to bool +for i ulong 24576 +c = get Frame i +put Fb mul i 3 uchar channel c 16 +put Fb add mul i 3 1 uchar channel c 8 +put Fb add mul i 3 2 uchar channel c 0 +end +n = ulong 0 +while lt n len Fb +w = write 1 Fb n sub len Fb n +if le w 0 +ret false +end +n = add n ulong w +end +ret true +end +note Native application binding: conversation state, courier lifecycle and reply/code. +note A initialized, queued AGAIN bytes, per-call event, reserved. +note Events:0 none,1 visible answer/ack,2 AGAIN queued,3 code give-up, +note 4 refused LINE payload,5 slow notice,6 silence timeout. +note Transport acceptance is separate from payload acceptance: appreceive true +note means envelope accepted; inspect A2 for malformed payload, never invent text. +global A ulong 4 +global Appjob uchar 4096 +global Appwire uchar 8192 +global Askin uchar 160 +fn appinit run ulong now ulong to bool +if or ne get A 0 0 ne get R 0 0 +ret false +end +if ne get Q 0 0 +ret false +end +if not qstart run now +ret false +end +constants +put A 0 1 +put A 1 0 +put A 2 0 +ret true +end +fn appclock now ulong to bool +if eq get A 0 0 +ret false +end +ret and ge now get T 0 ge now get R 4 +end +fn appask now ulong to bool +if not appclock now +ret false +end +if or ne get R 1 0 ne get A 1 0 +ret false +end +if or ne get T 10 0 ne get T 13 0 +ret false +end +if and ne get T 5 0 eq get T 6 0 +ret false +end +if or ge get R 0 4294967295 ge get Q 1 4294967295 +ret false +end +if not textok +ret false +end +kind = classify +if or lt kind 1 gt kind 3 +ret false +end +if and eq kind 3 eq get R 6 0 +ret false +end +if not jobbuild kind add get R 0 1 +ret false +end +n = get Inlen 0 +size = get Outlen 0 +for i ulong n +put Askin i get In i +end +for i ulong size +put Appjob i get Outb i +end +for i ulong size +put In i get Appjob i +end +put Inlen 0 size +queued = qsubmit now +for i ulong n +put In i get Askin i +end +put Inlen 0 n +if not queued +ret false +end +note start preconditions were checked before qsubmit; no concurrent calls permitted. +if not start kind now +qcancel +ret false +end +put A 2 0 +if gt kind 1 +codebeg get R 0 +put A 2 1 +end +ret true +end +fn appcancel to void +cancel +qcancel +put A 1 0 +put A 2 0 +end +fn appreset to void +appcancel +reset +end +note First acknowledge the triggering LINE, then submit AGAIN with a new wire +note sequence while retaining the original conversation ID in its body. +fn appqueue now ulong to bool +if eq get A 1 0 +ret true +end +if or ne get T 10 0 ne get T 13 0 +ret true +end +put Inlen 0 get A 1 +for i ulong get A 1 +put In i get Appjob i +end +if not qsubmit now +ret false +end +put A 1 0 +ret true +end +fn apppoll now ulong link bool to bool +if not appclock now +ret false +end +put A 2 0 +put T 0 now +status = tick now +if eq status 1 +put A 2 5 +end +if eq status 2 +qcancel +put A 1 0 +put A 2 6 +end +if not appqueue now +appcancel +put A 2 3 +ret false +end +ret qnext now link +end +fn appsent now ulong ok bool to bool +if not appclock now +ret false +end +if not qsent now ok +ret false +end +put A 2 0 +ret true +end +fn appbody now ulong to bool +if eq get R 1 0 +put A 2 4 +ret true +end +if ineq 0 67 +if or le get R 2 1 ne get C 0 get R 0 +put A 2 4 +ret true +end +if codetake +if heard get C 0 now +ret true +end +end +put A 2 4 +ret true +end +if or ineq 0 83 ineq 0 87 +status = saytake now +if eq status 1 +if eq get R 1 0 +put A 1 0 +end +if ne get S 1 0 +put A 2 1 +end +ret true +end +if eq status 2 +n = get Outlen 0 +if or eq n 0 gt n 4096 +cancel +put A 1 0 +put A 2 3 +ret true +end +for i ulong n +put Appjob i get Outb i +end +put A 1 n +put A 2 2 +ret true +end +if eq status 3 +put A 1 0 +put A 2 3 +ret true +end +end +put A 2 4 +ret true +end +note Reply parsing can serialize AGAIN internally. Preserve the already offered +note datagram until the provider records its send result, including on refusal. +fn appreceive now ulong to bool +if not appclock now +ret false +end +result = qincoming now +if eq result 0 +ret false +end +put A 2 0 +if not qtake +ret true +end +n = get Outlen 0 +e = get Err 0 +for i ulong n +put Appwire i get Outb i +end +ok = appbody now +for i ulong n +put Outb i get Appwire i +end +put Outlen 0 n +put Err 0 e +ret ok +end +global Fails ulong 1 +global Checks ulong 1 +fn check ok bool id ulong to void +put Checks 0 add get Checks 0 1 +outreset +emitn id +if ok +emitb 32 +emitb 48 +else +put Fails 0 add get Fails 0 1 +emitb 32 +emitb 49 +end +emitb 10 +w = write 1 Outb 0 get Outlen 0 +end +note End-to-end application core over real Omega protocol bytes; no socket simulation claim. +text Smallask "hello" +text Codeaskt "Please make me a calculator" +text Finaltxt " 1/1 Model answer." +text Codetxt " 1/1 9 3ce11e06 python print(1)\\n" +text Prefixes "SAY WAIT CODE " +text Againexp "AGAIN 2" +global SavedOut uchar 8192 +global Heldwire uchar 8192 +global Heldlen ulong 2 +fn holdwire to void +put Heldlen 0 get Outlen 0 +put Heldlen 1 get Err 0 +for i ulong get Outlen 0 +put Heldwire i get Outb i +end +end +fn unhold to void +for i ulong get Heldlen 0 +put Outb i get Heldwire i +end +put Outlen 0 get Heldlen 0 +put Err 0 get Heldlen 1 +end +fn samewire to bool +if ne get Outlen 0 get Heldlen 0 +ret false +end +for i ulong get Heldlen 0 +if ne get Outb i get Heldwire i +ret false +end +end +ret eq get Err 0 get Heldlen 1 +end +fn test ok bool to void +n = get Outlen 0 +e = get Err 0 +for i ulong n +put SavedOut i get Outb i +end +check ok add get Checks 0 1 +for i ulong n +put Outb i get SavedOut i +end +put Outlen 0 n +put Err 0 e +end +fn copyout to void +put Inlen 0 get Outlen 0 +for i ulong get Outlen 0 +put In i get Outb i +end +end +fn prompt code bool to void +if code +put Inlen 0 len Codeaskt +for i ulong len Codeaskt +put In i get Codeaskt i +end +else +put Inlen 0 len Smallask +for i ulong len Smallask +put In i get Smallask i +end +end +end +fn incoming part ulong seq ulong kind ulong to void +outreset +off = ulong 0 +size = ulong 4 +if eq kind 1 +off = ulong 4 +size = ulong 5 +end +if eq kind 2 +off = ulong 9 +size = ulong 5 +end +for i ulong size +emitb get Prefixes add off i +end +emitn seq +if eq kind 0 +for i ulong len Finaltxt +emitb get Finaltxt i +end +end +if eq kind 2 +for i ulong len Codetxt +emitb get Codetxt i +end +end +copyout +b = packet 2 get Q 1 part 0 0 +copyout +end +fn main to int +test not appinit 0 100 +test appinit 42 100 +test not appinit 43 100 +test eq get Q 0 42 +prompt false +test appask 100 +test eq get R 0 1 +test eq get Q 1 1 +test eq get R 9 1 +test eq get R 1 1 +test eq get A 2 0 +prompt false +test not appask 101 +test eq get R 9 1 +test apppoll 100 true +test eq get T 10 5 +test appsent 100 true +test apppoll 100 true +test eq get T 10 1 +copyout +test pkparse +test eq get N 1 1 +test eq get In get N 5 74 +test appsent 100 true +incoming 1 1 0 +test appreceive 101 +test eq get A 2 1 +test eq get R 1 0 +test eq get R 8 13 +test eq get R 9 2 +test eq get Answer 0 77 +prompt true +test not appask 102 +test eq get R 0 1 +test apppoll 102 true +test eq get T 10 3 +test appsent 102 true +note Code acknowledgement is visible immediately, but missing code requests AGAIN. +prompt true +test appask 103 +test eq get R 0 2 +test eq get Q 1 2 +test eq get R 2 2 +test eq get A 2 1 +test eq get R 8 len Ack +test apppoll 103 true +test appsent 103 false +test apppoll 104 true +test eq get T 10 1 +test appsent 104 true +incoming 1 2 0 +test appreceive 105 +test eq get A 2 2 +test eq get A 1 len Againexp +test eq get R 1 1 +test eq get R 13 1 +test apppoll 105 true +test eq get T 10 3 +test eq get Q 1 2 +test appsent 105 true +test apppoll 106 true +test eq get T 10 1 +test eq get Q 1 3 +test eq get R 0 2 +copyout +test pkparse +test eq get N 6 len Againexp +bad = ulong 0 +for i ulong len Againexp +if ne get In add get N 5 i get Againexp i +bad = add bad 1 +end +end +test eq bad 0 +test appsent 106 true +incoming 1 2 0 +test appreceive 107 +test eq get A 2 3 +test eq get R 1 0 +test eq get A 1 0 +note Reset cancels pending delivery without reusing either counter. +appreset +test eq get R 0 2 +test eq get Q 1 3 +test eq get R 9 0 +prompt false +test appask 108 +test eq get R 0 3 +test eq get Q 1 4 +test apppoll 108 true +test appsent 108 true +note Old CODE must not mutate the code buffer during a newer chat job. +incoming 1 2 2 +test appreceive 109 +test eq get A 2 4 +test eq get C 1 0 +test eq get C 2 0 +test eq get Code 0 0 +test apppoll 109 true +test appsent 109 true +incoming 2 2 0 +test appreceive 109 +test eq get A 2 4 +test eq get R 1 1 +test eq get R 8 0 +test apppoll 109 true +test appsent 109 true +incoming 3 3 0 +test appreceive 110 +test eq get A 2 1 +test eq get R 1 0 +test eq get R 9 2 +test apppoll 110 true +test appsent 110 true +note Cancellation drops an outstanding send and stale response safely. +prompt false +test appask 111 +test apppoll 111 true +appcancel +test eq get R 1 0 +test eq get T 5 0 +test not appsent 111 true +incoming 1 4 0 +test not appreceive 112 +note Complete CODE bytes must arrive before a code response becomes visible. +prompt true +test appask 113 +test eq get R 0 5 +test eq get Q 1 6 +test apppoll 113 true +test appsent 113 true +incoming 1 5 2 +test appreceive 114 +test eq get A 2 0 +test eq codestat 2 +test eq get R 6 0 +test apppoll 114 true +test appsent 114 true +incoming 2 5 0 +test appreceive 115 +test eq get A 2 1 +test eq get R 6 1 +test eq get R 1 0 +test eq get Code 6 49 +test apppoll 115 true +test appsent 115 true +note WAIT updates silence deadline, no answer; slow and timeout cancel both layers. +prompt false +test appask 116 +test eq get R 0 6 +test apppoll 116 true +test appsent 116 true +incoming 1 6 1 +test appreceive 117 +test eq get A 2 0 +test eq get R 4 117 +test apppoll 117 true +test appsent 117 true +v = apppoll 20116 true +test eq get A 2 5 +test eq get R 1 1 +if v +test appsent 20116 true +end +v = apppoll 30116 true +test eq get R 1 1 +if v +test appsent 30116 true +end +v = apppoll 30117 true +test eq get A 2 6 +test eq get R 1 0 +test eq get T 5 0 +test eq get A 1 0 +if v +test appsent 30117 true +end +n = get R 9 +prompt false +test not appask 30116 +test eq get R 9 n +test not apppoll 30116 true +note Invalid prompt never becomes a pending job or transcript line. +put Inlen 0 160 +test not appask 30118 +test eq get R 9 n +test eq get R 0 6 +test eq get Q 1 7 +note Receiving a code completion before send-result reporting cannot replace +note the pending datagram with the newly generated AGAIN text. +prompt true +test appask 30118 +test apppoll 30118 true +test eq get T 10 1 +holdwire +incoming 1 7 0 +unhold +test appreceive 30119 +test eq get A 2 2 +test samewire +test eq get T 10 1 +test appsent 30119 true +test apppoll 30120 true +test eq get T 10 3 +test appsent 30120 true +test apppoll 30121 true +test eq get Q 1 9 +test eq get R 0 7 +test appsent 30121 true +appcancel +note Idle runtime still refuses a new prompt while a HELLO send is outstanding. +test apppoll 32122 true +test eq get T 10 5 +holdwire +n = get R 9 +prompt false +test not appask 32122 +test samewire +test eq get R 9 n +test appsent 32122 true +note Late CODE may complete the original job before queued AGAIN is sent. +prompt true +test appask 32123 +test eq get R 0 8 +test eq get Q 1 10 +test apppoll 32123 true +test appsent 32123 true +incoming 1 8 0 +test appreceive 32124 +test gt get A 1 0 +test apppoll 32124 true +test appsent 32124 true +incoming 2 8 2 +test appreceive 32125 +test eq codestat 2 +test apppoll 32125 true +test appsent 32125 true +incoming 3 8 0 +test appreceive 32126 +test eq get A 2 1 +test eq get R 1 0 +test eq get A 1 0 +test apppoll 32126 true +test appsent 32126 true +test not apppoll 32127 true +test eq get Q 1 10 +ret int get Fails 0 +end diff --git a/evidence/allen-omega-L694/L734/independent-review/development/independent-probe.log b/evidence/allen-omega-L694/L734/independent-review/development/independent-probe.log new file mode 100644 index 00000000..e69de29b diff --git a/evidence/allen-omega-L694/L734/independent-review/development/independent-probe.om b/evidence/allen-omega-L694/L734/independent-review/development/independent-probe.om new file mode 100644 index 00000000..08722b1b --- /dev/null +++ b/evidence/allen-omega-L694/L734/independent-review/development/independent-probe.om @@ -0,0 +1,2961 @@ +note L694 fixed-buffer utilities. No platform effects in product functions. +global In uchar 8192 +global Inlen ulong 1 +global Outb uchar 8192 +global Outlen ulong 1 +global Err ulong 1 +text Digits "0123456789abcdef" +fn emitb c uchar to void +n = get Outlen 0 +if ge n len Outb +put Err 0 1 +else +put Outb n c +put Outlen 0 add n 1 +end +end +fn emitn v ulong to void +d = new uchar 20 0 +n = ulong 0 +x = v