diff --git a/docs/ecosystem5/CONTRACT.md b/docs/ecosystem5/CONTRACT.md new file mode 100644 index 0000000..1c1bf31 --- /dev/null +++ b/docs/ecosystem5/CONTRACT.md @@ -0,0 +1,123 @@ +# PACK5 v1: bounded public-example packing + +This implements one component of aien-train5 and train3: integer token packing, +next-token labels, supervised-target masks and causal attention boundaries. +It consumes existing native public-example admission, retaining those owners. +No tokenizer, dataset reader, numerical tensor engine, model training loop, +worker runtime, durable cursor or checkpoint format is implemented here. + +## Frozen dependencies and caller + +Compose these exact source files, in order, followed by a caller: + +1. Omega L775 commit `84d03c5523f39ca1045d1c313c5f62597779462b`, + `src/learning/benchmark/core.om`, SHA256 + `a5a2e74c815f9ca6a90dbdfbfc7ecc343f0362c824064f2058e9d1d7c119c40c`. +2. Omega L776 commit `d8d14c47647e49774f64b58e3c138335656f175d`, + `src/learning/curriculum/admit.om`, SHA256 + `533638a9f128853d696644de2bbf7b1859797b170a7e32e54c112ab94c3dadb1`. +3. `native/ecosystem5/pack.om`. + +L776 published head is `1a14972c3b2d7494ba445df79967e7963359230e`. +The native compiler SHA256 is +`191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`, +independently rebuilt from omega-bridge +`0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9` by the compiler qualification lane. +The compilation target is static AArch64 Linux. No foreign runtime is linked. + +Callers first use existing `cbegin`, `csubmit` and `cfinish`. Only successful +completed admission with `CState[2]=1` and `LS[18]=1` may be consumed. `CGood` +is the accepted index list in submission order; `CFreeze` is its manifest +snapshot. Quarantined records never enter a packed sequence. Live `LT` changes +after admission cannot alter the consumed frozen split. + +These are trusted, single-thread, in-process arrays. The caller must preserve +the owner modules' state and supply measured identities and tokenization. +Public mutable arrays do not authenticate an attacker or prevent concurrent +mutation. Checking a supplied digest does not prove its contents. Existing +custody, tokenizer and execution owners retain those duties. + +## Inputs + +`DPCfg[4]` holds schema1, vocabulary size1..4294967296, split1(train) or2(dev), +and padding token ID less than vocabulary size. Every accepted record must +belong to the requested split. Mixed accepted train/dev batches are refused. +Protected adaptive/final records are already refused by L775. + +`DPPin[16]` holds expected tokenizer SHA256 words0..3, observed tokenizer words4..7, +expected template SHA256 words8..11 and observed template words12..15. Every +identity has four big-endian u64 words representing all32 digest bytes. Both +expected identities must be nonzero and must match all observed words. They +may equal one another; no cryptographic independence is inferred. There is no +identity measurement or hashing implementation in this module. + +For accepted task slot `t`, `DPLen[t]` is1..256 and `DPPrompt[t]` is0..DPLen[t]. +`DPToken[t*256+j]` is token ID `j`, strictly below vocabulary size. Token zero +is legal. Prompt length counts prefix tokens excluded as prediction targets. +All-prompt examples are valid and contribute no supervised targets. Records +of length1 are valid and contribute no next-token targets. Empty records are +refused. Length/prompt entries for all quarantined or absent slots must be0; +unused token-array cells are ignored. Maximum64 admitted records and256 total +packed token positions. Oversized batches are refused, never truncated. + +## Results and failures + +`dppack()->ulong` validates the entire input before changing payload arrays. +It clears `DPState[ready,count,records]` at entry. Failure leaves every payload +cell unchanged but invalid, and `dpattend` returns false until a later success. +Do not consume payloads without `DPState[0]=1`. + +On success, accepted records are copied in `CGood` order. `DPOut[256]` contains +token IDs; `DPTask[256]` holds original task slots; `DPPos[256]` holds positions +within each record. `DPState[1]` is the actual packed count; `DPState[2]` counts +records. An all-quarantined completed admission yields a valid empty batch. + +For position `p` within a record, `DPLabel[p]` is that record's next token when +one exists. `DPMask[p]=1` exactly when the next token exists and its within-record +index is at least the prompt length. Thus the last prompt token may predict +the first completion token, and no final record token predicts the next record. +Prompt-only labels may remain populated but must be ignored when mask0. This +is an integer supervision mask, not a loss computation. + +Unused output positions contain the configured padding token in output and +label, mask0, task sentinel18446744073709551615 and position0. Physical padding +IDs inside a real record are ordinary tokens; only explicit record length +defines padding. No special-token semantic is guessed. + +`dpattend(q,k)->bool` returns true only for valid packed positions in the same +record with k<=q. Padding and out-of-range indices, including maximumu64, +return false. Helpers `dpvalidate`, `dpinput` and `dpcopy` are internal and do +not independently provide a safe publication API; call `dppack`. + +| Code | Meaning | +| --- | --- | +| 0 | Valid packed batch | +| 70 | Admission incomplete, invalid or active | +| 71 | Schema, vocabulary, partition or padding configuration invalid | +| 72 | Zero or mismatched supplied tokenizer/template identity | +| 73 | Invalid/duplicate accepted index, inconsistent membership, or tokens declared for nonaccepted slot | +| 74 | Invalid record or prompt length | +| 75 | Token ID outside the declared vocabulary | +| 76 | Total packed capacity exceeded | +| 77 | Accepted record belongs to another partition | + +## Qualification and remaining work + +The native author suite drives actual owner admission and passes282622 checks. +Its independent coordinate oracle enumerates196 two-record layouts and their +prompt boundaries, verifies targets and padding, and compares every attention +pair with separately defined partition intervals and a lower triangle. Direct +controls cover readiness, identities, malformed records, mixed partitions, +quarantine, reverse submission order, full capacity and64 records. Three +compiled mutants invert supervision, remove record attention isolation and +bypass partition refusal; they fail checks5163,19 and263254 respectively. + +Independent final-source review of088258d passed84378 additional native checks, +reproduced the original282622-check binary, and caught all three compiled +mutants with a separate caller. The full report is preserved under +`evidence/ECOSYSTEM5/independent-review/`. This slice +does not establish tokenizer parity, actual data-source authentication, +shuffling/resume, durable checkpoint recovery, model quality or physical GPU +results. All these remain assigned to train3/5/6 and their existing owners. +No prior first-party implementation or runtime dependency can be retired from +this additive component alone. The complete replacement issues stay open. diff --git a/evidence/ECOSYSTEM5/README.md b/evidence/ECOSYSTEM5/README.md new file mode 100644 index 0000000..bcbf9ae --- /dev/null +++ b/evidence/ECOSYSTEM5/README.md @@ -0,0 +1,75 @@ +# PACK5 author receipt + +Functional source: `088258d0c76c4e3b6c73ad92c12e20948014cc6f`. +Base: aien-train `ed8b6ea2562efdda7913234ca8f34b443714a987`. +Owner L787 under coordinator L786. Independent final-source review passed: +the seed qualification worker's separate caller passes84378 checks and detects +all three compiled mutants. Their fresh original suite passes282622 and produces +the identical ELF. The report and unchanged native reviewer source/raw records +are in independent-review/. Its original SHA256SUMS manifest is +0bfe741a1abc01d07dd74813cf9d2bb94023249e9d34443e64fb9e716f51e447; +the copied manifest verifies successfully. No ELF binaries were copied. +This review approves only the declared bounded packing contract, not broader +data/training/release gates. The existing desk retains publication ownership. +No hardware, live service, model, private sample, driver or worker restart. + +Native actual-consumer suite:282622checksPASS, compile0/run0. Tests compose +existing L775/L776 source and execute cbegin/csubmit/cfinish before packing. +All three native-generated mutated modules compile0 and run1: inverted target +mask fails5163; missing record-attention boundary fails19; split refusal bypass +fails263254. Each mutation matches exactly one source site. A compile failure +is never counted as a detected mutant. All raw exits and output are retained. + +Exact dependency identities and input semantics are in +`docs/ecosystem5/CONTRACT.md`; source/tool/ELF SHA256 values are in pins.sha256. +Historical raw source snapshots preserve the failed build translation units. +These snapshots are immutable evidence, not alternative production modules. +No executable binary is committed. The native ELF has no interpreter or dynamic +section; readelf.txt records the actual result. Linux remains the explicit host. + +The initial invocation incorrectly passed filenames to a stdin/stdout compiler +and returned16 at line1. The first correctly invoked build rejected reserved +identifier len with16. Subsequent builds rejected an unnecessary bool cast9, +excess temporary register demand12, unsupported mod operation3, bool-to-integer +cast9, and an overlarge oracle function12. All were corrected in owned code; +the compiler and owner modules were not changed. Intermediate build8 passed +274903checks before final additional boundary tests raised the count282622. +The intermediate run was observed in the execution transcript; the final and +cost reruns have their own captured stdout and exits. No failed ELF was run. + +One shared-host timing of the complete final test binary reports0.00seconds +at the coarse displayed resolution and192KiB maximum resident set. This is a +whole-suite wrapper measurement, not a zero-cost or per-token throughput claim. +There is no matched baseline, performance win, training quality result or GPU +measurement. Native data I/O, tokenizer parity and full restart remain untested. + +## Reproduction commands + +The following are disclosed shell development commands, not delivered product +automation. All new implementation, test assertions and defect generation use +handwritten .om. Use isolated paths and fail on any nonzero compile result. + +```sh +git -C /path/to/omega show 84d03c5523f39ca1045d1c313c5f62597779462b:src/learning/benchmark/core.om > core.om +git -C /path/to/omega show d8d14c47647e49774f64b58e3c138335656f175d:src/learning/curriculum/admit.om > admit.om +cat core.om admit.om native/ecosystem5/pack.om tests/ecosystem5/pack-test.om > combined.om +/path/to/pinned/omc < combined.om > pack-test 2> compile.log +chmod +x pack-test +./pack-test +/path/to/pinned/omc < tests/ecosystem5/mutate.om > mutate 2> mutator-compile.log +chmod +x mutate +``` + +The actual compiler used was +`/home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc`. +Build files remain under +`/home/drakestapleton/handoffs/ecosystem303/data5/build/`. +For each mode ASCII1,2,3, prepend that byte to exact pack.om and feed to mutate. +Compose emitted module in place of pack.om with the same dependencies/test; +compile and require the asserted run1 failure. Keep generation/compile/run +results separate. This tests genuine compiled wrong behavior. + +Scope is integer packing and mask/attention isolation for supplied public IDs. +No tokenizer, complete dataset loader, scheduler, durable cursor, transactional +checkpoint or model trainer has been replaced. No dependency or first-party +source is retired. Issues3/5 and the ecosystem parent remain open. diff --git a/evidence/ECOSYSTEM5/independent-review/SHA256SUMS b/evidence/ECOSYSTEM5/independent-review/SHA256SUMS new file mode 100644 index 0000000..e433917 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/SHA256SUMS @@ -0,0 +1,74 @@ +bd63e52153c323da03b8f0da4a75f1fa28b706d725d86a4ed67d30648b542650 author-unit.om +75fa7f83e3e797792bc9b9086def58ccbf10763460bb85e7108b536d0964d40e independent-unit.om +86e2d63c3c04d11c7bd201311ddc852403a9107f92c11329a3191d764433c39f independent.om +dbe5aa00f7be5194b5dbde63557b2968ac433910c6467971ef5a142426ead342 mutant1-author-unit.om +10b3105227ef07334e48d3818ae9365f70ef52b7bbdb15de0c169ecaba809f5e mutant1-independent-unit.om +a3e37d3dd0f1e1c3aa61da6c8262ff2b10c57cbd58a06f8e5134e688bf6b4bc0 mutant1.om +d1acc17b1f2be30bf4dfc59970fa5945e76d83af5b9f7748f2bcfc51b7b31d8e mutant2-author-unit.om +f3b0e9d6c24d146de1f89a5439847a6a9db72a66c00e3d1cb213f54d2829675a mutant2-independent-unit.om +29c5649e9cdd7680c9d8209dc0bcbb44fecd1271fd6a4bb388c559f3a28b76c8 mutant2.om +c4b706a632f6a9c2976f7288f7a45005f832ec32f0b70f85ba9b5e552b7ead27 mutant3-author-unit.om +e84a42633bda1d1a586a61d28dcc4a9f57df2d9dea11766a348263baf46dd84d mutant3-independent-unit.om +b8face6bea050ab4df418698324a457c6f57626fa7cfc36d56f8c8fd44c2d97e mutant3.om +54bda29463d42022e030c933a70ac5b0a2602bafecbb6559f2cb0ab20a4e82a2 mutant1.input +7694f222da95005c59ad9d6bc49f53386e7b8122843b2c88be11d7d2a72fdc3d mutant2.input +bac18b5570af15ef9effdad481bc79d9322faff4f647f2aa16b512617fa4c10e mutant3.input +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa author.compile.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa author.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa independent.compile.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa independent.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa independent.traced.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant1-author.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant1-author.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant1-independent.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant1-independent.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant1.generate.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant2-author.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant2-author.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant2-independent.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant2-independent.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant2.generate.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant3-author.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant3-author.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant3-independent.compile.rc +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 mutant3-independent.run.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutant3.generate.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa mutate.compile.rc +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 author.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 independent.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 independent.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 independent.traced.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant1-author.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant1-author.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant1-independent.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant1-independent.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant1.generate.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant2-author.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant2-author.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant2-independent.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant2-independent.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant2.generate.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant3-author.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant3-author.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant3-independent.compile.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant3-independent.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutant3.generate.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 mutate.compile.stderr +231e51c5f06c8d940f030e77fbb2f2870347fcf0791a207448a947c2145540ad author.stdout +63cd435453978b2bea0e1d1c775d47e4ca9a0a25442a6d47248b8647a6b4c963 independent.stdout +63cd435453978b2bea0e1d1c775d47e4ca9a0a25442a6d47248b8647a6b4c963 independent.traced.stdout +ce0f0e49d9c09ddbf016517a9e5fdb811bf99b117115d003f84327e4a4908091 mutant1-author.stdout +2b9b11eaa5cd0cd433a237db0e29dc45f8f65b286c8fd80d7188906c48bfed8e mutant1-independent.stdout +84fbc3ffc97e4cf925f2e7e30ec6b128f1bb7fc51ba81419e12a1be1ad506f9d mutant2-author.stdout +965279b6b20ab500cf8e9afebeb9412c1bd1a31f9100608c9394907f635c5ef3 mutant2-independent.stdout +dc847edd7cac5fa1d124a2d94d3a3ebab73dc1e8e9a1544b6664dcbf2a96b650 mutant3-author.stdout +b5f3ea7896454948b18af6eeb7bcc29d6bb5a2c25dd7f992972168c7e1995282 mutant3-independent.stdout +9b41ced1c2b088656df9196fd2fe0686a5c5669f3ca0da1c2dab09f04d3d2f31 commands.txt +6bd2b2e4601acb1345d1169cd9eccacb63fcd69302b1c3a00fc99b111d6a76ce elf-sha256.txt +47c27f037c1fdc6b7abf6fece6653fb471ef201db63a64d285d4df9eee3edecf independent.readelf.txt +ac20cc604f2f8b080ea1d2ccff7ab2637d7fa8e005f9fb390338744a59401309 independent.trace.txt +7d5213908f9fd9ef318cf74f94a7d705c244a8041616f9903caf28038d273b4d source-commit.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 worktree-status.txt +8bf70da37ec37f727a1c23773638e0a824aa261e61499500e1e9302001fa4e91 report.md +533638a9f128853d696644de2bbf7b1859797b170a7e32e54c112ab94c3dadb1 deps/admit.om +a5a2e74c815f9ca6a90dbdfbfc7ecc343f0362c824064f2058e9d1d7c119c40c deps/core.om diff --git a/evidence/ECOSYSTEM5/independent-review/author-unit.om b/evidence/ECOSYSTEM5/independent-review/author-unit.om new file mode 100644 index 0000000..867e151 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/author-unit.om @@ -0,0 +1,1105 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +global ORange ulong 4 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn tokenoracle q ulong to void +owner = ulong 0 +pos = q +plen = get ORange 2 +stop = get ORange 0 +if ge q stop +owner = 1 +pos = sub q stop +plen = get ORange 3 +stop = add stop get ORange 1 +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +end + +fn attendoracle q ulong k ulong to void +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q get ORange 0 +if lt k get ORange 0 +want = 1 +end +else +if ge k get ORange 0 +want = 1 +end +end +end +ck attention q k want +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put ORange 0 a +put ORange 1 b +put ORange 2 pa +put ORange 3 pb +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +tokenoracle q +for k ulong add a b +attendoracle q k +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +put DPCfg 1 4294967297 +refused 71 +put DPCfg 1 1024 +put DPCfg 3 1024 +refused 71 +put DPCfg 3 0 +put CGood 0 64 +refused 73 +put CGood 0 0 +for i ulong 4 +put DPPin i 0 +put DPPin add i 4 0 +end +refused 72 +for i ulong 4 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 0 +put DPPin add i 12 0 +end +refused 72 +setup 2 +ck cbegin 2 10000 0 +submit 1 0 +submit 0 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPTask 1 0 +ck get DPOut 0 257 +ck get DPOut 1 1 +ck attention 1 0 0 +note Live manifest edits cannot change frozen admitted split or source identity. +put LT 1 2 +ck dppack 0 +setup 2 +put LT 33 2 +ck cbegin 2 10000 0 +submit 0 0 +submit 1 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +save +refused 77 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/author.compile.rc b/evidence/ECOSYSTEM5/independent-review/author.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/author.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/author.compile.stderr b/evidence/ECOSYSTEM5/independent-review/author.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/author.run.rc b/evidence/ECOSYSTEM5/independent-review/author.run.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/author.run.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/author.stdout b/evidence/ECOSYSTEM5/independent-review/author.stdout new file mode 100644 index 0000000..c932252 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/author.stdout @@ -0,0 +1 @@ +PACK5_PASS 282622 diff --git a/evidence/ECOSYSTEM5/independent-review/commands.txt b/evidence/ECOSYSTEM5/independent-review/commands.txt new file mode 100644 index 0000000..84922a5 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/commands.txt @@ -0,0 +1,26 @@ +Workspace: /home/drakestapleton/handoffs/ecosystem303/seed/packing-review +Source tree: /home/drakestapleton/workspace/aien-train-ecosystem5-review +Compiler: /home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc + +git -C /home/drakestapleton/workspace/aien-train worktree add --detach /home/drakestapleton/workspace/aien-train-ecosystem5-review 088258d0c76c4e3b6c73ad92c12e20948014cc6f +git -C /home/drakestapleton/workspace/omega show 84d03c5523f39ca1045d1c313c5f62597779462b:src/learning/benchmark/core.om > deps/core.om +git -C /home/drakestapleton/workspace/omega show d8d14c47647e49774f64b58e3c138335656f175d:src/learning/curriculum/admit.om > deps/admit.om + +Original unit: concatenate deps/core.om, deps/admit.om, frozen native/ecosystem5/pack.om, frozen tests/ecosystem5/pack-test.om into author-unit.om. +Independent unit: same dependencies and consumer, followed by independent.om. +Compilation: quiet-build COMPILER < UNIT.om > UNIT.elf 2> UNIT.compile.stderr +Record actual compiler status immediately as UNIT.compile.rc; verify ELF before running. +Execution after chmod+x: ./UNIT.elf > UNIT.stdout 2> UNIT.stderr +Record actual child status immediately as UNIT.run.rc. + +Compile frozen tests/ecosystem5/mutate.om with the same compiler. +For ASCII mode1,2,3 concatenate one mode byte and frozen pack.om into mutantN.input. +./mutate.elf < mutantN.input > mutantN.om 2> mutantN.generate.stderr +Record generation status immediately in mutantN.generate.rc. +Build both mutantN-author-unit.om and mutantN-independent-unit.om by replacing only pack.om. +Compile/run each with separate statuses and outputs exactly as above. + +readelf -l -d independent.elf > independent.readelf.txt +strace -qq -e trace=file,process,network -o independent.trace.txt ./independent.elf > independent.traced.stdout 2> independent.traced.stderr +Record trace-run status immediately in independent.traced.rc. +sha256sum *.elf > elf-sha256.txt diff --git a/evidence/ECOSYSTEM5/independent-review/deps/admit.om b/evidence/ECOSYSTEM5/independent-review/deps/admit.om new file mode 100644 index 0000000..7d72d7e --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/deps/admit.om @@ -0,0 +1,121 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/deps/core.om b/evidence/ECOSYSTEM5/independent-review/deps/core.om new file mode 100644 index 0000000..b8d9218 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/deps/core.om @@ -0,0 +1,448 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/elf-sha256.txt b/evidence/ECOSYSTEM5/independent-review/elf-sha256.txt new file mode 100644 index 0000000..0355544 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/elf-sha256.txt @@ -0,0 +1,9 @@ +3bfa8220df995ba48efb3354a854ee0d96d7447e557ada5a2d6178212681f256 author.elf +42b1c200311d5328f7ad2ce773c05152dc5ba67537382d271a0225a754ed2fb7 independent.elf +1f75e5181c83c1fb085bf0e7e998f1fc909dd15345143f04bf37040af35a9f5d mutant1-author.elf +dad93b0c7d936555174a9e66f8ce6254d7dc044f0478c5fc61e0a2b312e809b7 mutant1-independent.elf +70183c51a4e861a2abceb8d2427bc27180eedebef7b201515aea53ce3b91917e mutant2-author.elf +c53c9c73f40e46098c7366c8b724a00b7ff92ea2751f02131a49421dc908ac97 mutant2-independent.elf +90f592516359ed56860cd233de1b656a000625fd2d2121e20d77e9ddcfddf974 mutant3-author.elf +941e8b1e2aec2f328f67851d91141bb00f2d886c6eb6696bad5508675e7d95cb mutant3-independent.elf +d9885576324781600959f22f55e9c9ea1d5ff677ddca556818065da40868025c mutate.elf diff --git a/evidence/ECOSYSTEM5/independent-review/independent-unit.om b/evidence/ECOSYSTEM5/independent-review/independent-unit.om new file mode 100644 index 0000000..24b4e4a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent-unit.om @@ -0,0 +1,993 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note Independent reviewer of PACK5. No author test helpers imported. +global RC ulong 1 +global Dig uchar 24 +global Snap ulong 1280 +text PASS "INDEPENDENT_PACK5_PASS checks=" +text FAIL "INDEPENDENT_PACK5_FAIL check=" +text NL "\n" + +fn number n ulong to void +p = ulong 24 +if eq n 0 +put Dig 0 48 +w = write 1 Dig 0 1 +ret +end +while gt n 0 bound 24 +p = sub p 1 +put Dig p uchar add 48 rem n 10 +n = div n 10 +end +w = write 1 Dig p sub 24 p +end + +fn check ok bool to void +put RC 0 add get RC 0 1 +if not ok +w = write 1 FAIL 0 len FAIL +number get RC 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn begin n ulong split ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +for t ulong n +p = mul t 32 +put LT p add t 101 +put LT add p 1 split +put LT add p 2 1 +put LT add p 3 add t 101 +put LT add p 4 1 +put LT add p 5 1 +put LT add p 6 42 +put LT add p 7 add t 300 +for j ulong 20 +put LT add p add j 8 add 10000 add mul t 100 j +end +put LT add p 28 24 +put LT add p 29 24 +put LT add p 30 999 +end +for i ulong 4 +put LPin i add i 10 +put LPin add i 4 add i 10 +put LPin add i 8 add i 20 +put LPin add i 12 add i 20 +put DPPin i add i 30 +put DPPin add i 4 add i 30 +put DPPin add i 8 add i 40 +put DPPin add i 12 add i 40 +end +put DPCfg 0 1 +put DPCfg 1 4294967296 +put DPCfg 2 split +put DPCfg 3 4294967295 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +check eq cbegin n 10000 0 +end + +fn observe t ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 42 +put CMeta 5 add t 300 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul t 32 add i 12 +end +for i ulong 24 +put LWant i uchar add 100 i +put LGot i uchar add 100 i +end +check eq csubmit t 0 0 24 0 +end + +fn save to void +for i ulong 256 +put Snap i get DPOut i +put Snap add i 256 get DPLabel i +put Snap add i 512 get DPMask i +put Snap add i 768 get DPTask i +put Snap add i 1024 get DPPos i +end +end + +fn refuse expected ulong to void +check eq dppack expected +check eq get DPState 0 0 +check eq get DPState 1 0 +check eq get DPState 2 0 +check not dpattend 0 0 +for i ulong 256 +check eq get Snap i get DPOut i +check eq get Snap add i 256 get DPLabel i +check eq get Snap add i 512 get DPMask i +check eq get Snap add i 768 get DPTask i +check eq get Snap add i 1024 get DPPos i +end +end + +fn full to void +begin 64 2 +for i ulong 64 +t = sub 63 i +observe t +put DPLen t 4 +put DPPrompt t rem t 5 +for j ulong 4 +put DPToken add mul t 256 j add mul t 16 j +end +end +check eq cfinish 0 +check eq dppack 0 +check eq get DPState 1 256 +check eq get DPState 2 64 +for q ulong 256 +t = sub 63 div q 4 +j = rem q 4 +check eq get DPOut q add mul t 16 j +check eq get DPTask q t +check eq get DPPos q j +label = ulong 4294967295 +mask = ulong 0 +if lt j 3 +label = add mul t 16 add j 1 +if ge add j 1 rem t 5 +mask = 1 +end +end +check eq get DPLabel q label +check eq get DPMask q mask +for k ulong 256 +want = and eq div q 4 div k 4 le k q +check eq dpattend q k want +end +end +check not dpattend 256 0 +check not dpattend 0 256 +check not dpattend 18446744073709551615 18446744073709551615 +save +put CFreeze 1 1 +refuse 77 +put CFreeze 1 2 +put LT 1 1 +check eq dppack 0 +save +for i ulong 4 +put DPPin add i 4 99 +refuse 72 +put DPPin add i 4 add i 30 +put DPPin add i 12 99 +refuse 72 +put DPPin add i 12 add i 40 +end +check eq dppack 0 +save +put DPLen 0 5 +refuse 76 +put DPLen 0 4 +put CGood 0 18446744073709551615 +refuse 73 +put CGood 0 63 +put LS 0 1 +refuse 70 +put LS 0 0 +check eq dppack 0 +end + +fn limits to void +begin 1 1 +observe 0 +check eq cfinish 0 +put DPLen 0 1 +put DPToken 0 4294967295 +check eq dppack 0 +check eq get DPOut 0 4294967295 +check eq get DPLabel 0 4294967295 +check eq get DPMask 0 0 +check dpattend 0 0 +check not dpattend 1 0 +save +put DPToken 0 4294967296 +refuse 75 +put DPToken 0 0 +put DPCfg 1 1 +put DPCfg 3 0 +check eq dppack 0 +check eq get DPOut 0 0 +check eq get DPState 1 1 +put DPLen 0 256 +put DPPrompt 0 256 +for i ulong 256 +put DPToken i 0 +end +check eq dppack 0 +for i ulong 256 +check eq get DPMask i 0 +check eq get DPOut i 0 +end +put DPPrompt 0 0 +check eq dppack 0 +for i ulong 255 +check eq get DPMask i 1 +end +check eq get DPMask 255 0 +end + +fn main to int +full +limits +w = write 1 PASS 0 len PASS +number get RC 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/independent.compile.rc b/evidence/ECOSYSTEM5/independent-review/independent.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.compile.stderr b/evidence/ECOSYSTEM5/independent-review/independent.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.om b/evidence/ECOSYSTEM5/independent-review/independent.om new file mode 100644 index 0000000..1fe3e5e --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.om @@ -0,0 +1,244 @@ +note Independent reviewer of PACK5. No author test helpers imported. +global RC ulong 1 +global Dig uchar 24 +global Snap ulong 1280 +text PASS "INDEPENDENT_PACK5_PASS checks=" +text FAIL "INDEPENDENT_PACK5_FAIL check=" +text NL "\n" + +fn number n ulong to void +p = ulong 24 +if eq n 0 +put Dig 0 48 +w = write 1 Dig 0 1 +ret +end +while gt n 0 bound 24 +p = sub p 1 +put Dig p uchar add 48 rem n 10 +n = div n 10 +end +w = write 1 Dig p sub 24 p +end + +fn check ok bool to void +put RC 0 add get RC 0 1 +if not ok +w = write 1 FAIL 0 len FAIL +number get RC 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn begin n ulong split ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +for t ulong n +p = mul t 32 +put LT p add t 101 +put LT add p 1 split +put LT add p 2 1 +put LT add p 3 add t 101 +put LT add p 4 1 +put LT add p 5 1 +put LT add p 6 42 +put LT add p 7 add t 300 +for j ulong 20 +put LT add p add j 8 add 10000 add mul t 100 j +end +put LT add p 28 24 +put LT add p 29 24 +put LT add p 30 999 +end +for i ulong 4 +put LPin i add i 10 +put LPin add i 4 add i 10 +put LPin add i 8 add i 20 +put LPin add i 12 add i 20 +put DPPin i add i 30 +put DPPin add i 4 add i 30 +put DPPin add i 8 add i 40 +put DPPin add i 12 add i 40 +end +put DPCfg 0 1 +put DPCfg 1 4294967296 +put DPCfg 2 split +put DPCfg 3 4294967295 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +check eq cbegin n 10000 0 +end + +fn observe t ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 42 +put CMeta 5 add t 300 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul t 32 add i 12 +end +for i ulong 24 +put LWant i uchar add 100 i +put LGot i uchar add 100 i +end +check eq csubmit t 0 0 24 0 +end + +fn save to void +for i ulong 256 +put Snap i get DPOut i +put Snap add i 256 get DPLabel i +put Snap add i 512 get DPMask i +put Snap add i 768 get DPTask i +put Snap add i 1024 get DPPos i +end +end + +fn refuse expected ulong to void +check eq dppack expected +check eq get DPState 0 0 +check eq get DPState 1 0 +check eq get DPState 2 0 +check not dpattend 0 0 +for i ulong 256 +check eq get Snap i get DPOut i +check eq get Snap add i 256 get DPLabel i +check eq get Snap add i 512 get DPMask i +check eq get Snap add i 768 get DPTask i +check eq get Snap add i 1024 get DPPos i +end +end + +fn full to void +begin 64 2 +for i ulong 64 +t = sub 63 i +observe t +put DPLen t 4 +put DPPrompt t rem t 5 +for j ulong 4 +put DPToken add mul t 256 j add mul t 16 j +end +end +check eq cfinish 0 +check eq dppack 0 +check eq get DPState 1 256 +check eq get DPState 2 64 +for q ulong 256 +t = sub 63 div q 4 +j = rem q 4 +check eq get DPOut q add mul t 16 j +check eq get DPTask q t +check eq get DPPos q j +label = ulong 4294967295 +mask = ulong 0 +if lt j 3 +label = add mul t 16 add j 1 +if ge add j 1 rem t 5 +mask = 1 +end +end +check eq get DPLabel q label +check eq get DPMask q mask +for k ulong 256 +want = and eq div q 4 div k 4 le k q +check eq dpattend q k want +end +end +check not dpattend 256 0 +check not dpattend 0 256 +check not dpattend 18446744073709551615 18446744073709551615 +save +put CFreeze 1 1 +refuse 77 +put CFreeze 1 2 +put LT 1 1 +check eq dppack 0 +save +for i ulong 4 +put DPPin add i 4 99 +refuse 72 +put DPPin add i 4 add i 30 +put DPPin add i 12 99 +refuse 72 +put DPPin add i 12 add i 40 +end +check eq dppack 0 +save +put DPLen 0 5 +refuse 76 +put DPLen 0 4 +put CGood 0 18446744073709551615 +refuse 73 +put CGood 0 63 +put LS 0 1 +refuse 70 +put LS 0 0 +check eq dppack 0 +end + +fn limits to void +begin 1 1 +observe 0 +check eq cfinish 0 +put DPLen 0 1 +put DPToken 0 4294967295 +check eq dppack 0 +check eq get DPOut 0 4294967295 +check eq get DPLabel 0 4294967295 +check eq get DPMask 0 0 +check dpattend 0 0 +check not dpattend 1 0 +save +put DPToken 0 4294967296 +refuse 75 +put DPToken 0 0 +put DPCfg 1 1 +put DPCfg 3 0 +check eq dppack 0 +check eq get DPOut 0 0 +check eq get DPState 1 1 +put DPLen 0 256 +put DPPrompt 0 256 +for i ulong 256 +put DPToken i 0 +end +check eq dppack 0 +for i ulong 256 +check eq get DPMask i 0 +check eq get DPOut i 0 +end +put DPPrompt 0 0 +check eq dppack 0 +for i ulong 255 +check eq get DPMask i 1 +end +check eq get DPMask 255 0 +end + +fn main to int +full +limits +w = write 1 PASS 0 len PASS +number get RC 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/independent.readelf.txt b/evidence/ECOSYSTEM5/independent-review/independent.readelf.txt new file mode 100644 index 0000000..a3c7ec1 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.readelf.txt @@ -0,0 +1,14 @@ + +Elf file type is EXEC (Executable file) +Entry point 0x4000b0 +There are 2 program headers, starting at offset 64 + +Program Headers: + Type Offset VirtAddr PhysAddr + FileSiz MemSiz Flags Align + LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 + 0x0000000000004f8c 0x0000000000004f8c R E 0x1000 + LOAD 0x0000000000000000 0x0000000010000000 0x0000000010000000 + 0x0000000000000000 0x000000000082ef30 RW 0x1000 + +There is no dynamic section in this file. diff --git a/evidence/ECOSYSTEM5/independent-review/independent.run.rc b/evidence/ECOSYSTEM5/independent-review/independent.run.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.run.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.stderr b/evidence/ECOSYSTEM5/independent-review/independent.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.stdout b/evidence/ECOSYSTEM5/independent-review/independent.stdout new file mode 100644 index 0000000..3db5e2b --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.stdout @@ -0,0 +1 @@ +INDEPENDENT_PACK5_PASS checks=84378 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.trace.txt b/evidence/ECOSYSTEM5/independent-review/independent.trace.txt new file mode 100644 index 0000000..ae3821e --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.trace.txt @@ -0,0 +1,2 @@ +execve("./independent.elf", ["./independent.elf"], 0xffffd2d9fdb8 /* 39 vars */) = 0 +exit(0) = ? diff --git a/evidence/ECOSYSTEM5/independent-review/independent.traced.rc b/evidence/ECOSYSTEM5/independent-review/independent.traced.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.traced.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.traced.stderr b/evidence/ECOSYSTEM5/independent-review/independent.traced.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/independent.traced.stdout b/evidence/ECOSYSTEM5/independent-review/independent.traced.stdout new file mode 100644 index 0000000..3db5e2b --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/independent.traced.stdout @@ -0,0 +1 @@ +INDEPENDENT_PACK5_PASS checks=84378 diff --git a/evidence/ECOSYSTEM5/independent-review/manifest-check.log b/evidence/ECOSYSTEM5/independent-review/manifest-check.log new file mode 100644 index 0000000..f9df9b6 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/manifest-check.log @@ -0,0 +1,74 @@ +author-unit.om: OK +independent-unit.om: OK +independent.om: OK +mutant1-author-unit.om: OK +mutant1-independent-unit.om: OK +mutant1.om: OK +mutant2-author-unit.om: OK +mutant2-independent-unit.om: OK +mutant2.om: OK +mutant3-author-unit.om: OK +mutant3-independent-unit.om: OK +mutant3.om: OK +mutant1.input: OK +mutant2.input: OK +mutant3.input: OK +author.compile.rc: OK +author.run.rc: OK +independent.compile.rc: OK +independent.run.rc: OK +independent.traced.rc: OK +mutant1-author.compile.rc: OK +mutant1-author.run.rc: OK +mutant1-independent.compile.rc: OK +mutant1-independent.run.rc: OK +mutant1.generate.rc: OK +mutant2-author.compile.rc: OK +mutant2-author.run.rc: OK +mutant2-independent.compile.rc: OK +mutant2-independent.run.rc: OK +mutant2.generate.rc: OK +mutant3-author.compile.rc: OK +mutant3-author.run.rc: OK +mutant3-independent.compile.rc: OK +mutant3-independent.run.rc: OK +mutant3.generate.rc: OK +mutate.compile.rc: OK +author.compile.stderr: OK +independent.compile.stderr: OK +independent.stderr: OK +independent.traced.stderr: OK +mutant1-author.compile.stderr: OK +mutant1-author.stderr: OK +mutant1-independent.compile.stderr: OK +mutant1-independent.stderr: OK +mutant1.generate.stderr: OK +mutant2-author.compile.stderr: OK +mutant2-author.stderr: OK +mutant2-independent.compile.stderr: OK +mutant2-independent.stderr: OK +mutant2.generate.stderr: OK +mutant3-author.compile.stderr: OK +mutant3-author.stderr: OK +mutant3-independent.compile.stderr: OK +mutant3-independent.stderr: OK +mutant3.generate.stderr: OK +mutate.compile.stderr: OK +author.stdout: OK +independent.stdout: OK +independent.traced.stdout: OK +mutant1-author.stdout: OK +mutant1-independent.stdout: OK +mutant2-author.stdout: OK +mutant2-independent.stdout: OK +mutant3-author.stdout: OK +mutant3-independent.stdout: OK +commands.txt: OK +elf-sha256.txt: OK +independent.readelf.txt: OK +independent.trace.txt: OK +source-commit.txt: OK +worktree-status.txt: OK +report.md: OK +deps/admit.om: OK +deps/core.om: OK diff --git a/evidence/ECOSYSTEM5/independent-review/mode1 b/evidence/ECOSYSTEM5/independent-review/mode1 new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mode1 @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/evidence/ECOSYSTEM5/independent-review/mode2 b/evidence/ECOSYSTEM5/independent-review/mode2 new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mode2 @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/evidence/ECOSYSTEM5/independent-review/mode3 b/evidence/ECOSYSTEM5/independent-review/mode3 new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mode3 @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant1-author-unit.om new file mode 100644 index 0000000..3358c3b --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-author-unit.om @@ -0,0 +1,1105 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if le next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +global ORange ulong 4 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn tokenoracle q ulong to void +owner = ulong 0 +pos = q +plen = get ORange 2 +stop = get ORange 0 +if ge q stop +owner = 1 +pos = sub q stop +plen = get ORange 3 +stop = add stop get ORange 1 +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +end + +fn attendoracle q ulong k ulong to void +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q get ORange 0 +if lt k get ORange 0 +want = 1 +end +else +if ge k get ORange 0 +want = 1 +end +end +end +ck attention q k want +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put ORange 0 a +put ORange 1 b +put ORange 2 pa +put ORange 3 pb +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +tokenoracle q +for k ulong add a b +attendoracle q k +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +put DPCfg 1 4294967297 +refused 71 +put DPCfg 1 1024 +put DPCfg 3 1024 +refused 71 +put DPCfg 3 0 +put CGood 0 64 +refused 73 +put CGood 0 0 +for i ulong 4 +put DPPin i 0 +put DPPin add i 4 0 +end +refused 72 +for i ulong 4 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 0 +put DPPin add i 12 0 +end +refused 72 +setup 2 +ck cbegin 2 10000 0 +submit 1 0 +submit 0 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPTask 1 0 +ck get DPOut 0 257 +ck get DPOut 1 1 +ck attention 1 0 0 +note Live manifest edits cannot change frozen admitted split or source identity. +put LT 1 2 +ck dppack 0 +setup 2 +put LT 33 2 +ck cbegin 2 10000 0 +submit 0 0 +submit 1 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +save +refused 77 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant1-author.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-author.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant1-author.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant1-author.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-author.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author.stderr b/evidence/ECOSYSTEM5/independent-review/mutant1-author.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-author.stdout b/evidence/ECOSYSTEM5/independent-review/mutant1-author.stdout new file mode 100644 index 0000000..05fae57 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-author.stdout @@ -0,0 +1 @@ +PACK5_FAIL 5163 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant1-independent-unit.om new file mode 100644 index 0000000..e3a6dd6 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-independent-unit.om @@ -0,0 +1,993 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if le next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note Independent reviewer of PACK5. No author test helpers imported. +global RC ulong 1 +global Dig uchar 24 +global Snap ulong 1280 +text PASS "INDEPENDENT_PACK5_PASS checks=" +text FAIL "INDEPENDENT_PACK5_FAIL check=" +text NL "\n" + +fn number n ulong to void +p = ulong 24 +if eq n 0 +put Dig 0 48 +w = write 1 Dig 0 1 +ret +end +while gt n 0 bound 24 +p = sub p 1 +put Dig p uchar add 48 rem n 10 +n = div n 10 +end +w = write 1 Dig p sub 24 p +end + +fn check ok bool to void +put RC 0 add get RC 0 1 +if not ok +w = write 1 FAIL 0 len FAIL +number get RC 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn begin n ulong split ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +for t ulong n +p = mul t 32 +put LT p add t 101 +put LT add p 1 split +put LT add p 2 1 +put LT add p 3 add t 101 +put LT add p 4 1 +put LT add p 5 1 +put LT add p 6 42 +put LT add p 7 add t 300 +for j ulong 20 +put LT add p add j 8 add 10000 add mul t 100 j +end +put LT add p 28 24 +put LT add p 29 24 +put LT add p 30 999 +end +for i ulong 4 +put LPin i add i 10 +put LPin add i 4 add i 10 +put LPin add i 8 add i 20 +put LPin add i 12 add i 20 +put DPPin i add i 30 +put DPPin add i 4 add i 30 +put DPPin add i 8 add i 40 +put DPPin add i 12 add i 40 +end +put DPCfg 0 1 +put DPCfg 1 4294967296 +put DPCfg 2 split +put DPCfg 3 4294967295 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +check eq cbegin n 10000 0 +end + +fn observe t ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 42 +put CMeta 5 add t 300 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul t 32 add i 12 +end +for i ulong 24 +put LWant i uchar add 100 i +put LGot i uchar add 100 i +end +check eq csubmit t 0 0 24 0 +end + +fn save to void +for i ulong 256 +put Snap i get DPOut i +put Snap add i 256 get DPLabel i +put Snap add i 512 get DPMask i +put Snap add i 768 get DPTask i +put Snap add i 1024 get DPPos i +end +end + +fn refuse expected ulong to void +check eq dppack expected +check eq get DPState 0 0 +check eq get DPState 1 0 +check eq get DPState 2 0 +check not dpattend 0 0 +for i ulong 256 +check eq get Snap i get DPOut i +check eq get Snap add i 256 get DPLabel i +check eq get Snap add i 512 get DPMask i +check eq get Snap add i 768 get DPTask i +check eq get Snap add i 1024 get DPPos i +end +end + +fn full to void +begin 64 2 +for i ulong 64 +t = sub 63 i +observe t +put DPLen t 4 +put DPPrompt t rem t 5 +for j ulong 4 +put DPToken add mul t 256 j add mul t 16 j +end +end +check eq cfinish 0 +check eq dppack 0 +check eq get DPState 1 256 +check eq get DPState 2 64 +for q ulong 256 +t = sub 63 div q 4 +j = rem q 4 +check eq get DPOut q add mul t 16 j +check eq get DPTask q t +check eq get DPPos q j +label = ulong 4294967295 +mask = ulong 0 +if lt j 3 +label = add mul t 16 add j 1 +if ge add j 1 rem t 5 +mask = 1 +end +end +check eq get DPLabel q label +check eq get DPMask q mask +for k ulong 256 +want = and eq div q 4 div k 4 le k q +check eq dpattend q k want +end +end +check not dpattend 256 0 +check not dpattend 0 256 +check not dpattend 18446744073709551615 18446744073709551615 +save +put CFreeze 1 1 +refuse 77 +put CFreeze 1 2 +put LT 1 1 +check eq dppack 0 +save +for i ulong 4 +put DPPin add i 4 99 +refuse 72 +put DPPin add i 4 add i 30 +put DPPin add i 12 99 +refuse 72 +put DPPin add i 12 add i 40 +end +check eq dppack 0 +save +put DPLen 0 5 +refuse 76 +put DPLen 0 4 +put CGood 0 18446744073709551615 +refuse 73 +put CGood 0 63 +put LS 0 1 +refuse 70 +put LS 0 0 +check eq dppack 0 +end + +fn limits to void +begin 1 1 +observe 0 +check eq cfinish 0 +put DPLen 0 1 +put DPToken 0 4294967295 +check eq dppack 0 +check eq get DPOut 0 4294967295 +check eq get DPLabel 0 4294967295 +check eq get DPMask 0 0 +check dpattend 0 0 +check not dpattend 1 0 +save +put DPToken 0 4294967296 +refuse 75 +put DPToken 0 0 +put DPCfg 1 1 +put DPCfg 3 0 +check eq dppack 0 +check eq get DPOut 0 0 +check eq get DPState 1 1 +put DPLen 0 256 +put DPPrompt 0 256 +for i ulong 256 +put DPToken i 0 +end +check eq dppack 0 +for i ulong 256 +check eq get DPMask i 0 +check eq get DPOut i 0 +end +put DPPrompt 0 0 +check eq dppack 0 +for i ulong 255 +check eq get DPMask i 1 +end +check eq get DPMask 255 0 +end + +fn main to int +full +limits +w = write 1 PASS 0 len PASS +number get RC 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent.stderr b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1-independent.stdout b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.stdout new file mode 100644 index 0000000..857f4b6 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1-independent.stdout @@ -0,0 +1 @@ +INDEPENDENT_PACK5_FAIL check=74 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1.generate.rc b/evidence/ECOSYSTEM5/independent-review/mutant1.generate.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1.generate.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1.generate.stderr b/evidence/ECOSYSTEM5/independent-review/mutant1.generate.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1.input b/evidence/ECOSYSTEM5/independent-review/mutant1.input new file mode 100644 index 0000000..74f5ca6 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1.input @@ -0,0 +1,180 @@ +1note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant1.om b/evidence/ECOSYSTEM5/independent-review/mutant1.om new file mode 100644 index 0000000..fd868f9 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant1.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if le next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant2-author-unit.om new file mode 100644 index 0000000..275b8fc --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-author-unit.om @@ -0,0 +1,1105 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask q +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +global ORange ulong 4 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn tokenoracle q ulong to void +owner = ulong 0 +pos = q +plen = get ORange 2 +stop = get ORange 0 +if ge q stop +owner = 1 +pos = sub q stop +plen = get ORange 3 +stop = add stop get ORange 1 +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +end + +fn attendoracle q ulong k ulong to void +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q get ORange 0 +if lt k get ORange 0 +want = 1 +end +else +if ge k get ORange 0 +want = 1 +end +end +end +ck attention q k want +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put ORange 0 a +put ORange 1 b +put ORange 2 pa +put ORange 3 pb +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +tokenoracle q +for k ulong add a b +attendoracle q k +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +put DPCfg 1 4294967297 +refused 71 +put DPCfg 1 1024 +put DPCfg 3 1024 +refused 71 +put DPCfg 3 0 +put CGood 0 64 +refused 73 +put CGood 0 0 +for i ulong 4 +put DPPin i 0 +put DPPin add i 4 0 +end +refused 72 +for i ulong 4 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 0 +put DPPin add i 12 0 +end +refused 72 +setup 2 +ck cbegin 2 10000 0 +submit 1 0 +submit 0 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPTask 1 0 +ck get DPOut 0 257 +ck get DPOut 1 1 +ck attention 1 0 0 +note Live manifest edits cannot change frozen admitted split or source identity. +put LT 1 2 +ck dppack 0 +setup 2 +put LT 33 2 +ck cbegin 2 10000 0 +submit 0 0 +submit 1 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +save +refused 77 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant2-author.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-author.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant2-author.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant2-author.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-author.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author.stderr b/evidence/ECOSYSTEM5/independent-review/mutant2-author.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-author.stdout b/evidence/ECOSYSTEM5/independent-review/mutant2-author.stdout new file mode 100644 index 0000000..e44fb5f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-author.stdout @@ -0,0 +1 @@ +PACK5_FAIL 19 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant2-independent-unit.om new file mode 100644 index 0000000..c8b8c4f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-independent-unit.om @@ -0,0 +1,993 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask q +end +note Independent reviewer of PACK5. No author test helpers imported. +global RC ulong 1 +global Dig uchar 24 +global Snap ulong 1280 +text PASS "INDEPENDENT_PACK5_PASS checks=" +text FAIL "INDEPENDENT_PACK5_FAIL check=" +text NL "\n" + +fn number n ulong to void +p = ulong 24 +if eq n 0 +put Dig 0 48 +w = write 1 Dig 0 1 +ret +end +while gt n 0 bound 24 +p = sub p 1 +put Dig p uchar add 48 rem n 10 +n = div n 10 +end +w = write 1 Dig p sub 24 p +end + +fn check ok bool to void +put RC 0 add get RC 0 1 +if not ok +w = write 1 FAIL 0 len FAIL +number get RC 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn begin n ulong split ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +for t ulong n +p = mul t 32 +put LT p add t 101 +put LT add p 1 split +put LT add p 2 1 +put LT add p 3 add t 101 +put LT add p 4 1 +put LT add p 5 1 +put LT add p 6 42 +put LT add p 7 add t 300 +for j ulong 20 +put LT add p add j 8 add 10000 add mul t 100 j +end +put LT add p 28 24 +put LT add p 29 24 +put LT add p 30 999 +end +for i ulong 4 +put LPin i add i 10 +put LPin add i 4 add i 10 +put LPin add i 8 add i 20 +put LPin add i 12 add i 20 +put DPPin i add i 30 +put DPPin add i 4 add i 30 +put DPPin add i 8 add i 40 +put DPPin add i 12 add i 40 +end +put DPCfg 0 1 +put DPCfg 1 4294967296 +put DPCfg 2 split +put DPCfg 3 4294967295 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +check eq cbegin n 10000 0 +end + +fn observe t ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 42 +put CMeta 5 add t 300 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul t 32 add i 12 +end +for i ulong 24 +put LWant i uchar add 100 i +put LGot i uchar add 100 i +end +check eq csubmit t 0 0 24 0 +end + +fn save to void +for i ulong 256 +put Snap i get DPOut i +put Snap add i 256 get DPLabel i +put Snap add i 512 get DPMask i +put Snap add i 768 get DPTask i +put Snap add i 1024 get DPPos i +end +end + +fn refuse expected ulong to void +check eq dppack expected +check eq get DPState 0 0 +check eq get DPState 1 0 +check eq get DPState 2 0 +check not dpattend 0 0 +for i ulong 256 +check eq get Snap i get DPOut i +check eq get Snap add i 256 get DPLabel i +check eq get Snap add i 512 get DPMask i +check eq get Snap add i 768 get DPTask i +check eq get Snap add i 1024 get DPPos i +end +end + +fn full to void +begin 64 2 +for i ulong 64 +t = sub 63 i +observe t +put DPLen t 4 +put DPPrompt t rem t 5 +for j ulong 4 +put DPToken add mul t 256 j add mul t 16 j +end +end +check eq cfinish 0 +check eq dppack 0 +check eq get DPState 1 256 +check eq get DPState 2 64 +for q ulong 256 +t = sub 63 div q 4 +j = rem q 4 +check eq get DPOut q add mul t 16 j +check eq get DPTask q t +check eq get DPPos q j +label = ulong 4294967295 +mask = ulong 0 +if lt j 3 +label = add mul t 16 add j 1 +if ge add j 1 rem t 5 +mask = 1 +end +end +check eq get DPLabel q label +check eq get DPMask q mask +for k ulong 256 +want = and eq div q 4 div k 4 le k q +check eq dpattend q k want +end +end +check not dpattend 256 0 +check not dpattend 0 256 +check not dpattend 18446744073709551615 18446744073709551615 +save +put CFreeze 1 1 +refuse 77 +put CFreeze 1 2 +put LT 1 1 +check eq dppack 0 +save +for i ulong 4 +put DPPin add i 4 99 +refuse 72 +put DPPin add i 4 add i 30 +put DPPin add i 12 99 +refuse 72 +put DPPin add i 12 add i 40 +end +check eq dppack 0 +save +put DPLen 0 5 +refuse 76 +put DPLen 0 4 +put CGood 0 18446744073709551615 +refuse 73 +put CGood 0 63 +put LS 0 1 +refuse 70 +put LS 0 0 +check eq dppack 0 +end + +fn limits to void +begin 1 1 +observe 0 +check eq cfinish 0 +put DPLen 0 1 +put DPToken 0 4294967295 +check eq dppack 0 +check eq get DPOut 0 4294967295 +check eq get DPLabel 0 4294967295 +check eq get DPMask 0 0 +check dpattend 0 0 +check not dpattend 1 0 +save +put DPToken 0 4294967296 +refuse 75 +put DPToken 0 0 +put DPCfg 1 1 +put DPCfg 3 0 +check eq dppack 0 +check eq get DPOut 0 0 +check eq get DPState 1 1 +put DPLen 0 256 +put DPPrompt 0 256 +for i ulong 256 +put DPToken i 0 +end +check eq dppack 0 +for i ulong 256 +check eq get DPMask i 0 +check eq get DPOut i 0 +end +put DPPrompt 0 0 +check eq dppack 0 +for i ulong 255 +check eq get DPMask i 1 +end +check eq get DPMask 255 0 +end + +fn main to int +full +limits +w = write 1 PASS 0 len PASS +number get RC 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent.stderr b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2-independent.stdout b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.stdout new file mode 100644 index 0000000..b602836 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2-independent.stdout @@ -0,0 +1 @@ +INDEPENDENT_PACK5_FAIL check=1119 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2.generate.rc b/evidence/ECOSYSTEM5/independent-review/mutant2.generate.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2.generate.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2.generate.stderr b/evidence/ECOSYSTEM5/independent-review/mutant2.generate.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2.input b/evidence/ECOSYSTEM5/independent-review/mutant2.input new file mode 100644 index 0000000..20ddceb --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2.input @@ -0,0 +1,180 @@ +2note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant2.om b/evidence/ECOSYSTEM5/independent-review/mutant2.om new file mode 100644 index 0000000..af15d68 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant2.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask q +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant3-author-unit.om new file mode 100644 index 0000000..840f00d --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-author-unit.om @@ -0,0 +1,1105 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 0 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +global ORange ulong 4 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn tokenoracle q ulong to void +owner = ulong 0 +pos = q +plen = get ORange 2 +stop = get ORange 0 +if ge q stop +owner = 1 +pos = sub q stop +plen = get ORange 3 +stop = add stop get ORange 1 +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +end + +fn attendoracle q ulong k ulong to void +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q get ORange 0 +if lt k get ORange 0 +want = 1 +end +else +if ge k get ORange 0 +want = 1 +end +end +end +ck attention q k want +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put ORange 0 a +put ORange 1 b +put ORange 2 pa +put ORange 3 pb +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +tokenoracle q +for k ulong add a b +attendoracle q k +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +put DPCfg 1 4294967297 +refused 71 +put DPCfg 1 1024 +put DPCfg 3 1024 +refused 71 +put DPCfg 3 0 +put CGood 0 64 +refused 73 +put CGood 0 0 +for i ulong 4 +put DPPin i 0 +put DPPin add i 4 0 +end +refused 72 +for i ulong 4 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 0 +put DPPin add i 12 0 +end +refused 72 +setup 2 +ck cbegin 2 10000 0 +submit 1 0 +submit 0 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPTask 1 0 +ck get DPOut 0 257 +ck get DPOut 1 1 +ck attention 1 0 0 +note Live manifest edits cannot change frozen admitted split or source identity. +put LT 1 2 +ck dppack 0 +setup 2 +put LT 33 2 +ck cbegin 2 10000 0 +submit 0 0 +submit 1 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +save +refused 77 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant3-author.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-author.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant3-author.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant3-author.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-author.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author.stderr b/evidence/ECOSYSTEM5/independent-review/mutant3-author.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-author.stdout b/evidence/ECOSYSTEM5/independent-review/mutant3-author.stdout new file mode 100644 index 0000000..923a9bf --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-author.stdout @@ -0,0 +1 @@ +PACK5_FAIL 263254 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent-unit.om b/evidence/ECOSYSTEM5/independent-review/mutant3-independent-unit.om new file mode 100644 index 0000000..282dc3e --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-independent-unit.om @@ -0,0 +1,993 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 0 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note Independent reviewer of PACK5. No author test helpers imported. +global RC ulong 1 +global Dig uchar 24 +global Snap ulong 1280 +text PASS "INDEPENDENT_PACK5_PASS checks=" +text FAIL "INDEPENDENT_PACK5_FAIL check=" +text NL "\n" + +fn number n ulong to void +p = ulong 24 +if eq n 0 +put Dig 0 48 +w = write 1 Dig 0 1 +ret +end +while gt n 0 bound 24 +p = sub p 1 +put Dig p uchar add 48 rem n 10 +n = div n 10 +end +w = write 1 Dig p sub 24 p +end + +fn check ok bool to void +put RC 0 add get RC 0 1 +if not ok +w = write 1 FAIL 0 len FAIL +number get RC 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn begin n ulong split ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +for t ulong n +p = mul t 32 +put LT p add t 101 +put LT add p 1 split +put LT add p 2 1 +put LT add p 3 add t 101 +put LT add p 4 1 +put LT add p 5 1 +put LT add p 6 42 +put LT add p 7 add t 300 +for j ulong 20 +put LT add p add j 8 add 10000 add mul t 100 j +end +put LT add p 28 24 +put LT add p 29 24 +put LT add p 30 999 +end +for i ulong 4 +put LPin i add i 10 +put LPin add i 4 add i 10 +put LPin add i 8 add i 20 +put LPin add i 12 add i 20 +put DPPin i add i 30 +put DPPin add i 4 add i 30 +put DPPin add i 8 add i 40 +put DPPin add i 12 add i 40 +end +put DPCfg 0 1 +put DPCfg 1 4294967296 +put DPCfg 2 split +put DPCfg 3 4294967295 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +check eq cbegin n 10000 0 +end + +fn observe t ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 42 +put CMeta 5 add t 300 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul t 32 add i 12 +end +for i ulong 24 +put LWant i uchar add 100 i +put LGot i uchar add 100 i +end +check eq csubmit t 0 0 24 0 +end + +fn save to void +for i ulong 256 +put Snap i get DPOut i +put Snap add i 256 get DPLabel i +put Snap add i 512 get DPMask i +put Snap add i 768 get DPTask i +put Snap add i 1024 get DPPos i +end +end + +fn refuse expected ulong to void +check eq dppack expected +check eq get DPState 0 0 +check eq get DPState 1 0 +check eq get DPState 2 0 +check not dpattend 0 0 +for i ulong 256 +check eq get Snap i get DPOut i +check eq get Snap add i 256 get DPLabel i +check eq get Snap add i 512 get DPMask i +check eq get Snap add i 768 get DPTask i +check eq get Snap add i 1024 get DPPos i +end +end + +fn full to void +begin 64 2 +for i ulong 64 +t = sub 63 i +observe t +put DPLen t 4 +put DPPrompt t rem t 5 +for j ulong 4 +put DPToken add mul t 256 j add mul t 16 j +end +end +check eq cfinish 0 +check eq dppack 0 +check eq get DPState 1 256 +check eq get DPState 2 64 +for q ulong 256 +t = sub 63 div q 4 +j = rem q 4 +check eq get DPOut q add mul t 16 j +check eq get DPTask q t +check eq get DPPos q j +label = ulong 4294967295 +mask = ulong 0 +if lt j 3 +label = add mul t 16 add j 1 +if ge add j 1 rem t 5 +mask = 1 +end +end +check eq get DPLabel q label +check eq get DPMask q mask +for k ulong 256 +want = and eq div q 4 div k 4 le k q +check eq dpattend q k want +end +end +check not dpattend 256 0 +check not dpattend 0 256 +check not dpattend 18446744073709551615 18446744073709551615 +save +put CFreeze 1 1 +refuse 77 +put CFreeze 1 2 +put LT 1 1 +check eq dppack 0 +save +for i ulong 4 +put DPPin add i 4 99 +refuse 72 +put DPPin add i 4 add i 30 +put DPPin add i 12 99 +refuse 72 +put DPPin add i 12 add i 40 +end +check eq dppack 0 +save +put DPLen 0 5 +refuse 76 +put DPLen 0 4 +put CGood 0 18446744073709551615 +refuse 73 +put CGood 0 63 +put LS 0 1 +refuse 70 +put LS 0 0 +check eq dppack 0 +end + +fn limits to void +begin 1 1 +observe 0 +check eq cfinish 0 +put DPLen 0 1 +put DPToken 0 4294967295 +check eq dppack 0 +check eq get DPOut 0 4294967295 +check eq get DPLabel 0 4294967295 +check eq get DPMask 0 0 +check dpattend 0 0 +check not dpattend 1 0 +save +put DPToken 0 4294967296 +refuse 75 +put DPToken 0 0 +put DPCfg 1 1 +put DPCfg 3 0 +check eq dppack 0 +check eq get DPOut 0 0 +check eq get DPState 1 1 +put DPLen 0 256 +put DPPrompt 0 256 +for i ulong 256 +put DPToken i 0 +end +check eq dppack 0 +for i ulong 256 +check eq get DPMask i 0 +check eq get DPOut i 0 +end +put DPPrompt 0 0 +check eq dppack 0 +for i ulong 255 +check eq get DPMask i 1 +end +check eq get DPMask 255 0 +end + +fn main to int +full +limits +w = write 1 PASS 0 len PASS +number get RC 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent.run.rc b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent.stderr b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3-independent.stdout b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.stdout new file mode 100644 index 0000000..329c88e --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3-independent.stdout @@ -0,0 +1 @@ +INDEPENDENT_PACK5_FAIL check=66889 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3.generate.rc b/evidence/ECOSYSTEM5/independent-review/mutant3.generate.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3.generate.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3.generate.stderr b/evidence/ECOSYSTEM5/independent-review/mutant3.generate.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3.input b/evidence/ECOSYSTEM5/independent-review/mutant3.input new file mode 100644 index 0000000..b5c8a94 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3.input @@ -0,0 +1,180 @@ +3note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutant3.om b/evidence/ECOSYSTEM5/independent-review/mutant3.om new file mode 100644 index 0000000..3e9e5cc --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutant3.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 0 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/independent-review/mutate.compile.rc b/evidence/ECOSYSTEM5/independent-review/mutate.compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/mutate.compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/independent-review/mutate.compile.stderr b/evidence/ECOSYSTEM5/independent-review/mutate.compile.stderr new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/independent-review/report.md b/evidence/ECOSYSTEM5/independent-review/report.md new file mode 100644 index 0000000..ebe275d --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/report.md @@ -0,0 +1,74 @@ +# Independent PACK5 source and native review + +Reviewer: Architecture303 seed qualification worker, separate from the author. +Reviewed exact functional commit088258d0c76c4e3b6c73ad92c12e20948014cc6f in +fresh detached worktree `/home/drakestapleton/workspace/aien-train-ecosystem5-review`. +No author implementation, shared owner source or runtime was modified. + +Result: PASS for the declared trusted-caller, bounded in-memory packing contract. +No actionable findings. This is not approval of a full data pipeline, tokenizer, +custody boundary, training loop, durable checkpoint or complete ecosystem gate. + +Read the complete frozen pack.om, author test and mutation source, public +contract, and exact existing L775/L776 implementations. Materialized external +dependencies using git show from core84d03c5523f39ca1045d1c313c5f62597779462b +and admitd8d14c47647e49774f64b58e3c138335656f175d. Verified hashes +a5a2e74c815f9ca6a90dbdfbfc7ecc343f0362c824064f2058e9d1d7c119c40c and +533638a9f128853d696644de2bbf7b1859797b170a7e32e54c112ab94c3dadb1. +The consumer source hash is +e14bbda75522b2e7abc6791440d0ce60c965f5caa3eed5191466059aa564c102. + +Source review confirmed checked accepted indices precede array access, totals +cannot overflow the256-token capacity, rejected slots cannot declare lengths, +and full validation occurs before output mutation. Failed calls clear all three +publication-state fields and preserve all five payload arrays. Frozen manifest +partition is used instead of mutable LT. The last prompt token may predict the +first completion; last-record tokens never predict another record's first token. +Mask0 is required for prompt-only labels. Attention requires a valid published +batch, in-range positions, same record and a causal lower triangle. The code +does not authenticate mutable globals; the documentation correctly requires +a trusted serialized caller and independently supplied identity/tokenization. + +Fresh compilation with independently rebuilt seed191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 +and exact source replayed the original282622checks, exit0. Rebuilt ELF hash +3bfa8220df995ba48efb3354a854ee0d96d7447e557ada5a2d6178212681f256 matches +the author; this is consistency evidence, not the correctness oracle alone. + +The separate handwritten reviewer caller imports no author test helper. It +drives actual cbegin/csubmit/cfinish for64 dev records, submitted in descending +order, each with four tokens and varying prompt counts. Independent absolute +coordinate arithmetic checks every packed token, original slot, position, +next-token label and mask, and all65536 query/key relationships. It checks the +maximal unsigned out-of-range positions, frozen-vs-live partition behavior, +all8 observed tokenizer/template digest words, capacity excess, extreme accepted +index, active admission refusal and complete payload preservation on failure. +Additional native cases cover maximum token ID4294967295, vocabulary2^32, +refusal of token2^32, vocabulary1/token0, a256-token all-prompt example and its +all-completion counterpart. Physical padding ID inside a real record remains +an ordinary token; readiness distinguishes an empty or rejected batch. +Final reviewer caller compiles0 and runs0: `INDEPENDENT_PACK5_PASS checks=84378`. + +The frozen native mutator was freshly compiled and used to generate three +actual faulty modules. All generation and compiler statuses are0. Both suites +reject every faulty compiled implementation: + +| Actual fault | Author check / exit | Independent check / exit | +| --- | --- | --- | +| Reverse supervised-target inequality |5163 /1 |74 /1 | +| Permit cross-record attention |19 /1 |1119 /1 | +| Bypass frozen partition refusal |263254 /1 |66889 /1 | + +Nine reviewer compiler invocations succeeded. Twelve native runs include the +two positives, three mutation runs, six faulty builds and one traced positive +replay. No compiler refusal or crashed process is counted as a caught behavioral +control. All original source units, outputs and separate statuses are retained. +The standalone generated executables are local evidence and are not to be +committed; their exact digests remain in elf-sha256.txt. + +Readelf confirms static AArch64 ELF with no dynamic section. A scoped external +file/process/network trace observed only initial exec and clean exit. No foreign +runtime, GPU, model, live service or hardware access was used. All new reviewer +executable source is handwritten .om. Existing shell/OS tools only materialize, +concatenate, compile, inspect and record evidence; their retirement is not claimed. +No performance or model-quality comparison was run. Architecture303 and train3/5 +remain open for all wider acceptance criteria and independent downstream use. diff --git a/evidence/ECOSYSTEM5/independent-review/source-commit.txt b/evidence/ECOSYSTEM5/independent-review/source-commit.txt new file mode 100644 index 0000000..cc91661 --- /dev/null +++ b/evidence/ECOSYSTEM5/independent-review/source-commit.txt @@ -0,0 +1 @@ +088258d0c76c4e3b6c73ad92c12e20948014cc6f diff --git a/evidence/ECOSYSTEM5/independent-review/worktree-status.txt b/evidence/ECOSYSTEM5/independent-review/worktree-status.txt new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/pins.sha256 b/evidence/ECOSYSTEM5/pins.sha256 new file mode 100644 index 0000000..33468ab --- /dev/null +++ b/evidence/ECOSYSTEM5/pins.sha256 @@ -0,0 +1,11 @@ +191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 /home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc +a5a2e74c815f9ca6a90dbdfbfc7ecc343f0362c824064f2058e9d1d7c119c40c /home/drakestapleton/handoffs/ecosystem303/data5/build/core.om +533638a9f128853d696644de2bbf7b1859797b170a7e32e54c112ab94c3dadb1 /home/drakestapleton/handoffs/ecosystem303/data5/build/admit.om +e14bbda75522b2e7abc6791440d0ce60c965f5caa3eed5191466059aa564c102 /home/drakestapleton/workspace/aien-train-ecosystem5/native/ecosystem5/pack.om +03c9f0d5c8914530a6b7abd2e9a5e6b38020ad5044f747e491910ee826495561 /home/drakestapleton/workspace/aien-train-ecosystem5/tests/ecosystem5/pack-test.om +1ef2b95da61bf62f37f8207ef2f6e1c49fc321d52413bf07f698c3088e74e193 /home/drakestapleton/workspace/aien-train-ecosystem5/tests/ecosystem5/mutate.om +3bfa8220df995ba48efb3354a854ee0d96d7447e557ada5a2d6178212681f256 /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test +d9885576324781600959f22f55e9c9ea1d5ff677ddca556818065da40868025c /home/drakestapleton/handoffs/ecosystem303/data5/build/mutate +1f75e5181c83c1fb085bf0e7e998f1fc909dd15345143f04bf37040af35a9f5d /home/drakestapleton/handoffs/ecosystem303/data5/build/mutant1 +70183c51a4e861a2abceb8d2427bc27180eedebef7b201515aea53ce3b91917e /home/drakestapleton/handoffs/ecosystem303/data5/build/mutant2 +90f592516359ed56860cd233de1b656a000625fd2d2121e20d77e9ddcfddf974 /home/drakestapleton/handoffs/ecosystem303/data5/build/mutant3 diff --git a/evidence/ECOSYSTEM5/raw.sha256 b/evidence/ECOSYSTEM5/raw.sha256 new file mode 100644 index 0000000..7a5205d --- /dev/null +++ b/evidence/ECOSYSTEM5/raw.sha256 @@ -0,0 +1,52 @@ +96a8656000731f3438928c80af065f6fd92915a7f26d2d21358252988fb90bf1 evidence/ECOSYSTEM5/raw/COMMANDS.md +5f17d2ac7b2d85a8acc9facbac31afd064e4be4ec22919d382c2533f70c2112c evidence/ECOSYSTEM5/raw/compile.log +6d5150e9043386d4b7afee68c4a3644ade030307b4cc5192c15b5b5807e2666e evidence/ECOSYSTEM5/raw/compile2.log +e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017 evidence/ECOSYSTEM5/raw/compile2.rc +e1f967614217c92731093e32da84766604e79b78c388eb5de078ff0c863dcb8d evidence/ECOSYSTEM5/raw/compile3-combined.om +568c03d6d55915a5dae3292448a08b19c4f847bfddc1bbed53d117672267e623 evidence/ECOSYSTEM5/raw/compile3.log +2e6d31a5983a91251bfae5aefa1c0a19d8ba3cf601d0e8a706b4cfa9661a6b8a evidence/ECOSYSTEM5/raw/compile3.rc +b730364b30e39845af2062c3faa4d3ee4eb0ee7a9169b1e1bb09de543f62d1d3 evidence/ECOSYSTEM5/raw/compile4-combined.om +1ce4009a2831fb81068c09b1553e4c24f2234b1d5b204873ddd7db834de2ded4 evidence/ECOSYSTEM5/raw/compile4.log +a1fb50e6c86fae1679ef3351296fd6713411a08cf8dd1790a4fd05fae8688164 evidence/ECOSYSTEM5/raw/compile4.rc +602b6fb09ca7caa20d8d5557b5566c277ee9ac0e2ba5f420f5570321249c6673 evidence/ECOSYSTEM5/raw/compile5-combined.om +eba7fd149d4b70a3db45c2e9e6da49b28b34107c54fd42905e5af3588ca7ffe2 evidence/ECOSYSTEM5/raw/compile5.log +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM5/raw/compile5.rc +d9cc5f4208b750ca4fe1e1aefcc9b4a1a0b6978fd306a0bedc742f7cf60a9f1f evidence/ECOSYSTEM5/raw/compile6-combined.om +91ade0e6e934916c5f88671b4f08d4111133ddb4d4ddf738e0e13e2f0abb2e10 evidence/ECOSYSTEM5/raw/compile6.log +2e6d31a5983a91251bfae5aefa1c0a19d8ba3cf601d0e8a706b4cfa9661a6b8a evidence/ECOSYSTEM5/raw/compile6.rc +7c3564fbda10ad7da934c5857de4499ad48d7e27512a75aab75eefb145ec4f2c evidence/ECOSYSTEM5/raw/compile7-combined.om +b28897a8092e939b1e25ea1c6270fe331c3c0474ef803216fef75886f463d162 evidence/ECOSYSTEM5/raw/compile7.log +a1fb50e6c86fae1679ef3351296fd6713411a08cf8dd1790a4fd05fae8688164 evidence/ECOSYSTEM5/raw/compile7.rc +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/compile8.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/compile8.rc +231e51c5f06c8d940f030e77fbb2f2870347fcf0791a207448a947c2145540ad evidence/ECOSYSTEM5/raw/cost-run.log +000dc3bda637137e5f924096504786bc2e64db8464a1abe4773743b9cbd286da evidence/ECOSYSTEM5/raw/cost.txt +5ae9dd26328ac70518f0d5854e5ad3ec05e8cb145ab3047a94b288044266f6f1 evidence/ECOSYSTEM5/raw/elf.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/final-compile.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/final-compile.rc +231e51c5f06c8d940f030e77fbb2f2870347fcf0791a207448a947c2145540ad evidence/ECOSYSTEM5/raw/final-run.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/final-run.rc +dfeeef2bbf589895ba5f95929ae8be1003ed65ff78a6fdd0118b306a998cd3c6 evidence/ECOSYSTEM5/raw/host.txt +496140f90fca942e5b27d96ffd81e74660e8427ca07e4f9e6b71d5d585e5d08d evidence/ECOSYSTEM5/raw/initial-combined.om +e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017 evidence/ECOSYSTEM5/raw/initial-compile.rc +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/mutant1-compile.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant1-compile.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant1-generation.rc +ce0f0e49d9c09ddbf016517a9e5fdb811bf99b117115d003f84327e4a4908091 evidence/ECOSYSTEM5/raw/mutant1-run.log +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM5/raw/mutant1-run.rc +a3e37d3dd0f1e1c3aa61da6c8262ff2b10c57cbd58a06f8e5134e688bf6b4bc0 evidence/ECOSYSTEM5/raw/mutant1.om +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/mutant2-compile.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant2-compile.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant2-generation.rc +84fbc3ffc97e4cf925f2e7e30ec6b128f1bb7fc51ba81419e12a1be1ad506f9d evidence/ECOSYSTEM5/raw/mutant2-run.log +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM5/raw/mutant2-run.rc +29c5649e9cdd7680c9d8209dc0bcbb44fecd1271fd6a4bb388c559f3a28b76c8 evidence/ECOSYSTEM5/raw/mutant2.om +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/mutant3-compile.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant3-compile.rc +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutant3-generation.rc +dc847edd7cac5fa1d124a2d94d3a3ebab73dc1e8e9a1544b6664dcbf2a96b650 evidence/ECOSYSTEM5/raw/mutant3-run.log +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM5/raw/mutant3-run.rc +b8face6bea050ab4df418698324a457c6f57626fa7cfc36d56f8c8fd44c2d97e evidence/ECOSYSTEM5/raw/mutant3.om +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM5/raw/mutator-compile.log +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM5/raw/mutator-compile.rc +724a0752c2b6e876e7922098d096131bde23b94822789961aae12b707b561ff8 evidence/ECOSYSTEM5/raw/readelf.txt diff --git a/evidence/ECOSYSTEM5/raw/COMMANDS.md b/evidence/ECOSYSTEM5/raw/COMMANDS.md new file mode 100644 index 0000000..f5857ea --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/COMMANDS.md @@ -0,0 +1,45 @@ +# Executed host commands + +Host-only developer commands, recorded2026-10-23. Generated ELF files stayed in +the handoff build directory. No executable binaries or shell scripts delivered. +Exit codes and stdout/stderr files are adjacent. These commands are not native +dataset or model execution claims. + +```sh +git -C /home/drakestapleton/workspace/omega-learning652-lead-L775 show 84d03c5523f39ca1045d1c313c5f62597779462b:src/learning/benchmark/core.om > /home/drakestapleton/handoffs/ecosystem303/data5/build/core.om +git -C /home/drakestapleton/workspace/omega-learning652-corpus-L776 show d8d14c47647e49774f64b58e3c138335656f175d:src/learning/curriculum/admit.om > /home/drakestapleton/handoffs/ecosystem303/data5/build/admit.om +cat /home/drakestapleton/handoffs/ecosystem303/data5/build/core.om /home/drakestapleton/handoffs/ecosystem303/data5/build/admit.om /home/drakestapleton/workspace/aien-train-ecosystem5/native/ecosystem5/pack.om /home/drakestapleton/workspace/aien-train-ecosystem5/tests/ecosystem5/pack-test.om > /home/drakestapleton/handoffs/ecosystem303/data5/build/combined.om +/home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc < /home/drakestapleton/handoffs/ecosystem303/data5/build/combined.om > /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test 2> /home/drakestapleton/workspace/aien-train-ecosystem5/evidence/ECOSYSTEM5/raw/final-compile.log +chmod +x /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test +/home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test > /home/drakestapleton/workspace/aien-train-ecosystem5/evidence/ECOSYSTEM5/raw/final-run.log +/home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc < /home/drakestapleton/workspace/aien-train-ecosystem5/tests/ecosystem5/mutate.om > /home/drakestapleton/handoffs/ecosystem303/data5/build/mutate 2> /home/drakestapleton/workspace/aien-train-ecosystem5/evidence/ECOSYSTEM5/raw/mutator-compile.log +chmod +x /home/drakestapleton/handoffs/ecosystem303/data5/build/mutate +``` + +Mutants used a direct shell loop for taskmode1,2,3. Each input was the ASCII +mode byte emitted by printf followed immediately by exact pack.om emitted by +cat. This input was piped to the native mutate executable. Each emitted +`raw/mutantN.om` replaced pack.om in the same four-file composition. The pinned +compiler produced build/mutantN; chmod and execution occurred only after its +compile exit0. Results are mutantN-generation.rc, mutantN-compile.rc and +mutantN-run.rc, with distinct compile/run logs. All three tuples are0/0/1. + +The first rejected invocation was exactly: + +```sh +/home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc /home/drakestapleton/handoffs/ecosystem303/data5/build/combined.om /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test +``` + +It returned16 because the compiler consumes stdin, not filename arguments. +The following compile attempts2..8 used the corrected stdin/stdout form with +the source snapshots named in the receipt. Compile2 used initial-combined.om; +compile3..7 each have their exact combined snapshot. Compile8 used the final +product module and the earlier274903-check test source; its compiler stderr +and exit are retained. Final source088258d includes the expanded test suite. + +```sh +uname -srmo +file /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test +readelf -l -d /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test +/usr/bin/time -f 'elapsed_seconds=%e maxrss_kib=%M exit=%x' -o /home/drakestapleton/workspace/aien-train-ecosystem5/evidence/ECOSYSTEM5/raw/cost.txt /home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test > /home/drakestapleton/workspace/aien-train-ecosystem5/evidence/ECOSYSTEM5/raw/cost-run.log +``` diff --git a/evidence/ECOSYSTEM5/raw/compile.log b/evidence/ECOSYSTEM5/raw/compile.log new file mode 100644 index 0000000..dfc6810 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile.log @@ -0,0 +1 @@ +omc: line 1: error 16 diff --git a/evidence/ECOSYSTEM5/raw/compile2.log b/evidence/ECOSYSTEM5/raw/compile2.log new file mode 100644 index 0000000..7723e7f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile2.log @@ -0,0 +1 @@ +omc: line 607: error 16 diff --git a/evidence/ECOSYSTEM5/raw/compile2.rc b/evidence/ECOSYSTEM5/raw/compile2.rc new file mode 100644 index 0000000..b6a7d89 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile2.rc @@ -0,0 +1 @@ +16 diff --git a/evidence/ECOSYSTEM5/raw/compile3-combined.om b/evidence/ECOSYSTEM5/raw/compile3-combined.om new file mode 100644 index 0000000..5f7b2a9 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile3-combined.om @@ -0,0 +1,1035 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = bool false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +t = get CGood i +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +n = ulong 0 +while true +put Dec n uchar add 48 mod x 10 +n = add n 1 +x = div x 10 +if eq x 0 +break +end +end +while gt n 0 +n = sub n 1 +w = write 1 ptr Dec n 1 +end +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 ptr Fail 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i mod add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck ulong dpattend 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck ulong dpattend q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck ulong dpattend q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck ulong dpattend 255 0 1 +ck ulong dpattend 256 0 0 +ck ulong dpattend 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck ulong dpattend 0 0 0 +w = write 1 ptr Pass 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/compile3.log b/evidence/ECOSYSTEM5/raw/compile3.log new file mode 100644 index 0000000..c355268 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile3.log @@ -0,0 +1 @@ +omc: line 680: error 9 diff --git a/evidence/ECOSYSTEM5/raw/compile3.rc b/evidence/ECOSYSTEM5/raw/compile3.rc new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile3.rc @@ -0,0 +1 @@ +9 diff --git a/evidence/ECOSYSTEM5/raw/compile4-combined.om b/evidence/ECOSYSTEM5/raw/compile4-combined.om new file mode 100644 index 0000000..d9524f9 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile4-combined.om @@ -0,0 +1,1035 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +t = get CGood i +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +n = ulong 0 +while true +put Dec n uchar add 48 mod x 10 +n = add n 1 +x = div x 10 +if eq x 0 +break +end +end +while gt n 0 +n = sub n 1 +w = write 1 ptr Dec n 1 +end +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 ptr Fail 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i mod add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck ulong dpattend 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck ulong dpattend q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck ulong dpattend q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck ulong dpattend 255 0 1 +ck ulong dpattend 256 0 0 +ck ulong dpattend 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck ulong dpattend 0 0 0 +w = write 1 ptr Pass 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/compile4.log b/evidence/ECOSYSTEM5/raw/compile4.log new file mode 100644 index 0000000..904e144 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile4.log @@ -0,0 +1 @@ +omc: line 715: error 12 diff --git a/evidence/ECOSYSTEM5/raw/compile4.rc b/evidence/ECOSYSTEM5/raw/compile4.rc new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile4.rc @@ -0,0 +1 @@ +12 diff --git a/evidence/ECOSYSTEM5/raw/compile5-combined.om b/evidence/ECOSYSTEM5/raw/compile5-combined.om new file mode 100644 index 0000000..0ca07b3 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile5-combined.om @@ -0,0 +1,1039 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +n = ulong 0 +while true +put Dec n uchar add 48 mod x 10 +n = add n 1 +x = div x 10 +if eq x 0 +break +end +end +while gt n 0 +n = sub n 1 +w = write 1 ptr Dec n 1 +end +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 ptr Fail 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i mod add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck ulong dpattend 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck ulong dpattend q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck ulong dpattend q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck ulong dpattend 255 0 1 +ck ulong dpattend 256 0 0 +ck ulong dpattend 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck ulong dpattend 0 0 0 +w = write 1 ptr Pass 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/compile5.log b/evidence/ECOSYSTEM5/raw/compile5.log new file mode 100644 index 0000000..57da0e6 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile5.log @@ -0,0 +1 @@ +omc: line 762: error 3 diff --git a/evidence/ECOSYSTEM5/raw/compile5.rc b/evidence/ECOSYSTEM5/raw/compile5.rc new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile5.rc @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM5/raw/compile6-combined.om b/evidence/ECOSYSTEM5/raw/compile6-combined.om new file mode 100644 index 0000000..5a16f4c --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile6-combined.om @@ -0,0 +1,1038 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck ulong dpattend 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck ulong dpattend q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck ulong dpattend q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck ulong dpattend 255 0 1 +ck ulong dpattend 256 0 0 +ck ulong dpattend 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck ulong dpattend 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/compile6.log b/evidence/ECOSYSTEM5/raw/compile6.log new file mode 100644 index 0000000..b6211dd --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile6.log @@ -0,0 +1 @@ +omc: line 882: error 9 diff --git a/evidence/ECOSYSTEM5/raw/compile6.rc b/evidence/ECOSYSTEM5/raw/compile6.rc new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile6.rc @@ -0,0 +1 @@ +9 diff --git a/evidence/ECOSYSTEM5/raw/compile7-combined.om b/evidence/ECOSYSTEM5/raw/compile7-combined.om new file mode 100644 index 0000000..2ca6426 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile7-combined.om @@ -0,0 +1,1045 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck attention q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/compile7.log b/evidence/ECOSYSTEM5/raw/compile7.log new file mode 100644 index 0000000..ea3297b --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile7.log @@ -0,0 +1 @@ +omc: line 917: error 12 diff --git a/evidence/ECOSYSTEM5/raw/compile7.rc b/evidence/ECOSYSTEM5/raw/compile7.rc new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile7.rc @@ -0,0 +1 @@ +12 diff --git a/evidence/ECOSYSTEM5/raw/compile8.log b/evidence/ECOSYSTEM5/raw/compile8.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/compile8.rc b/evidence/ECOSYSTEM5/raw/compile8.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/compile8.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/cost-run.log b/evidence/ECOSYSTEM5/raw/cost-run.log new file mode 100644 index 0000000..c932252 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/cost-run.log @@ -0,0 +1 @@ +PACK5_PASS 282622 diff --git a/evidence/ECOSYSTEM5/raw/cost.txt b/evidence/ECOSYSTEM5/raw/cost.txt new file mode 100644 index 0000000..e5a318f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/cost.txt @@ -0,0 +1 @@ +elapsed_seconds=0.00 maxrss_kib=192 exit=0 diff --git a/evidence/ECOSYSTEM5/raw/elf.txt b/evidence/ECOSYSTEM5/raw/elf.txt new file mode 100644 index 0000000..d54028a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/elf.txt @@ -0,0 +1 @@ +/home/drakestapleton/handoffs/ecosystem303/data5/build/pack-test: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, no section header diff --git a/evidence/ECOSYSTEM5/raw/final-compile.log b/evidence/ECOSYSTEM5/raw/final-compile.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/final-compile.rc b/evidence/ECOSYSTEM5/raw/final-compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/final-compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/final-run.log b/evidence/ECOSYSTEM5/raw/final-run.log new file mode 100644 index 0000000..c932252 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/final-run.log @@ -0,0 +1 @@ +PACK5_PASS 282622 diff --git a/evidence/ECOSYSTEM5/raw/final-run.rc b/evidence/ECOSYSTEM5/raw/final-run.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/final-run.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/host.txt b/evidence/ECOSYSTEM5/raw/host.txt new file mode 100644 index 0000000..893fc5e --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/host.txt @@ -0,0 +1 @@ +Linux 7.0.0-1019-nvidia aarch64 GNU/Linux diff --git a/evidence/ECOSYSTEM5/raw/initial-combined.om b/evidence/ECOSYSTEM5/raw/initial-combined.om new file mode 100644 index 0000000..e9c1dfc --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/initial-combined.om @@ -0,0 +1,1035 @@ +note LEARN653 v1 consumer checks. No compiler, judge, signer or process supervisor. +note Task slots are 32 ulongs; see docs/learning/benchmark-v1.md. +global LT ulong 2048 +global LS ulong 24 +global LSeen ulong 64 +global LWon ulong 64 +global LPin ulong 16 +global LWant uchar 256 +global LGot uchar 256 + +fn lequal a ulong b ulong n ulong to bool +for k ulong n +if ne get LT add a k get LT add b k +ret false +end +end +ret true +end + +fn lnonzero a ulong to bool +x = ulong 0 +for k ulong 4 +x = or x get LT add a k +end +ret ne x 0 +end + +fn lrecord a ulong to ulong +split = get LT add a 1 +if or eq get LT a 0 or lt split 1 gt split 4 +ret 2 +end +if or ne get LT add a 5 1 ne get LT add a 4 1 +ret 3 +end +if eq get LT add a 3 0 +ret 4 +end +if eq get LT add a 6 0 +ret 4 +end +if eq get LT add a 7 0 +ret 4 +end +note Only public train/dev records are admissible to this builder-side API. +note Adaptive/final custody stays with the existing independent owner. +if or gt split 2 ne get LT add a 2 1 +ret 5 +end +for h ulong 5 +if eq lnonzero add a add 8 mul h 4 false +ret 6 +end +end +if or eq get LT add a 28 0 gt get LT add a 28 256 +ret 7 +end +if or eq get LT add a 29 0 gt get LT add a 29 256 +ret 7 +end +if or eq get LT add a 30 0 gt get LT add a 30 1000000 +ret 7 +end +if ne get LT add a 31 0 +ret 7 +end +ret 0 +end + +fn lpair a ulong b ulong to ulong +if eq get LT a get LT b +ret 8 +end +if lequal add a 8 add b 8 4 +ret 9 +end +if lequal add a 12 add b 12 4 +ret 10 +end +if ne get LT add a 1 get LT add b 1 +if eq get LT add a 3 get LT add b 3 +ret 15 +end +if eq get LT add a 7 get LT add b 7 +ret 11 +end +if lequal add a 16 add b 16 4 +ret 12 +end +if lequal add a 20 add b 20 4 +ret 13 +end +if lequal add a 24 add b 24 4 +ret 14 +end +end +ret 0 +end + +fn lmanifest n ulong to ulong +if or eq n 0 gt n 64 +ret 1 +end +for i ulong n +a = mul i 32 +code = lrecord a +if ne code 0 +ret code +end +for j ulong i +b = mul j 32 +code = lpair a b +if ne code 0 +ret code +end +end +end +ret 0 +end + +note Caller supplies independent expected bytes and actual executor observations. +note Status 0=completed, 1=syntax,2=type,3=unsupported,4=timeout,5=resource,6=operational. +note Result 0=correct,1..6 as above,7=wrong value,8=trap mismatch,9=empty output,10=malformed. +fn lobserve status ulong wantcode ulong gotcode ulong wantn ulong gotn ulong to ulong +if gt status 6 +ret 10 +end +if ne status 0 +ret status +end +if or gt wantn 256 gt gotn 256 +ret 10 +end +if ne wantcode gotcode +ret 8 +end +if ne wantcode 0 +note Only declared runtime traps 101..107; arbitrary exit failures never pass. +if or lt wantcode 101 or gt wantcode 107 ne wantn 0 +ret 10 +end +if ne gotn 0 +ret 8 +end +ret 0 +end +if eq wantn 0 +ret 10 +end +if eq gotn 0 +ret 9 +end +if ne wantn gotn +ret 7 +end +for i ulong wantn +if ne get LWant i get LGot i +ret 7 +end +end +ret 0 +end + +note Full 256-bit compiler and executable identities, expected then observed. +note LPin[0..3] expected compiler, [4..7] observed, [8..11] expected ELF, [12..15] observed. +fn lpins to bool +ca = ulong 0 +ba = ulong 0 +for i ulong 4 +ca = or ca get LPin i +ba = or ba get LPin add i 8 +if ne get LPin i get LPin add i 4 +ret false +end +if ne get LPin add i 8 get LPin add i 12 +ret false +end +end +ret and ne ca 0 ne ba 0 +end + +note Each begin is one explicit fresh development run; no durable resume API exists. +note LS: active,tasks,maxattempts,attempts,pass1,passbudget,invalid,closed, +note generation_us,compile_us,judge_us,other_us,input_tokens,output_tokens,peak_bytes, +note energy_uj,energy_unknown,budget_us,completed,abstained,reserved... +fn lbegin n ulong maxtries ulong budget ulong to ulong +if eq get LS 0 1 +ret 20 +end +for i ulong 24 +put LS i 0 +end +for i ulong 64 +put LSeen i 0 +put LWon i 0 +end +code = lmanifest n +if ne code 0 +put LS 6 code +ret code +end +if or eq maxtries 0 or gt maxtries 64 or eq budget 0 gt budget 1000000000000 +put LS 6 21 +ret 21 +end +put LS 0 1 +put LS 1 n +put LS 2 maxtries +put LS 17 budget +ret 0 +end + +note Charge before classifying. Costs are exact integer caller measurements, never estimates. +note Missing cost values use all-ones and invalidate the run, never become free. +fn lcost slot ulong value ulong to ulong +if or lt slot 8 gt slot 15 +put LS 6 22 +ret 22 +end +if gt value 1000000000000 +put LS 6 23 +ret 23 +end +if eq slot 14 +if gt value get LS slot +put LS slot value +end +else +if gt get LS slot sub ulong 1000000000000 value +put LS 6 23 +ret 23 +end +put LS slot add get LS slot value +end +ret 0 +end + +note Attempt outcomes come from lobserve or explicit abstention 11, never compiler acceptance. +note Mandatory cost vector is supplied per attempt in LC; energy unknown is explicit. +global LC ulong 9 + +fn lattempt task ulong ordinal ulong outcome ulong to ulong +if ne get LS 0 1 +ret 24 +end +for k ulong 8 +r = lcost add k 8 get LC k +end +if eq get LC 8 0 +put LS 16 add get LS 16 1 +if ne get LC 7 0 +put LS 6 25 +end +else +if ne get LC 8 1 +put LS 6 25 +end +end +put LS 3 add get LS 3 1 +note At most 64 attempts across a public development run, including failed attempts. +if gt get LS 3 64 +put LS 6 31 +ret 31 +end +if eq lpins false +put LS 6 26 +end +note Invalid costs or identities can never add successful tasks. +if ne get LS 6 0 +ret get LS 6 +end +if or ge task get LS 1 gt outcome 11 +put LS 6 27 +ret 27 +end +if or ne ordinal add get LSeen task 1 gt ordinal get LS 2 +put LS 6 28 +ret 28 +end +put LSeen task ordinal +if eq outcome 0 +if eq ordinal 1 +put LS 4 add get LS 4 1 +end +if eq get LWon task 0 +put LWon task 1 +put LS 5 add get LS 5 1 +end +end +if eq outcome 11 +put LS 19 add get LS 19 1 +end +elapsed = add get LS 8 get LS 9 +elapsed = add elapsed get LS 10 +elapsed = add elapsed get LS 11 +if gt elapsed get LS 17 +put LS 6 29 +end +ret get LS 6 +end + +fn lfinish to ulong +if ne get LS 0 1 +ret 24 +end +put LS 0 0 +for i ulong get LS 1 +if eq get LSeen i 0 +if eq get LS 6 0 +put LS 6 30 +end +end +end +if ne get LS 6 0 +ret get LS 6 +end +put LS 18 1 +ret 0 +end + +note GEN-1 genjac rule reused: lowercase ASCII word-triple SET Jaccard strictly above 1/2. +note Input contains two public prompts only; never load final or sealed text here. +global LText uchar 512 +global LStart ulong 128 +global LLength ulong 128 +global LCount ulong 2 + +fn llower c uchar to uchar +if and ge c 65 le c 90 +ret add c 32 +end +ret c +end + +fn lword c uchar to bool +d = llower c +ret or and ge d 97 le d 122 and ge d 48 le d 57 +end + +fn ltokens side ulong size ulong to bool +if or gt side 1 gt size 256 +ret false +end +base = mul side 256 +slots = mul side 64 +count = ulong 0 +pos = ulong 0 +while lt pos size +if gt get LText add base pos 127 +ret false +end +if lword get LText add base pos +start = pos +scanning = true +while and lt pos size scanning +if lword get LText add base pos +pos = add pos 1 +else +scanning = false +end +end +if ge count 64 +ret false +end +put LStart add slots count add base start +put LLength add slots count sub pos start +count = add count 1 +else +pos = add pos 1 +end +end +put LCount side count +ret true +end + +fn lwordeq a ulong b ulong to bool +n = get LLength a +if ne n get LLength b +ret false +end +for k ulong n +if ne llower get LText add get LStart a k llower get LText add get LStart b k +ret false +end +end +ret true +end + +fn ltriple a ulong b ulong to bool +for k ulong 3 +if eq lwordeq add a k add b k false +ret false +end +end +ret true +end + +fn lunique at ulong base ulong to bool +j = base +while lt j at +if ltriple at j +ret false +end +j = add j 1 +end +ret true +end + +note 0=no near match,1=above threshold,2=insufficient words,3=unsupported input. +fn lnear an ulong bn ulong to ulong +if eq ltokens 0 an false +ret 3 +end +if eq ltokens 1 bn false +ret 3 +end +a = get LCount 0 +b = get LCount 1 +if or lt a 3 lt b 3 +ret 2 +end +ua = ulong 0 +ub = ulong 0 +overlap = ulong 0 +for i ulong sub a 2 +if lunique i 0 +ua = add ua 1 +hit = false +for j ulong sub b 2 +if ltriple i add 64 j +hit = true +end +end +if hit +overlap = add overlap 1 +end +end +end +for j ulong sub b 2 +if lunique add 64 j 64 +ub = add ub 1 +end +end +if gt mul overlap 3 add ua ub +ret 1 +end +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note L776 public record-admission preparation, consuming frozen L775 core84d03c55. +note Caller supplies independently measured metadata and observation bytes. +note This component does not authenticate receipts, execute candidates or persist state. +note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved. +global CMeta ulong 16 +global CSeen ulong 64 +global CDiag ulong 64 +global CGood ulong 64 +global CBad ulong 64 +global CFreeze ulong 2048 +note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero. +global CState ulong 3 + +fn cbegin n ulong budget ulong to ulong +put CState 2 0 +r = lbegin n 1 budget +if ne r 0 +ret r +end +for i ulong mul n 32 +put CFreeze i get LT i +end +for i ulong 64 +put CSeen i 0 +put CDiag i 99 +put CGood i 0 +put CBad i 0 +end +for i ulong 3 +put CState i 0 +end +ret 0 +end + +fn cmeta task ulong to ulong +base = mul task 32 +for k ulong 32 +if ne get LT add base k get CFreeze add base k +ret 47 +end +end +if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4 +ret 40 +end +note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture. +if ne get CMeta 2 1 +ret 41 +end +if ne get CMeta 3 1 +ret 42 +end +if ne get CMeta 4 get LT add base 6 +ret 43 +end +if ne get CMeta 5 get LT add base 7 +ret 43 +end +if eq get CMeta 4 get CMeta 5 +ret 43 +end +note Only bounded tested evidence1; no formal-proof label admitted here. +if ne get CMeta 6 1 +ret 44 +end +note Narrow supported packet: three independent fixed u64 observations,24bytes. +if or ne get CMeta 7 3 lt get LT add base 29 24 +ret 45 +end +for k ulong 4 +if ne get CMeta add k 8 get LT add base add k 12 +ret 46 +end +if ne get CMeta add k 12 0 +ret 40 +end +end +ret 0 +end + +fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong +if ne get LS 0 1 +ret 24 +end +if ge task get LS 1 +ret lattempt task 1 10 +end +if ne get CSeen task 0 +note Charge the attempted duplicate; preserve its first stored record. +ret lattempt task 2 10 +end +why = cmeta task +outcome = ulong 10 +if eq why 0 +outcome = lobserve status 0 gotcode 24 gotn +why = outcome +end +code = lattempt task 1 outcome +put CSeen task 1 +if ne code 0 +why = code +end +put CDiag task why +if eq why 0 +put CGood get CState 0 task +put CState 0 add get CState 0 1 +else +put CBad get CState 1 task +put CState 1 add get CState 1 1 +end +ret why +end + +fn cfinish to ulong +code = lfinish +if ne code 0 +ret code +end +put CState 2 1 +ret 0 +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +len = get DPLen task +prompt = get DPPrompt task +if or eq len 0 gt len 256 +ret 74 +end +if gt prompt len +ret 74 +end +for j ulong len +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +len = get DPLen t +if gt len sub 256 total +ret 76 +end +total = add total len +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = bool false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +t = get CGood i +len = get DPLen t +for j ulong len +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next len +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +n = ulong 0 +while true +put Dec n uchar add 48 mod x 10 +n = add n 1 +x = div x 10 +if eq x 0 +break +end +end +while gt n 0 +n = sub n 1 +w = write 1 ptr Dec n 1 +end +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 ptr Fail 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i mod add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck ulong dpattend 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +owner = ulong 0 +pos = q +plen = pa +stop = a +if ge q a +owner = 1 +pos = sub q a +plen = pb +stop = add a b +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +for k ulong add a b +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q a +if lt k a +want = 1 +end +else +if ge k a +want = 1 +end +end +end +ck ulong dpattend q k want +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck ulong dpattend q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck ulong dpattend 255 0 1 +ck ulong dpattend 256 0 0 +ck ulong dpattend 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck ulong dpattend 0 0 0 +w = write 1 ptr Pass 0 11 +number get Checks 0 +w = write 1 ptr NL 0 1 +ret 0 +end diff --git a/evidence/ECOSYSTEM5/raw/initial-compile.rc b/evidence/ECOSYSTEM5/raw/initial-compile.rc new file mode 100644 index 0000000..b6a7d89 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/initial-compile.rc @@ -0,0 +1 @@ +16 diff --git a/evidence/ECOSYSTEM5/raw/mutant1-compile.log b/evidence/ECOSYSTEM5/raw/mutant1-compile.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/mutant1-compile.rc b/evidence/ECOSYSTEM5/raw/mutant1-compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant1-compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant1-generation.rc b/evidence/ECOSYSTEM5/raw/mutant1-generation.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant1-generation.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant1-run.log b/evidence/ECOSYSTEM5/raw/mutant1-run.log new file mode 100644 index 0000000..05fae57 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant1-run.log @@ -0,0 +1 @@ +PACK5_FAIL 5163 diff --git a/evidence/ECOSYSTEM5/raw/mutant1-run.rc b/evidence/ECOSYSTEM5/raw/mutant1-run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant1-run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/raw/mutant1.om b/evidence/ECOSYSTEM5/raw/mutant1.om new file mode 100644 index 0000000..fd868f9 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant1.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if le next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/raw/mutant2-compile.log b/evidence/ECOSYSTEM5/raw/mutant2-compile.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/mutant2-compile.rc b/evidence/ECOSYSTEM5/raw/mutant2-compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant2-compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant2-generation.rc b/evidence/ECOSYSTEM5/raw/mutant2-generation.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant2-generation.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant2-run.log b/evidence/ECOSYSTEM5/raw/mutant2-run.log new file mode 100644 index 0000000..e44fb5f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant2-run.log @@ -0,0 +1 @@ +PACK5_FAIL 19 diff --git a/evidence/ECOSYSTEM5/raw/mutant2-run.rc b/evidence/ECOSYSTEM5/raw/mutant2-run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant2-run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/raw/mutant2.om b/evidence/ECOSYSTEM5/raw/mutant2.om new file mode 100644 index 0000000..af15d68 --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant2.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask q +end diff --git a/evidence/ECOSYSTEM5/raw/mutant3-compile.log b/evidence/ECOSYSTEM5/raw/mutant3-compile.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/mutant3-compile.rc b/evidence/ECOSYSTEM5/raw/mutant3-compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant3-compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant3-generation.rc b/evidence/ECOSYSTEM5/raw/mutant3-generation.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant3-generation.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/mutant3-run.log b/evidence/ECOSYSTEM5/raw/mutant3-run.log new file mode 100644 index 0000000..923a9bf --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant3-run.log @@ -0,0 +1 @@ +PACK5_FAIL 263254 diff --git a/evidence/ECOSYSTEM5/raw/mutant3-run.rc b/evidence/ECOSYSTEM5/raw/mutant3-run.rc new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant3-run.rc @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM5/raw/mutant3.om b/evidence/ECOSYSTEM5/raw/mutant3.om new file mode 100644 index 0000000..3e9e5cc --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutant3.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 0 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/evidence/ECOSYSTEM5/raw/mutator-compile.log b/evidence/ECOSYSTEM5/raw/mutator-compile.log new file mode 100644 index 0000000..e69de29 diff --git a/evidence/ECOSYSTEM5/raw/mutator-compile.rc b/evidence/ECOSYSTEM5/raw/mutator-compile.rc new file mode 100644 index 0000000..573541a --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/mutator-compile.rc @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM5/raw/readelf.txt b/evidence/ECOSYSTEM5/raw/readelf.txt new file mode 100644 index 0000000..d6985dc --- /dev/null +++ b/evidence/ECOSYSTEM5/raw/readelf.txt @@ -0,0 +1,14 @@ + +Elf file type is EXEC (Executable file) +Entry point 0x4000b0 +There are 2 program headers, starting at offset 64 + +Program Headers: + Type Offset VirtAddr PhysAddr + FileSiz MemSiz Flags Align + LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 + 0x0000000000005cd0 0x0000000000005cd0 R E 0x1000 + LOAD 0x0000000000000000 0x0000000010000000 0x0000000010000000 + 0x0000000000000000 0x000000000082ef50 RW 0x1000 + +There is no dynamic section in this file. diff --git a/native/ecosystem5/pack.om b/native/ecosystem5/pack.om new file mode 100644 index 0000000..0dfe023 --- /dev/null +++ b/native/ecosystem5/pack.om @@ -0,0 +1,180 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note PACK5 v1 consumes L775 core84d03c55 and L776 admitd8d14c47 unchanged. +note Trusted single-thread caller supplies tokenization; no authentication or tokenizer. +note DPCfg schema,vocabulary size,split,padding token. DPPin expected+observed tokenizer then template SHA256 words. +global DPCfg ulong 4 +global DPPin ulong 16 +global DPLen ulong 64 +global DPPrompt ulong 64 +global DPToken ulong 16384 +global DPOut ulong 256 +global DPLabel ulong 256 +global DPMask ulong 256 +global DPTask ulong 256 +global DPPos ulong 256 +note DPState ready,count,records. A failed call invalidates readiness and count; payload stays unchanged. +global DPState ulong 3 + +fn dppins to bool +a = ulong 0 +b = ulong 0 +for i ulong 4 +a = or a get DPPin i +b = or b get DPPin add i 8 +if ne get DPPin i get DPPin add i 4 +ret false +end +if ne get DPPin add i 8 get DPPin add i 12 +ret false +end +end +ret and ne a 0 ne b 0 +end + +fn dpinput task ulong to ulong +if ne get CFreeze add mul task 32 1 get DPCfg 2 +ret 77 +end +count = get DPLen task +prompt = get DPPrompt task +if or eq count 0 gt count 256 +ret 74 +end +if gt prompt count +ret 74 +end +for j ulong count +if ge get DPToken add mul task 256 j get DPCfg 1 +ret 75 +end +end +ret 0 +end + +fn dpvalidate to ulong +if or ne get CState 2 1 ne get LS 18 1 +ret 70 +end +if or ne get LS 0 0 ne get LS 6 0 +ret 70 +end +n = get LS 1 +good = get CState 0 +bad = get CState 1 +if or eq n 0 gt n 64 +ret 73 +end +if or gt good n gt bad n +ret 73 +end +if ne add good bad n +ret 73 +end +if or ne get DPCfg 0 1 eq get DPCfg 1 0 +ret 71 +end +if or gt get DPCfg 1 4294967296 ge get DPCfg 3 get DPCfg 1 +ret 71 +end +if or lt get DPCfg 2 1 gt get DPCfg 2 2 +ret 71 +end +if eq dppins false +ret 72 +end +total = ulong 0 +for i ulong good +t = get CGood i +if ge t n +ret 73 +end +if or ne get CSeen t 1 ne get CDiag t 0 +ret 73 +end +for j ulong i +if eq t get CGood j +ret 73 +end +end +r = dpinput t +if ne r 0 +ret r +end +count = get DPLen t +if gt count sub 256 total +ret 76 +end +total = add total count +end +note No tokens or prompt markers may be supplied for quarantined or absent slots. +for t ulong 64 +found = false +for i ulong good +if eq t get CGood i +found = true +end +end +if eq found false +if or ne get DPLen t 0 ne get DPPrompt t 0 +ret 73 +end +end +end +ret 0 +end + +fn dpcopy t ulong p ulong to ulong +count = get DPLen t +for j ulong count +put DPOut p get DPToken add mul t 256 j +put DPTask p t +put DPPos p j +next = add j 1 +if lt next count +put DPLabel p get DPToken add mul t 256 next +if ge next get DPPrompt t +put DPMask p 1 +end +end +p = add p 1 +end +ret p +end + +fn dppack to ulong +for i ulong 3 +put DPState i 0 +end +r = dpvalidate +if ne r 0 +ret r +end +for i ulong 256 +put DPOut i get DPCfg 3 +put DPLabel i get DPCfg 3 +put DPMask i 0 +put DPTask i 18446744073709551615 +put DPPos i 0 +end +p = ulong 0 +for i ulong get CState 0 +p = dpcopy get CGood i p +end +put DPState 1 p +put DPState 2 get CState 0 +put DPState 0 1 +ret 0 +end + +fn dpattend q ulong k ulong to bool +if ne get DPState 0 1 +ret false +end +if or ge q get DPState 1 ge k get DPState 1 +ret false +end +if gt k q +ret false +end +ret eq get DPTask q get DPTask k +end diff --git a/tests/ecosystem5/mutate.om b/tests/ecosystem5/mutate.om new file mode 100644 index 0000000..be6f8b7 --- /dev/null +++ b/tests/ecosystem5/mutate.om @@ -0,0 +1,103 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note Test-only defect injection. ASCII1/2/3 then exact pack.om; exactly one equal-size replacement. +global Buf uchar 32768 +global Mode uchar 1 +text p1 "if ge next get DPPrompt t\n" +text q1 "if le next get DPPrompt t\n" +text p2 "ret eq get DPTask q get DPTask k\n" +text q2 "ret eq get DPTask q get DPTask q\n" +text p3 "ret 77\n" +text q3 "ret 0 \n" + +fn plen mode uchar to ulong +if eq mode 49 +ret len p1 +end +if eq mode 50 +ret len p2 +end +ret len p3 +end + +fn pbyte mode uchar i ulong to uchar +if eq mode 49 +ret get p1 i +end +if eq mode 50 +ret get p2 i +end +ret get p3 i +end + +fn qbyte mode uchar i ulong to uchar +if eq mode 49 +ret get q1 i +end +if eq mode 50 +ret get q2 i +end +ret get q3 i +end + +fn matches mode uchar start ulong size ulong to bool +for j ulong size +if ne get Buf add start j pbyte mode j +ret false +end +end +ret true +end + +fn main to int +r = read 0 Mode 0 1 +if ne r 1 +ret 1 +end +m = get Mode 0 +if or lt m 49 gt m 51 +ret 1 +end +n = ulong 0 +reading = true +while reading +if eq n 32768 +ret 2 +end +r = read 0 Buf n sub 32768 n +if lt r 0 +ret 2 +end +if eq r 0 +reading = false +else +n = add n ulong r +end +end +size = plen m +if lt n size +ret 3 +end +hits = ulong 0 +where = ulong 0 +for i ulong add sub n size 1 +if matches m i size +hits = add hits 1 +where = i +end +end +if ne hits 1 +ret 3 +end +for j ulong size +put Buf add where j qbyte m j +end +o = ulong 0 +while lt o n +w = write 1 Buf o sub n o +if le w 0 +ret 4 +end +o = add o ulong w +end +ret 0 +end diff --git a/tests/ecosystem5/pack-test.om b/tests/ecosystem5/pack-test.om new file mode 100644 index 0000000..b8078af --- /dev/null +++ b/tests/ecosystem5/pack-test.om @@ -0,0 +1,356 @@ +note SPDX-License-Identifier: AGPL-3.0-or-later +note Public synthetic admission records; independent token/position oracle uses absolute packed coordinates. +global Checks ulong 1 +global Dec uchar 32 +global Snapshot ulong 1280 +global ORange ulong 4 +text Pass "PACK5_PASS " +text Fail "PACK5_FAIL " +text NL "\n" + +fn number x ulong to void +if eq x 0 +put Dec 0 48 +w = write 1 Dec 0 1 +ret +end +n = ulong 20 +while gt x 0 bound 20 +n = sub n 1 +put Dec n uchar add 48 rem x 10 +x = div x 10 +end +w = write 1 Dec n sub 20 n +end + +fn ck got ulong want ulong to void +put Checks 0 add get Checks 0 1 +if ne got want +w = write 1 Fail 0 11 +number get Checks 0 +w = write 1 NL 0 1 +exit 1 +end +end + +fn setup n ulong to void +for i ulong 2048 +put LT i 0 +end +for i ulong n +b = mul i 32 +put LT b add i 1 +put LT add b 1 1 +put LT add b 2 1 +put LT add b 3 add i 1 +put LT add b 4 1 +put LT add b 5 1 +put LT add b 6 776 +put LT add b 7 add i 17 +for k ulong 20 +put LT add b add k 8 add add mul i 100 k 1 +end +put LT add b 28 24 +put LT add b 29 24 +put LT add b 30 1000 +end +for i ulong 4 +put LPin i add i 1 +put LPin add i 4 add i 1 +put LPin add i 8 add i 5 +put LPin add i 12 add i 5 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 add i 5 +put DPPin add i 12 add i 5 +end +for i ulong 24 +put LS i 0 +end +for i ulong 9 +put LC i 0 +end +put LC 0 1 +put DPCfg 0 1 +put DPCfg 1 1024 +put DPCfg 2 1 +put DPCfg 3 0 +for i ulong 64 +put DPLen i 0 +put DPPrompt i 0 +end +for i ulong 16384 +put DPToken i rem add i 1 1024 +end +end + +fn submit task ulong outcome ulong to void +for i ulong 16 +put CMeta i 0 +end +put CMeta 0 1 +put CMeta 1 1 +put CMeta 2 1 +put CMeta 3 1 +put CMeta 4 776 +put CMeta 5 get LT add mul task 32 7 +put CMeta 6 1 +put CMeta 7 3 +for i ulong 4 +put CMeta add i 8 get LT add mul task 32 add i 12 +end +for i ulong 24 +put LWant i uchar i +put LGot i uchar i +end +ck csubmit task outcome 0 24 outcome +end + +fn admitted n ulong to void +setup n +ck cbegin n 10000 0 +for i ulong n +submit i 0 +put DPLen i 2 +put DPPrompt i 1 +end +ck cfinish 0 +end + +fn save to void +for i ulong 256 +put Snapshot i get DPOut i +put Snapshot add i 256 get DPLabel i +put Snapshot add i 512 get DPMask i +put Snapshot add i 768 get DPTask i +put Snapshot add i 1024 get DPPos i +end +end + +fn attention q ulong k ulong to ulong +if dpattend q k +ret 1 +end +ret 0 +end + +fn refused code ulong to void +ck dppack code +ck get DPState 0 0 +ck get DPState 1 0 +ck attention 0 0 0 +for i ulong 256 +ck get DPOut i get Snapshot i +ck get DPLabel i get Snapshot add i 256 +ck get DPMask i get Snapshot add i 512 +ck get DPTask i get Snapshot add i 768 +ck get DPPos i get Snapshot add i 1024 +end +end + +fn tokenoracle q ulong to void +owner = ulong 0 +pos = q +plen = get ORange 2 +stop = get ORange 0 +if ge q stop +owner = 1 +pos = sub q stop +plen = get ORange 3 +stop = add stop get ORange 1 +end +ck get DPOut q add add mul owner 256 pos 1 +ck get DPTask q owner +ck get DPPos q pos +label = ulong 0 +mask = ulong 0 +if lt add q 1 stop +label = add add mul owner 256 pos 2 +if ge add pos 1 plen +mask = 1 +end +end +ck get DPLabel q label +ck get DPMask q mask +end + +fn attendoracle q ulong k ulong to void +want = ulong 0 +note Independent partition intervals and absolute lower triangle; no product helper used. +if le k q +if lt q get ORange 0 +if lt k get ORange 0 +want = 1 +end +else +if ge k get ORange 0 +want = 1 +end +end +end +ck attention q k want +end + +fn oracle a ulong b ulong pa ulong pb ulong to void +put ORange 0 a +put ORange 1 b +put ORange 2 pa +put ORange 3 pb +put DPLen 0 a +put DPLen 1 b +put DPPrompt 0 pa +put DPPrompt 1 pb +ck dppack 0 +ck get DPState 1 add a b +for q ulong add a b +tokenoracle q +for k ulong add a b +attendoracle q k +end +end +for tail ulong sub 256 add a b +q = add add a b tail +ck get DPOut q 0 +ck get DPLabel q 0 +ck get DPMask q 0 +ck get DPTask q 18446744073709551615 +ck attention q 0 0 +end +end + +fn main to int +admitted 2 +for aa ulong 4 +for bb ulong 4 +for pa ulong add aa 2 +for pb ulong add bb 2 +oracle add aa 1 add bb 1 pa pb +end +end +end +end +ck dppack 0 +save +put CState 2 0 +refused 70 +put CState 2 1 +put DPCfg 0 2 +refused 71 +put DPCfg 0 1 +put DPPin 7 99 +refused 72 +put DPPin 7 4 +put DPPin 15 99 +refused 72 +put DPPin 15 8 +put DPCfg 2 2 +refused 77 +put DPCfg 2 1 +put CGood 1 0 +refused 73 +put CGood 1 1 +put DPLen 0 0 +refused 74 +put DPLen 0 257 +refused 74 +put DPLen 0 4 +put DPPrompt 0 5 +refused 74 +put DPPrompt 0 4 +put DPToken 0 1024 +refused 75 +put DPToken 0 1 +put DPLen 0 253 +refused 76 +put DPLen 0 4 +put DPLen 63 1 +refused 73 +put DPLen 63 0 +put DPCfg 1 4294967297 +refused 71 +put DPCfg 1 1024 +put DPCfg 3 1024 +refused 71 +put DPCfg 3 0 +put CGood 0 64 +refused 73 +put CGood 0 0 +for i ulong 4 +put DPPin i 0 +put DPPin add i 4 0 +end +refused 72 +for i ulong 4 +put DPPin i add i 1 +put DPPin add i 4 add i 1 +put DPPin add i 8 0 +put DPPin add i 12 0 +end +refused 72 +setup 2 +ck cbegin 2 10000 0 +submit 1 0 +submit 0 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPTask 1 0 +ck get DPOut 0 257 +ck get DPOut 1 1 +ck attention 1 0 0 +note Live manifest edits cannot change frozen admitted split or source identity. +put LT 1 2 +ck dppack 0 +setup 2 +put LT 33 2 +ck cbegin 2 10000 0 +submit 0 0 +submit 1 0 +ck cfinish 0 +put DPLen 0 1 +put DPLen 1 1 +save +refused 77 +admitted 1 +put DPLen 0 256 +put DPPrompt 0 0 +ck dppack 0 +ck get DPState 1 256 +ck get DPMask 254 1 +ck get DPMask 255 0 +ck attention 255 0 1 +ck attention 256 0 0 +ck attention 18446744073709551615 0 0 +admitted 64 +ck dppack 0 +ck get DPState 1 128 +ck get DPState 2 64 +ck get DPTask 127 63 +setup 2 +ck cbegin 2 10000 0 +submit 0 1 +submit 1 0 +ck cfinish 0 +put DPLen 1 3 +put DPPrompt 1 1 +ck dppack 0 +ck get DPTask 0 1 +ck get DPOut 0 257 +save +put DPLen 0 1 +refused 73 +setup 1 +ck cbegin 1 10000 0 +submit 0 1 +ck cfinish 0 +ck dppack 0 +ck get DPState 1 0 +ck get DPState 2 0 +ck attention 0 0 0 +w = write 1 Pass 0 11 +number get Checks 0 +w = write 1 NL 0 1 +ret 0 +end