Hiro development journal

Integrating model experiments with the continuous queue and comparative dashboard

Implemented in draft PR #15 against the running production baseline; production not activated Machine-readable JSON

Executive summary

Implemented a typed model_evaluation experiment in the existing continuous idea queue. The existing canonical runner owns discovery, scheduling and the evaluation lease; no second daemon or promotion path was introduced.

Discovered that the repository already has a newer frozen model qualification suite: harness 2.1.0, suite 2.0.0, 24 cases and 72 full-run trials. Its cases, scoring, repetitions and integrity manifest remain unchanged. The legacy 120-case bakeoff and agent-level evidence remain separate.

Extended the existing Benchmarks page with model comparisons, category plots, resource and reliability evidence, history, failed-case inspection, queue requests and priority controls. Recommendations remain bounded and provisional; production routing never changes automatically.

The full regression run completed with 1166 passed, 4 skipped, 1 environment/setup failure and 22 warnings in 1063.59 seconds. The isolated checkout was missing the ignored pinned runtime; provisioning it with the existing helper made all three Windows preflight tests pass. The final focused regression set passed 115 tests. No safe spare capacity was available for a real separate model campaign.

Work completed

Architecture and duplicate-work intake

Inspected
  • Read current project instructions, actual queue/supervisor/lease architecture, model launchers, frozen v1/v2 benchmark packages, scoring and ledgers, FastAPI routes and existing dashboard navigation. Open handoffs concern experience reuse and autonomy qualification; neither duplicates this feature. They were not executed.
  • Used an isolated feature checkout based on production revision fd0f46d. The active model and production services were left running.

Persistent model discovery and queue execution

Implemented in candidate
  • Added approved-publisher and repository metadata discovery with configurable daily cadence, exact artifact/version identity, immutable hash-based deduplication and reviewed metadata qualification. Unknown release dates, architecture support, context or memory fit produce explicit blocked evidence. Repository creation dates are never asserted as model release dates.
  • Added model/job/audit/discovery records to the existing model SQLite ledger. Typed jobs reference the canonical queue ID and are not a second scheduler. The terminal evaluated state distinguishes experiment completion from deployed software.
  • Added screened then complete frozen evaluations, fresh isolated primary baselines, per-case results and partial-run retention, status updates, independent comparability checks and provisional primary/specialist/comparable/inferior/inconclusive recommendations. Specialists create an observing routing-validation followup requiring independent end-to-end measurement.
  • A real metadata-only integration check fetched six approved public repositories and persisted 90 pinned GGUF artifacts and 90 blocked typed jobs in the isolated candidate store. Repeating discovery produced zero new artifacts or jobs; no model downloads or inference occurred. These are artifact records, not 90 qualified experiments or improved models.
  • Added strict reuse of a recent complete baseline only when frozen suite/scorer, current artifact, hardware, sampling, context, reasoning, runtime binary and loading configuration match. This avoids redundant large baseline loads when genuinely comparable evidence exists. Establishing the first qualified control still requires enough spare capacity.
  • Invalid model specifications close immediately as blocked eligibility assessments, rather than filling the runnable backlog. Temporary resource blocks remain deferred queue work. Complete reviewed specification receipts are retained in the append-only audit.

Resource ownership and truthful evidence

Implemented and fixture-tested
  • Added an owned loopback-only llama.cpp child launcher using the existing normalized inherited environment. It checks artifact and runtime hashes, current-primary artifact reference, port ownership, production quiet time, concurrent candidate/promotion work, free memory and disk budgets. Cleanup stops only the created child. Production settings and processes are never changed.
  • Downloads default off. Supported downloads are bounded, approved-source, pinned single GGUF artifacts with verified size/hash, redirect and storage controls. Model repository code and paid inference are not executed.
  • A read-only local sample found 13.13 GiB free GPU memory and 4.97 GiB free system memory while production health remained okay. This does not permit an additional full baseline under the configured reserves. No production-serving process was interrupted to create capacity.
  • Owned runtime configuration supports reviewed backend/vendor library directories and a configured non-mmap loading mode for the known Windows runtime constraint. GPU placement is bound to the resource-budgeted device with splitting disabled. Artifact preparation and model work share the total job deadline.

