From 0857dfdcebf3c2b7f9940c389304ffb3265317b3 Mon Sep 17 00:00:00 2001 From: Trinity Bee Date: Sun, 20 Sep 2026 15:42:05 +0000 Subject: [PATCH 1/3] salvage(queen-4370): commit what the turn left uncommitted The turn ended with these files edited and never committed. Uncommitted work is invisible to the review - it reads the branch - so the attempt would have been released as empty and the next bee would have started beside this work rather than from it. This commit is not a claim that the work is correct. It is the bee's work, committed on its behalf, and it is judged exactly like any other: the adversarial reviewer reads it, the compiler runs on it, and the issue's own criteria are measured against it. Issue: #4370 Turn: 169fab1f-67be-4c7d-a556-8ad5d384075d Ending: finished (the turn closed) Committed: 1 path(s) Left uncommitted: 0 path(s) outside the declared boundary --- specs/vm/jit_semantics.t27 | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/specs/vm/jit_semantics.t27 b/specs/vm/jit_semantics.t27 index a271cb949e..58dba68b99 100644 --- a/specs/vm/jit_semantics.t27 +++ b/specs/vm/jit_semantics.t27 @@ -45,7 +45,7 @@ module JitSemantics { // Caches compiled functions by dimension to avoid redundant compilation // Maintains compiler instance for on-demand compilation pub struct JitCache { - bind_cache : map, // Cached bind functions by dimension + bind_cache : map>, // Cached functions by dimension and operation compiler : JitCompiler, // Compiler instance for compilation allocator_id : u16, // Allocator identifier } @@ -165,11 +165,31 @@ module JitSemantics { // Returns function pointer or compiles new function if needed // Complexity: O(1) for cache hit, O(dimension) for compile pub fn getOrCompile(cache: &JitCache, op: VsaOperation, dimension: usize) -> ?JitVsaFn { - // TODO: Implement actual cache lookup and compilation - _ = cache; - _ = op; - _ = dimension; - null + // Look in the cache for the given dimension and operation + let inner_map_opt = cache.bind_cache.get(dimension); + let inner_map = if let Some(inner_map) = inner_map_opt { + inner_map + } else { + let new_inner_map = map(); + cache.bind_cache.insert(dimension, new_inner_map); + cache.bind_cache.get(dimension).unwrap() + }; + if let Some(func) = inner_map.get(op) { + return func; + } + // Not found in cache, need to compile + // Reset the compiler to clear any previous state + resetCompiler(&cache.compiler); + // Compile the operation for the given dimension + _ = compileOperation(&cache.compiler, op, dimension); + // Finalize to get the function pointer + let func = finalizeCompiler(&cache.compiler); + if let None = func { + return null; + } + // Store the function in the cache + inner_map.insert(op, func.unwrap()); + return func; } // ======================================================================== From 5ad2d2ae9c58e750e92d29885db5bdaac4db82dc Mon Sep 17 00:00:00 2001 From: "queen-publisher[bot]" Date: Mon, 21 Sep 2026 19:43:50 +0000 Subject: [PATCH 2/3] docs: the coordination entry this branch needs to land A pull request must add exactly one docs/now entry and a bee has no way to know that: its brief names a boundary file and acceptance criteria, and docs/now/ is neither. The publisher adds it rather than failing the gate. Closes #4370 Co-Authored-By: Claude Opus 5 --- ...t-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md diff --git a/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md b/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md new file mode 100644 index 0000000000..edd7f649dc --- /dev/null +++ b/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md @@ -0,0 +1,11 @@ +# NOW -- Implement part 2 of 2 of the empty bodies in specs/vm/jit_semantics.t27 (4 functions) (published 2026-09-21) + +## A bee's work on #4370, published from `queen-4370` (Closes #4370) + +- The branch changes 1 file(s): `specs/vm/jit_semantics.t27`. +- `git diff --stat origin/master...queen-4370` reads: 1 file changed, 26 insertions(+), 6 deletions(-) +- This entry is written by the publisher, not by the bee. A pull request must + add exactly one `docs/now/` entry and a bee has no way to know that: its brief + names a boundary file and acceptance criteria, and `docs/now/` is neither. +- What this entry does NOT establish: that the work is correct. The gates on the + pull request judge that, and they are the same gates every other change meets. From e7b9804d8344131e4963e34989b9c5e5a0573a2c Mon Sep 17 00:00:00 2001 From: Vasilev Dmitrii Date: Sun, 4 Oct 2026 00:41:48 +0700 Subject: [PATCH 3/3] now: the heading the `check` gate reads (Refs #4370) tools/queen/publish.py wrote `(published DATE)`, which tools/check_now_entry_shape.py HEADING does not accept; fixed in the publisher by #5777. Only the first line changes. Co-Authored-By: Claude Opus 5.5 --- ...lement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md b/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md index edd7f649dc..aeb6974929 100644 --- a/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md +++ b/docs/now/2026-09-21-published-implement-part-2-of-2-of-the-empty-bodies-in-specs-vm-jit-se.md @@ -1,4 +1,4 @@ -# NOW -- Implement part 2 of 2 of the empty bodies in specs/vm/jit_semantics.t27 (4 functions) (published 2026-09-21) +# NOW -- Published: Implement part 2 of 2 of the empty bodies in specs/vm/jit_semantics.t27 (4 functions) (2026-09-21) ## A bee's work on #4370, published from `queen-4370` (Closes #4370)