Open and answer this issue on GitHub.
blocked, ci · opened 2026-11-28 · updated 2026-11-29 · 7 comments
Filed by the driver from the Found: of the run of issue-2862 (#2862) (owner, 2026-11-06).
Needs #2887
Needs #2888
Needs #2889
Needs #2890
The toolchain’s answers are not the in-process tests’ claims, so a “same claims” move needs a decision on what to assert. (a) nikaia check examples/foreign-runtime/crossing/src/main.nika and .../smuggled/src/main.nika are refused error[NK2502]: handle can't move to another thread on purpose (the file’s header: “expected to be refused”), but bytes.rs asserts that no examples/ program has an NK25.. refusal; that holds only because Ledger::infer alone does not read their contracts/. (b) hello-http’s counters come out plain under the project’s user-parallelism = "no" and word ... crosses: a kept lambda only with --user-parallelism yes, while sharing.rs asserts Count::Atomic (the ledger’s switch-independent floor, sharing::infer). (c) benches/brc/fast.nika is refused NK1300 by the CLI. Proposal: assert crossing/smuggled refused exactly NK2502, and run the sharing claim with --user-parallelism yes; no decision yet
The Found does not say how sure its cause is (docs/issues.md I7): a cause it names is a hypothesis, unknown until checked. The second item checks it (nikaia run scripts/where.nika, a probe, callgrind) before anything is built on it; a cause shown false is answered wrong I7: ... in the report.
develop first: the run that wrote it may have used a binary older than the tip, so it may be fixed already (#1822: #1788 was filed from a probe a fix under #1754 had already made pass). A probe that passes there names the commit that fixed it (git log -400 --grep by topic, since a fix often lands under another issue’s number), and the run builds only a tests/compiler/tests/ test that pins it (docs/issues.md I13).std defect with a probe (nikaia run scripts/probe.nika -- SNIPPET; a lowered file that differs, with an uncached lower-std of a git archive HEAD copy, NIKAIA_LOWER_CACHE_SALT fresh and --sysroot COPY/crates, its lowered/ diffed against the copy’s, never the shared working tree’s, #1793), a defect in docs/, guide/, website/ or scripts/ (a stale example, a wrong rule) with the command or check that shows it; a behaviour the code does on purpose (name the function or ADR) closes it as by design. The Found line may lack them (#1710): the commit message, or the report’s Body: when closed, gives the probe or check with its expected output, the ADR or Part I-III section that says so, and its actual output (docs/issues.md I5, I6), and the cause, file and function, traced or suspected (I7).std defect in the compiler, a stale page example or rule in its page or docs/ file, a script defect in the script. Add a test in tests/compiler/tests/ unless a check that already runs turns red on it (name it: pre-push’s page-examples for guide/ and website/, check-adr-refs.nika for a docs citation).The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.
Generated by Claude Code
Supervisor decision: the toolchain’s answer is the claim, and the proposal is approved.
crossing and smuggled are refused on purpose, as their headers say. The Nikaia test asserts that each is refused with exactly NK2502 and nothing else. The bytes.rs claim “no examples/ program has an NK25.. refusal” held only because Ledger::infer does not read their contracts/, so it is dropped.--user-parallelism yes and asserts the toolchain’s answer: the counter is atomic because it crosses through a kept lambda. The project setting user-parallelism = "no" stays as it is.benches/brc/fast.nika is refused with NK1300: “the precondition of Table::slot_of … is not proved: 2 calls do not prove it” (line 82). A corpus program the checker refuses is a defect, and no test skips it. Make it check by proving the claim at its 2 call sites (a guard or a narrower type). Never weaken or remove the assert; that would trade a proof for speed. If the claim holds there and the prover cannot see it, it is a compiler defect: fix it in the compiler with a test.Done when: the Nikaia ledger test for (a) and (b) is green with the committed books, and nikaia check benches/brc/fast.nika is clean.
Generated by Claude Code
Brief queued: issue-2873
agent: builder model: opus max_turns: 200 budget_usd: 30 effort: medium —
Your work order is issue #2873, inlined below with its comments. There is no
brief written around it: plan your own steps from its To build list, build
them in order, commit after each finished step, and end when its Done when
holds (or at the limits of builder.md, reporting what is left). The
facts in your prompt are Core of docs/builder-facts.md; more on a topic:
nikaia run scripts/syntax.nika -- KEYWORD, a probe: nikaia run scripts/probe.nika -- SNIPPET.
Measure the issue against docs/issues.md while you work: what it lacked,
what was wrong in it. That answer goes into the report’s Issue: field.
A finding, a changed plan or a finished item also goes into the issue as a
comment (gh api repos/Nikaia-Foundation/Nikaia/issues/2873/comments -F body=@file,
ending with the Claude Code footer), rule I13.
develop in the main checkout; other agents’ uncommitted files are not yours: never touch or stage them.target/fast/nikaia run scripts/commit.nika -- REPORT (it adds exactly the report’s Files:); the driver pushes.cargo build --profile fast -p nikaia, lower-std and its fixpoint when a tools/*.nika changed, cargo fmt, cargo clippy --all-targets -- -D warnings, nikaia run scripts/pre-push.nika, the tests the issue names and the ones your change touches.CHANGELOG.md, badges and NK codes are the supervisor’s. New tests in Nikaia only: a Rust test file an older issue names is built as a tests/compiler/tests/ program, no Deviation: and no Issue: point (I9, #1671).Body:. Found: is only for what lies outside the area, cannot be fixed this run or needs a decision; the driver files it as an issue.std or the toolchain lacks stops the work, unless an ADR or Part I-III refuses it (name it): Result: blocked, Found: the gap with a probe, Needs: supervisor decision.NIKAIA_CACHE_LIMIT=2G; at the end delete your own clone’s target/ and target/release/nikaia-scratch.suspected, or does not mark (docs/issues.md I7), is a hypothesis: run the check that settles it (nikaia run scripts/where.nika -- NAME, the probe with a trace, callgrind for a cost) before you build on it (owner, 2026-11-16). Shown false: say so in Issue: as wrong I7: <what the check showed> (the driver comments it on the issue) and follow the real cause.Result: partial with what you ruled out, the probe, and the suspected file and function./home/user/Nikaia/docs/briefs/ci/issue-2873.md.report.md)Fields: Result, Files, Commit, Body (optional), Fixes, Pushed, Tests, Gate, Deviation, Found, Needs, Changelog, Issue, Owner (a question for the owner), Comment (#N <text>, what to say on another issue; the driver posts it, one line each), Friction, Disk freed, and last Attribution: with your commit trailer lines below it.
Result:, Gate: (green or red <check>), Deviation:, Found: and the other fields with nothing to say hold the bare word: done, none. Anything after it reads as content.Result: done only when the issue’s Done when holds; partial with the items left otherwise.Deviation: only for an item of the issue built otherwise than written, or not built. Found: only for a defect outside your area, or one this run cannot fix: one defect per Found: line, with its probe and the output it gives, only the shapes that fail today, and the suspected file and function or cause unknown (#1695); a by-design behaviour is none (#1677). A correct program your own change refuses (a fail-closed check’s false refusal) is no Deviation: but one Found: line per shape, with its probe (#1680). Everything else goes into Body:; how you verified goes into Tests:.Issue: by docs/issues.md, How a run judges its issue: complete, or broke I<n>: ..., rules-gap: ..., wrong I<n>: ..., joined with ;; a point your own commit built gets (built) after its kind (rules-gap (built): ...), and the driver does not file it. complete is the bare word: prose after it (complete; the earlier runs ...) is filed as an improvement issue (#1931); history or a note for your own issue goes into Body: or Comment: #N <text>.done <sha>, report <path> (or BLOCKED: ... / PUSH REJECTED ...).Generated by Claude Code
Run: issue-2873, ESCALATE timed out after 150 minutes
Tokens: input 0, cache read 0, cache write 0, output 0 Cost: 0.00 USD, time 0 min 0 s, turns 0
(none)
Generated by Claude Code
State after the first run (timed out at 150 min, its two steps committed by the supervisor, d269ad1ea and 35f8ef158, local, pushed with the next batch):
corpus_crossings_and_counters_are_the_toolchains asserts crossing/smuggled refused exactly NK2502 and the counters with --user-parallelism yes; the in-process claims of bytes.rs and sharing.rs are dropped.nikaia check benches/brc/fast.nika on 35f8ef158 is still refused NK1300 twice: the preconditions of Table::slot_of (pos >= 0 && len >= 0 && pos + len <= buf.len()) and Table::run (stop > 0 && stop <= buf.len() - MARGIN), “2 calls do not prove it” each. 35f8ef158 fixed only the part where pos stopped being a whole number the prover reads.For the next run: do not run bytes::the_corpus_needs_no_tether, sharing::... or tethers::... locally (30-40 minutes each, they cost the first run its time); CI runs them on runners of their own.
Generated by Claude Code
Run: issue-2873, refused: /home/user/Nikaia/docs/briefs/ci/issue-2873.md is still running (pid 1925, its session in /home/user/Nikaia/docs/briefs/ci/issue-2873.md.session); wait for it to end or kill it
Tokens: input 0, cache read 0, cache write 0, output 0 Cost: 0.00 USD, time 0 min 0 s, turns 0
(none)
Generated by Claude Code
Run: issue-2873, refused: docs/briefs/ci/ESCALATE exists
Tokens: input 0, cache read 0, cache write 0, output 0 Cost: 0.00 USD, time 0 min 0 s, turns 0
(none)
Generated by Claude Code
Run: issue-2873, Result: partial
Tokens: input 306, cache read 11230970, cache write 204387, output 59715 Cost: 0.25 USD, time 0 min 42 s, turns 153
Result: partial
Pushed: local d269ad1ea (a)+(b) test, local 35f8ef158 prover fix
Tests: corpus_crossings_and_counters_are_the_toolchains and prover_whole_number_handed_to_a_reading_method green –both-settings (the second refused NK1300 on $NIKAIA_OLD); tests/compiler filters prove/bound/assert/claim/precondition/loop all green (353 programs); clippy, fmt clean; it bytes::the_corpus_needs_no_tether and sharing::the_one_shared_in_the_repository stopped by the background limit after 60+ s, not finished locally
Gate: green
Deviation: none
Found: Prover, (c) of #2873: let mut cut = 0; if n > 256 { cut = n - 256; while cut > 0 && b[cut - 1] != '\n' { cut -= 1 } }; assert(cut >= 0) gives NK1300 “nothing before it shows it” on HEAD 35f8ef158 (the same assert inside the if is proved); traced: prover_join_arms (prover_walk.nika) does not carry the then-side’s new LoopRecords into the joined scope, so the loop’s invariant is lost at the join
Found: Prover, (c) of #2873: let mut tail: Vec[u8] = []; for c in b[cut..<n] { tail.push(c) }; for _ in 0..<256 { tail.push(0) }; assert(tail.len() == n - cut + 256) gives NK1300 “no invariant found for the loop that changes tail.len(), _ carries it” on HEAD 35f8ef158; cause unknown (suspected: the for-over-slice and for-over-range push loops in prover_walk.nika give no length invariant; check: the same assert after only the first loop)
Found: Prover, (c) of #2873: in benches/brc/fast.nika Table::run, assert(pos >= 0) and assert(pos + len <= buf.len()) placed before self.slot_of(w0, w1, len, buf, pos) give NK1300 “no invariant found for the loop that changes sep carries it” on HEAD 35f8ef158 (an inner while true that sets sep from pos and breaks, inside an outer loop that ends with pos = sep + 4 + ((dot >> 3) as i64)); sep <= buf.len() is proved; cause unknown (suspected: nested-loop invariants in ADR-361’s lazy loop records, prover_walk.nika through_loops)
Found: Prover, (c) of #2873: the type rule assert(len >= 0 && len <= name.len()) on struct Slot { len: i64, name: Bytes, ... } gives NK1300 “slot is not a whole number the prover reads” where a slot is built (Slot { len: 0, name: Bytes([]), ... } and Slot { len: len, name: buf[pos..<pos + len].clone(), ... }), and for s in other.slots { assert(s.len >= 0 && s.len <= s.name.len()) } is not proved from it, on HEAD 35f8ef158; cause unknown, so merge’s self.slot_of(s.w0, s.w1, s.len, s.name, 0) cannot be proved by a narrower type
Found: Lowering: let mut m: collections::BTreeMap[String, bool] = collections::BTreeMap(); for k in keys { let n = k.split(":").last() ?? continue; m.insert(n, true) }; for k in more { let x = k.clone(); let b = m.get(x) ?? true; m.insert(x, b) } (fn count(keys: ref Vec[String], more: ref Vec[String]) -> i64, use std::collections) gives NK1343 “EitherText<’_>: Borrow<nikaia_std::block::Text> is not satisfied” at m.get(x) on target/fast/nikaia at 35f8ef158, where it should run; traced: declared.nika maps an either Type to an owned String Ty (ADR-282 D15), so a_lookup_key_lent (check_reads.nika) lends the owned key as &x instead of FactKeyForm::Viewed (as_text(&x)), which a mixed key needs
Needs: #2873 (c) stays open until the four prover gaps above are built: nikaia check benches/brc/fast.nika still gives NK1300 at slot_of (line 82) and run (line 115)
Changelog: Prover: a whole number handed to a method that cannot change it (no mut parameter in any method of that name) keeps what the prover knows of it (NK1300 before). Tests: the corpus’s crossings and hello-http’s atomic counters are checked as the toolchain answers them.
Issue: ok I1-I13; (c)’s “prove with a guard or a narrower type” does not fit: the claims hold, and four prover gaps hide them (Found lines)
Friction: the two whole-corpus it tests (bytes, sharing) outlive a 600 s foreground call and twice the background limit, so they could not be confirmed locally
Disk freed: 0 (target/nikaia-project-tests 1011M; / 6.1G free; no new cache entry over 100 MB)
Attribution:
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01UVxJDtmukJNapbMLmZMzTV
bytes::the_corpus_needs_no_tether, sharing::the_one_shared_in_the_repository). Three runs died: a timeout 3000 run killed (143), one stopped at the 600 s foreground limit and its background time, and one cut off when the session ended. Next was the rabbit hole on the EitherText map-key lowering error (about 15 turns in the tiers, checker and emitter) before I filed it as Found.untracked_in, prover_value_readers), and how Signature.mutable names self.either text becomes owned String in the checker (declared.nika, ADR-282 D15).nikaia test takes --bless/--filter, not --update.$NIKAIA_OLD, the per-claim scratch copy of fast.nika with check --asserts, the tests/compiler filters, clippy, fmt.lower-std accepts code that rustc then refuses.broke I7: (c) assumed a guard or narrower type would do; no probe of which sub-claims fail at each call site. Running check --asserts on a copy with split asserts before each call shows four separate prover gaps.knowledge: Lowering | a BTreeMap[String, _] that gets both views and owned keys lowers its key as EitherText, and an owned key looked up there draws NK1343.Fact: Core | the it tests over the whole corpus (bytes::the_corpus_needs_no_tether, sharing::the_one_shared_in_the_repository) run past the 600 s foreground limit and the background time; leave them to the driver.Fact: Ledger and bounds proofs | a variable handed to a method stays tracked only when no method of that name takes a non-self mut parameter (key ".name", prover_value_readers, 2026-11-28, 35f8ef158).Fact: Ledger and bounds proofs | split a refused precondition into one assert per sub-claim before each call, in a scratch copy, and run nikaia check --asserts; the "not proved" reason names the gap.Fact: Ledger and bounds proofs | benches/brc/fast.nika: 2 NK1300 left (slot_of line 82, run line 115), 27 of 29 asserts proved (2026-11-28, 35f8ef158).Generated by Claude Code