Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
marked this pull request as draft
November 20, 2026 14:18
4 of 5 tasks
Keep grader faults distinct from candidate failures and agent tool errors, even when later hidden checks pass. Remove unreachable report-based qualification work while retaining its explicit refusal. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Distinguish exhausted candidate checks from grader infrastructure failures so bounded trajectories do not halt later cold attempts. Infrastructure timeouts still invalidate grading. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Keep only bounded visible diagnostics and refuse hidden grading before filesystem or container work. The diagnostic adapter no longer retains private hidden patches or selectors. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
6 of 8 tasks
Remove the hidden-test application claim from the diagnostic adapter description. Hidden grading uses the separate behavioral probes. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…sk-software-factory Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
An attach deadline establishes no candidate execution outcome. Retain the transport timeout and stop evaluation when the outcome is unknown. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…sk-software-factory Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Separate the shared factory and reporting harness from the Python repository profile. Preserve native trial receipts, blinded verification, provider accounting and public reproduction inputs. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…-harbor-pr Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…-harbor-pr Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Persist the reporting and public-export receipt in the run summary, and include the formatted assets and generated operation reach metadata. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Retain separate controller and server revisions, bind exported backend costs to native transport IDs, and classify exhausted visible-test quotas as refusals before execution. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…-routing Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> # Conflicts: # .github/workflows/ci.yml
The evaluator collects application source. Tell each arm what it submits while preserving the upstream issue bytes and auditing the complete staged instruction. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Freeze the five-arm pilot cache policy, tool profile and submission scope for reproduction. Retain the paired native receipts and source qualification checks. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Start exact source and test discovery with the grep tool and keep local access for edits and missing evidence. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Dependency, compiler and Harbor image builds register in the run ownership journal. Cleanup checks the Docker owner and removes the recorded images while retaining receipts and results. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Register compiler workers in the run journal and remove them before their images. Remove each exact owned tag and record resources Docker cannot remove so cleanup can retry them. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
An interrupted cleanup can remove a container before its journal update. Record completed removal when Docker reports the exact container ID as absent. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Use the pinned image and native structured output for anonymous candidate assessment. Keep its observed usage separate from solver and setup costs, and journal the isolated judge container. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Describe the shared source and test scope for literal batches and allow clue-only edit context when the file is unknown. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Require settled provider billing before dispatch and retain known judge costs even when a later request is unsettled. Limit file names in edit-context guidance to literal clue lookups. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Route edits to edit context before the exact-text and behavior search options. Retain literal batching, full grep bodies for edits and local access for the working copy. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The native coding pilot advertised Loom in all four arms and chose local search first with edit context leading the guide. Restore search-first instructions and keep edit context for selecting a known definition or literal clue. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The controller inherits the pinned Python builder and the runtime inherits the pinned model image. The venv and model files stay in their existing layers so benchmark setup does not allocate a second copy. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Give every solver the same source routing instruction through the native client. Record the options in the study protocol and audit them against each trial. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> (cherry picked from commit b2066b08aeffbb2b6455732624e85f18290ae3c7)
The offline plan shows the exact guidance verified against each trial's native receipt. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Use the frozen plan as the source of the project and solver prompts. A headless smoke command checks the selected Loom tools and their replies. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Keep the factory contract checks and regenerate the operation reach manifest with the Rust SDK entries. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category
Changelog entry
Add a reproducible Python coding evaluation with isolated code indexes, historical memory and per-attempt reports.
Why
Measure whether an agent fixes a public issue correctly and whether code retrieval and historical memory change its cost, time and quality. The agent runs its own workflow with the configured guidance for indexed source.
Scope and risk
Harbor runs its built-in Claude Code agent in a normal checkout. Five arms compare no Loom, Loom with tree-sitter, Loom with SCIP, and each index with historical memory. The model, agent version, original issue, source base, resources and hidden grading contract are shared. The four Loom arms receive the same
CLAUDE.mdfor covered source and linked history. Their agent image adds one guidance layer to the common image used by the baseline. Setup checks the common layers and image configuration. Local tools handle edits, tests, Git and source Loom cannot serve. The agent chooses its calls and workflow. Published runs retain their original instructions and fingerprints.The Python profile runs 45 coding sessions across three public issues, five arms and three repeats. Each attempt starts a fresh Claude Code session with ordinary provider caching. Reports show mean Claude Code session cost and mean agent time across repeats, with Anthropic’s cache token counts available for diagnosis. Six base/reference controls qualify the evaluator without model calls. Historical memory contains 30 sourced project facts, 14 linked to code, with chronology checks and a replay of code changes and memory revision. The memory contrast includes access to extra historical knowledge; it does not isolate linking alone.
An explicit
--pilot-taskselection runs one frozen issue once per arm, with two base/reference controls and one blind judgment. It keeps hidden and full regression grading unchanged, prepares only that task's native indexes, and retains negative outcomes. Its descriptive deltas have no confidence interval or A/A comparison. Resume keeps the frozen selection.The indexed roots include the original implementation, tests and documentation for every Loom arm. Compiler staging and history hashes use the same public text allowlist; hidden paths and binary fixtures stay local. Native repository exclusions match the source exporter. Historical revision transitions verify both source hashes and apply native file retirement only to paths removed from the next source; exact retirement receipts precede an unchanged full-index audit. Grading still accepts implementation changes only. Expanded index coverage defines a separate cohort from the published implementation-only run.
Native trajectories supply total and Loom tool calls, tokens, reported cost and agent time. Per-attempt diagnostics record main-session model responses, parallel tool groups, CLI/API timing, source and lesson characters, and exact repeated lessons. Separate source counts show enclosing bodies, grep line matches, grep windows and caller windows. Native per-response token capture records cache reads, cache writes, output and tool call IDs alongside the private tool trace. Scoped request-ledger evidence is saved after each attempt and before cleanup. Private stage summaries retain existing trace rows selected by returned trace IDs and attempt namespace. A failed trace capture preserves billing evidence and reports the affected attempt. Authenticated server events supply Loom provider usage and persisted memory writes. Hidden tests decide success; full-suite regressions and posthoc blind judgments remain separate. Reports retain failures, missing metrics and matched comparisons. Original execution artifacts remain private; public exports contain allowlisted measurements and source hashes.
Setup, dependencies, services, indexing, memory and reports are automated. The launcher removes recorded owned resources. Native coding runs are uncapped; capped launches are refused. Setup and judging costs are separate from measured agent cost. The full matrix remains held. The pilots measure one issue, and the requested improvement across arms and issues remains unproven.
The grep body and literal-alternatives pilots keep the issue, arm order, grading and history fixed. Their exported measurements, input hashes and per-arm notes record what the agent requested, the delivered source and lessons, and the work the agent still performed locally.
This pull request remains unmerged until the requested quality and efficiency targets are demonstrated.
Compatibility, rollout and rollback
Tests
Built both agent images from an archived frozen checkout. Verified the same Git commit, common image layers and image configuration. The baseline had no added project file. The Loom image contained the exact guidance bytes from the public plan.
Format, lint, type checks and explicit example lint passed.
A complete same-issue five-arm pilot passes hidden grading in four arms; SCIP without memory fails. SCIP with memory has 16.2% lower observed provider cost and 19.4% lower agent time than baseline, below the target. Both tree-sitter arms pass. The first memory arm has a cold prompt cache; sensitivity and per-component costs are retained. All four Loom arms use a local indexed-source read, so efficient Loom use is not established. Every outcome is published with hashes, token and tool counts, model-response grouping and grading limits.
The grep body pilot has one hidden solve. SCIP saves 8.0% in cost and 21.8% in agent time. The hidden test and blind judge disagree about the teardown change.
All five literal-alternatives pilot attempts pass hidden, full-suite and blind grading. SCIP saves 20.8% in cost and 27.4% in agent time. SCIP with memory saves 32.8% and 38.7%. The memory arms tie their code-only peers on quality. Claude selects no literal lists, and one invalid regex remains.
Findings and design decisions are documented alongside the profile. Local test execution remains disabled by request; authored regressions are left to CI.
Pilot selection was qualified against the retained real public records: all five arms occur once, issue/config/history/reference data are unchanged, and all 561 original public-input hashes remain unchanged. This is preparation validation, not a paid result.
Six native Harbor base/reference controls returned the expected hidden rewards: unchanged source fails and reference fixes pass for all three issues.
Native agent images report the pinned CLI version and verify their Python packages against each scenario's dependency lock.
Local unit and integration suites were not run, as requested.
A real public-source deletion replay uses four removed documents and one retained witness with native ingestion and ClickHouse. All removed paths retire, the witness stays, and repeating the transition changes no live rows. The three exact source-revision pairs are checked separately. This qualification uses unembedded stubs and does not establish full preparation or coding outcomes.
Expanded-root preparation was checked against all three exact public Git bases and compiler staging. Actual historical materialization preserves every source revision, event and memory value while matching the expanded index hashes. This validates preparation, not a fresh native solve outcome.
The completed instructed native cohort contains all 45 primary attempts and six baseline controls. Every Loom attempt invokes Loom; all 97 calls succeed. All memory-enabled attempts receive lessons. Hidden solves are 6/9 for baseline, 5/9 for tree-sitter, 4/9 for tree-sitter with memory, 4/9 for SCIP and 3/9 for SCIP with memory. All primary attempts have zero full-suite regressions and zero agent memory writes.
SCIP has the lowest observed mean cost and time, at 7.6% and 7.4% below baseline, with fewer solves. Neither memory arm improves quality. No arm meets the target. A predeclared initial-cache sensitivity removes SCIP's observed cost advantage; it is a counterfactual supplement, not a controlled cache measurement.
The public result bundle retains every attempt, token and tool measurements, frozen input fingerprints, independent grading-scope limitations and separate blind-judge ratings. The three-issue sample and baseline control variation limit conclusions.
The native cohort results link to their frozen source and reproduction instructions. Subsequent product fixes are outside that measurement. The five-arm pilot is a separate development cohort with complete per-arm analysis. The grep body pilot and literal-alternatives pilot retain subsequent outcomes and their serving revisions.
The search lessons pilot runs the frozen multi-mount blueprint issue. Each memory arm retains the registration lesson and omits five unrelated method lessons in its first search. All five attempts miss the hidden grade. Four pass the separate blind issue grade. All Loom arms cost more and take longer than baseline on this issue. The full matrix remains on hold.
The CLI option-order pilot selects a separate upstream issue. Its original reference passes all 53 hidden cases after the standalone grader restores tracked fixture bytes. All five coding attempts pass the hidden and blind grades and introduce no regression. Tree-sitter and SCIP with memory meet the observed cost and agent-time targets. The first-prompt cache sensitivity changes the cost result. Both memory arms receive the linked note before editing and tie their code-only peers on quality.
Per-attempt traces count repeated excerpts by namespace, memory key and whitespace-normalized text. Replaying the CLI trace finds 282 repeated characters when the same text arrives in two tool response shapes. The frozen result bundle keeps its recorded values.
Reproduce from the repository root:
python3 -m examples.software_factory plan --eval flask --pilot-task pallets__flask-4230 ANTHROPIC_API_KEY=... python3 -m examples.software_factory run --eval flask --pilot-task pallets__flask-4230 --output ./factory-pilot # Full matrix python3 -m examples.software_factory plan --eval flask ANTHROPIC_API_KEY=... python3 -m examples.software_factory run --eval flask --output ./factory-runAI assistance in the code
AI-generated: Codex implemented the evaluation and reviewed setup receipts, source provenance and static gates. Independent agent review checks the implementation.
I can explain this diff and its interaction with the rest of Loom.
Checklist