Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
a206d31
glm cuda: the L2 prefetch's ffn-head site also reads a MoE layer's sh…
Bizuayeu Nov 13, 2026
d6b071b
changelog: #3156 under Unreleased
ashhart Nov 19, 2026
29884d6
flashnext cuda: the mixed PLE shard and the nested shards leave the p…
jschmied Nov 15, 2026
87515d8
gradient-serving pins: the two Flash Next load files #3467 changes
jschmied Nov 16, 2026
2e8bd28
changelog: #3467 under Unreleased
ashhart Nov 19, 2026
e92353b
nemotron: drop the Living Weights copies the 10-17 revert left behind…
jschmied Nov 17, 2026
9aae35a
changelog: #3707 under Unreleased
ashhart Nov 19, 2026
23b9174
Ling-3.0-tiny MLA on Metal using existing k3_mla (#1247)
ThinkOffApp Nov 16, 2026
64c33dd
Ling MLA Metal: split GPU tests and one-line comments for lean check
ThinkOffApp Nov 16, 2026
809a722
Ling MLA Metal: kernel contract for rope_cache, rope_q, gate_expand
ThinkOffApp Nov 16, 2026
971ac6a
changelog: #3609 under Unreleased
ashhart Nov 19, 2026
074a79f
app: honor the latest ticket review verdict
AIFlowML Nov 15, 2026
92d711f
app: invalidate ticket reviews after new builder evidence
AIFlowML Nov 15, 2026
66cde05
app: keep review notes and worker evidence scoped to their run
AIFlowML Nov 17, 2026
2103a02
changelog: #3484 under Unreleased
ashhart Nov 19, 2026
e19b2d1
Use the native Qwen3.5-2B tap count in Desktop
AIFlowML Nov 18, 2026
898414f
changelog: #3768 under Unreleased
ashhart Nov 19, 2026
24909b2
Accept OpenAI base URLs in Web engine settings
AIFlowML Nov 18, 2026
f669233
changelog: #3831 under Unreleased
ashhart Nov 19, 2026
96480a0
Keep Desktop export actions tied to the current preview
AIFlowML Nov 18, 2026
25cf2ab
changelog: #3834 under Unreleased
ashhart Nov 19, 2026
01813fd
Cancel pending Desktop checks when automatic updates are disabled
AIFlowML Nov 18, 2026
e50c927
changelog: #3836 under Unreleased
ashhart Nov 19, 2026
dc65f57
Preserve attachment diagnostics across Desktop draft reopens
AIFlowML Nov 18, 2026
10deb5f
changelog: #3842 under Unreleased
ashhart Nov 19, 2026
493f9e2
core/quant: a GPTQ reader for AutoGPTQ v1 group 128 symmetric weights
BadAd84 Nov 16, 2026
4d62482
core/quant: gptq reads its JSON fields through modelopt's helpers
ashhart Nov 17, 2026
36bf42d
core/quant: drop gptq's test-only zerosSymmetric wrapper
ashhart Nov 17, 2026
fd78f3e
core/quant: gptq refuses an escaped letter, a bad checkpoint_format a…
BadAd84 Nov 17, 2026
13ab186
changelog: #3611 under Unreleased
ashhart Nov 19, 2026
1d6d951
idol: Idol's denoiser as a native Metal family, with tf-idol and its …
jayleaton Oct 31, 2026
c6856c7
contract: Idol's denoiser kernels through gates 1-5
jayleaton Oct 31, 2026
8fd0dd0
idol: id_qk keeps a NaN norm as F.normalize does; the recipe
jayleaton Oct 31, 2026
556b530
idol: attention rounds P to fp16 before P V, so its denominator sums …
jayleaton Oct 31, 2026
c153dc1
idol: the recipe names the tensor units' fp32 operand truncation (#1772)
jayleaton Oct 31, 2026
0eb4c3e
notices: idol.metal follows idol-sdk's rounding points (Apache 2.0)
jayleaton Nov 11, 2026
8812e63
idol_case.py: a synthetic-conditioning case, feature1 and feature2 dr…
jayleaton Nov 11, 2026
211d468
idol: land on main beside uocr, with the image programs in their own …
ashhart Nov 17, 2026
1be48fc
changelog: #1766 under Unreleased
ashhart Nov 19, 2026
6216f0b
drama voices: admin keys add and delete catalog voices under --manage…
ashhart Nov 13, 2026
b1950a0
server: the voice HTTP test runs only where its Unix socket pair exists
ashhart Nov 15, 2026
bb4d0f2
drama voices: bound WAV chunk and resample admission
ashhart Nov 17, 2026
3766e28
changelog: #3140 under Unreleased
ashhart Nov 19, 2026
b0bdc80
feat(cli): validate a cluster config file without planning or probes
mvanhorn Nov 13, 2026
438c736
docs(cluster): scope config validate to source builds, rename backend…
mvanhorn Nov 14, 2026
13ce812
changelog: #3189 under Unreleased
ashhart Nov 19, 2026
a12e68e
server: an opt-in request journal with replay and crash quarantine
ashhart Nov 17, 2026
e84ce42
Document prompt-list replay limits and pin journal trace isolation
ashhart Nov 17, 2026
5a5aa40
changelog: #3221 under Unreleased
ashhart Nov 19, 2026
93fb56e
Qwen3.5 on Metal holds its language model without the vision tower st…
jschmied Nov 15, 2026
7ec6bed
changelog: #3407 under Unreleased
ashhart Nov 19, 2026
63210ab
families: Nemotron, GLM, Qwen 3.8 27B, MiniMax M3, Dory, tensor-paral…
ashhart Nov 16, 2026
34d58eb
changelog: #3558 under Unreleased
ashhart Nov 19, 2026
06b17ff
docs: verify NCCL selection for switchless GLM TP4
vdalesandro Nov 12, 2026
e5443fa
docs: tighten switchless NCCL note and cite upstream release
vdalesandro Nov 12, 2026
0a59efd
docs: the switchless NCCL notes wrapped at 120 columns, and 'a newer …
ashhart Nov 14, 2026
bd5eb12
changelog: #2993 under Unreleased
ashhart Nov 19, 2026
5c6598c
nvfp4 experts cuda: decode half gate-up streams words, scales and x t…
eleqtrizit Nov 4, 2026
8e4341b
nvfp4 experts cuda: classic, waves and half decode kernels share one …
eleqtrizit Nov 4, 2026
5446b8b
nvfp4 experts contract: decode CTA records from nvcc 13.0.88, with a …
eleqtrizit Nov 5, 2026
4d248b8
nvfp4 experts contract: zig fmt the decode CTA records
eleqtrizit Nov 5, 2026
c407799
CHANGELOG: NVFP4 decode expert ring on sm_120 and GB10
eleqtrizit Nov 8, 2026
8788791
nvfp4 experts cuda: GB10 keeps register-loaded decode kernels
eleqtrizit Nov 8, 2026
f97927b
CHANGELOG: move the NVFP4 decode ring line back under Unreleased
eleqtrizit Nov 9, 2026
4cd37b2
tests: re-pin zig/kernels/cuda/nvfp4_experts.cu for #2266
ashhart Nov 13, 2026
ec59d59
changelog: #2266's line from lines/2266.txt in place of its own
ashhart Nov 19, 2026
ce52af0
docs: GLM-5.3-Flash Jammed XSFP4 NZ5 is in 1.2.10
Bizuayeu Nov 18, 2026
f055e38
changelog: #3869 under Unreleased
ashhart Nov 19, 2026
5c81fb2
Scope Desktop search project filtering to all conversations
AIFlowML Nov 19, 2026
e25a573
changelog: #3900 under Unreleased
ashhart Nov 19, 2026
63a3a30
docs: budget released drafter adaptation by class reuse
Maxrio9 Nov 18, 2026
9f5ea57
docs: adaptation numbers on the independent agent set
Maxrio9 Nov 18, 2026
c1cc2f8
changelog: #3369 under Unreleased
ashhart Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,50 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- Docs: the drafter training recipe gains a section on adapting an already released drafter, budgeted from a few passes over the scarcest class at a low learning rate with early checkpoints, with the Qwen3.8-27B pilot behind it (#3369, refs #2667). Thanks to @Maxrio9.

- Desktop: searching the current conversation no longer carries a project picked under All saved conversations; the request, its results, filters and navigation use the scope's own project filter, and switching back restores the project (#3900, fixes #3849). Thanks to @AIFlowML.

- Docs: GLM-5.3-Flash Jammed XSFP4 NZ5 is listed as in 1.2.10 in the supported models table and the GLM CUDA recipe, where both said "on main after 1.2.7" (#3869, refs #2894). Thanks to @Bizuayeu.

- CUDA: NVFP4 expert decode streams its weights through a per-warp `cp.async` ring with the same output bits; on an RTX PRO 6000 (sm_120) with drafts off the author measured GLM-5.3 decode at 104.1 tok/s against 83.8, and on GB10 (sm_121) it is level (#2266). Thanks to @eleqtrizit.

- Docs: the GLM-5.3-Flash CUDA recipe covers switchless RoCE links on separate IPv4 subnets: NCCL 2.30.7 or later with `NCCL_IB_SUBNET_AWARE_ROUTING=1` and `NCCL_IB_SUBNET_PREFIX_LEN`, and how to check the NCCL version and NIC each rank picked at startup (#2993). Thanks to @vdalesandro.

- Families: Nemotron, GLM, Qwen 3.8 27B, MiniMax M3, Dory, tensor-parallel fabric, pictures and video settings read through platform/environment.zig (#3558).

- Qwen3.5 on Metal: the text-only server no longer keeps the vision tower stored between the language-model tensors in GPU memory, so the 2B holds 1.7 GiB instead of 2.3 GiB measured with `footprint` after load, with replies unchanged (#3407). Thanks to @jschmied.

- Server: `TENSORFOLD_REQUEST_JOURNAL=PATH` records each chat or completion request in three JSON lines (start, prepared, finish), so a request unfinished at a crash is flagged on the next start, one in flight at two crashes is refused with 400 `request_quarantined`, and `tools/replay_request.py` replays a journaled request and compares the reply's `tensorfold.token_sha256`; off unless set (#3221).

- CLI: `tensorfold config validate FILE` (source builds only, not `tensorfold-native`) reads a cluster.json with the same parser and 16 MiB limit the server uses, prints the node and model counts on success or every problem the parser collected, and exits 0, 1 or 2 without planning models or probing hosts; `cluster check` is unchanged (#3189). Thanks to @mvanhorn.

- Drama voices: `--manage-voices` (off by default) lets admin keys add a voice with `POST /v1/voices` (a WAV with its transcript, or an attested voice file, checked and encoded by the loaded model's own codec) and delete one with `DELETE /v1/voices/NAME`, and `--request-voices` lets a request carry an inline voice object; a running request keeps the voice it copied when it arrived (#3140).

- Idol on Metal: Idol's released denoiser runs as a native Metal family, `idol`, with fp16 block projections and attention inputs summed in fp32 and fp32 norms, softmax and RePo as the SDK splits them; `tf-idol` checks it step by step against idol-sdk's float32 run, and its 27 kernels are in the kernel contract with 19 planted controls. The image encoders and decoders are separate changes (#1766, for #1757). Thanks to @jayleaton.

- Code: a GPTQ reader in `core/quant` reads AutoGPTQ v1 4-bit symmetric group-128 weights as stored (`qweight`, fp16 `scales`, a `qzeros` zero point of 8) into an fp64 reference, and refuses every other GPTQ field, rule or tensor by name; host only, with no caller yet (#3611, refs #3368).

- Desktop: an attachment in a saved draft keeps only its original diagnostic, and the reselection guidance is added once when the draft is rendered, so reopening and editing unrelated text no longer stores the composed message as the error; older drafts with repeated guidance show one copy and keep any surviving diagnostic (#3842, fixes #3837). Thanks to @AIFlowML.

- Desktop: turning off `autoCheckUpdates` now cancels the first scheduled update check as well as the recurring interval, and scheduled callbacks recheck the saved setting before calling the feed; a manual check from Settings still works with automatic checks off (#3836, fixes #3833). Thanks to @AIFlowML.

- Desktop: changing the run, mode or redaction in the export panel clears the old preview at once and leaves `Copy JSON` and `Save…` disabled until the new selection builds successfully; a late result cannot replace another selection's preview or its feedback (#3834, fixes #3829). Thanks to @AIFlowML.

- Web: the engine address may be an OpenAI base URL ending in `/v1` as well as a server root; health, the relay and Connect derive the server root with `engine_root` and append the API suffix once, and settings keeps the supplied address so a reverse-proxy prefix ending in `/v1` survives a reload (#3831, fixes #3830). Thanks to @AIFlowML.

- Desktop: the library scan uses four convolution taps for Qwen3.5-2B, so the supported checkpoint is offered instead of being refused at scan time; a checkpoint with the old value still gets a geometry refusal (#3768). Thanks to @AIFlowML.

- Desktop: a ticket can finalize only after a current independent review of its actual builder work; reviewer blockers stay with their batch and ordinary later notes no longer revoke approval (#3484). Thanks to @AIFlowML.

- Metal: Ling-3.0-tiny's MLA layers run on Kimi's `k3_mla` kernels with three added kernels for cache and query RoPE and gate widening, registered with planted controls in the kernel contract (#3609). Thanks to @ThinkOffApp.

- Nemotron: the Living Weights copies left behind by the October revert are deleted and `cuda_pages` imports `living.lesson_route`, leaving one copy of the learner, pocket and lesson files (#3707). Thanks to @jschmied.

- Flash Next on CUDA: after load, a mixed shard keeps only the n-gram table's pages in the page cache, and the final sweep reaches shards nested under `tensors/`, freeing about 3 GiB of page cache on the NVFP4 export with replies unchanged (#3467). Thanks to @jschmied.

- CUDA: GLM's `TF_GLM_L2PF` site f now also prefetches a MoE layer's shared expert gate-up after its router within the same `TF_GLM_L2PF_MB` budget, giving about 1.0-1.2% faster decode at TP=2 on GB10 (mean of three alternating launches) with identical tokens (#3156). Thanks to @Bizuayeu.

- Desktop: the Terminal picker launches a registered Orchestrator CLI by its ID without forwarding the catalog command as a custom override, lists CLIs for the current project and host, and stops a click left stale by retargeting, project removal or a disabled host before dispatch; local custom commands and the remote refusal still apply (#3828, fixes #3824). Thanks to @AIFlowML.

- Web: the OpenAI connection probe now uses the shared stream reader, so partial text followed by an error or early EOF fails the check instead of passing; the reader handles LF, CRLF and bare CR, including a CRLF split across chunks, and complete streams still pass the text-or-reasoning check (#3826, fixes #3823). Thanks to @AIFlowML.
Expand Down
1 change: 1 addition & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ These follow a model's release code or a library's model code for their math, ro
- `zig/src/vision/qwen_cuda.zig`: `Qwen3_5VisionModel` in transformers.
- `zig/src/core/picture/patches_test.zig`: recorded image-processor output data from `Lfm3VlImageProcessor` and `Qwen2VLImageProcessor` in transformers; the processing implementation is described below.
- `zig/src/families/flashnext/rotary_config.zig`: `_compute_yarn_parameters` in transformers, for the 64 rotary dims.
- `zig/kernels/metal/idol.metal`: the rounding points of Idol's denoiser in [speridlabs/idol-sdk](https://github.com/speridlabs/idol-sdk) at `4702a7f0`. Copyright speridlabs, Apache License 2.0; see [the license text](LICENSES/Apache-2.0.txt).

transformers is Copyright The HuggingFace Team, Apache License 2.0; see [the license text](LICENSES/Apache-2.0.txt).

Expand Down
2 changes: 1 addition & 1 deletion app/electron/agent/engine/geometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const QWEN35: PinnedGeometry = {
linear_num_value_heads: 16,
linear_key_head_dim: 128,
linear_value_head_dim: 128,
linear_conv_kernel_dim: 6144,
linear_conv_kernel_dim: 4,
num_attention_heads: 8,
num_key_value_heads: 2,
head_dim: 256,
Expand Down
22 changes: 21 additions & 1 deletion app/electron/agent/engine/library.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,23 @@ try {
await fs.writeFile(path.join(wrongGeometry, 'config.json'), JSON.stringify({ model_type: 'qwen3_5', quantization: { bits: 4, group_size: 64 }, max_position_embeddings: 32768, text_config: { hidden_size: 1024, num_hidden_layers: 24, vocab_size: 151936 } }))
const servedGeometry = path.join(modelsDir, 'served-geometry')
await checkpoint(servedGeometry)
await fs.writeFile(path.join(servedGeometry, 'config.json'), JSON.stringify({ model_type: 'qwen3_5', quantization: { bits: 4, group_size: 64 }, max_position_embeddings: 32768, text_config: { hidden_size: 2048, num_hidden_layers: 24, vocab_size: 248320, intermediate_size: 6144, linear_num_key_heads: 16, linear_num_value_heads: 16, linear_key_head_dim: 128, linear_value_head_dim: 128, linear_conv_kernel_dim: 6144, num_attention_heads: 8, num_key_value_heads: 2, head_dim: 256, full_attention_interval: 4 } }))
const servedConfig = {
model_type: 'qwen3_5',
quantization: { bits: 4, group_size: 64 },
max_position_embeddings: 32768,
text_config: {
hidden_size: 2048, num_hidden_layers: 24, vocab_size: 248320, intermediate_size: 6144,
linear_num_key_heads: 16, linear_num_value_heads: 16, linear_key_head_dim: 128, linear_value_head_dim: 128,
linear_conv_kernel_dim: 4, num_attention_heads: 8, num_key_value_heads: 2, head_dim: 256, full_attention_interval: 4,
},
}
await fs.writeFile(path.join(servedGeometry, 'config.json'), JSON.stringify(servedConfig))
const wrongConvolution = path.join(modelsDir, 'wrong-convolution')
await checkpoint(wrongConvolution)
await fs.writeFile(path.join(wrongConvolution, 'config.json'), JSON.stringify({
...servedConfig,
text_config: { ...servedConfig.text_config, linear_conv_kernel_dim: 6144 },
}))
const incomplete = path.join(modelsDir, 'incomplete')
await checkpoint(incomplete)
await fs.writeFile(path.join(incomplete, 'model.safetensors.index.json'), JSON.stringify({ weight_map: { a: 'model-00001-of-00002.safetensors', b: 'model-00002-of-00002.safetensors' } }))
Expand All @@ -111,6 +127,10 @@ try {
assert.match(refused.reason!, /hidden size is 1024/)
assert.match(refused.reason!, /UnsupportedQwenGeometry/)
assert.equal(selected.models.find((model) => model.path === servedGeometry)?.loadable, true, 'the geometry the engine serves stays offered')
const refusedConvolution = selected.models.find((model) => model.path === wrongConvolution)!
assert.equal(refusedConvolution.complete, true)
assert.equal(refusedConvolution.loadable, false)
assert.match(refusedConvolution.reason!, /linear conv kernel dim is 6144/)
assert.equal(selected.models.find((model) => model.path === foreign)?.complete, true)
assert.match(selected.models.find((model) => model.path === incomplete)!.reason!, /missing.*shards/)
assert.match(selected.models.find((model) => model.path === invalid)!.reason!, /safetensors/)
Expand Down
106 changes: 106 additions & 0 deletions app/electron/agent/ticket-review-build.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import assert from 'node:assert/strict'
import { summarizeTicketWorkerOutcome } from '../main/host/ticket-helpers'
import { roomFinalGateBlockers, ticketNeedsReviewAfterBuilder, ticketReviewGateState } from './tickets'
import type { Thread, Ticket, TicketEvidence } from './types'

const build: TicketEvidence = { id: 'build', kind: 'file', summary: 'Inspected src/parser.ts.', createdBy: 'Builder', createdAt: 10 }
const approval: TicketEvidence = { id: 'approval', kind: 'review', summary: 'Reviewer approved.', createdBy: 'Reviewer', createdAt: 20 }
const rebuild: TicketEvidence = { ...build, id: 'rebuild', summary: 'Inspected the follow-up implementation.', createdAt: 30 }
const waiver: TicketEvidence = { ...approval, id: 'waiver', kind: 'note', summary: 'Review skipped: read-only source lookup, no code changes.' }

function ticket(evidence: TicketEvidence[]): Ticket {
return {
id: 'ticket-fixture', projectId: 'project-fixture', roomId: 'room-fixture', title: 'Follow-up implementation', body: '',
type: 'task', status: 'completed', priority: 'medium', effort: 'medium', tags: [], assignee: 'Builder',
parentId: null, threadId: null, runState: null, startedAt: null, order: 0, createdAt: 1, updatedAt: 90,
risk: 'high', allowedCapabilities: ['read'], requiredEvidence: ['Findings'], acceptanceCriteria: [], evidence,
}
}

let passed = 0
function check(name: string, evidence: TicketEvidence[], allowed: boolean, builder = 'Builder') {
const current = ticket(evidence)
assert.equal(ticketReviewGateState(current).hasReviewOrSkipAfterBuilder, allowed, name)
assert.equal(ticketReviewGateState(current).builderEvidenceBy, builder, name)
assert.equal(ticketNeedsReviewAfterBuilder(current), !allowed, name)
assert.deepEqual(roomFinalGateBlockers({ tickets: [current], greenEvidenceAt: 100 }), allowed ? []
: ['review evidence after builder or justified skip missing on: Follow-up implementation.'], name)
passed++
}

function worker(phase: 'build' | 'review', at: number, createdBy: string | null, changes = false): TicketEvidence[] {
const now = Date.now
Date.now = () => at
try {
const thread = {
id: `${phase}-thread-${at}`,
timeline: [
{ id: 'read', kind: 'tool', path: 'src/parser.ts', state: 'ok' },
...(changes ? [{ id: 'edit', kind: 'tool', path: 'src/parser.ts', diff: [{ type: 'add', text: 'const value = 1' }], state: 'ok' }] : []),
{ id: 'status', kind: 'tool', command: 'git status --short', output: '', state: 'ok' },
{ id: 'test', kind: 'tool', command: 'npm test', output: '2 passed', state: 'ok' },
],
} as unknown as Thread
return summarizeTicketWorkerOutcome(ticket([]), thread, phase, false, createdBy).evidence
} finally { Date.now = now }
}

check('an approval does not cover later builder findings', [build, approval, rebuild], false)
check('timestamp order wins over insertion order', [rebuild, build, approval], false)
check('a fresh independent approval covers the rebuild', [build, approval, rebuild, { ...approval, id: 'fresh', createdAt: 40 }], true)
check('a waiver does not cover later builder findings', [build, waiver, rebuild], false)
check('a fresh justified waiver covers read-only work', [build, waiver, rebuild, { ...waiver, id: 'fresh-waiver', createdAt: 40 }], true)
check('a new builder is reported as the current builder', [build, approval, { ...rebuild, createdBy: 'Second builder' }], false, 'Second builder')
check('a review cannot cover a build at the same timestamp', [build, approval, { ...rebuild, createdAt: 20 }], false)

const reviewBlocker: TicketEvidence = {
id: 'review-blocker', kind: 'note', summary: 'Blocker: parser validation failed.',
createdBy: 'Reviewer', createdAt: 20, ref: 'thread:review-fixture',
}
const blockedBatch = [{ ...approval, ref: reviewBlocker.ref }, reviewBlocker]
check('a reviewer blocker preserves the original builder identity', [build, ...blockedBatch], false)
check('reviewer blocker batches are independent of insertion order', [build, ...[...blockedBatch].reverse()], false)
check('a fresh approval resolves the reviewer blocker without a new build', [build, ...blockedBatch, {
...approval, id: 'resolved', createdAt: 30,
}], true)
check('an unrelated note cannot inherit a review blocker batch', [build, ...blockedBatch.slice(0, 1), {
...reviewBlocker, ref: 'thread:other-review',
}], true)
check('another actor cannot attach a review blocker batch', [build, blockedBatch[0], {
...reviewBlocker, createdBy: 'Another actor',
}], true)
check('another timestamp cannot attach a review blocker batch', [build, blockedBatch[0], {
...reviewBlocker, createdAt: 21,
}], true)
check('a blocker describing changed code is still a review finding', [build, blockedBatch[0], {
...reviewBlocker, summary: 'Blocker: changed parser behavior fails validation.',
}], false)
check('an explicit empty blocker does not reject a review', [build, blockedBatch[0], {
...reviewBlocker, summary: 'Blocker: none',
}], true)
check('a later builder run still invalidates approval without file events', [build, approval, {
...build, id: 'builder-run', kind: 'note', summary: 'Builder worker finished the follow-up.', createdAt: 30,
}], false)

const reviewRun = worker('review', 20, 'Reviewer')
const reviewOnly = ticket(reviewRun)
assert.deepEqual(ticketReviewGateState(reviewOnly), { hasBuilderEvidence: false, builderEvidenceBy: null, hasReviewOrSkipAfterBuilder: false })
assert.equal(ticketNeedsReviewAfterBuilder(reviewOnly), false, 'a review cannot create builder evidence for another review')
assert.deepEqual(roomFinalGateBlockers({ tickets: [reviewOnly] }), ['review evidence after builder or justified skip missing on: Follow-up implementation.'])
passed++
check('real reviewer verification is not a new build', [build, ...reviewRun], true)
check('review batch order does not alter builder ownership', [build, ...[...reviewRun].reverse()], true)
check('anonymous review batches keep the same verification behavior', [build, ...worker('review', 20, null)], true)
check('an actual later build worker invalidates the review', [build, ...reviewRun, ...worker('build', 30, 'Builder')], false)
check('a new review worker covers the actual rebuilt output', [build, ...reviewRun, ...worker('build', 30, 'Builder'), ...worker('review', 40, 'Reviewer')], true)

const testResult = reviewRun.find((item) => item.kind === 'test')!
assert.ok(testResult, 'the host fixture must produce a verification record')
check('another thread cannot inherit a review batch exemption', [build, ...reviewRun, { ...testResult, id: 'other-thread', ref: 'thread:other-run' }], false, 'Reviewer')
check('another actor cannot inherit a review batch exemption', [build, ...reviewRun, { ...testResult, id: 'other-actor', createdBy: 'Second builder' }], false, 'Second builder')
check('a missing thread reference cannot inherit a review batch exemption', [build, ...reviewRun, { ...testResult, id: 'missing-ref', ref: null }], false, 'Reviewer')
check('a later run cannot reuse an earlier batch timestamp', [build, ...reviewRun, { ...testResult, id: 'later-run', createdAt: 30 }], false, 'Reviewer')
check('code changes made during a review still need independent review', [build, ...worker('review', 20, 'Reviewer', true)], false, 'Reviewer')
check('a different reviewer can approve the reviewer-made changes', [build, ...worker('review', 20, 'Reviewer', true), { ...approval, id: 'independent', createdBy: 'Second reviewer', createdAt: 30 }], true, 'Reviewer')

console.log(`ticket review build freshness: ${passed} cases passed`)
Loading
Loading