Dashboard, API and historical evidence

Implemented in candidate
  • Extended existing Benchmarks navigation with Model benchmarks while retaining Frozen archives and existing agent evaluation views. Added numeric sorting, role/suite filters, selected category graphs, comparison reasons, queue priority and requests, configuration history, failed cases and raw artifact links. Missing results stay missing.
  • Added private API controls which enqueue work rather than running inference in HTTP handlers. Preserved previous model ledger rows and added immutable raw historical JSON import with non-comparable labels. Scheduled adapter runs cannot receive an aggregate winner from the legacy archive comparison endpoint.
  • Added operator documentation for discovery configuration, exact baseline/runtime qualification, manual requests, resource constraints, statuses, persistence, imports and acceptance verification.
  • The preview explicitly labels its scheduler-disabled state. Clicking a model brings its precise eligibility evidence into view; a real discovered oversized artifact correctly reports unverified architecture/specification details and an estimated memory requirement beyond local capacity.
  • Draft PR https://github.com/avonhun/hiro/pull/15 contains only the thirteen feature files. Its review base pins actual production fd0f46d because remote main is behind the operating checkout; no unrelated historical changes were merged into main. Candidate head is 00d1961d48a0839889f34f724af2c7e0f4cdd558.

Decisions and reasoning

Validation and evidence

CheckStatusResult
Focused Python regression passed 112 passed in 28.16 seconds across new pipeline, frozen v1/v2 model benchmarks, active loop, continuous queue and evaluation dashboard tests.
Additional lease/archive coverage passed 14 pipeline tests passed in 19.54 seconds, including real canonical tick lease ownership and legacy comparison segregation.
JavaScript behavior passed New model dashboard interaction tests and existing dashboard reconnect and touch tests passed.
Real child process startup passed New launcher test started an actual Python child with one normalized Path; a real non-model startup failure cleaned its owned child.
Full regression suite completed_with_corrected_environment_failure 1166 passed, 4 skipped, 1 failed, 22 warnings in 1063.59 seconds. The single failure was test_nightly_api_preflight_validates_pinned_runtime_and_endpoints before the ignored pinned runtime was exposed in the isolated checkout. Existing provision_worktree_runtime repaired that setup; all 3 preflight tests then passed in 0.82 seconds. No test or launcher contract was weakened.
Real model campaign not_run Insufficient spare system RAM and VRAM for separate primary baseline without disturbing production.
Journal validation passed npm run test:hiro and npm run build passed with 270 entries after adding the required currentState source field. Final source updates are rebuilt and validated again before push.
Real metadata discovery and idempotency passed Six source-fetch receipts; 90 artifact records and blocked jobs; repeated discovery unchanged; zero benchmark runs. This is an isolated integration demonstration, not admission or model-quality validation.
Browser verification passed Actual local preview rendered navigation, truthful missing scores, current model placeholder, real discovered blocked artifacts, exact detail evidence and explicit scheduler-disabled labeling.
Final focused regressions passed 115 passed in 37.24 seconds across model pipeline, frozen v1/v2 benchmarks, active loop, continuous queue and evaluation dashboard. New model UI behavior tests passed. Final specification-audit refinement: 2 relevant discovery/dedup tests passed in 1.18 seconds.
Final production identity and health passed_after_transient_timeout One initial health read timed out. Subsequent direct checks of API ports 8765 and 8001 both returned okay with loaded/checkout revision fd0f46d matching; the model endpoint responded. Production API PID 39860 and model PID 40084 remained unchanged. Read-only queue state showed no active/pending candidates, and the existing canonical runner lease was alive and left untouched.

Current state

Next steps