Skip to content

feat(sweep): profile args, qwen KV rule, 4k active default, artifact rebuild#17

Merged
dutifulbob merged 5 commits into
mainfrom
feat/viewer-mode-integration
Jul 5, 2026
Merged

feat(sweep): profile args, qwen KV rule, 4k active default, artifact rebuild#17
dutifulbob merged 5 commits into
mainfrom
feat/viewer-mode-integration

Conversation

@dutifulbob

Copy link
Copy Markdown
Member

Opened on behalf of Onur Solmaz (osolmaz).

Summary

The feat/localperf-viewer-mode branch carried four commits that never landed: generator profile-args flags, the qwen fixed-KV-cache rule, the 4k active default ladder, and rebuilding an artifact from a run directory.
This change integrates all of them onto main, resolved against the report-integrity cutover.
The rebuild feature moves from the deleted bench report --artifact to a new artifact rebuild subcommand.

What Changed

All four commits are cherry-picked and reconciled with the provenance/cutover work.

  • artifact rebuild --run-dir … [--into …] [--spec …] reconstructs a SQLite artifact from a run directory's events/results/summary.json (rehomed from bench report --artifact, which no longer exists). artifact.CreateOrAppend now rejects directories and initializes empty existing files.
  • sweep plan gains --profile-arg, --profile-engine-arg, and --omit-profile-engine-flag (repeatable), composing with the provenance intent flags.
  • Qwen models drop --kv-cache-memory-bytes from inherited engine args, and the same rule now covers the --kv-cache-memory-bytes intent flag.
  • The default context ladder includes active 4k (4k,8k,16k,32k,64k); docs, AGENTS.md, and usage updated; sweepplan golden regenerated (grid changes are hash-visible through the generator stamp).

Testing

All gates pass and the rebuild path was smoke-tested end to end.

  • go test ./..., go vet, gofmt, simpledoc, slophammer check/dry, check-crap.sh, golangci-lint — clean
  • Smoke: dry-run a case, delete the artifact, artifact rebuild --run-dir …, artifact check — ok
  • Not tested locally: rebuild against a large real GB10 run directory.

Risks

Conflict resolution touched sweep plan flag wiring; the golden test pins the merged output.
The rebuilt artifact reflects the run directory's summary.json; a run dir without one fails cleanly.

… destinations; boolean flag omission

Codex review round 1: artifact rebuild reconstructs from the run's
normalized spec (--spec is provenance-only); a failed merge into a
zero-byte destination removes it like a fresh file; omitting a boolean
engine flag no longer swallows the following flag.
@dutifulbob

Copy link
Copy Markdown
Member Author

Final report: integrates the four feat/localperf-viewer-mode commits onto main, reconciled with the report-integrity cutover (rebuild rehomed as 'artifact rebuild'; qwen KV rule extended to the --kv-cache-memory-bytes intent flag; 4k active default merged with the provenance flags). Codex round 1: 2 P2 + 1 P3 (rebuild used the original spec for reconstruction; failed merges left initialized empty destinations; boolean flag omission swallowed the next flag) — all fixed in f5e76a2 with regression tests; P2-or-lesser round ends the loop. Gates: go test/vet, gofmt, simpledoc, slophammer check/dry, check-crap, golangci-lint all clean; artifact rebuild smoke-tested end to end; CI green. Merging per explicit authorization.

@dutifulbob dutifulbob merged commit 58f8bfe into main Jul 5, 2026
2 checks passed
@dutifulbob dutifulbob deleted the feat/viewer-mode-integration branch July 5, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants