diff --git a/docs/ops/MEASUREMENT_WINDOWS.md b/docs/ops/MEASUREMENT_WINDOWS.md index b844089..fd28fef 100644 --- a/docs/ops/MEASUREMENT_WINDOWS.md +++ b/docs/ops/MEASUREMENT_WINDOWS.md @@ -1,5 +1,12 @@ # Measurement windows and the shared base +> **Correction 2026-11-06 (DRA-118).** The 27B/35B models on 127.0.0.1:18091 are retired and outside +> weights are not used, so `spark-baseline 27b` and every "27B baseline" step below are historical: do not +> run them. :18091 is either down or serves a frozen own Omega LLM manifest. The GPU turn order, the +> :18091 recovery contract and the per-folder `ROWS.tsv` receipt ledger are in +> [SPARK_TEST_SCHEDULE.md](SPARK_TEST_SCHEDULE.md). The installed `spark-window` lacked the L162 close rule +> when checked that day, so close windows by id. + Several agents measure on the one Spark at the same time. When three of them timed things in parallel on 2026-10-19, two of the three verdicts came back INCONCLUSIVE only because the box was loaded by the others. Drake's rule: build once, measure the shared parts once per window, and then each agent measures diff --git a/docs/ops/SPARK_TEST_SCHEDULE.md b/docs/ops/SPARK_TEST_SCHEDULE.md new file mode 100644 index 0000000..3f8ae97 --- /dev/null +++ b/docs/ops/SPARK_TEST_SCHEDULE.md @@ -0,0 +1,146 @@ +# Spark test schedule and own-model recovery (DRA-118) + +Status: **PROPOSED** operations runbook, written 2026-11-06 for [DRA-118](https://linear.app/drake-stapleton/issue/DRA-118). +It is a component runbook for the one shared Spark, not a cross-project plan; sequence authority stays +with `CURRENT_EXECUTION_PLAN.md`. It schedules tests and states the :18091 recovery contract. It deploys +nothing, binds no port and grants no hardware, signing or reset authority. + +## 1. What changed and what this replaces + +| Old instruction | Now | Source | +|---|---|---| +| Saturday-evening restore of the 35B on :18091 (`start-35b-batch.sh`, `bin-19173f9e`) before the Sunday window, 09:30 restore inside it | **Cancelled.** :18091 is never restored with the 35B or any outside weights. Do not run `start-35b-batch.sh` or `q36-extra`. | Queen decision 2026-11-06T21:27:40Z; Drake 2026-11-06 (DRA-162): 35B retired, no outside weights | +| :18091 rollback target = the 35B | Recovery target = the last **verified own Omega LLM manifest**, else a clean stop (`down`) | DRA-125 deployment contract, step 4 | +| GPU rows only in the Sunday 06:00–10:00 America/Chicago window | The Sunday window stays the default slot. GPU rows that a current recorded delegation covers (DRA-162: the 2026-11-06 work and the DRA-125 cutover) run when their lease comes up. Seven consecutive nights are a separate decision (DRA-163); this runbook does not supply them. | DRA-118, DRA-162, DRA-163 | +| `spark-baseline 27b` per window | **Retired.** It times outside weights on :18091. Do not run it. An own-model baseline replaces it only after an own manifest serves :18091 (owner: lead `ownmodel`). | Model policy | +| SI e2e rows 5–7 on the shared Spark | **BLOCKED twice**: the install step needs a stock or clean-account target (DRA-55/DRA-163), and SI #62 `6295d38a` `installer/share/model.manifest` downloads `qwen3.6-35b-a3b-fp8-95a723d0` (37,493,015,668 bytes, retired outside weights). They run only after the SI installer is retargeted to the own model. | `r-si-e2e.md`; manifest read 2026-11-06 | + +Historical receipts keep their identities. The 2026-11-06 rows (receipt folder +`~/handoffs/hive/gpu-2026-11-06/`) are indexed by `ROWS.tsv` in that folder (section 6). + +## 2. State observed at writing (2026-11-06, 23:3x UTC) + +These are observations, not guarantees; re-read them before acting. + +- :18091: nothing listening (`ss -ltnp`). Every lease of 2026-11-06 recorded `18091 health: DOWN` before and after. +- Own-model candidates (lead `ownmodel`): `ollm serve` on 127.0.0.1:18291 and :18292 under `tests/omegallm/serve-check.sh`, + CPU only, reading checkpoint `ck60000.bin` (380,003,448 bytes, sha256 `a53ced72…`) from a `/tmp` path. +- `spark-window status`: no window open, no lock holders, empty line. +- GPU compute apps: one, the protected `omega-tool-model` round40 server (335 MiB). An exclusive lease does not stop it; never touch it. +- Consumers that still default to :18091 (from the parity read of `~/handoffs/hive/parity-35b.md`): allen-chat (public, + P0), the Hermes gateway profile `aienmotor`, `local-coder`, opencode on the Spark, `aien-manager`/board status, and the + guards `tlsfuzz-watch`, `q36-extra` and the heavy-job lock, which read "18091 up" as "the 35B is live". +- Installed `~/.local/bin/spark-window` (sha256 `05723bbd…`) differs from `tools/ops/spark-window` (`01ac196e…`): + the installed copy lacks the L162 rule that a bare `close` only closes your own window. Until an operator reinstalls + the committed copy, **always close by id** (`spark-window close `). + +## 3. GPU turn order + +One claimant holds the GB10 at a time, through `spark-window` only, never `/tmp/aien-gb10.lock` directly. + +Rules for every lease: + +1. Post one BOARD line before opening: name, issue, exact sha, command, expected duration, expected effects. +2. Build first (outside the window, on your claimed cores). Open with + `spark-window open --ledger --lease 20 --gb10 exclusive --wait` (or `--gb10 none` for programs that take + the GPU lock themselves, as Core `abi-qualify --chip` does). An exclusive lease is at most 20 minutes; split longer work into legs. +3. Run the command with `timeout` below the lease, inside `spark-window run`. +4. Close **by id**. Record :18091 state after the close (`ss -ltn 'sport = :18091'`, plus `/health` if bound). +5. Add the row to the dated folder's `ROWS.tsv` and run the checker (section 6). +6. After a close, take a new `--wait` ticket for your next leg. The line is first come, first served, so other lanes + interleave between legs. Do not hold windows back to back while someone waits. + +Priority order, used when the queen asks a lane to step aside or decides who queues first (it never preempts a lease +already open; the courtesy rule of 2026-10-24 stands). It follows the directive order: correct dispatch, coordination, +integrated own-model serving, measured training capacity, training and evaluation, daily operation. + +| # | Row | Issue | Owner | Gate to start | Notes | +|---|---|---|---|---|---| +| 1 | CUDApp #280 chip rows (hello_gpu + control, NVRM lifecycle, M16 requal) at each new head, then at the merge sha | DRA-154, DRA-158 | lane CudaInteg280e | head built | Already in line | +| 2 | CUDApp main rows at the #280 merge sha (supersedes the main `b774723f` FAILs, which were host-build failures) | DRA-158 | CudaInteg280e | #280 merged | Pre-merge PASSes do not qualify main | +| 3 | Own-model serving checks that touch the GPU, if any (`ollm serve` is CPU-only today, so the DRA-125 cutover itself needs no lease) | DRA-119, DRA-125 | ownmodel | candidate manifest frozen | Candidate ports 18291–18299 only | +| 4 | v4 GB10 training path qualification legs: CPU parity, peak memory, checkpoint save and restore, tokens/s | DRA-183 | ownmodel (OllmV4Gpu) | v4 GPU code on its branch, host tests green | One leg per lease | +| 5 | Rung 11 training legs, `geval` after each, driver detached | DRA-120 | ownmodel | a committed pre-registration (schedule + predicted held-out E) | Was BLOCKED on 2026-11-06 for missing pre-registration | +| 6 | Personalization pilot fine-tune | DRA-146 | dra146 | ownmodel names the base checkpoint | One lease | +| — | TensorFold baseline/profile rows | DRA-197 | TensorFoldSpark | Drake authorizes a measurement-only testbed on own weights | BLOCKED: the DRA-197 baseline used outside weights (Qwen3.5-2B); DRA-198..200 held (queen DECISIONS 2026-11-07T00:00:56Z). Not schedulable here until then | +| — | D8 process tax | DRA-158 | CUDA lane | `hello_gpu` prints its overhead line | NOT_RUN until then; no ad-hoc substitute | +| — | Core alpha pipeline GPU gates | DRA-41 | Core lane | an alpha tag and signature, and the CUDApp #106 decision | BLOCKED; agents do not tag or sign | +| — | SI e2e ×3 | DRA-55 | SI release lane | stock/clean target and an own-model installer | BLOCKED (section 1) | +| — | :18091 DRA-23 backend identity | DRA-23 | ownmodel with the queen | an own manifest serving :18091 | Re-scoped from the 35B to the own model | + +The recurring Sunday window holds at most 12 exclusive 20-minute leases (Wolfram: 4 h / 20 min = 12). The 31 leases of +2026-11-06 held at most 31/3 h of chip time at the cap (Wolfram: 31 × 20 min); the measured time was much shorter. + +## 4. :18091 recovery contract (with DRA-125) + +Lead `ownmodel` owns the deployment (DRA-125). This section is the contract the schedule relies on; it does not start +or stop anything. + +States of :18091: + +| State | Meaning | +|---|---| +| `down` | Nothing bound. The truthful unavailable state; consumers get a connection error, never a stand-in. This is the state now. | +| `own:` | `ollm serve` started from one frozen manifest: checkpoint sha256, tokenizer sha256, `ollm` executable sha256, compiler sha256, exact launch argv and environment. The manifest file and the checkpoint it names live on a durable path, never `/tmp`. | + +Transitions (the only ones allowed): + +| Event | From | To | Condition | +|---|---|---|---| +| cutover m | any | `own:m` | m passed the DRA-125 freeze and pre-registered acceptance on a candidate port (18291–18299), and the consumers in section 2 were checked against it. Otherwise refused and the state is unchanged. | +| crash | any | `down` | the process died; record it | +| stop | any | `down` | clean stop, no orphan work | +| recover | any | `own:last` or `down` | restart from the last verified manifest; with none, stay `down` | +| restore 35B / outside weights | — | — | **removed**: no such transition exists | + +Machine-checked: `docs/ops/proofs/Port18091.lean` models this table. `inv_reachable` proves that every state reachable +by any event sequence has :18091 `down` or serving a verified own manifest, and that the recovery target is verified. +Two negative controls prove the property fails for the retired plan (`bad_breaks`: a 35B restore transition) and for a +cutover that skips verification (`unchecked_breaks`). Checked with the `lean` MCP (Lean 4.35.0): no errors, no warnings, +axioms `[propext]` for all three. This proves the model of the plan, not any running service. + +Before a cutover, from the parity read: allen-chat sends a 14,364-byte system prompt (median prompt 6,852 tokens) +while `ollm serve` at `c73d4f33` refuses templates over 4,000 bytes, takes one connection at a time and does not call tools. +Until aien-train #72 closes those gaps, a cutover would make allen-chat fail; that is a DRA-124/DRA-125 acceptance +question for `ownmodel`, not a reason to keep any outside model. The guards that treat "18091 up" as the 35B +(`tlsfuzz-watch`, `q36-extra`, heavy-job lock) must be retargeted before cutover (unclaimed item in `CLAIMS.md`). + +Recovery rehearsal (DRA-125 step 4) runs on a candidate port first: start from the manifest, one real request, kill the +process, `recover`, one real request again, and record the time to recover. Only then on :18091. + +## 5. Test scheduling (CPU and host) + +- Host tests, builds and gates never need the Sunday window. They run on the lane's claimed cores under + `taskset -c nice -n 10` (cores 3, 7 and 15 never), heavy ones through `quiet-build`. Kanban cards without + their own cores use the queen pool 10–11 under `flock ~/handoffs/hive/queen/pool-10-11.lock`. +- Timings are measurements: inside a window (`--quiet exclusive`), with the window id in the receipt. Value checks that + compare outputs only may use `--quiet none`. +- The own-model acceptance suite (DRA-124) and `serve-check.sh` run on ownmodel's cores against candidate ports only. +- Anything that installs into the shared account, resets the machine or downloads outside weights is not schedulable here. + +## 6. Receipts: `ROWS.tsv` and its checker + +Every dated receipt folder (`~/handoffs/hive/gpu-/`) carries one `ROWS.tsv`: one line per lease, plus one line per +row that took no lease. Format `window-rows v1`, checked by `tools/ops/window-rows/rows.om` (seeded Omega, pinned +compiler); rules in [`tools/ops/window-rows/README.md`](../../tools/ops/window-rows/README.md). It makes the DRA-118 +acceptance mechanical: every row has PASS, FAIL, NOT_RUN or BLOCKED; PASS needs an exact sha, a window id and a closed +lease; FAIL needs an exact sha; a lease past its time cannot PASS; and every row records :18091 as `down` or +`own:`, so the 35B or anything else is refused. + +```sh +rows < ~/handoffs/hive/gpu-2026-11-06/ROWS.tsv +# ROWS PASS rows=37 pass=17 fail=15 not_run=2 blocked=3 leases=31 +``` + +The 2026-11-06 ledger is also the fixture `fixtures/good-20261106.tsv`. Its 31 lease rows match the 31 lease records +(`raw/*.meta`) in that folder. + +## 7. Open items and owners + +| Item | Owner | Next action | +|---|---|---| +| Frozen own manifest, durable checkpoint path, supervisor line for :18091 | ownmodel | Answer the BOARD contract note of 2026-11-06T23:46Z; DRA-125 steps 1–5 | +| Consumer parity (#72) and guard retargeting | ownmodel; unclaimed guard item | Close the gaps above before cutover | +| Reinstall the committed `spark-window` (L162 close rule) | queen (operator) | Copy-then-rename per `tools/ops/README.md`, after checking no window is open | +| Seven-night acceptance | queen (DRA-163) | Record the decision in `~/handoffs/hive/queen/DECISIONS.md` | +| SI installer still names the 35B | linear lead, SI release lane | Retarget DRA-55/SI #62 to the own model | diff --git a/docs/ops/proofs/Port18091.lean b/docs/ops/proofs/Port18091.lean new file mode 100644 index 0000000..3277b0c --- /dev/null +++ b/docs/ops/proofs/Port18091.lean @@ -0,0 +1,126 @@ +/- +Port18091.lean: the :18091 own-model recovery state machine of docs/ops/SPARK_TEST_SCHEDULE.md +section 4, as an explicit model, with the invariant proved for every reachable state. + +Model-to-system link: hand-copied from that section's transition table (this repository, branch +hive/dra118-own-model-schedule). It is a model of the PLAN, not of any running service: nothing +here inspects a process, a port or a manifest file. + +Port: down (nothing bound), own m (an ollm serve process started from frozen manifest m), +external w (any retired or outside weights, e.g. the 35B). V m means manifest m passed the +DRA-125 freeze + acceptance checks ("verified"). last is the recovery target. +-/ + +namespace P18091 + +inductive Port where + | down + | own (m : Nat) + | external (w : Nat) + +structure St where + port : Port + last : Option Nat + +inductive Ev where + | cutover (m : Nat) -- bind :18091 to manifest m (refused unless V m) + | crash -- the server died + | stop -- clean stop to the truthful unavailable state + | recover -- restart from the recovery target, or stay down + | restoreExternal (w : Nat) -- the retired 35B restore; the plan refuses it + +def portOk (V : Nat → Prop) : Port → Prop + | .down => True + | .own m => V m + | .external _ => False + +def Safe (V : Nat → Prop) (s : St) : Prop := + portOk V s.port ∧ ∀ m, s.last = some m → V m + +def init : St := ⟨.down, none⟩ + +def step (V : Nat → Prop) [DecidablePred V] (s : St) : Ev → St + | .cutover m => if V m then ⟨.own m, some m⟩ else s + | .crash => ⟨.down, s.last⟩ + | .stop => ⟨.down, s.last⟩ + | .recover => + match s.last with + | some m => ⟨.own m, some m⟩ + | none => ⟨.down, none⟩ + | .restoreExternal _ => s + +theorem inv_init (V : Nat → Prop) : Safe V init := by + refine ⟨trivial, ?_⟩ + intro m h + simp [init] at h + +theorem inv_step (V : Nat → Prop) [DecidablePred V] (s : St) (e : Ev) + (h : Safe V s) : Safe V (step V s e) := by + obtain ⟨hp, hl⟩ := h + cases e with + | cutover m => + by_cases hv : V m + · refine ⟨?_, ?_⟩ + · simp [step, hv, portOk] + · intro m' hm + simp [step, hv] at hm + subst hm + exact hv + · simp only [step, hv, ite_false] + exact ⟨hp, hl⟩ + | crash => exact ⟨trivial, hl⟩ + | stop => exact ⟨trivial, hl⟩ + | recover => + cases hs : s.last with + | none => + refine ⟨?_, ?_⟩ + · simp [step, hs, portOk] + · intro m hm + simp [step, hs] at hm + | some m => + have hm : V m := hl m hs + refine ⟨?_, ?_⟩ + · simp [step, hs, portOk, hm] + · intro m' hm' + simp [step, hs] at hm' + subst hm' + exact hm + | restoreExternal w => exact ⟨hp, hl⟩ + +/-- Every state reachable from init by any finite event sequence keeps the invariant: +:18091 is down or serves a verified own manifest, and the recovery target is verified. -/ +theorem inv_reachable (V : Nat → Prop) [DecidablePred V] (es : List Ev) : + Safe V (es.foldl (step V) init) := by + have key : ∀ (l : List Ev) (s : St), Safe V s → Safe V (l.foldl (step V) s) := by + intro l + induction l with + | nil => intro s h; exact h + | cons e rest ih => intro s h; exact ih _ (inv_step V s e h) + exact key es init (inv_init V) + +/-- Negative control: the retired plan (restore the 35B on :18091) breaks the invariant. -/ +def badStep (V : Nat → Prop) [DecidablePred V] (s : St) : Ev → St + | .restoreExternal w => ⟨.external w, s.last⟩ + | e => step V s e + +theorem bad_breaks (V : Nat → Prop) [DecidablePred V] : + ¬ Safe V (badStep V init (.restoreExternal 0)) := by + intro h + exact h.1 + +/-- Negative control: a cutover that skips the verification check breaks it for an +unverified manifest. -/ +def uncheckedStep (V : Nat → Prop) [DecidablePred V] (s : St) : Ev → St + | .cutover m => ⟨.own m, some m⟩ + | e => step V s e + +theorem unchecked_breaks (V : Nat → Prop) [DecidablePred V] (m : Nat) (hm : ¬ V m) : + ¬ Safe V (uncheckedStep V init (.cutover m)) := by + intro h + exact hm h.1 + +end P18091 + +#print axioms P18091.inv_reachable +#print axioms P18091.bad_breaks +#print axioms P18091.unchecked_breaks diff --git a/tools/ops/README.md b/tools/ops/README.md index 6f15db7..d77d73c 100644 --- a/tools/ops/README.md +++ b/tools/ops/README.md @@ -11,11 +11,15 @@ How and when to use them: [docs/ops/MEASUREMENT_WINDOWS.md](../../docs/ops/MEASU | `test_spark_window_close.sh` | Offline test for the close rule above (scratch locks and folder, never the live windows) | | `test-spark-window-starve.sh` | Offline test, scratch locks and window root only. Case 1: no contention. Cases 2 and 3: one and two shared holders take `$SPARK_QUIET_GATE` and then the quiet lock, the quiet-build order, so the gate at `spark-window:330-336` keeps new holders out and the drain finishes. Case 4 (chip busy): with the chip lock held for 6 s, the window waits for the chip and opens only after it is free. Plain `flock -s` skips that gate: one plain holder leaves only a timing-dependent gap, and two can starve an exclusive waiter, because Linux flock gives the waiter no priority. Those plain-flock cases (2p, 5) are skipped unless `SPARK_STARVE_PLAIN=1` | | `spark-calibrate` | Per-window calibration: memcpy bandwidth (omega#583 probe) and 30 s idle power at the wall | -| `spark-baseline` | Per-window 27B baseline: fixed 64-token streamed reply on 127.0.0.1:18091, decode tok/s and J/token | +| `spark-baseline` | Per-window 27B baseline: fixed 64-token streamed reply on 127.0.0.1:18091, decode tok/s and J/token. **Retired 2026-11-06** (it measures outside weights; see `docs/ops/SPARK_TEST_SCHEDULE.md`); kept as history | +| `window-rows/` | Seeded `.om` checker for the per-folder `ROWS.tsv` GPU-window receipt ledger (DRA-118); gate `window-rows/gate.sh` | | `spark-receipt` | Energy receipt for any command; now stamps `window_id` and `calibration` | | `quiet-measure` | Exclusive quiet lock for a measurement; runs directly inside its own open window | | `quiet-build` | CPU-heavy jobs. Waits for a live measurement flag (at most 1 min), then the quiet gate, then a shared quiet lock. The whole wait is capped at 25 min (`SPARK_BUILD_MAX_WAIT`, default 1500 s). If the lock is acquired in time, the command runs as given. Past the cap it runs at nice 19, with no lock and no core pinning, and the open window is marked shared machine (L405). Waits are logged | +Checked 2026-11-06: the installed `~/.local/bin/spark-window` (sha256 `05723bbd…`) is not this copy +(`01ac196e…`); it lacks the L162 bare-close ownership rule. Close windows by id until an operator reinstalls it. + `SHA256SUMS` in this directory is the sha256 of each script. It lists bare file names, so check it from `tools/ops`: from the repository root, `(cd tools/ops && sha256sum -c SHA256SUMS)`. To check the copies installed on the Spark, run `(cd ~/.local/bin && sha256sum -c --ignore-missing /tools/ops/SHA256SUMS)`. diff --git a/tools/ops/window-rows/.gitignore b/tools/ops/window-rows/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/tools/ops/window-rows/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/tools/ops/window-rows/README.md b/tools/ops/window-rows/README.md new file mode 100644 index 0000000..10be571 --- /dev/null +++ b/tools/ops/window-rows/README.md @@ -0,0 +1,56 @@ +# window-rows: the GPU-window row ledger checker (seeded `.om`) + +Status: **IMPLEMENTED, EXERCISED on host (aarch64)** by `gate.sh` and on the real 2026-11-06 receipt +folder. It checks a ledger file; it does not open windows, read receipts or touch the GPU. + +Why: DRA-118's acceptance is "each row has a receipt with PASS/FAIL on an exact sha, lease released, and +:18091 state recorded after every lease". `ROWS.tsv` states that per row and `rows` checks it, so the +acceptance is a command instead of a reading. Schedule and contract: [`docs/ops/SPARK_TEST_SCHEDULE.md`](../../../docs/ops/SPARK_TEST_SCHEDULE.md). + +| File | Role | +| --- | --- | +| `rows.om` | `rows < ROWS.tsv`: exit 0 and `ROWS PASS rows=N pass=P fail=F not_run=X blocked=B leases=L` on stdout, or exit 1 and `rows: line N: REASON` on stderr at the first refused line | +| `gate.om` | gate runner: checks the compiler against `../../zero-legacy/omega.pin` with `../../zero-legacy/sha256.om`, builds `rows.om`, runs every fixture, prints `AIEN-OBS` lines | +| `gate.sh` | loader outside the programs: authenticate `$AIEN_OMC`, compile `gate.om`, exec it | +| `fixtures/` | `good-*.tsv` with their exact stdout in `good-*.out`; 32 `bad-*.tsv` with the exact stderr each must produce in `bad-*.err`; `good-20261106.tsv` is the real 2026-11-06 ledger | + +Run (from anywhere): `AIEN_OMC= sh tools/ops/window-rows/gate.sh`. Any other compiler, or none, +is NOT_RUN (exit 3). + +## Format `window-rows v1` + +Line 1 is exactly `# window-rows v1`. Every other line is one row: exactly 9 TAB-separated, non-empty +fields, LF line ends (a CR is refused), newline at the end, at most 512 bytes per line, at most 255 rows, +at most 131072 bytes in all. + +| # | Field | Rule | +| --- | --- | --- | +| 1 | `row` | 1..48 bytes of `[a-z0-9._-]`, unique in the file | +| 2 | `issue` | `DRA-` and 1..5 digits | +| 3 | `repo` | `-` or `owner/name` (`[A-Za-z0-9._-]`, one slash) | +| 4 | `sha` | `-`, or 7..40 lowercase hex, optionally `+p:` and 8..64 hex naming the sha256 of a patch applied on top (a patched tree is not that commit) | +| 5 | `window` | `-` or a spark-window id `YYYYMMDDTHHMMSSZ-xxxxxx`, unique in the file | +| 6 | `verdict` | `PASS`, `FAIL`, `NOT_RUN` or `BLOCKED` | +| 7 | `lease` | `closed`, `expired` (ran past its lease: NO VERDICT) or `none` | +| 8 | `p18091` | :18091 after the lease: `down`, or `own:` and 12..64 hex (sha256 of the frozen own-model manifest). Anything else, such as `35b` or `up`, is refused | +| 9 | `receipt` | the receipt file, relative to the folder: 1..96 bytes of `[A-Za-z0-9._/-]`, no leading `/`, no `..` | + +Rules between fields: `window` is `-` exactly when `lease` is `none`; `PASS` needs `sha`, `repo`, a window and +`lease` `closed`; an `expired` lease cannot be `PASS`; `FAIL` needs `sha` and `repo` (it may have no lease, when it +failed before reaching the chip). `NOT_RUN` and `BLOCKED` carry their reason in the receipt. + +What it does not check: that the receipt file exists or says the same verdict, that the sha exists, or that windows +did not overlap in time (spark-window itself allows one at a time). Those stay with the reader of the receipt. + +## Evidence (2026-11-06, Spark, omc sha256 `734f0a39…6b61`, cores 10–11 under the queen pool lock) + +- `gate.sh`: `window_rows_good_ok 2`, `window_rows_good_total 2`, `window_rows_bad_refused 32`, `window_rows_bad_total 32`, exit 0. +- Compiler controls: a one-byte-changed compiler and an empty `AIEN_OMC` give exit 3 through `gate.sh`; the built gate + run directly with the changed compiler also gives exit 3. +- Six source mutants of `rows.om` (drop the expired-PASS rule, accept any `p18091`, skip the duplicate-window check, + skip the window/lease rule, accept 1-hex shas, accept a missing final newline) each make the gate exit 1, naming + the fixtures that caught them. +- Size bounds: a 131072-byte input is read; 140017 bytes give `rows: line 0: input-too-large`; a directory on stdin + gives `rows: line 0: read-error`. +- The real ledger `~/handoffs/hive/gpu-2026-11-06/ROWS.tsv` (= `fixtures/good-20261106.tsv`): + `ROWS PASS rows=37 pass=17 fail=15 not_run=2 blocked=3 leases=31`, matching the 31 lease records in that folder. diff --git a/tools/ops/window-rows/fixtures/bad-crlf.err b/tools/ops/window-rows/fixtures/bad-crlf.err new file mode 100644 index 0000000..af70367 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-crlf.err @@ -0,0 +1 @@ +rows: line 2: receipt diff --git a/tools/ops/window-rows/fixtures/bad-crlf.tsv b/tools/ops/window-rows/fixtures/bad-crlf.tsv new file mode 100644 index 0000000..e22d7e8 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-crlf.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-duplicate-row.err b/tools/ops/window-rows/fixtures/bad-duplicate-row.err new file mode 100644 index 0000000..5779d51 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-duplicate-row.err @@ -0,0 +1 @@ +rows: line 3: duplicate-row diff --git a/tools/ops/window-rows/fixtures/bad-duplicate-row.tsv b/tools/ops/window-rows/fixtures/bad-duplicate-row.tsv new file mode 100644 index 0000000..5229956 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-duplicate-row.tsv @@ -0,0 +1,3 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T211213Z-22963f PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-duplicate-window.err b/tools/ops/window-rows/fixtures/bad-duplicate-window.err new file mode 100644 index 0000000..5d507fe --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-duplicate-window.err @@ -0,0 +1 @@ +rows: line 3: duplicate-window diff --git a/tools/ops/window-rows/fixtures/bad-duplicate-window.tsv b/tools/ops/window-rows/fixtures/bad-duplicate-window.tsv new file mode 100644 index 0000000..cbd7df0 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-duplicate-window.tsv @@ -0,0 +1,3 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md +t2 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca FAIL closed down r2.md diff --git a/tools/ops/window-rows/fixtures/bad-empty-field.err b/tools/ops/window-rows/fixtures/bad-empty-field.err new file mode 100644 index 0000000..329bcb1 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-empty-field.err @@ -0,0 +1 @@ +rows: line 2: fields diff --git a/tools/ops/window-rows/fixtures/bad-empty-field.tsv b/tools/ops/window-rows/fixtures/bad-empty-field.tsv new file mode 100644 index 0000000..b3fa1c8 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-empty-field.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-expired-pass.err b/tools/ops/window-rows/fixtures/bad-expired-pass.err new file mode 100644 index 0000000..c861ad9 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-expired-pass.err @@ -0,0 +1 @@ +rows: line 2: expired-pass diff --git a/tools/ops/window-rows/fixtures/bad-expired-pass.tsv b/tools/ops/window-rows/fixtures/bad-expired-pass.tsv new file mode 100644 index 0000000..1354079 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-expired-pass.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS expired down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-fail-needs-repo.err b/tools/ops/window-rows/fixtures/bad-fail-needs-repo.err new file mode 100644 index 0000000..6c14cf7 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fail-needs-repo.err @@ -0,0 +1 @@ +rows: line 2: fail-needs-repo diff --git a/tools/ops/window-rows/fixtures/bad-fail-needs-repo.tsv b/tools/ops/window-rows/fixtures/bad-fail-needs-repo.tsv new file mode 100644 index 0000000..4ef01ea --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fail-needs-repo.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 - b774723f537cec16a359fe082b8100317a5b5490 - FAIL none down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-fail-needs-sha.err b/tools/ops/window-rows/fixtures/bad-fail-needs-sha.err new file mode 100644 index 0000000..7d68ce9 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fail-needs-sha.err @@ -0,0 +1 @@ +rows: line 2: fail-needs-sha diff --git a/tools/ops/window-rows/fixtures/bad-fail-needs-sha.tsv b/tools/ops/window-rows/fixtures/bad-fail-needs-sha.tsv new file mode 100644 index 0000000..7e929f5 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fail-needs-sha.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp - 20261106T210908Z-2a35ca FAIL closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-fields.err b/tools/ops/window-rows/fixtures/bad-fields.err new file mode 100644 index 0000000..329bcb1 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fields.err @@ -0,0 +1 @@ +rows: line 2: fields diff --git a/tools/ops/window-rows/fixtures/bad-fields.tsv b/tools/ops/window-rows/fixtures/bad-fields.tsv new file mode 100644 index 0000000..f552784 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-fields.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down diff --git a/tools/ops/window-rows/fixtures/bad-header.err b/tools/ops/window-rows/fixtures/bad-header.err new file mode 100644 index 0000000..6873270 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-header.err @@ -0,0 +1 @@ +rows: line 1: header diff --git a/tools/ops/window-rows/fixtures/bad-header.tsv b/tools/ops/window-rows/fixtures/bad-header.tsv new file mode 100644 index 0000000..feafe10 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-header.tsv @@ -0,0 +1,2 @@ +# window-rows v2 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-issue.err b/tools/ops/window-rows/fixtures/bad-issue.err new file mode 100644 index 0000000..1cf2a7e --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-issue.err @@ -0,0 +1 @@ +rows: line 2: issue diff --git a/tools/ops/window-rows/fixtures/bad-issue.tsv b/tools/ops/window-rows/fixtures/bad-issue.tsv new file mode 100644 index 0000000..5ba221b --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-issue.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 LIN-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-lease-no-window.err b/tools/ops/window-rows/fixtures/bad-lease-no-window.err new file mode 100644 index 0000000..ab8150b --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease-no-window.err @@ -0,0 +1 @@ +rows: line 2: lease-window diff --git a/tools/ops/window-rows/fixtures/bad-lease-no-window.tsv b/tools/ops/window-rows/fixtures/bad-lease-no-window.tsv new file mode 100644 index 0000000..3c3f881 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease-no-window.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 - FAIL closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-lease-unrecorded.err b/tools/ops/window-rows/fixtures/bad-lease-unrecorded.err new file mode 100644 index 0000000..ab8150b --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease-unrecorded.err @@ -0,0 +1 @@ +rows: line 2: lease-window diff --git a/tools/ops/window-rows/fixtures/bad-lease-unrecorded.tsv b/tools/ops/window-rows/fixtures/bad-lease-unrecorded.tsv new file mode 100644 index 0000000..20d705b --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease-unrecorded.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca FAIL none down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-lease.err b/tools/ops/window-rows/fixtures/bad-lease.err new file mode 100644 index 0000000..9d16e83 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease.err @@ -0,0 +1 @@ +rows: line 2: lease diff --git a/tools/ops/window-rows/fixtures/bad-lease.tsv b/tools/ops/window-rows/fixtures/bad-lease.tsv new file mode 100644 index 0000000..39e3fd7 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-lease.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS open down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-line-too-long.err b/tools/ops/window-rows/fixtures/bad-line-too-long.err new file mode 100644 index 0000000..93651f0 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-line-too-long.err @@ -0,0 +1 @@ +rows: line 2: line-too-long diff --git a/tools/ops/window-rows/fixtures/bad-line-too-long.tsv b/tools/ops/window-rows/fixtures/bad-line-too-long.tsv new file mode 100644 index 0000000..40a048a --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-line-too-long.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.md diff --git a/tools/ops/window-rows/fixtures/bad-no-final-newline.err b/tools/ops/window-rows/fixtures/bad-no-final-newline.err new file mode 100644 index 0000000..6424df8 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-no-final-newline.err @@ -0,0 +1 @@ +rows: line 2: no-final-newline diff --git a/tools/ops/window-rows/fixtures/bad-no-final-newline.tsv b/tools/ops/window-rows/fixtures/bad-no-final-newline.tsv new file mode 100644 index 0000000..6a4965c --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-no-final-newline.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md \ No newline at end of file diff --git a/tools/ops/window-rows/fixtures/bad-no-rows.err b/tools/ops/window-rows/fixtures/bad-no-rows.err new file mode 100644 index 0000000..5248d93 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-no-rows.err @@ -0,0 +1 @@ +rows: line 1: no-rows diff --git a/tools/ops/window-rows/fixtures/bad-no-rows.tsv b/tools/ops/window-rows/fixtures/bad-no-rows.tsv new file mode 100644 index 0000000..1006ec0 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-no-rows.tsv @@ -0,0 +1 @@ +# window-rows v1 diff --git a/tools/ops/window-rows/fixtures/bad-p18091-retired.err b/tools/ops/window-rows/fixtures/bad-p18091-retired.err new file mode 100644 index 0000000..b12998d --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-retired.err @@ -0,0 +1 @@ +rows: line 2: p18091 diff --git a/tools/ops/window-rows/fixtures/bad-p18091-retired.tsv b/tools/ops/window-rows/fixtures/bad-p18091-retired.tsv new file mode 100644 index 0000000..7c5a92a --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-retired.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed 35b r1.md diff --git a/tools/ops/window-rows/fixtures/bad-p18091-short.err b/tools/ops/window-rows/fixtures/bad-p18091-short.err new file mode 100644 index 0000000..b12998d --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-short.err @@ -0,0 +1 @@ +rows: line 2: p18091 diff --git a/tools/ops/window-rows/fixtures/bad-p18091-short.tsv b/tools/ops/window-rows/fixtures/bad-p18091-short.tsv new file mode 100644 index 0000000..ad96531 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-short.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed own:abc123 r1.md diff --git a/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.err b/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.err new file mode 100644 index 0000000..b12998d --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.err @@ -0,0 +1 @@ +rows: line 2: p18091 diff --git a/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.tsv b/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.tsv new file mode 100644 index 0000000..338e37e --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-p18091-unrecorded.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed up r1.md diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-lease.err b/tools/ops/window-rows/fixtures/bad-pass-needs-lease.err new file mode 100644 index 0000000..c4f9ef8 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-lease.err @@ -0,0 +1 @@ +rows: line 2: pass-needs-lease diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-lease.tsv b/tools/ops/window-rows/fixtures/bad-pass-needs-lease.tsv new file mode 100644 index 0000000..58081e7 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-lease.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 - PASS none down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-repo.err b/tools/ops/window-rows/fixtures/bad-pass-needs-repo.err new file mode 100644 index 0000000..b63241f --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-repo.err @@ -0,0 +1 @@ +rows: line 2: pass-needs-repo diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-repo.tsv b/tools/ops/window-rows/fixtures/bad-pass-needs-repo.tsv new file mode 100644 index 0000000..def0c51 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-repo.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 - b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-sha.err b/tools/ops/window-rows/fixtures/bad-pass-needs-sha.err new file mode 100644 index 0000000..993a1ec --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-sha.err @@ -0,0 +1 @@ +rows: line 2: pass-needs-sha diff --git a/tools/ops/window-rows/fixtures/bad-pass-needs-sha.tsv b/tools/ops/window-rows/fixtures/bad-pass-needs-sha.tsv new file mode 100644 index 0000000..13faf9c --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-pass-needs-sha.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp - 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-receipt-absolute.err b/tools/ops/window-rows/fixtures/bad-receipt-absolute.err new file mode 100644 index 0000000..af70367 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-receipt-absolute.err @@ -0,0 +1 @@ +rows: line 2: receipt diff --git a/tools/ops/window-rows/fixtures/bad-receipt-absolute.tsv b/tools/ops/window-rows/fixtures/bad-receipt-absolute.tsv new file mode 100644 index 0000000..5a8c8aa --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-receipt-absolute.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down /home/r1.md diff --git a/tools/ops/window-rows/fixtures/bad-receipt-dotdot.err b/tools/ops/window-rows/fixtures/bad-receipt-dotdot.err new file mode 100644 index 0000000..af70367 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-receipt-dotdot.err @@ -0,0 +1 @@ +rows: line 2: receipt diff --git a/tools/ops/window-rows/fixtures/bad-receipt-dotdot.tsv b/tools/ops/window-rows/fixtures/bad-receipt-dotdot.tsv new file mode 100644 index 0000000..a448c46 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-receipt-dotdot.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down ../r1.md diff --git a/tools/ops/window-rows/fixtures/bad-repo.err b/tools/ops/window-rows/fixtures/bad-repo.err new file mode 100644 index 0000000..815c6c7 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-repo.err @@ -0,0 +1 @@ +rows: line 2: repo diff --git a/tools/ops/window-rows/fixtures/bad-repo.tsv b/tools/ops/window-rows/fixtures/bad-repo.tsv new file mode 100644 index 0000000..3799712 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-repo.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-row-id.err b/tools/ops/window-rows/fixtures/bad-row-id.err new file mode 100644 index 0000000..2473e4d --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-row-id.err @@ -0,0 +1 @@ +rows: line 2: row-id diff --git a/tools/ops/window-rows/fixtures/bad-row-id.tsv b/tools/ops/window-rows/fixtures/bad-row-id.tsv new file mode 100644 index 0000000..3699f7f --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-row-id.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +T1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-sha-patch.err b/tools/ops/window-rows/fixtures/bad-sha-patch.err new file mode 100644 index 0000000..08ff1c3 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-patch.err @@ -0,0 +1 @@ +rows: line 2: sha diff --git a/tools/ops/window-rows/fixtures/bad-sha-patch.tsv b/tools/ops/window-rows/fixtures/bad-sha-patch.tsv new file mode 100644 index 0000000..a2468bb --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-patch.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490+p:12b5 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-sha-short.err b/tools/ops/window-rows/fixtures/bad-sha-short.err new file mode 100644 index 0000000..08ff1c3 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-short.err @@ -0,0 +1 @@ +rows: line 2: sha diff --git a/tools/ops/window-rows/fixtures/bad-sha-short.tsv b/tools/ops/window-rows/fixtures/bad-sha-short.tsv new file mode 100644 index 0000000..470e8bf --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-short.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b77472 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-sha-upper.err b/tools/ops/window-rows/fixtures/bad-sha-upper.err new file mode 100644 index 0000000..08ff1c3 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-upper.err @@ -0,0 +1 @@ +rows: line 2: sha diff --git a/tools/ops/window-rows/fixtures/bad-sha-upper.tsv b/tools/ops/window-rows/fixtures/bad-sha-upper.tsv new file mode 100644 index 0000000..52e8587 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-sha-upper.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp B774723F 20261106T210908Z-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-too-many-rows.err b/tools/ops/window-rows/fixtures/bad-too-many-rows.err new file mode 100644 index 0000000..4050139 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-too-many-rows.err @@ -0,0 +1 @@ +rows: line 257: too-many-rows diff --git a/tools/ops/window-rows/fixtures/bad-too-many-rows.tsv b/tools/ops/window-rows/fixtures/bad-too-many-rows.tsv new file mode 100644 index 0000000..e021c22 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-too-many-rows.tsv @@ -0,0 +1,257 @@ +# window-rows v1 +n0 DRA-118 - - - NOT_RUN none down n.md +n1 DRA-118 - - - NOT_RUN none down n.md +n2 DRA-118 - - - NOT_RUN none down n.md +n3 DRA-118 - - - NOT_RUN none down n.md +n4 DRA-118 - - - NOT_RUN none down n.md +n5 DRA-118 - - - NOT_RUN none down n.md +n6 DRA-118 - - - NOT_RUN none down n.md +n7 DRA-118 - - - NOT_RUN none down n.md +n8 DRA-118 - - - NOT_RUN none down n.md +n9 DRA-118 - - - NOT_RUN none down n.md +n10 DRA-118 - - - NOT_RUN none down n.md +n11 DRA-118 - - - NOT_RUN none down n.md +n12 DRA-118 - - - NOT_RUN none down n.md +n13 DRA-118 - - - NOT_RUN none down n.md +n14 DRA-118 - - - NOT_RUN none down n.md +n15 DRA-118 - - - NOT_RUN none down n.md +n16 DRA-118 - - - NOT_RUN none down n.md +n17 DRA-118 - - - NOT_RUN none down n.md +n18 DRA-118 - - - NOT_RUN none down n.md +n19 DRA-118 - - - NOT_RUN none down n.md +n20 DRA-118 - - - NOT_RUN none down n.md +n21 DRA-118 - - - NOT_RUN none down n.md +n22 DRA-118 - - - NOT_RUN none down n.md +n23 DRA-118 - - - NOT_RUN none down n.md +n24 DRA-118 - - - NOT_RUN none down n.md +n25 DRA-118 - - - NOT_RUN none down n.md +n26 DRA-118 - - - NOT_RUN none down n.md +n27 DRA-118 - - - NOT_RUN none down n.md +n28 DRA-118 - - - NOT_RUN none down n.md +n29 DRA-118 - - - NOT_RUN none down n.md +n30 DRA-118 - - - NOT_RUN none down n.md +n31 DRA-118 - - - NOT_RUN none down n.md +n32 DRA-118 - - - NOT_RUN none down n.md +n33 DRA-118 - - - NOT_RUN none down n.md +n34 DRA-118 - - - NOT_RUN none down n.md +n35 DRA-118 - - - NOT_RUN none down n.md +n36 DRA-118 - - - NOT_RUN none down n.md +n37 DRA-118 - - - NOT_RUN none down n.md +n38 DRA-118 - - - NOT_RUN none down n.md +n39 DRA-118 - - - NOT_RUN none down n.md +n40 DRA-118 - - - NOT_RUN none down n.md +n41 DRA-118 - - - NOT_RUN none down n.md +n42 DRA-118 - - - NOT_RUN none down n.md +n43 DRA-118 - - - NOT_RUN none down n.md +n44 DRA-118 - - - NOT_RUN none down n.md +n45 DRA-118 - - - NOT_RUN none down n.md +n46 DRA-118 - - - NOT_RUN none down n.md +n47 DRA-118 - - - NOT_RUN none down n.md +n48 DRA-118 - - - NOT_RUN none down n.md +n49 DRA-118 - - - NOT_RUN none down n.md +n50 DRA-118 - - - NOT_RUN none down n.md +n51 DRA-118 - - - NOT_RUN none down n.md +n52 DRA-118 - - - NOT_RUN none down n.md +n53 DRA-118 - - - NOT_RUN none down n.md +n54 DRA-118 - - - NOT_RUN none down n.md +n55 DRA-118 - - - NOT_RUN none down n.md +n56 DRA-118 - - - NOT_RUN none down n.md +n57 DRA-118 - - - NOT_RUN none down n.md +n58 DRA-118 - - - NOT_RUN none down n.md +n59 DRA-118 - - - NOT_RUN none down n.md +n60 DRA-118 - - - NOT_RUN none down n.md +n61 DRA-118 - - - NOT_RUN none down n.md +n62 DRA-118 - - - NOT_RUN none down n.md +n63 DRA-118 - - - NOT_RUN none down n.md +n64 DRA-118 - - - NOT_RUN none down n.md +n65 DRA-118 - - - NOT_RUN none down n.md +n66 DRA-118 - - - NOT_RUN none down n.md +n67 DRA-118 - - - NOT_RUN none down n.md +n68 DRA-118 - - - NOT_RUN none down n.md +n69 DRA-118 - - - NOT_RUN none down n.md +n70 DRA-118 - - - NOT_RUN none down n.md +n71 DRA-118 - - - NOT_RUN none down n.md +n72 DRA-118 - - - NOT_RUN none down n.md +n73 DRA-118 - - - NOT_RUN none down n.md +n74 DRA-118 - - - NOT_RUN none down n.md +n75 DRA-118 - - - NOT_RUN none down n.md +n76 DRA-118 - - - NOT_RUN none down n.md +n77 DRA-118 - - - NOT_RUN none down n.md +n78 DRA-118 - - - NOT_RUN none down n.md +n79 DRA-118 - - - NOT_RUN none down n.md +n80 DRA-118 - - - NOT_RUN none down n.md +n81 DRA-118 - - - NOT_RUN none down n.md +n82 DRA-118 - - - NOT_RUN none down n.md +n83 DRA-118 - - - NOT_RUN none down n.md +n84 DRA-118 - - - NOT_RUN none down n.md +n85 DRA-118 - - - NOT_RUN none down n.md +n86 DRA-118 - - - NOT_RUN none down n.md +n87 DRA-118 - - - NOT_RUN none down n.md +n88 DRA-118 - - - NOT_RUN none down n.md +n89 DRA-118 - - - NOT_RUN none down n.md +n90 DRA-118 - - - NOT_RUN none down n.md +n91 DRA-118 - - - NOT_RUN none down n.md +n92 DRA-118 - - - NOT_RUN none down n.md +n93 DRA-118 - - - NOT_RUN none down n.md +n94 DRA-118 - - - NOT_RUN none down n.md +n95 DRA-118 - - - NOT_RUN none down n.md +n96 DRA-118 - - - NOT_RUN none down n.md +n97 DRA-118 - - - NOT_RUN none down n.md +n98 DRA-118 - - - NOT_RUN none down n.md +n99 DRA-118 - - - NOT_RUN none down n.md +n100 DRA-118 - - - NOT_RUN none down n.md +n101 DRA-118 - - - NOT_RUN none down n.md +n102 DRA-118 - - - NOT_RUN none down n.md +n103 DRA-118 - - - NOT_RUN none down n.md +n104 DRA-118 - - - NOT_RUN none down n.md +n105 DRA-118 - - - NOT_RUN none down n.md +n106 DRA-118 - - - NOT_RUN none down n.md +n107 DRA-118 - - - NOT_RUN none down n.md +n108 DRA-118 - - - NOT_RUN none down n.md +n109 DRA-118 - - - NOT_RUN none down n.md +n110 DRA-118 - - - NOT_RUN none down n.md +n111 DRA-118 - - - NOT_RUN none down n.md +n112 DRA-118 - - - NOT_RUN none down n.md +n113 DRA-118 - - - NOT_RUN none down n.md +n114 DRA-118 - - - NOT_RUN none down n.md +n115 DRA-118 - - - NOT_RUN none down n.md +n116 DRA-118 - - - NOT_RUN none down n.md +n117 DRA-118 - - - NOT_RUN none down n.md +n118 DRA-118 - - - NOT_RUN none down n.md +n119 DRA-118 - - - NOT_RUN none down n.md +n120 DRA-118 - - - NOT_RUN none down n.md +n121 DRA-118 - - - NOT_RUN none down n.md +n122 DRA-118 - - - NOT_RUN none down n.md +n123 DRA-118 - - - NOT_RUN none down n.md +n124 DRA-118 - - - NOT_RUN none down n.md +n125 DRA-118 - - - NOT_RUN none down n.md +n126 DRA-118 - - - NOT_RUN none down n.md +n127 DRA-118 - - - NOT_RUN none down n.md +n128 DRA-118 - - - NOT_RUN none down n.md +n129 DRA-118 - - - NOT_RUN none down n.md +n130 DRA-118 - - - NOT_RUN none down n.md +n131 DRA-118 - - - NOT_RUN none down n.md +n132 DRA-118 - - - NOT_RUN none down n.md +n133 DRA-118 - - - NOT_RUN none down n.md +n134 DRA-118 - - - NOT_RUN none down n.md +n135 DRA-118 - - - NOT_RUN none down n.md +n136 DRA-118 - - - NOT_RUN none down n.md +n137 DRA-118 - - - NOT_RUN none down n.md +n138 DRA-118 - - - NOT_RUN none down n.md +n139 DRA-118 - - - NOT_RUN none down n.md +n140 DRA-118 - - - NOT_RUN none down n.md +n141 DRA-118 - - - NOT_RUN none down n.md +n142 DRA-118 - - - NOT_RUN none down n.md +n143 DRA-118 - - - NOT_RUN none down n.md +n144 DRA-118 - - - NOT_RUN none down n.md +n145 DRA-118 - - - NOT_RUN none down n.md +n146 DRA-118 - - - NOT_RUN none down n.md +n147 DRA-118 - - - NOT_RUN none down n.md +n148 DRA-118 - - - NOT_RUN none down n.md +n149 DRA-118 - - - NOT_RUN none down n.md +n150 DRA-118 - - - NOT_RUN none down n.md +n151 DRA-118 - - - NOT_RUN none down n.md +n152 DRA-118 - - - NOT_RUN none down n.md +n153 DRA-118 - - - NOT_RUN none down n.md +n154 DRA-118 - - - NOT_RUN none down n.md +n155 DRA-118 - - - NOT_RUN none down n.md +n156 DRA-118 - - - NOT_RUN none down n.md +n157 DRA-118 - - - NOT_RUN none down n.md +n158 DRA-118 - - - NOT_RUN none down n.md +n159 DRA-118 - - - NOT_RUN none down n.md +n160 DRA-118 - - - NOT_RUN none down n.md +n161 DRA-118 - - - NOT_RUN none down n.md +n162 DRA-118 - - - NOT_RUN none down n.md +n163 DRA-118 - - - NOT_RUN none down n.md +n164 DRA-118 - - - NOT_RUN none down n.md +n165 DRA-118 - - - NOT_RUN none down n.md +n166 DRA-118 - - - NOT_RUN none down n.md +n167 DRA-118 - - - NOT_RUN none down n.md +n168 DRA-118 - - - NOT_RUN none down n.md +n169 DRA-118 - - - NOT_RUN none down n.md +n170 DRA-118 - - - NOT_RUN none down n.md +n171 DRA-118 - - - NOT_RUN none down n.md +n172 DRA-118 - - - NOT_RUN none down n.md +n173 DRA-118 - - - NOT_RUN none down n.md +n174 DRA-118 - - - NOT_RUN none down n.md +n175 DRA-118 - - - NOT_RUN none down n.md +n176 DRA-118 - - - NOT_RUN none down n.md +n177 DRA-118 - - - NOT_RUN none down n.md +n178 DRA-118 - - - NOT_RUN none down n.md +n179 DRA-118 - - - NOT_RUN none down n.md +n180 DRA-118 - - - NOT_RUN none down n.md +n181 DRA-118 - - - NOT_RUN none down n.md +n182 DRA-118 - - - NOT_RUN none down n.md +n183 DRA-118 - - - NOT_RUN none down n.md +n184 DRA-118 - - - NOT_RUN none down n.md +n185 DRA-118 - - - NOT_RUN none down n.md +n186 DRA-118 - - - NOT_RUN none down n.md +n187 DRA-118 - - - NOT_RUN none down n.md +n188 DRA-118 - - - NOT_RUN none down n.md +n189 DRA-118 - - - NOT_RUN none down n.md +n190 DRA-118 - - - NOT_RUN none down n.md +n191 DRA-118 - - - NOT_RUN none down n.md +n192 DRA-118 - - - NOT_RUN none down n.md +n193 DRA-118 - - - NOT_RUN none down n.md +n194 DRA-118 - - - NOT_RUN none down n.md +n195 DRA-118 - - - NOT_RUN none down n.md +n196 DRA-118 - - - NOT_RUN none down n.md +n197 DRA-118 - - - NOT_RUN none down n.md +n198 DRA-118 - - - NOT_RUN none down n.md +n199 DRA-118 - - - NOT_RUN none down n.md +n200 DRA-118 - - - NOT_RUN none down n.md +n201 DRA-118 - - - NOT_RUN none down n.md +n202 DRA-118 - - - NOT_RUN none down n.md +n203 DRA-118 - - - NOT_RUN none down n.md +n204 DRA-118 - - - NOT_RUN none down n.md +n205 DRA-118 - - - NOT_RUN none down n.md +n206 DRA-118 - - - NOT_RUN none down n.md +n207 DRA-118 - - - NOT_RUN none down n.md +n208 DRA-118 - - - NOT_RUN none down n.md +n209 DRA-118 - - - NOT_RUN none down n.md +n210 DRA-118 - - - NOT_RUN none down n.md +n211 DRA-118 - - - NOT_RUN none down n.md +n212 DRA-118 - - - NOT_RUN none down n.md +n213 DRA-118 - - - NOT_RUN none down n.md +n214 DRA-118 - - - NOT_RUN none down n.md +n215 DRA-118 - - - NOT_RUN none down n.md +n216 DRA-118 - - - NOT_RUN none down n.md +n217 DRA-118 - - - NOT_RUN none down n.md +n218 DRA-118 - - - NOT_RUN none down n.md +n219 DRA-118 - - - NOT_RUN none down n.md +n220 DRA-118 - - - NOT_RUN none down n.md +n221 DRA-118 - - - NOT_RUN none down n.md +n222 DRA-118 - - - NOT_RUN none down n.md +n223 DRA-118 - - - NOT_RUN none down n.md +n224 DRA-118 - - - NOT_RUN none down n.md +n225 DRA-118 - - - NOT_RUN none down n.md +n226 DRA-118 - - - NOT_RUN none down n.md +n227 DRA-118 - - - NOT_RUN none down n.md +n228 DRA-118 - - - NOT_RUN none down n.md +n229 DRA-118 - - - NOT_RUN none down n.md +n230 DRA-118 - - - NOT_RUN none down n.md +n231 DRA-118 - - - NOT_RUN none down n.md +n232 DRA-118 - - - NOT_RUN none down n.md +n233 DRA-118 - - - NOT_RUN none down n.md +n234 DRA-118 - - - NOT_RUN none down n.md +n235 DRA-118 - - - NOT_RUN none down n.md +n236 DRA-118 - - - NOT_RUN none down n.md +n237 DRA-118 - - - NOT_RUN none down n.md +n238 DRA-118 - - - NOT_RUN none down n.md +n239 DRA-118 - - - NOT_RUN none down n.md +n240 DRA-118 - - - NOT_RUN none down n.md +n241 DRA-118 - - - NOT_RUN none down n.md +n242 DRA-118 - - - NOT_RUN none down n.md +n243 DRA-118 - - - NOT_RUN none down n.md +n244 DRA-118 - - - NOT_RUN none down n.md +n245 DRA-118 - - - NOT_RUN none down n.md +n246 DRA-118 - - - NOT_RUN none down n.md +n247 DRA-118 - - - NOT_RUN none down n.md +n248 DRA-118 - - - NOT_RUN none down n.md +n249 DRA-118 - - - NOT_RUN none down n.md +n250 DRA-118 - - - NOT_RUN none down n.md +n251 DRA-118 - - - NOT_RUN none down n.md +n252 DRA-118 - - - NOT_RUN none down n.md +n253 DRA-118 - - - NOT_RUN none down n.md +n254 DRA-118 - - - NOT_RUN none down n.md +n255 DRA-118 - - - NOT_RUN none down n.md diff --git a/tools/ops/window-rows/fixtures/bad-verdict.err b/tools/ops/window-rows/fixtures/bad-verdict.err new file mode 100644 index 0000000..5eb1aee --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-verdict.err @@ -0,0 +1 @@ +rows: line 2: verdict diff --git a/tools/ops/window-rows/fixtures/bad-verdict.tsv b/tools/ops/window-rows/fixtures/bad-verdict.tsv new file mode 100644 index 0000000..545bfa7 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-verdict.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca OK closed down r1.md diff --git a/tools/ops/window-rows/fixtures/bad-window.err b/tools/ops/window-rows/fixtures/bad-window.err new file mode 100644 index 0000000..28aa6d1 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-window.err @@ -0,0 +1 @@ +rows: line 2: window diff --git a/tools/ops/window-rows/fixtures/bad-window.tsv b/tools/ops/window-rows/fixtures/bad-window.tsv new file mode 100644 index 0000000..ba3dec8 --- /dev/null +++ b/tools/ops/window-rows/fixtures/bad-window.tsv @@ -0,0 +1,2 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106-210908-2a35ca PASS closed down r1.md diff --git a/tools/ops/window-rows/fixtures/good-20261106.out b/tools/ops/window-rows/fixtures/good-20261106.out new file mode 100644 index 0000000..fd9757a --- /dev/null +++ b/tools/ops/window-rows/fixtures/good-20261106.out @@ -0,0 +1 @@ +ROWS PASS rows=37 pass=17 fail=15 not_run=2 blocked=3 leases=31 diff --git a/tools/ops/window-rows/fixtures/good-20261106.tsv b/tools/ops/window-rows/fixtures/good-20261106.tsv new file mode 100644 index 0000000..d4d631c --- /dev/null +++ b/tools/ops/window-rows/fixtures/good-20261106.tsv @@ -0,0 +1,38 @@ +# window-rows v1 +r1-main-b774723f DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1-hello_gpu.md +r1-main-b774723f-recheck DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T211213Z-22963f PASS closed down r1-hello_gpu.md +r2-main-b774723f DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210919Z-bfa050 FAIL closed down r2-m16.md +r3-main-b774723f DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 - FAIL none down r3-nvrm.md +r4-d8-main DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 - NOT_RUN none down r4-d8.md +r1-280-cd2b976a DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211034Z-97b49c FAIL closed down r1-hello_gpu.md +r2-280-cd2b976a DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211039Z-82b185 FAIL closed down r2-m16.md +r3-280-cd2b976a DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211047Z-d44b69 FAIL closed down r3-nvrm.md +r1-280-cd2b976a-recheck DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211217Z-99981d FAIL closed down r1-hello_gpu.md +x-cd2b976a-cnvrm DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211350Z-5ff53e FAIL closed down r1-hello_gpu.md +x-cd2b976a-cstruct DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211354Z-abe4c4 FAIL closed down r1-hello_gpu.md +x-cd2b976a-default DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211358Z-0b8736 FAIL closed down r1-hello_gpu.md +x-cd2b976a-allc DRA-158 aien-dev/CUDApp cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40 20261106T211514Z-bba42c FAIL closed down r1-hello_gpu.md +r1-280-8e83fc2c DRA-158 aien-dev/CUDApp 8e83fc2c1e558a98912f897eb096d632223351b7 20261106T211652Z-9d1364 FAIL closed down r1-hello_gpu.md +bisect-1339738f DRA-158 aien-dev/CUDApp 1339738fbdbec2e96c09b4cd99db8d9c61cc28c7 20261106T211736Z-999b97 PASS closed down r1-hello_gpu.md +bisect-489f1c03 DRA-158 aien-dev/CUDApp 489f1c03806e0d4d5ee3c3ca018106ce2f1925eb 20261106T211758Z-0954ad FAIL closed down r1-hello_gpu.md +bisect-57de5276 DRA-158 aien-dev/CUDApp 57de52765e02b84df7d5533cbd13f442812498db 20261106T211805Z-1fb22b FAIL closed down r1-hello_gpu.md +bisect-d31dcda9 DRA-158 aien-dev/CUDApp d31dcda9c39d8daa08d621700c69b2e443962b83 20261106T211814Z-e7af2a PASS closed down r1-hello_gpu.md +bisect-2c076ca5 DRA-158 aien-dev/CUDApp 2c076ca573ab9122515876caa584c78ca7853467 20261106T211821Z-1c95d0 PASS closed down r1-hello_gpu.md +bisect-a4482e98 DRA-158 aien-dev/CUDApp a4482e98e5e57de9b64431e45d09364d1259b56e 20261106T211829Z-69ce9a FAIL closed down r1-hello_gpu.md +bisect-756452c5 DRA-158 aien-dev/CUDApp 756452c5903b7c6344ef93a85af50d400ab269d2 20261106T211841Z-5af758 PASS closed down r1-hello_gpu.md +bisect-196e84ee DRA-158 aien-dev/CUDApp 196e84eeb753089cf0c92340a21788ea83f4eebb 20261106T211847Z-542722 FAIL closed down r1-hello_gpu.md +bisect-bffff62c DRA-158 aien-dev/CUDApp bffff62cd3c48b3d2849a36e1efc26e932b6701a 20261106T211852Z-8d6546 PASS closed down r1-hello_gpu.md +x-8e83fc2c-fix-hello DRA-158 aien-dev/CUDApp 8e83fc2c1e558a98912f897eb096d632223351b7+p:12b5b2720f7558ae62256f4371fc2668c144807ef9ff37bfa9887f961fe83c5a 20261106T212006Z-bc18a9 PASS closed down r1-hello_gpu.md +x-8e83fc2c-fix-nvrm DRA-158 aien-dev/CUDApp 8e83fc2c1e558a98912f897eb096d632223351b7+p:12b5b2720f7558ae62256f4371fc2668c144807ef9ff37bfa9887f961fe83c5a 20261106T212033Z-5a8e33 PASS closed down r3-nvrm.md +x-8e83fc2c-fix-m16 DRA-158 aien-dev/CUDApp 8e83fc2c1e558a98912f897eb096d632223351b7+p:12b5b2720f7558ae62256f4371fc2668c144807ef9ff37bfa9887f961fe83c5a 20261106T212148Z-cd4ea3 PASS closed down r2-m16.md +r5-core-chip-80521cec DRA-41 aien-dev/aien-sovereign-core-mv 80521cecb34d83f84f72d0b336d87a11cf2589e0 20261106T212223Z-3054bf PASS closed down r5-core-abiq.md +r1-280-074adab1 DRA-158 aien-dev/CUDApp 074adab1748ec2c37151afc95a5fb9bb19a4dac8 20261106T213315Z-1e5d2f PASS closed down r1-hello_gpu.md +r3-280-074adab1 DRA-158 aien-dev/CUDApp 074adab1748ec2c37151afc95a5fb9bb19a4dac8 20261106T213322Z-6bc340 PASS closed down r3-nvrm.md +r2-280-074adab1 DRA-158 aien-dev/CUDApp 074adab1748ec2c37151afc95a5fb9bb19a4dac8 20261106T213432Z-50e8e2 PASS closed down r2-m16.md +r1-280-10984070 DRA-158 aien-dev/CUDApp 109840703d00fa5ae7c64af1dc0fb7b923950075 20261106T215418Z-1b24f7 PASS closed down r1-hello_gpu.md +r3-280-10984070 DRA-158 aien-dev/CUDApp 109840703d00fa5ae7c64af1dc0fb7b923950075 20261106T215425Z-96a8f0 PASS closed down r3-nvrm.md +r2-280-10984070 DRA-158 aien-dev/CUDApp 109840703d00fa5ae7c64af1dc0fb7b923950075 20261106T215540Z-de463f PASS closed down r2-m16.md +r6-core-alpha-pipeline DRA-41 aien-dev/omega-mv f9a9a40b598928fc6f92d7ffa6ff386941182663 - BLOCKED none down r6-core-alpha-pipeline.md +r7-dra120-rung11 DRA-120 aien-dev/aien-train 734690ebe955414685badcf15ba1ab4eb69b5f36 - BLOCKED none down r7-dra120.md +r-si-e2e DRA-55 aien-dev/sovereign-intelligence 6295d38a8352f189bbe1de1bfaf5ccf66cb266aa - BLOCKED none down r-si-e2e.md +r8-18091-restore-dra23 DRA-23 - - - NOT_RUN none down r8-18091-restore-dra23.md diff --git a/tools/ops/window-rows/fixtures/good-min.out b/tools/ops/window-rows/fixtures/good-min.out new file mode 100644 index 0000000..e67f374 --- /dev/null +++ b/tools/ops/window-rows/fixtures/good-min.out @@ -0,0 +1 @@ +ROWS PASS rows=6 pass=2 fail=1 not_run=2 blocked=1 leases=4 diff --git a/tools/ops/window-rows/fixtures/good-min.tsv b/tools/ops/window-rows/fixtures/good-min.tsv new file mode 100644 index 0000000..ac5bbb0 --- /dev/null +++ b/tools/ops/window-rows/fixtures/good-min.tsv @@ -0,0 +1,7 @@ +# window-rows v1 +t1 DRA-118 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490 20261106T210908Z-2a35ca PASS closed down r1.md +t2 DRA-125 aien-dev/aien-train 56cc887 20261107T010000Z-abcdef FAIL expired own:0f3a9c2e7d41b5a8c6e09d1f2b3a4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d cutover/r2.md +t3 DRA-158 aien-dev/CUDApp b774723f537cec16a359fe082b8100317a5b5490+p:12b5b2720f7558ae62256f4371fc2668c144807ef9ff37bfa9887f961fe83c5a 20261107T012000Z-000001 PASS closed own:0f3a9c2e7d41 r3.md +t4 DRA-120 aien-dev/aien-train - 20261107T014000Z-00000a NOT_RUN closed down r4.md +t5 DRA-55 aien-dev/sovereign-intelligence - - BLOCKED none down r5.md +t6 DRA-23 - - - NOT_RUN none down r6.md diff --git a/tools/ops/window-rows/gate.om b/tools/ops/window-rows/gate.om new file mode 100644 index 0000000..5b1b6a0 --- /dev/null +++ b/tools/ops/window-rows/gate.om @@ -0,0 +1,515 @@ +note SPDX-License-Identifier: Apache-2.0 +note gate: the window-rows gate runner, seeded native Omega (pattern of tools/capreg/gate.om). +note usage: gate OMC (run from tools/ops/window-rows; writes under build/) +note Hashes OMC with the native sha256 (tools/zero-legacy/sha256.om) against +note tools/zero-legacy/omega.pin, builds rows.om, then expects: +note rows < fixtures/good-.tsv exit 0, stdout equal to fixtures/good-.out +note rows < fixtures/bad-.tsv exit 1, stdout empty, stderr equal to fixtures/bad-.err +note and prints AIEN-OBS lines. Exit 0 only when every expectation holds; 3 when OMC is missing +note or does not match the pin (NOT_RUN); 1 otherwise. +note The only thing outside this program is whoever compiled it (gate.sh). + +text tbl "rows.om\n../../zero-legacy/sha256.om\nbuild/rows\nbuild/sha256\n../../zero-legacy/omega.pin\nbuild\nbuild/omc.sha\nbuild/out.txt\nbuild/err.txt\nfixtures/good-\nfixtures/bad-\n.tsv\n.out\n.err\n" +text tgood "min\n20261106\n" +text tbad "crlf\nduplicate-row\nduplicate-window\nempty-field\nexpired-pass\nfail-needs-repo\nfail-needs-sha\nfields\nheader\nissue\nlease\nlease-no-window\nlease-unrecorded\nline-too-long\nno-final-newline\nno-rows\np18091-retired\np18091-short\np18091-unrecorded\npass-needs-lease\npass-needs-repo\npass-needs-sha\nreceipt-absolute\nreceipt-dotdot\nrepo\nrow-id\nsha-patch\nsha-short\nsha-upper\ntoo-many-rows\nverdict\nwindow\n" +text tobs "AIEN-OBS " +text tg1 "window_rows_good_ok " +text tg2 "window_rows_good_total " +text tb1 "window_rows_bad_refused " +text tb2 "window_rows_bad_total " +text tbadf "gate: fixture did not give its expected result: " +text tnl "\n" +text tuse "usage: gate OMC\n" +text tnot "gate: OMC missing or not the pinned compiler (NOT_RUN)\n" +text tcf "gate: compile failed\n" +text tkey "omc_sha256: " + +const NGOOD ulong 2 +const NBAD ulong 32 + +global omcp uchar 4096 +global omcl ulong 1 +global pk uchar 4096 +global pkn ulong 1 +global pkc ulong 1 +global arg uchar 512 +global argl ulong 1 +global fin uchar 512 +global finl ulong 1 +global fout uchar 512 +global foutl ulong 1 +global ferr uchar 512 +global ferl ulong 1 +global status uchar 4 +global pin uchar 4096 +global pinl ulong 1 +global sha uchar 128 +global nb uchar 24 +global fa uchar 65536 +global fan ulong 1 +global fb uchar 65536 +global fbn ulong 1 + +note ---- text tables ---- + +fn pick i ulong to void +put argl 0 0 +atbl i +end + +note append entry i of a newline separated table to arg; w 0 tbl, 1 tgood, 2 tbad +fn aent w ulong i ulong to void +s = ulong 0 +k = ulong 0 +while lt k i bound 4096 +c = uchar 0 +if eq w 0 +c = get tbl s +end +if eq w 1 +c = get tgood s +end +if eq w 2 +c = get tbad s +end +if eq c 10 +k = add k 1 +end +s = add s 1 +end +n = get argl 0 +j = ulong 0 +while lt j 256 bound 257 +c = uchar 10 +if eq w 0 +c = get tbl add s j +end +if eq w 1 +c = get tgood add s j +end +if eq w 2 +c = get tbad add s j +end +if eq c 10 +break +end +put arg add n j c +j = add j 1 +end +put argl 0 add n j +end + +fn atbl i ulong to void +aent 0 i +end + +note arg = fixtures/; w 1 good, 2 bad; ext 11 .tsv, 12 .out, 13 .err +fn fixname w ulong i ulong ext ulong to void +pick add 8 w +aent w i +atbl ext +end + +note ---- packets for execprog ---- + +fn pk0 to void +put pkn 0 2 +put pkc 0 0 +end + +fn pka to void +n = get pkn 0 +m = get argl 0 +put pk n uchar rem m 256 +put pk add n 1 uchar div m 256 +for i ulong m +put pk add n add 2 i get arg i +end +put pkn 0 add n add 2 m +c = add get pkc 0 1 +put pkc 0 c +put pk 0 uchar rem c 256 +put pk 1 uchar div c 256 +end + +fn pkt i ulong to void +pick i +pka +end + +fn pkomc to void +for i ulong get omcl 0 +put arg i get omcp i +end +put argl 0 get omcl 0 +pka +end + +fn keep dst ulong to void +for j ulong get argl 0 +if eq dst 0 +put fin j get arg j +end +if eq dst 1 +put fout j get arg j +end +if eq dst 2 +put ferr j get arg j +end +end +if eq dst 0 +put finl 0 get argl 0 +end +if eq dst 1 +put foutl 0 get argl 0 +end +if eq dst 2 +put ferl 0 get argl 0 +end +end + +fn noio to void +put finl 0 0 +put foutl 0 0 +put ferl 0 0 +end + +note ---- run the packet; stdin, stdout, stderr redirected when set; exit code or -1 ---- + +fn child to void +if gt get finl 0 0 +fd = fopen fin 0 get finl 0 0 0 +if lt fd 0 +exit 126 +end +r = dupfd int fd 0 0 +end +if gt get foutl 0 0 +fd = fopen fout 0 get foutl 0 577 420 +if lt fd 0 +exit 126 +end +r = dupfd int fd 1 0 +end +if gt get ferl 0 0 +fd = fopen ferr 0 get ferl 0 577 420 +if lt fd 0 +exit 126 +end +r = dupfd int fd 2 0 +end +r = execprog pk 0 get pkn 0 +exit 127 +end + +fn run to long +pid = fork +if lt pid 0 +ret -1 +end +if eq pid 0 +child +end +r = waitpid int pid status 0 4 0 +if ne r pid +ret -1 +end +if ne get status 0 0 +ret -1 +end +ret long get status 1 +end + +note ---- steps ---- + +fn compile src ulong dst ulong to bool +pk0 +pkomc +noio +pick src +keep 0 +pick dst +keep 1 +r = run +if ne r 0 +ret false +end +pick dst +r = chmod arg 0 get argl 0 493 +ret eq r 0 +end + +fn hashomc to bool +pk0 +pkt 3 +pkomc +noio +pick 6 +keep 1 +r = run +if ne r 0 +ret false +end +pick 6 +fd = fopen arg 0 get argl 0 0 0 +if lt fd 0 +ret false +end +k = read int fd sha 0 128 +c = fclose int fd +ret ge k 64 +end + +fn loadpin to bool +pick 4 +fd = fopen arg 0 get argl 0 0 0 +if lt fd 0 +ret false +end +r = read int fd pin 0 4096 +c = fclose int fd +if le r 0 +ret false +end +put pinl 0 ulong r +ret true +end + +fn pinat p ulong to bool +for j ulong 64 +if ne get pin add p j get sha j +ret false +end +end +ret true +end + +note does sha[0..64) equal the 64 bytes after "omc_sha256: " in the pin +fn pinok to bool +n = get pinl 0 +m = len tkey +if lt n add m 64 +ret false +end +e = sub n add m 64 +i = ulong 0 +while le i e bound 4096 +j = ulong 0 +while lt j m bound 16 +if ne get pin add i j get tkey j +break +end +j = add j 1 +end +if eq j m +ret pinat add i m +end +i = add i 1 +end +ret false +end + +note read file arg into fa (w 0) or fb (w 1); false when unreadable or over 65535 bytes +fn slurp w ulong to bool +fd = fopen arg 0 get argl 0 0 0 +if lt fd 0 +ret false +end +n = ulong 0 +k = long 1 +while gt k 0 bound 65537 +if eq w 0 +k = read int fd fa n sub 65536 n +else +k = read int fd fb n sub 65536 n +end +if gt k 0 +n = add n ulong k +end +if ge n 65536 +k = long 0 +end +end +c = fclose int fd +if or lt k 0 ge n 65536 +ret false +end +if eq w 0 +put fan 0 n +else +put fbn 0 n +end +ret true +end + +fn sameab to bool +n = get fan 0 +if ne n get fbn 0 +ret false +end +for i ulong n +if ne get fa i get fb i +ret false +end +end +ret true +end + +note rows < fixture w/i; stdout build/out.txt, stderr build/err.txt; the exit code +fn rows w ulong i ulong to long +pk0 +pkt 2 +noio +fixname w i 11 +keep 0 +pick 7 +keep 1 +pick 8 +keep 2 +ret run +end + +note good fixture i: exit 0 and stdout byte-equal to fixtures/good-.out +fn goodone i ulong to bool +x = rows 1 i +if ne x 0 +ret false +end +pick 7 +if not slurp 0 +ret false +end +fixname 1 i 12 +if not slurp 1 +ret false +end +ret sameab +end + +note bad fixture i: exit 1, empty stdout, stderr byte-equal to fixtures/bad-.err +fn badone i ulong to bool +x = rows 2 i +if ne x 1 +ret false +end +pick 7 +if not slurp 0 +ret false +end +if ne get fan 0 0 +ret false +end +pick 8 +if not slurp 0 +ret false +end +fixname 2 i 13 +if not slurp 1 +ret false +end +ret sameab +end + +note ---- output ---- + +fn wnum v ulong to void +x = v +n = ulong 0 +if eq x 0 +put nb 23 48 +n = 1 +end +while gt x 0 bound 21 +put nb sub 23 n uchar add 48 rem x 10 +x = div x 10 +n = add n 1 +end +r = write 1 nb sub 24 n n +end + +fn obsn k ulong v ulong to void +r = write 1 tobs 0 len tobs +if eq k 0 +r = write 1 tg1 0 len tg1 +end +if eq k 1 +r = write 1 tg2 0 len tg2 +end +if eq k 2 +r = write 1 tb1 0 len tb1 +end +if eq k 3 +r = write 1 tb2 0 len tb2 +end +wnum v +r = write 1 tnl 0 1 +end + +fn report w ulong i ulong to void +r = write 2 tbadf 0 len tbadf +fixname w i 11 +r = write 2 arg 0 get argl 0 +r = write 2 tnl 0 1 +end + +fn main to int +if lt argcnt 2 +r = write 2 tuse 0 len tuse +ret 64 +end +n = argread 1 omcp 0 4095 +if lt n 1 +r = write 2 tuse 0 len tuse +ret 64 +end +put omcl 0 ulong n +pick 5 +r = makedir arg 0 get argl 0 493 +if not compile 1 3 +r = write 2 tnot 0 len tnot +ret 3 +end +if not loadpin +r = write 2 tnot 0 len tnot +ret 3 +end +if not hashomc +r = write 2 tnot 0 len tnot +ret 3 +end +if not pinok +r = write 2 tnot 0 len tnot +ret 3 +end +if not compile 0 2 +r = write 2 tcf 0 len tcf +ret 1 +end +g = ulong 0 +for i ulong NGOOD +if goodone i +g = add g 1 +else +report 1 i +end +end +b = ulong 0 +for j ulong NBAD +if badone j +b = add b 1 +else +report 2 j +end +end +obsn 0 g +obsn 1 NGOOD +obsn 2 b +obsn 3 NBAD +if ne g NGOOD +ret 1 +end +if ne b NBAD +ret 1 +end +ret 0 +end diff --git a/tools/ops/window-rows/gate.sh b/tools/ops/window-rows/gate.sh new file mode 100644 index 0000000..96aba8e --- /dev/null +++ b/tools/ops/window-rows/gate.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# Bootstrap trust boundary, as in tools/capreg/gate.sh: authenticate AIEN_OMC against +# ../../zero-legacy/omega.pin before executing it. Judgments remain in gate.om and rows.om; the +# compiler cannot authenticate itself. +set -eu +cd "$(dirname "$0")" +not_run() { echo "gate.sh: AIEN_OMC is unavailable or not independently pinned (NOT_RUN)" >&2; exit 3; } +[ -n "${AIEN_OMC:-}" ] && [ -x "$AIEN_OMC" ] || not_run +want=$(sed -n 's/^omc_sha256: //p' ../../zero-legacy/omega.pin) || not_run +[ "${#want}" -eq 64 ] || not_run +case "$want" in *[!0-9a-f]*) not_run ;; esac +have=$(sha256sum -- "$AIEN_OMC") || not_run +have=${have%% *} +[ "$have" = "$want" ] || not_run +mkdir -p build +"$AIEN_OMC" < gate.om > build/gate +chmod +x build/gate +exec build/gate "$AIEN_OMC" diff --git a/tools/ops/window-rows/rows.om b/tools/ops/window-rows/rows.om new file mode 100644 index 0000000..fd1edcc --- /dev/null +++ b/tools/ops/window-rows/rows.om @@ -0,0 +1,578 @@ +note SPDX-License-Identifier: Apache-2.0 +note rows: check a GPU-window row ledger (ROWS.tsv, format window-rows v1). +note usage: rows < ROWS.tsv +note Seeded native Omega, built only by the compiler pinned in tools/zero-legacy/omega.pin. +note Format and rules: tools/ops/window-rows/README.md and docs/ops/SPARK_TEST_SCHEDULE.md. +note Line 1 is exactly "# window-rows v1". Every other line is one row of exactly 9 TAB +note separated, non-empty fields: row issue repo sha window verdict lease p18091 receipt. +note Exit 0 and one summary line on stdout when every row holds; exit 1 and one line +note "rows: line N: REASON" on stderr at the first refused line. +note Bound: input at most 131072 bytes; every loop below consumes at least one byte per pass. + +text twhy "header\nfields\nrow-id\nduplicate-row\nissue\nrepo\nsha\nwindow\nduplicate-window\nverdict\nlease\nlease-window\np18091\nreceipt\npass-needs-sha\npass-needs-lease\nfail-needs-sha\nexpired-pass\nno-final-newline\nline-too-long\ntoo-many-rows\nno-rows\ninput-too-large\nread-error\npass-needs-repo\nfail-needs-repo\n" +text tkw "PASS\nFAIL\nNOT_RUN\nBLOCKED\nclosed\nexpired\nnone\ndown\nown:\nDRA-\n+p:\n# window-rows v1\n" +text tpre "rows: line " +text tsep ": " +text tnl "\n" +text tok "ROWS PASS rows=" +text tpa " pass=" +text tfa " fail=" +text tnr " not_run=" +text tbl " blocked=" +text tle " leases=" + +const MAXB ulong 131072 +const MAXR ulong 255 +const MAXL ulong 512 + +global buf uchar 131073 +global fs ulong 16 +global fe ulong 16 +global rs ulong 256 +global re ulong 256 +global ws ulong 256 +global we ulong 256 +global nb uchar 24 +global cnt ulong 8 + +note cnt: 0 rows, 1 pass, 2 fail, 3 not_run, 4 blocked, 5 leases, 6 window ids stored + +note ---- output ---- + +fn wnum v ulong fd int to void +x = v +n = ulong 0 +if eq x 0 +put nb 23 48 +n = 1 +end +while gt x 0 bound 21 +put nb sub 23 n uchar add 48 rem x 10 +x = div x 10 +n = add n 1 +end +r = write fd nb sub 24 n n +end + +note write entry i of twhy (newline separated) to stderr +fn why i ulong to void +s = ulong 0 +k = ulong 0 +while lt k i bound 4096 +if eq get twhy s 10 +k = add k 1 +end +s = add s 1 +end +j = ulong 0 +while ne get twhy add s j 10 bound 64 +j = add j 1 +end +r = write 2 twhy s j +end + +fn fail ln ulong i ulong to void +r = write 2 tpre 0 len tpre +wnum ln 2 +r = write 2 tsep 0 len tsep +why i +r = write 2 tnl 0 1 +exit 1 +end + +note ---- byte classes ---- + +fn isdig c uchar to bool +ret and ge c 48 le c 57 +end + +fn ishex c uchar to bool +d = and ge c 48 le c 57 +h = and ge c 97 le c 102 +ret or d h +end + +note [a-z0-9._-] +fn isid c uchar to bool +l = and ge c 97 le c 122 +d = isdig c +p = or eq c 46 or eq c 95 eq c 45 +ret or l or d p +end + +note [A-Za-z0-9._-] +fn isrepo c uchar to bool +u = and ge c 65 le c 90 +i = isid c +ret or u i +end + +note ---- spans of buf ---- + +note buf[s..e) equals entry k of tkw (newline separated): +note 0 PASS, 1 FAIL, 2 NOT_RUN, 3 BLOCKED, 4 closed, 5 expired, 6 none, 7 down, 8 own:, +note 9 DRA-, 10 +p:, 11 the header line without its newline +fn eqk s ulong e ulong k ulong to bool +a = ulong 0 +c = ulong 0 +while lt c k bound 4096 +if eq get tkw a 10 +c = add c 1 +end +a = add a 1 +end +n = ulong 0 +while ne get tkw add a n 10 bound 64 +n = add n 1 +end +if ne sub e s n +ret false +end +for i ulong n +if ne get buf add s i get tkw add a i +ret false +end +end +ret true +end + +fn isdash s ulong e ulong to bool +if ne sub e s 1 +ret false +end +ret eq get buf s 45 +end + +fn same a ulong b ulong c ulong d ulong to bool +n = sub b a +if ne n sub d c +ret false +end +for i ulong n +if ne get buf add a i get buf add c i +ret false +end +end +ret true +end + +note number of lowercase hex bytes from s, stopping at e +fn hexrun s ulong e ulong to ulong +i = s +while lt i e bound 131073 +if not ishex get buf i +break +end +i = add i 1 +end +ret sub i s +end + +note ---- fields ---- + +fn okid s ulong e ulong to bool +n = sub e s +if or eq n 0 gt n 48 +ret false +end +for i ulong n +if not isid get buf add s i +ret false +end +end +ret true +end + +note DRA-<1..5 digits> +fn okiss s ulong e ulong to bool +n = sub e s +if or lt n 5 gt n 9 +ret false +end +if not eqk s add s 4 9 +ret false +end +for i ulong sub n 4 +if not isdig get buf add add s 4 i +ret false +end +end +ret true +end + +note - or owner/name, [A-Za-z0-9._-] around exactly one slash +fn okrepo s ulong e ulong to bool +if isdash s e +ret true +end +n = sub e s +if or lt n 3 gt n 100 +ret false +end +sl = ulong 0 +at = ulong 0 +for i ulong n +c = get buf add s i +if eq c 47 +sl = add sl 1 +at = i +else +if not isrepo c +ret false +end +end +end +if ne sl 1 +ret false +end +ret and gt at 0 lt at sub n 1 +end + +note - or 7..40 lowercase hex, optionally +p:<8..64 hex> (sha256 of an applied patch) +fn oksha s ulong e ulong to bool +if isdash s e +ret true +end +h = hexrun s e +if or lt h 7 gt h 40 +ret false +end +p = add s h +if eq p e +ret true +end +if lt sub e p 3 +ret false +end +if not eqk p add p 3 10 +ret false +end +q = add p 3 +k = hexrun q e +if or lt k 8 gt k 64 +ret false +end +ret eq add q k e +end + +note - or a spark-window id: YYYYMMDDTHHMMSSZ-xxxxxx +fn okwin s ulong e ulong to bool +if isdash s e +ret true +end +if ne sub e s 23 +ret false +end +for i ulong 8 +if not isdig get buf add s i +ret false +end +end +if ne get buf add s 8 84 +ret false +end +for j ulong 6 +if not isdig get buf add s add 9 j +ret false +end +end +if ne get buf add s 15 90 +ret false +end +if ne get buf add s 16 45 +ret false +end +h = hexrun add s 17 e +ret eq h 6 +end + +note 1 PASS, 2 FAIL, 3 NOT_RUN, 4 BLOCKED, 0 refused +fn verd s ulong e ulong to ulong +for k ulong 4 +if eqk s e k +ret add k 1 +end +end +ret 0 +end + +note 1 closed, 2 expired, 3 none, 0 refused +fn lease s ulong e ulong to ulong +for k ulong 3 +if eqk s e add k 4 +ret add k 1 +end +end +ret 0 +end + +note :18091 after the lease: down, or own:<12..64 hex> (digest of a frozen own-model manifest) +fn okport s ulong e ulong to bool +if eqk s e 7 +ret true +end +if lt sub e s 4 +ret false +end +if not eqk s add s 4 8 +ret false +end +q = add s 4 +k = hexrun q e +if or lt k 12 gt k 64 +ret false +end +ret eq add q k e +end + +note relative path, 1..96 bytes of [A-Za-z0-9._-/], no leading slash, no ".." +fn okrec s ulong e ulong to bool +n = sub e s +if or eq n 0 gt n 96 +ret false +end +if eq get buf s 47 +ret false +end +pd = false +for i ulong n +c = get buf add s i +r = isrepo c +if not or r eq c 47 +ret false +end +if and pd eq c 46 +ret false +end +pd = eq c 46 +end +ret true +end + +note ---- one row ---- + +note fill fs/fe with the TAB separated fields of buf[s..e); returns the count (16 = too many) +fn split s ulong e ulong to ulong +n = ulong 0 +put fs 0 s +i = s +while lt i e bound 131073 +if eq get buf i 9 +if ge n 15 +ret 16 +end +put fe n i +n = add n 1 +put fs n add i 1 +end +i = add i 1 +end +put fe n e +ret add n 1 +end + +fn fnull f ulong to bool +ret eq get fs f get fe f +end + +note a row id (t 0) or window id (t 1) seen before, against the first k stored +fn seen t ulong f ulong k ulong to bool +for i ulong k +if eq t 0 +if same get rs i get re i get fs f get fe f +ret true +end +else +if same get ws i get we i get fs f get fe f +ret true +end +end +end +ret false +end + +note fields 1..4 (row, issue, repo, sha); records the row id +fn syntax1 ln ulong s ulong e ulong to void +nf = split s e +if ne nf 9 +fail ln 1 +end +for f ulong 9 +if fnull f +fail ln 1 +end +end +if not okid get fs 0 get fe 0 +fail ln 2 +end +r = get cnt 0 +if seen 0 0 r +fail ln 3 +end +put rs r get fs 0 +put re r get fe 0 +if not okiss get fs 1 get fe 1 +fail ln 4 +end +if not okrepo get fs 2 get fe 2 +fail ln 5 +end +if not oksha get fs 3 get fe 3 +fail ln 6 +end +end + +note fields 5, 8, 9 (window, p18091, receipt); records the window id +fn syntax2 ln ulong to void +if not okwin get fs 4 get fe 4 +fail ln 7 +end +if not isdash get fs 4 get fe 4 +w = get cnt 6 +if seen 1 4 w +fail ln 8 +end +put ws w get fs 4 +put we w get fe 4 +put cnt 6 add w 1 +end +if not okport get fs 7 get fe 7 +fail ln 12 +end +if not okrec get fs 8 get fe 8 +fail ln 13 +end +end + +note the rules between verdict v, lease l, window, sha and repo +fn rules ln ulong v ulong l ulong to void +wd = isdash get fs 4 get fe 4 +l3 = eq l 3 +if ne wd l3 +fail ln 11 +end +sd = isdash get fs 3 get fe 3 +rd = isdash get fs 2 get fe 2 +if eq v 1 +if eq l 2 +fail ln 17 +end +if sd +fail ln 14 +end +if rd +fail ln 24 +end +if ne l 1 +fail ln 15 +end +end +if eq v 2 +if sd +fail ln 16 +end +if rd +fail ln 25 +end +end +end + +fn row ln ulong s ulong e ulong to void +syntax1 ln s e +v = verd get fs 5 get fe 5 +if eq v 0 +fail ln 9 +end +l = lease get fs 6 get fe 6 +if eq l 0 +fail ln 10 +end +syntax2 ln +rules ln v l +put cnt 0 add get cnt 0 1 +put cnt v add get cnt v 1 +if ne l 3 +put cnt 5 add get cnt 5 1 +end +end + +note ---- main ---- + +fn summary to void +r = write 1 tok 0 len tok +wnum get cnt 0 1 +r = write 1 tpa 0 len tpa +wnum get cnt 1 1 +r = write 1 tfa 0 len tfa +wnum get cnt 2 1 +r = write 1 tnr 0 len tnr +wnum get cnt 3 1 +r = write 1 tbl 0 len tbl +wnum get cnt 4 1 +r = write 1 tle 0 len tle +wnum get cnt 5 1 +r = write 1 tnl 0 1 +end + +note read stdin into buf; returns the byte count, or exits refusing +fn slurp to ulong +n = ulong 0 +k = long 1 +while gt k 0 bound 131075 +k = read 0 buf n sub 131073 n +if gt k 0 +n = add n ulong k +end +if ge n 131073 +k = long 0 +end +end +if lt k 0 +fail 0 23 +end +if gt n MAXB +fail 0 22 +end +ret n +end + +fn main to int +n = slurp +if lt n 17 +fail 1 0 +end +if not eqk 0 16 11 +fail 1 0 +end +if ne get buf 16 10 +fail 1 0 +end +p = ulong 17 +ln = ulong 1 +while lt p n bound 131073 +ln = add ln 1 +q = p +while lt q n bound 131073 +if eq get buf q 10 +break +end +q = add q 1 +end +if eq q n +fail ln 18 +end +if gt sub q p MAXL +fail ln 19 +end +if ge get cnt 0 MAXR +fail ln 20 +end +row ln p q +p = add q 1 +end +if eq get cnt 0 0 +fail ln 21 +end +summary +ret 0 +end