Repository navigation
spec(port): port specs/port/trios-railway/crates/trios-igla-race/src/bin/reset_queue.t27 (Closes #9743) - #10056
Open
dmitrii-f-t27 wants to merge 3 commits into
Open
dmitrii-f-t27 wants to merge 3 commits into
dmitrii-f-t27 wants to merge 3 commits into
Conversation
…bin/reset_queue.t27 (Closes gHashTag#9743) Port gHashTag/trios-railway:crates/trios-igla-race/src/bin/reset_queue.rs (at 5cc46e798dda, 78 lines) as specs/port/trios-railway/crates/ trios-igla-race/src/bin/reset_queue.t27 - Roadmap Stage 6, goal gHashTag#4548, target t27c gen-rust. The queue reset tool's decisions are ported as pure functions and tested (9 tests, 9 pass, 0 vacuous, 57 runtime asserts, 100% function coverage): the three-tier postgres URL chain of the R5/GitGuardian rule and the L-NEON-RENAME law (an explicit $1 argument beats RAILWAY_POSTGRES_URL, which beats the legacy NEON_DATABASE_URL; none is the missing-URL abort), the --cpu-batch switch (on when any argument equals it), the LR sweep grid (four LRs by three seeds = 12 experiments, the seed running fastest in the flat walk), the fixed sweep facts of one experiment (h=1024, ctx=12, 120000 steps, priority 99, phase CPU-LR-SWEEP, account acc0, author seed-agent) as a typed plan, the active-row filter (pending, claimed, running), the listing order (priority DESC, then id ASC), the SQL quote doubling every single quote undergoes, and main's URL gate (exit 1 before any queue work when no tier holds a URL, else 0). The PullQueueDb connection, raw_query and raw_execute are the callers' plumbing. Verified: parse OK, spec-status IMPLEMENTED, typecheck 0 errors, coverage 9/9, test-report 9/9 pass, 0 BLOCKED, gen 200 lines with 0 'not yet implemented', boundary exactly this one file, dupe_scan: all 9 function names unique, bare body scan 726/219 unchanged. Dmitrii Fedorov ([@dmitrii-f-t27](https://github.com/dmitrii-f-t27))
This was referenced Oct 17, 2026
Merged
…loses gHashTag#9743) The corpus ratchet runs every spec through gen, gen-rust, gen-c and gen-verilog; the first cut of this port held local [N][]const u8 argument arrays in its test, a 2-D aggregate the Verilog lowering does not implement yet (W469), which the ratchet reported as 'UNEXPECTED FAILURES: + reset_queue.t27 [gen-verilog]'. The --cpu-batch decision is re-ported Verilog-safely with the same behaviour: reset_queue_arg_is_batch decides one argument, and reset_queue_batch_flag_count carries the any-argument shape over three fixed argument slots (the caller walks argv). All four generators now emit this spec; 9 tests, 9 pass, 0 vacuous, 0 BLOCKED; dupe_scan unchanged; boundary still exactly this one file. Dmitrii Fedorov ([@dmitrii-f-t27](https://github.com/dmitrii-f-t27))
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
spec(policy): l2_generation -- gen/json/ is t27c gen-json's backend directory (Closes #10079)
#10082
Merged
Merged
Merged
Merged
This was referenced Oct 18, 2026
Merged
Merged
Merged
Merged
spec(t27f): token_floor -- an infographic where every particle carries a fact (Closes #10323)
#10325
Merged
Merged
Closed
Merged
Merged
Merged
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port
gHashTag/trios-railway:crates/trios-igla-race/src/bin/reset_queue.rs(at5cc46e798dda, 78 lines) asspecs/port/trios-railway/crates/trios-igla-race/src/bin/reset_queue.t27— Roadmap Stage 6 (goal #4548), target t27c gen-rust. Closes #9743.The original is the queue reset tool: it resolves the Postgres URL through a three-tier chain, optionally inserts a CPU LR-sweep batch, and lists the active experiments.
Per the issue's rule ("Port the decision, not the plumbing"), the one listed function is ported under its name as a pure function (no transports — the PullQueueDb connection,
raw_queryandraw_executeare the callers' plumbing) with 9 tests (57 runtime asserts, 0 vacuous, 100% function coverage):RAILWAY_POSTGRES_URL, which beats the legacy `NEON_DATABASE_URL`; when no tier holds a URL the tool dies;--cpu-batch;reset_queue_batch_index);CPU-LR-SWEEP, accountacc0, authorseed-agent;pending,claimedandrunningrows — done and everything else stay out;priority DESC, thenidascending on a tie;main's URL gate (line 5): exit 1 before any queue work when no tier holds a URL, else 0 after the optional sweep insert and the listing.Verification (all run live from the worktree root, zig 0.16.0)
t27c parse: OK.t27c spec-status: IMPLEMENTED.t27c typecheck: 0 errors, 0 warnings.t27c coverage: 9/9 tested (100%) — no transports in this port.t27c test-report: 9 tests / 9 pass / 0 FAIL / 0 BLOCKED, 0 vacuous passes — the URL chain all four combinations, main's gate at each tier, the switch on/off/midway/absent, the grid indices at the corners, the sweep constants, the plan's typed fields, the active filter's three states and three non-states, the order both ways plus the id tie-break, and the quote counts at 0/1/3.t27c gen | grep -c 'not yet implemented': 0;gen | wc -l: 200 (> 12).grep -cE '^\s*(pub )?fn (main)\(': 1.grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])': 9 (≥ 1).git status --short— exactly this one file. The repo's lefthook pre-commit passed.dupe_scan: all 9 function names unique across the corpus (checked before the commit); the bare body scan adds no duplicate group and none of the known groups grew (726 bodies / 219 groups, unchanged).Dmitrii Fedorov (@dmitrii-f-t27)