Find code by asking what it does. A CLI for coding agents that uses Jev to discover relevant files and source context.
TypeScript ai-sdkclaude-codeclicode-searchcodexcoding-agentscontext-retrievaldeveloper-toolsjevsemantic-searchtypescriptvercel-ai-gateway
docs: archive Jevgrep implementation rationale and quality decision
David Zhang7f1e88775266
diff --git a/.oxfmtrc.json b/.oxfmtrc.jsonindex 9329c1c..ab70089 100644--- a/.oxfmtrc.json+++ b/.oxfmtrc.json@@ -9,7 +9,7 @@"test/reference/corpus.json","test/reference/manifest.json","test/parser/fixtures/**",- "specs/jevgrep/assets/**",+ "specs/done/jevgrep/assets/**","skills/**"]}diff --git a/README.md b/README.mdindex a2cbda7..e5b6230 100644--- a/README.md+++ b/README.md@@ -2,11 +2,11 @@Context retrieval for coding agents: ask a repository question and receive sourcecontext that helps the agent act without a long sequence of searches and reads.-The architecture spike is complete enough for an implementation decision; the-production CLI is implemented and undergoing installed and benchmark verification. See the-[accepted architecture](docs/architecture.md) for the reference strategy, rationale,-and evidence limits. The [full product spec](specs/jevgrep/README.md) owns the-implementation plan and current product decisions.+The production Node-only CLI is implemented and its installed package is verified+on macOS and Linux. The [implementation record](specs/done/jevgrep/README.md)+owns the rationale, invariants and evidence limits. The user accepted the documented+quality tradeoff after the corrected candidate failed its original benchmark gate;+one separately authorized identical-cohort variance check remains pending.## Development@@ -27,8 +27,8 @@ Future providers should enter at that boundary when supported, rather than leakprovider concerns into repository traversal.The architecture spike uses a pinned SWE-bench subset with Codex Sol.-Acceptance preserves baseline official solves while reducing full task cost; Jev-usage is excluded. Claude and performance optimization are deferred. See [evaluations](evals/README.md) for the official benchmark+The registered quality gate requires preserving baseline official solves while+reducing full task cost; the corrected candidate did not pass it. Jev usage is excluded. Claude and performance optimization are deferred. See [evaluations](evals/README.md) for the official benchmarkworkflow and accounting rules. Older custom evals are deprecated and stay out of Git.## Agent skill@@ -43,4 +43,6 @@ configuration changes only when the user explicitly installs or exports it.The npm package is `@dzhng/jevgrep`; its executable is `jg`. The project uses the[MIT license](LICENSE). [Release guidance](scripts/RELEASING.md) describes theverified tarball and GitHub tag workflow. Publication requires the repository's-`NPM_TOKEN` secret and a deliberate release tag after the quality gates pass.+`NPM_TOKEN` secret and a deliberate release tag. The user authorized `0.1.0`+publication after the pending repeat and closeout; the frozen benchmark archive+remains `0.0.0` and is not a publication candidate.diff --git a/docs/architecture.md b/docs/architecture.mdindex 7dbaaa8..81890e2 100644--- a/docs/architecture.md+++ b/docs/architecture.md@@ -1,6 +1,6 @@# Jevgrep architecture decision-The [product spec](../specs/jevgrep/README.md) now owns implementation contracts+The [implementation record](../specs/done/jevgrep/README.md) now owns implementation contractsand verification. This document records the accepted spike; production changescalled out in the spec still require their own evidence.@@ -11,9 +11,10 @@ second coding agent or a generated-answer layer.The accepted reference is the frozen[unit-locators spike](../evals/implementation/swebench/hierarchy-unit-locators-spike.ts)-with the [ranked-leads skill](../evals/runs/swebench/ranked-leads/skill.md).-The production CLI remains a scaffold. This decision closes the architecture-spike; it does not claim production readiness or prescribe a full build plan.+with the [canonical skill](../skills/jevgrep/SKILL.md).+The production CLI implements this strategy with the product boundaries recorded+in the implementation record. This document identifies the experimental reference,+not a substitute for the corrected package's measured quality result.## Hierarchical discovery@@ -64,8 +65,8 @@ implementation and test declarations to different first-pass questions.Per-declaration source objects, separate test-example questions, broader semanticrelationships, and reasons beside leads were investigated. They are not silentlysubstituted into the accepted reference. The-[experiment ledger](../evals/runs/swebench/auto-research-80/research.json) and-[lessons](../evals/implementation/swebench/architecture-lessons.md) own their results.+[restoration record](../specs/done/jevgrep/assets/parity-restoration.md) and+[research boundaries](../specs/done/jevgrep/research.md) own their results.The reference still expands neighboring Python methods and reuses renderedcontext in its follow-up; the known precision tradeoff remains. A later changemust preserve the measured quality rather than assume cleaner output is better.@@ -96,7 +97,7 @@ Use TypeScript and the AI SDK evaluation interface through AI Gateway. Pass nati`state` and `questions` objects; source is a string field within that data. TheSDK handles HTTP serialization. Keep provider authentication and model access atthe core boundary so future providers do not reshape traversal or stdout.-The existing auth scaffold handles the Gateway key; provider expansion is deferred.+The CLI authentication module handles the Gateway key; provider expansion is deferred.Acceptance measures the entire downstream Sol task: an official solve at a lowerfull task cost than its fixed baseline, while preserving baseline solves. Jev@@ -105,14 +106,15 @@ reasoning, edits, failed tests, and verification all count. Research spending isseparate from per-task performance. Never rerun a baseline to favor a variant orcombine each task's cheapest result from different strategies.-The [acceptance audit](../evals/runs/swebench/auto-research-80/accepted-70-audit.json)+The [acceptance audit](../specs/done/jevgrep/assets/accepted-spike-audit.json)rechecks the frozen artifacts, official grades, and complete bills against the-user-revised target. The [cohort result](../evals/runs/swebench/auto-research-80/unit-locators-confirmation/result.json)+user-revised target. The [cohort result](../specs/done/jevgrep/assets/accepted-spike-audit.json)is the canonical numerical evidence; its original unmet-target label refers tothe former 80% target and is retained as history.This is a small, tuned, Python-only sample with one fixed baseline per task andmodel/harness. It supports accepting a useful retrieval architecture, not astatistical generalization claim, language-wide validation, or a guarantee of-better cost on every task. Production reliability, output-size policy, provider-support, and further language coverage belong to the implementation phase.+better cost on every task. Production boundaries and the accepted quality tradeoff are recorded in the+[implementation record](../specs/done/jevgrep/README.md); broader provider and+language-quality claims remain outside its evidence.diff --git a/docs/exploration.md b/docs/exploration.mdindex b3969a0..a41f7c6 100644--- a/docs/exploration.md+++ b/docs/exploration.md@@ -1,127 +1,14 @@-# Product exploration--Historical initial exploration. The [accepted architecture](architecture.md)-supersedes this document for the retrieval decision. This remains an incomplete-quadrant map, not a finished product specification. **All questions, proposed plans-and kickoff instructions below are superseded** by the completed-[product map](../specs/jevgrep/map.md) and [build spec](../specs/jevgrep/README.md);-retain this file only as historical exploration, not instructions for new work.--## Settled by the request--- TypeScript CLI for coding agents, accepting natural-language repository questions.-- Return relevant source context in one text result; investigate file and chunk selection.-- Primary contract: research context across multiple files, including relevant- implementation, callers, configuration, and tests, because a repository question- can span several owners. Return attributed source text rather than only file paths.-- Use Vercel AI SDK and Jev through AI Gateway first, with an auth command.-- Follow Duet's Bun/Turborepo monorepo conventions. Other providers come later.-- Evaluate coding-agent speed and efficiency without sacrificing task quality.--The last point interprets “without affecting performance” as maintaining agent task-quality while reducing time/cost. This assumption needs user confirmation.--## Architecture decisions reopened for evidence--The user paused the architecture questionnaire: candidate representation, all-file-screening, and text-only extraction are provisional hypotheses, not settled-requirements. Study actual research-subagent traces before selecting a pipeline.-Optimize request count and useful evidence returned. Uploading all eligible source-is acceptable if necessary, but avoiding it is preferred. No chunk-coverage option-was selected.--## Observed constraints--[Jev](https://vercel.com/ai-gateway/models/jev) evaluates typed questions rather-than writing a research report. The CLI must orchestrate selection and assemble-source context. The model listing currently advertises a 32K context window.--The [hierarchical classification cookbook](https://docs.typesafe.ai/cookbooks/hierarchical_classification)-asks choices among direct children and keeps several paths using a geometric-mean-score across decisions. This is a candidate traversal technique, not evidence that-it captures every file needed by a cross-cutting research question. A choice-competes among siblings; several siblings may independently be relevant.--The installed AI SDK confirms native evaluation support. Its API is experimental;-keep dependency versions pinned. Connection verification uses only synthetic text.--The [research behavior study](../evals/research/README.md) records trace evidence,-batching measurements, and the proposed comparison. Its proposals remain hypotheses.--## Known unknowns — queued--1. Screening batches, selection thresholds, and recognizing insufficient evidence?-2. Bounded preview selection and coverage of large files?-3. Whole files versus bounded text chunks in returned context?-4. Output budget, truncation disclosure, source attribution, and follow-up queries?-5. Repository scope: ignored files, secrets, dependencies, extra roots, dirty files?-6. Latency/cost targets, caching/freshness, and failure behavior?-7. Eval baselines, frozen tasks, quality rubric, and acceptance thresholds?--## Next quadrants--Unknown knowns: preferred agent workflow and what makes context useful in practice.-Unknown unknowns: adversarial queries, misleading names, missing dependencies,-stale indexes, model failures, and source content that resembles instructions.--The next step is an empirical study of recent research-subagent behavior and-Jev batching, followed by an evidence-grounded proposal. Screening parameters-and chunking algorithms remain open and unimplemented.--## Retrieval spike evidence--The user authorized frozen repository evals and live strategy spikes. The-[spike report](../evals/spikes/README.md) records completed comparisons against-current Duet, Photoctl, and Game snapshots. Full screening found all labeled-ranges but final packets remained incomplete; matched expansion also lost useful-evidence during output selection. Exact source-range coverage understates some-alternative evidence and does not establish downstream task correctness.--These results reopen output composition as a measured bottleneck. They do not-close the product map or select a production retrieval architecture.--## No-Jev baseline evidence--[Six completed Claude/Codex research runs](../evals/baselines/README.md) now provide-the missing baseline. They returned stronger evidence than the current Jev spikes-on these development cases, but coverage and factual correctness diverged. Exact-range boundaries penalized substantively correct Codex Game evidence; Claude-answers included incorrect additional claims despite high source coverage. No-quality-preserving Jev speedup or downstream implementation improvement has yet-been established. The next measurement needs semantic checks and held-out paired-coding tasks, not a production architecture choice based on these pilots alone.--## Evidence rubric--[Fact-based evaluation](../evals/rubrics/README.md) now separates required facts,-optional depth, packet sufficiency, and explanation correctness. Independent-source audits and challenge reviews exposed both omitted conditions and excessive-requirements in the initial labels. Alternative source evidence can earn credit;-exact line-range overlap remains only a historical diagnostic. Revisions and-all-method regrades are recorded, with source and packet identity checks.--Fresh task-level holdouts are reserved but unrun. They still use repositories seen-during development, and no complete correctness oracle or downstream speedup has-been established. Retrieval architecture and acceptance thresholds remain open.--## User clarification: useful starting context--The user explicitly rejects optimizing recall by stuffing unrelated files into-context. Jevgrep can provide a reliable starting point and let the coding agent-fill gaps with its ordinary tools. Fact rubrics do not establish uniquely required-files. The [precision and end-to-end protocol](../evals/precision/README.md) therefore-adds independent relevance/redundancy audits and makes final agent quality, total-time/cost and follow-up work the deciding comparison. The 40KB ceiling must not-be treated as a quota to fill. Existing coverage scores remain historical-diagnostics, not proof of parity.--The user has specified threshold-based file selection rather than a fixed count.-Return useful negative discovery evidence as well: checked files below threshold-and folder summaries, with failed or unperformed checks explicitly distinguished.-Negative estimates are navigational signals, not proof of irrelevance. See the-[selection rationale](../evals/implementation/research/file-count-rationale.md).--Efficiency means task cost and elapsed time at comparable quality. Jev is free-for these evaluations; its tokens are separate diagnostics, never added to coding-agent token counts. The [accounting policy](../evals/implementation/accounting.md)-owns cost treatment, cache categories and missing-telemetry rules.+# Exploration provenance++Early exploration treated exact source-range coverage, representation and output+budgets as open hypotheses. Downstream coding-task quality replaced those proxy+metrics as the deciding evidence: useful starting context can be sufficient even+when the caller still needs ordinary reads, and high source coverage does not+prove a correct patch.++The completed [decision map](../specs/done/jevgrep/map.md) owns user constraints;+the [implementation record](../specs/done/jevgrep/README.md) owns closure and measured+limits. [Reference research](../specs/done/jevgrep/research.md) identifies the frozen+winner and retained official evidence. Earlier personal-repository pilot records+remain local historical material, not portable product validation or supported+evaluation entry points.diff --git a/scripts/RELEASING.md b/scripts/RELEASING.mdindex fce37e7..562b21c 100644--- a/scripts/RELEASING.md+++ b/scripts/RELEASING.md@@ -5,8 +5,9 @@ matching `vVERSION` tag. The development version `0.0.0` is not publishable throthis workflow. Stable versions publish to `latest`; prereleases publish to `next`.The package is `@dzhng/jevgrep`, and its executable is `jg`.-Complete the official quality confirmation and supported-runtime evidence before-requesting a release. Ubuntu CI is not native macOS evidence and does not run paid+Review the [recorded quality decision](../specs/done/jevgrep/README.md) and+supported-runtime evidence before requesting a release. Implementation closure+is not a claim that the original numerical quality gate passed. Ubuntu CI is not native macOS evidence and does not run paidmodel evaluations. The root `bun run verify` command is the common deterministicgate. Preparing a workflow or a candidate does not authorize creating a tag orpublishing a development checkpoint.diff --git a/specs/done/jevgrep/README.md b/specs/done/jevgrep/README.mdnew file mode 100644index 0000000..e4c1354--- /dev/null+++ b/specs/done/jevgrep/README.md@@ -0,0 +1,99 @@+# Jevgrep implementation record++Jevgrep turns a repository question into qualifying file locations, reading leads+and verbatim source excerpts for a coding agent. The installed `jg` CLI and its+explicit skill are implemented and verified as a Node-only package on macOS and+Linux. The caller owns the resulting patch and tests; retrieval does not generate+an answer or establish that the caller used its evidence correctly.++## Closure decision and measured limits++The user accepted the corrected package's documented quality tradeoff and asked+to finish the remaining work. This closes the implementation plan, **not the+original benchmark gate as passed**. The corrected ten-task cohort solved six,+preserved six of eight baseline solves, and achieved four successful cost wins.+Its full Sol cost was 27.30% lower including failures. The+[corrected confirmation](assets/freshness-confirmation.md) owns the exact receipts,+trace comparisons and immutable aggregate; its `accepted: false` verdict remains.+The earlier [passing confirmation](assets/work-clock-confirmation.md) belongs to+its own frozen package and cannot replace the corrected candidate's result.++The user separately authorized one identical cohort repeat to double-check+variance. **That measurement is pending at this documentation checkpoint.** It+is not permission to replace failures, pool outcomes, change the strategy or keep+rerunning until the gate passes. Its terminal evidence and the final independent+claim audit remain closeout work for the coordinating agent. The user authorized publication of `0.1.0` once the repeat and closeout finish.+Versioning, release verification and publication remain pending with the+coordinating agent. The repeated benchmark retains the frozen `0.0.0` archive;+release preparation does not replace its measured artifact.++## Why this shape++The accepted experimental strategy traverses multiple qualifying paths rather+than choosing a fixed top-N set. It returns evidence early in stdout, retaining+all admitted locations even when no excerpt is confident. Navigation, selected+source and rendered context serve different purposes; merging those meanings+would silently change the measured policy. Exact healthy request and output+parity is therefore a constraint on product engineering, not an optimization target.++Product requirements add filesystem eligibility, snapshot freshness, bounded+failure recovery, cancellation and answer caching around that strategy. These+boundaries protect source disclosure and honest partial results. They do not+promise atomic reads of a changing filesystem or a successful downstream fix.+The [restoration record](assets/parity-restoration.md) and+[freshness evidence](assets/source-freshness.md) own the tested equivalence and+remaining boundaries.++The smaller Python grammar parser did not preserve the reference's AST behavior.+Bundled CPython runs the retained helpers without requiring an installed Python+executable. [Runtime evidence](assets/python-runtime.md) records version, packaging,+license provenance and exercised syntax limits. This is measured compatibility,+not a proof over every Python program. Meaningful declaration and completion+order must not be normalized to make a comparison pass.++## Invariants and owners++- One filesystem reader owns eligibility and snapshot identity. Buffered source+ donors are revalidated before evaluator dispatch, including retries; final+ returned files are checked after context lookup. Already dispatched requests+ cannot be withdrawn retroactively.+- One evaluator owns retries, cancellation and actual request accounting. Cache+ entries contain validated answers keyed by exact semantic request and namespace,+ never source or credentials. Completion-order changes can produce novel requests+ on a warm search; identical native requests still reuse successful answers.+- Selected and rendered ranges remain distinct, and returned source is attributable+ to snapshot bytes. The renderer preserves the accepted packet policy. Explicit+ source-budget overrides do not remove qualifying file locations.+- The CLI owns credentials, stdout, exit status and the canonical bundled skill.+ Core does not print. Incomplete or interrupted evidence is labeled; an empty+ healthy result is distinct from failed evaluation.+- The official harness drives the installed package. Baselines are immutable and+ reused without execution; failed attempts and unknown bills remain counted.+ Jev API observations are separate from scored Sol cost and are not invoice+ reconciliation. No personal-repository evaluation fixtures ship in the package.++The [contracts](contracts.md) define public semantics; the+[choices ledger](choices.md) records implementation decisions and tradeoffs.+Mechanics live in [core](../../../packages/core/src/),+[CLI](../../../apps/cli/src/), [installed tests](../../../test/installed.test.mjs)+and [reference comparisons](../../../test/reference/). The+[official runner guide](../../../evals/implementation/swebench/installed.md)+owns retained-task execution and accounting. The+[release guide](../../../scripts/RELEASING.md) owns deliberate publication.++## Evidence provenance and rejected directions++The [decision map](map.md) preserves the user constraints and interview rationale;+[research](research.md) distinguishes the frozen winner from adjacent experiments.+The [recorded stdout](assets/stdout-example.txt) is a deterministic reference fixture,+not a live-provider result. There was no visual design baseline: installed-process+transcripts and source/request comparisons are the relevant review artifacts.++The [first CPython confirmation](assets/cpython-confirmation.md),+[query trial](assets/query-framing-study.md) and+[presentation trial](assets/presentation-study.md) retain unsuccessful directions+and their causal limits. None earned production promotion. Lower aggregate cost+alone does not cure a lost solve. The tuned sample is Python-only and observed+during development; it establishes neither untouched generalization, TS/JS task+quality, universal savings nor whole-computer scalability. Windows and broader+provider/agent evaluation remain outside this implementation's scope.diff --git a/specs/jevgrep/assets/accepted-spike-audit.json b/specs/done/jevgrep/assets/accepted-spike-audit.jsonsimilarity index 100%rename from specs/jevgrep/assets/accepted-spike-audit.jsonrename to specs/done/jevgrep/assets/accepted-spike-audit.jsondiff --git a/specs/jevgrep/assets/cpython-confirmation.md b/specs/done/jevgrep/assets/cpython-confirmation.mdsimilarity index 100%rename from specs/jevgrep/assets/cpython-confirmation.mdrename to specs/done/jevgrep/assets/cpython-confirmation.mddiff --git a/specs/jevgrep/assets/freshness-aggregate.json b/specs/done/jevgrep/assets/freshness-aggregate.jsonsimilarity index 100%rename from specs/jevgrep/assets/freshness-aggregate.jsonrename to specs/done/jevgrep/assets/freshness-aggregate.jsondiff --git a/specs/jevgrep/assets/freshness-confirmation.md b/specs/done/jevgrep/assets/freshness-confirmation.mdsimilarity index 100%rename from specs/jevgrep/assets/freshness-confirmation.mdrename to specs/done/jevgrep/assets/freshness-confirmation.mddiff --git a/specs/jevgrep/assets/installed-requests-checkpoint.md b/specs/done/jevgrep/assets/installed-requests-checkpoint.mdsimilarity index 100%rename from specs/jevgrep/assets/installed-requests-checkpoint.mdrename to specs/done/jevgrep/assets/installed-requests-checkpoint.mddiff --git a/specs/jevgrep/assets/integration-verification.md b/specs/done/jevgrep/assets/integration-verification.mdsimilarity index 100%rename from specs/jevgrep/assets/integration-verification.mdrename to specs/done/jevgrep/assets/integration-verification.mddiff --git a/specs/jevgrep/assets/parity-restoration.md b/specs/done/jevgrep/assets/parity-restoration.mdsimilarity index 90%rename from specs/jevgrep/assets/parity-restoration.mdrename to specs/done/jevgrep/assets/parity-restoration.mdindex 8d42db8..cb35218 100644--- a/specs/jevgrep/assets/parity-restoration.md+++ b/specs/done/jevgrep/assets/parity-restoration.md@@ -55,19 +55,19 @@ The retained winning executable is`evals/runs/swebench/auto-research-80/unit-locators.mjs`, SHA-256`9112edb080f87b1961780dd144b0c951a2e6728c8dce574452251c30acae996b`.The source closure and accepted skill are pinned by-[`test/reference/manifest.json`](../../../test/reference/manifest.json).+[`test/reference/manifest.json`](../../../../test/reference/manifest.json).The executable embeds AI SDK 7.0.107 and TypeScript 5.9.3; the port pins the sameversions. Requests' retained benchmark image used Python 3.11.5, while thedeterministic reference container uses Python 3.11.2.| Reference behavior | Evidence through the port | Owning gate || --- | --- | --- |-| Discovery previews, whole-frontier grouping, insertion order, relationship sampling and role inputs | [HTTP discovery comparisons](../../../test/reference/discovery-parity.test.ts), including controlled response completion | 04/07: exact computed native requests |-| Original positives plus bounded second context expansion, source fragments and reading leads | [Frozen selection comparisons](../../../test/reference/selection.test.ts); real Requests controlled selection reproduces all six accepted ranges and 4,761 source bytes | 02/04: request and range parity |-| Numbered source, scoped instruction lookup and test suggestions | [Full production HTTP replay](../../../test/reference/replay.test.ts) and [context-consumer comparisons](../../../test/reference/repository-context-parity.test.ts) compare complete stdout and requests | 04/07: whole packet parity |-| Navigation split recovery and provider failure behavior | Discovery comparisons plus [socket disconnect comparison](../../../test/reference/disconnect.test.ts) | 05: matched recovery trajectories |-| Accepted agent instructions and task prompt | [Exact skill comparison](../../../test/reference/skill.test.ts), installed harness prompt assertion | 04/08: only executable rename; unchanged baseline task |-| Python parser fallback and TypeScript comment expansion | [Parser conformance](../../../test/parser/source.test.ts), [whole-CLI Python comparisons](../../../test/reference/python-parity.test.ts) and context-consumer comparisons | 02: reference-version behavior for exercised syntax |+| Discovery previews, whole-frontier grouping, insertion order, relationship sampling and role inputs | [HTTP discovery comparisons](../../../../test/reference/discovery-parity.test.ts), including controlled response completion | 04/07: exact computed native requests |+| Original positives plus bounded second context expansion, source fragments and reading leads | [Frozen selection comparisons](../../../../test/reference/selection.test.ts); real Requests controlled selection reproduces all six accepted ranges and 4,761 source bytes | 02/04: request and range parity |+| Numbered source, scoped instruction lookup and test suggestions | [Full production HTTP replay](../../../../test/reference/replay.test.ts) and [context-consumer comparisons](../../../../test/reference/repository-context-parity.test.ts) compare complete stdout and requests | 04/07: whole packet parity |+| Navigation split recovery and provider failure behavior | Discovery comparisons plus [socket disconnect comparison](../../../../test/reference/disconnect.test.ts) | 05: matched recovery trajectories |+| Accepted agent instructions and task prompt | [Exact skill comparison](../../../../test/reference/skill.test.ts), installed harness prompt assertion | 04/08: only executable rename; unchanged baseline task |+| Python parser fallback and TypeScript comment expansion | [Parser conformance](../../../../test/parser/source.test.ts), [whole-CLI Python comparisons](../../../../test/reference/python-parity.test.ts) and context-consumer comparisons | 02: reference-version behavior for exercised syntax |The actual saved executable passed the 15 HTTP replay, discovery and disconnecttests with the restored port. This is evidence for those exercised fixtures;diff --git a/specs/jevgrep/assets/presentation-study.md b/specs/done/jevgrep/assets/presentation-study.mdsimilarity index 100%rename from specs/jevgrep/assets/presentation-study.mdrename to specs/done/jevgrep/assets/presentation-study.mddiff --git a/specs/jevgrep/assets/python-runtime.md b/specs/done/jevgrep/assets/python-runtime.mdsimilarity index 100%rename from specs/jevgrep/assets/python-runtime.mdrename to specs/done/jevgrep/assets/python-runtime.mddiff --git a/specs/jevgrep/assets/query-framing-study.md b/specs/done/jevgrep/assets/query-framing-study.mdsimilarity index 100%rename from specs/jevgrep/assets/query-framing-study.mdrename to specs/done/jevgrep/assets/query-framing-study.mddiff --git a/specs/jevgrep/assets/reference-verification.md b/specs/done/jevgrep/assets/reference-verification.mdsimilarity index 100%rename from specs/jevgrep/assets/reference-verification.mdrename to specs/done/jevgrep/assets/reference-verification.mddiff --git a/specs/jevgrep/assets/runtime-verification.md b/specs/done/jevgrep/assets/runtime-verification.mdsimilarity index 100%rename from specs/jevgrep/assets/runtime-verification.mdrename to specs/done/jevgrep/assets/runtime-verification.mddiff --git a/specs/jevgrep/assets/source-budget-decision.md b/specs/done/jevgrep/assets/source-budget-decision.mdsimilarity index 100%rename from specs/jevgrep/assets/source-budget-decision.mdrename to specs/done/jevgrep/assets/source-budget-decision.mddiff --git a/specs/jevgrep/assets/source-freshness.md b/specs/done/jevgrep/assets/source-freshness.mdsimilarity index 100%rename from specs/jevgrep/assets/source-freshness.mdrename to specs/done/jevgrep/assets/source-freshness.mddiff --git a/specs/jevgrep/assets/stdout-example.txt b/specs/done/jevgrep/assets/stdout-example.txtsimilarity index 100%rename from specs/jevgrep/assets/stdout-example.txtrename to specs/done/jevgrep/assets/stdout-example.txtdiff --git a/specs/jevgrep/assets/timing-protocol.md b/specs/done/jevgrep/assets/timing-protocol.mdsimilarity index 100%rename from specs/jevgrep/assets/timing-protocol.mdrename to specs/done/jevgrep/assets/timing-protocol.mddiff --git a/specs/jevgrep/assets/work-clock-aggregate.json b/specs/done/jevgrep/assets/work-clock-aggregate.jsonsimilarity index 100%rename from specs/jevgrep/assets/work-clock-aggregate.jsonrename to specs/done/jevgrep/assets/work-clock-aggregate.jsondiff --git a/specs/jevgrep/assets/work-clock-confirmation.md b/specs/done/jevgrep/assets/work-clock-confirmation.mdsimilarity index 100%rename from specs/jevgrep/assets/work-clock-confirmation.mdrename to specs/done/jevgrep/assets/work-clock-confirmation.mddiff --git a/specs/jevgrep/choices.md b/specs/done/jevgrep/choices.mdsimilarity index 92%rename from specs/jevgrep/choices.mdrename to specs/done/jevgrep/choices.mdindex 8c8e290..b677fda 100644--- a/specs/jevgrep/choices.md+++ b/specs/done/jevgrep/choices.md@@ -43,7 +43,7 @@ A host crash can still leave an owned container behind. Each new study freezesits timing instruction and policy; old studies retain their original clock.**Verdict:** sound for the cost/quality objective. **Confidence:** medium, becauseobserved events are an approximation and the changed instruction is part of the-comparison. Owner: [installed runner](../../evals/implementation/swebench/installed.py).+comparison. Owner: [installed runner](../../../evals/implementation/swebench/installed.py).### Preserve order inside requests while comparing independent requests fairly@@ -69,8 +69,8 @@ preserve every request's internal array and question orderfixture. **Reach:** fixture equality is not a promise of identical arrival orcompletion order in a live repository. Production retains completion order forcross-file evidence. **Verdict:** sound because it avoids hiding a semantic input-change. **Confidence:** medium. Owners: [retrieval](../../packages/core/src/retrieve.ts)-and [reference tests](../../test/reference/).+change. **Confidence:** medium. Owners: [retrieval](../../../packages/core/src/retrieve.ts)+and [reference tests](../../../test/reference/).### Use one child process for the bundled Python interpreter@@ -103,7 +103,7 @@ lines, while excerpt extraction retains the reference's newline-splitting rule.and recovery were unspecified. **Reach:** the package owns runtime assets and onechild process, without a system-Python dependency or an interpreter pool.**Verdict:** sound because cancellation has one owner and replay is confined to-pure inspection. **Confidence:** medium. Owner: [Python host](../../packages/core/src/python.ts);+pure inspection. **Confidence:** medium. Owner: [Python host](../../../packages/core/src/python.ts);[runtime rationale](assets/python-runtime.md) owns the version boundary.### Keep directory enumeration order distinct from preview order@@ -122,8 +122,8 @@ before sampling would show Jev different children.truncation or branch pruning, and close unused cursors. Streaming the reader doesnot bound all memory used by a caller that collects a whole directory.**Verdict:** sound because it preserves the reference's sampling distinction.-**Confidence:** medium. Owners: [filesystem reader](../../packages/core/src/filesystem.ts)-and [discovery](../../packages/core/src/retrieve.ts).+**Confidence:** medium. Owners: [filesystem reader](../../../packages/core/src/filesystem.ts)+and [discovery](../../../packages/core/src/retrieve.ts).### Retain declaration questions even when their source overlaps@@ -140,7 +140,7 @@ requirement to preserve unknown contributions of the winning strategy.**Reach:** preserving this behavior does not promise efficient whole-computersearch or optimal treatment of minified source. A change to question grouping isa separate retrieval-policy experiment. **Verdict:** sound under the preservation-constraint. **Confidence:** medium. Owner: [selection](../../packages/core/src/selection.ts).+constraint. **Confidence:** medium. Owner: [selection](../../../packages/core/src/selection.ts).### Enforce the cache bound by scanning stored entries@@ -157,7 +157,7 @@ another stateful component to maintain.**Reach:** storage is best effort, and large-cache write throughput is limited byrepeated scans. This mechanism makes no throughput claim. **Verdict:** sound as asimple bounded-storage owner with a disclosed cost. **Confidence:** medium.-Owner: [cache](../../packages/core/src/cache.ts).+Owner: [cache](../../../packages/core/src/cache.ts).## Sound — high confidence@@ -199,9 +199,9 @@ work remains concurrent; this is not a guarantee of network arrival or completioorder. Checks are observations, not locks: changes after a check and bytes alreadytransmitted cannot be undone. **Verdict:** sound for detected changes, withoutclaiming atomic filesystem consistency. **Confidence:** high. Owners:-[reader](../../packages/core/src/filesystem.ts),-[retrieval](../../packages/core/src/retrieve.ts) and-[attempt boundary](../../packages/core/src/gateway.ts).+[reader](../../../packages/core/src/filesystem.ts),+[retrieval](../../../packages/core/src/retrieve.ts) and+[attempt boundary](../../../packages/core/src/gateway.ts).### Separate cache trouble from missing retrieval evidence@@ -225,7 +225,7 @@ retrieval, and concurrent clear needed an ownership rule. **Reach:** callers muspreserve warnings separately from incomplete-evidence issues; cache answers remaindisposable and incompatible formats are discarded rather than migrated.**Verdict:** sound because the cache accelerates retrieval without becoming its-source of truth. **Confidence:** high. Owner: [cache](../../packages/core/src/cache.ts).+source of truth. **Confidence:** high. Owner: [cache](../../../packages/core/src/cache.ts).### Cancel a query's sibling requests when authentication fails@@ -241,7 +241,7 @@ could wait or make more requests after the query already knows its key cannot wowas unspecified. **Reach:** each request and retry wait must listen to both callercancellation and the shared authentication signal. **Verdict:** sound because oneauthentication failure cannot leave siblings spending work independently.-**Confidence:** high. Owner: [evaluator](../../packages/core/src/gateway.ts).+**Confidence:** high. Owner: [evaluator](../../../packages/core/src/gateway.ts).### Retain acquired evidence on interruption, but not on invalidation@@ -259,8 +259,8 @@ but require different effects on stored evidence. **Reach:** later preparationpaths must retain the distinction; partial output cannot claim complete discoveryor an atomic filesystem snapshot. **Verdict:** sound because the reason forstopping determines which evidence remains usable. **Confidence:** high.-Owners: [selection](../../packages/core/src/selection.ts) and-[retrieval](../../packages/core/src/retrieve.ts).+Owners: [selection](../../../packages/core/src/selection.ts) and+[retrieval](../../../packages/core/src/retrieve.ts).### Exclude deprecated evaluation packages from workspace discovery@@ -275,7 +275,7 @@ Keeping the broad package glob would let deprecated tooling rejoin ordinary work**Gap:** removing deprecated entry points did not specify workspace discovery.**Reach:** new packages must be added deliberately. **Verdict:** sound becauselocal historical evidence should not become an active dependency by proximity.-**Confidence:** high. Owner: [workspace manifest](../../package.json).+**Confidence:** high. Owner: [workspace manifest](../../../package.json).### Rebuild bundled code and skill whenever a build is requested@@ -291,7 +291,7 @@ input tracking to make the same guarantee.more work, but their outputs reflect current source and skill content. This doesnot replace checking the resulting archive. **Verdict:** sound because a staleembedded skill would change installed behavior. **Confidence:** high.-Owners: [task configuration](../../turbo.json) and [build](../../scripts/build-cli.ts).+Owners: [task configuration](../../../turbo.json) and [build](../../../scripts/build-cli.ts).### Derive notices from bundled inputs and pin external runtime provenance@@ -313,8 +313,8 @@ notice set. Jevgrep's own MIT license remains separate from these dependencies.were unspecified. **Reach:** dependency changes can require notice review; ordinarybuilds read retained texts without downloading licenses. **Verdict:** sound becausenotice ownership follows what is distributed. **Confidence:** high.-Owners: [notice generator](../../scripts/package-notices.mjs) and-[license provenance](../../scripts/licenses/README.md).+Owners: [notice generator](../../../scripts/package-notices.mjs) and+[license provenance](../../../scripts/licenses/README.md).### Publish one archive, then verify that exact registry version separately@@ -332,7 +332,7 @@ identity, channel selection and post-publication job layout required implementatchoices. **Reach:** release checks follow one archive through publication. Thisworkflow does not itself authorize a tag or publication. **Verdict:** sound becausebuild-time and registry-install claims remain separately checkable.-**Confidence:** high. Owner: [publish workflow](../../.github/workflows/publish.yml).+**Confidence:** high. Owner: [publish workflow](../../../.github/workflows/publish.yml).### Bind a benchmark cohort to one installed package@@ -351,7 +351,7 @@ visible; a smaller diagnostic study cannot stand in for a full cohort. Schemachanges retain older studies with their archived runners instead of reinterpretingthem. **Verdict:** sound because artifact and attempt identity prevent resultpooling. **Confidence:** high. Owner:-[installed benchmark runner](../../evals/implementation/swebench/installed.py).+[installed benchmark runner](../../../evals/implementation/swebench/installed.py).### Reuse installed journeys for native macOS checks@@ -368,4 +368,4 @@ Thus system Python cannot quietly satisfy a missing product dependency.filesystem and failure coverage is not claimed for the narrower native smoke;results identify the actual runtime and archive. **Verdict:** sound because theinstallation boundary is exercised without borrowing checkout tools.-**Confidence:** high. Owner: [native harness](../../scripts/test-native.mjs).+**Confidence:** high. Owner: [native harness](../../../scripts/test-native.mjs).diff --git a/specs/jevgrep/contracts.md b/specs/done/jevgrep/contracts.mdsimilarity index 94%rename from specs/jevgrep/contracts.mdrename to specs/done/jevgrep/contracts.mdindex 229309a..8497ad7 100644--- a/specs/jevgrep/contracts.md+++ b/specs/done/jevgrep/contracts.md@@ -1,8 +1,8 @@# Product contracts-These are intended v1 contracts, not descriptions of already-shipped behavior.-User decisions are in [the map](map.md); defaults below are planning decisions-unless explicitly delegated. No backward compatibility or migration layer.+These contracts describe the implemented v1 interface and its invariants.+[The map](map.md) records user decisions; [the ledger](choices.md) records+implementation choices. No backward compatibility or migration layer is provided.## CLI and installation@@ -67,9 +67,9 @@ Keep `apps/cli` (credentials/process/rendering) and `packages/core` (retrieval)plus existing TypeScript configuration. Test helpers remain under `test/`.Official evaluation tools remain development-only and must not enter the package.-The implemented schemas live in [retrieval types](../../packages/core/src/types.ts),-[source units](../../packages/core/src/source.ts), and-[filesystem snapshots](../../packages/core/src/filesystem.ts). `retrieve` accepts a+The implemented schemas live in [retrieval types](../../../packages/core/src/types.ts),+[source units](../../../packages/core/src/source.ts), and+[filesystem snapshots](../../../packages/core/src/filesystem.ts). `retrieve` accepts aroot, query, policy, cancellation signal and evaluator; it returns file evidence,completion status, counted issues and request/cache statistics. Cache warningsare separate from missing-evidence issues.@@ -211,7 +211,7 @@ numbering, scoped guidance lookup and suggested test entries. Source byte limitsremain explicit caller overrides only. Any later policy change requires anisolated quality experiment after the faithful port is established.-Official acceptance preserves every fixed baseline solve and reaches at least+The registered numerical gate requires preserving every fixed baseline solve and reaching at leastseven successful lower-cost solves out of the existing ten-task cohort with onefrozen production policy. Report aggregate costs including failures and unknownbilling separately. No per-task strategy shopping. Unknown bills cannot count as@@ -224,3 +224,8 @@ reasoning, edits, tests and retries count. Cold/warm cache does not earn a qualiclaim by itself. Record timing for diagnosis only; no speed acceptance gate.Untouched additional tasks, Claude Opus and DeepSWE are follow-up evaluation work,not prerequisites hidden inside this release. Keep all traces and official grades.++The corrected candidate did not pass that numerical gate. The user explicitly+accepted implementation closure with the documented tradeoff; this does not+change the retained aggregate verdict. [Closure and evidence bounds](README.md)+own that decision and the separately authorized pending variance repeat.diff --git a/specs/done/jevgrep/map.md b/specs/done/jevgrep/map.mdnew file mode 100644index 0000000..3bc3aab--- /dev/null+++ b/specs/done/jevgrep/map.md@@ -0,0 +1,76 @@+# Product decision map++Completed quadrant walk, 2026-09-25. This map records the constraints behind the [implementation record](README.md).+Decisions below are user-confirmed unless explicitly attributed to the implementer+or territory. Current behavior is owned by code and the contracts, not this historical interview.++## Known knowns++The [accepted architecture](../../../docs/architecture.md) is hierarchical retrieval,+not an answer-generating agent: question → directories → files → source units →+stdout. Preserve every qualifying file, with optional reading leads and selected+verbatim excerpts. Summary comes first; no negative inventory or report files.+The request guard is 50,000, solely to prevent runaway work.++Use TypeScript, Bun/Turbo workspaces, AI SDK native evaluation objects and AI+Gateway Jev. Auth accepts a pasted key. Future providers are deferred. The+[CLI](../../../apps/cli/src/index.ts) owns search, authentication, diagnostics and skill delivery.++Acceptance is official SWE-bench solve quality and full coding-agent task cost.+Exclude Jev costs/tokens; include returned text in the coding agent's bill. Fixed+baselines run once per task/model/harness. Personal-repository evals stay deprecated+and out of commits. Sol is the first evaluation consumer. The accepted tuned+Python-only sample achieved 7/10 successful cost wins and preserved all eight+baseline solves; this is not untouched generalization evidence.++## Known unknowns: closed interview decisions++| Question | Decision and reason | Owner |+| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |+| Persistent cache? | Enabled by default, freshness checked; `--no-cache` and clear supported. Repeated work should be reusable. | User |+| Eligibility? | Respect `.gitignore`/`.ignore`; skip hidden, dependency/build, binary and obvious credential files by default. Broadening must be explicit. | User |+| Source output cap? | Choose by solve quality and full agent cost. Retain all qualifying file locations and label omitted source. | Delegated by user |+| Platforms/distribution? | npm, macOS and Linux; Windows deferred. | User |+| Executable name? | `jg`, like `rg`; repo, package and skill keep the Jevgrep name. | User |+| Runtime prerequisites? | Node only; bundle Python parsing and TS/JS parsing, text fallback. | User |+| Compatibility/migrations? | Neither; hard cutover from experiments while preserving evidence. | User |+| Partial provider failure? | Preserve useful results, prominently label incomplete, distinct exit code. | User |+| First useful checkpoint? | Installed CLI + skill + real search; Docker E2E and one saved SWE-bench task before expanding. | User |++## Unknown knowns: expectations extracted++The consumer is an autonomous coding agent, often running under output truncation.+It needs useful evidence early, optional leads, and permission to fill remaining+gaps; it should not reread supplied ranges or treat every lead as required reading.+Production skill invocation is selective; benchmark invocation is required to+isolate retrieval's effect. No daemon, service, editor extension, or background+index is needed for this release.++Installation must work outside this checkout. The+[installed package journeys](../../../test/installed.test.mjs) and+[native runtime checks](../../../scripts/test-native.mjs) establish that boundary+with isolated configuration and fixture credentials. Earlier sibling-project+examples informed test isolation; they are not runtime dependencies or portable+verification evidence.++## Risks resolved and bounded++The experimental Python helper required a host interpreter; bundled CPython+preserves its exercised behavior under the Node-only contract. Initial metadata+navigation and later source-sampled relationships remain distinct; adding early+content sampling would change the measured policy. Service failure is explicit+incomplete evidence, and selected source remains distinct from expanded context.+Adversarial filesystem fixtures cover policy and mutation without claiming+whole-computer effectiveness. The stdout-only CLI contract is tested through the+installed binary. [Restoration](assets/parity-restoration.md),+[runtime](assets/python-runtime.md), and [freshness](assets/source-freshness.md)+records own the evidence and limitations.++## Evidence disposition++The [implementation record](README.md) links the completed parser, filesystem,+HTTP, installed-package and downstream quality evidence. Initial directory+sampling and source-budget experiments did not replace the accepted strategy.+External service failure remains incomplete evidence, never a passed quality gate.+The user accepted closure with the corrected candidate's failed numerical gate;+that product decision does not rewrite the historical result.diff --git a/specs/jevgrep/research.md b/specs/done/jevgrep/research.mdsimilarity index 80%rename from specs/jevgrep/research.mdrename to specs/done/jevgrep/research.mdindex 678f1f7..4e7bb6b 100644--- a/specs/jevgrep/research.md+++ b/specs/done/jevgrep/research.md@@ -22,15 +22,13 @@ they do not supersede the product's measured retrieval policy.- [npm pack](https://docs.npmjs.com/cli/v11/commands/npm-pack/) supplies the releaseartifact boundary. Run the installed tarball, not a workspace-linked package.-## Local reference patterns+## Installed verification rationale-[Duet-agent](../../../duet-agent/package.json) demonstrates Docker-isolated mutable-state. [Photoctl](../../../photoctl/test/macos/packed-install.test.ts) demonstrates-clean installs and shared user journeys through the real binary. Its-[HTTP fixture](../../../photoctl/packages/test-harness/src/gateway-fixture.ts)-validates request shape rather than bypassing the SDK. Its test driver disables-ambient credentials. Borrow these mechanisms, not Photoctl's JSON/stderr protocol,-native imaging dependencies or large package graph.+Tests exercise packed installed processes with isolated writable state and real+HTTP fixtures. Workspace imports and ambient credentials would bypass the+installation and transport boundaries under test. The+[installed journeys](../../../test/installed.test.mjs) own this verification;+reference projects informed the pattern but are not required evidence dependencies.## Frozen reference and limitations@@ -54,8 +52,8 @@ speedup, language generality, or whole-computer scalability is established.File-list-only, per-declaration source-only representation, broader relationships,and test-example heuristics did not replace the accepted strategy. Preserve theirlessons without making them defaults by documentation. See the-[experiment lessons](../../evals/implementation/swebench/architecture-lessons.md).+[retained restoration lessons](assets/parity-restoration.md).The frozen spike validates `--max-source-bytes` but never uses the parsed value-to allocate output. Its measured output is uncapped. The product budget experiment-must compare against that behavior, not treat the flag default as an enforced cap.+to allocate output. Its measured output is uncapped. The product budget experiment compared against that uncapped behavior; it did+not earn promotion. The parsed spike flag was never an enforced default cap.diff --git a/specs/jevgrep/README.md b/specs/jevgrep/README.mddeleted file mode 100644index cc9b669..0000000--- a/specs/jevgrep/README.md+++ /dev/null@@ -1,171 +0,0 @@-# Jevgrep product spec--Turn a coding agent's research question into relevant file locations and useful-source excerpts. Ship a Node-only CLI and explicit agent skill, using hierarchical-Jev classification through Vercel AI Gateway. This is the build plan; production search is implemented and acceptance verification is in progress.--## Next Agent Prompt--You are implementing this spec. Status: **implementing**, updated **2026-09-26**.-The corrected package's `installed-jg-freshness-v1` cohort is complete and-**rejected**: six of eight baseline solves preserved, four successful cost wins,-and 27.30% lower full Sol cost. [Current confirmation](assets/freshness-confirmation.md)-owns the complete aggregate and all ten trace comparisons. No coding, grading or-accounting process remains active; do not restart terminal sessions or attempts.--The freshness correction is integrated in `92ca7f9`. Full merged verification,-healthy reference parity and exact archive checks on all supported platforms-passed; [freshness evidence](assets/source-freshness.md) owns that proof and its-limits. Django and Requests still failed official behavior cases despite the-agent receiving the relevant code. This does not prove the correction or model-variance alone caused the losses.--Next: audit the final retained evidence and resolve the product-quality decision-with the user before changing the exact spike strategy or acceptance contract.-Do not rerun an unchanged cohort to seek a passing draw, replace attempts, pool-prior outcomes, or archive the spec as accepted. The choices ledger has been-consolidated against current code; final reconciliation and close-spec remain.--The preceding [accepted confirmation](assets/work-clock-confirmation.md) remains-valid for its own frozen archive. It cannot replace this corrected candidate's-failed result. Preserve both archives, the canonical skill and healthy retrieval-semantics. Rejected query/presentation experiments have not earned promotion.--Evidence and boundaries:--- [Runtime verification](assets/python-runtime.md): merged default tests,- whole-product review, and exact archive checks on macOS arm64 and Linux- arm64/amd64 passed. Interpreter parity is established for the exercised corpus,- not all possible inputs.-- [Restoration record](assets/parity-restoration.md): frozen reference, known- deviations and controlled request/output/recovery comparisons.-- [Completed first confirmation](assets/cpython-confirmation.md): rejected for- losing a baseline solve despite lower total cost. Its traces remain evidence.-- [Query trial](assets/query-framing-study.md) and- [presentation trial](assets/presentation-study.md): rejected experiments,- source-parity probes and limits on causal explanations.--Priority: resolve the failed quality confirmation without silently weakening-acceptance or changing the measured strategy; then perform final reconciliation-and close-spec. Slice 08 remains open. No publication or-release tag is authorized for the intentional `0.0.0` development checkpoint.-Report observed Jev costs separately; they never enter scored Sol task cost.--Further strategy experiments or acceptance changes require an explicit direction-after reviewing the completed evidence. Preserve authorized credentials and retained-Docker snapshots; do not repair credentials or regenerate baselines. Preserve-user-edited skill files and local historical evidence. Stage only explicit files,-keeping deprecated personal-repository evals out of Git.--- [x] [01 — Reference and real HTTP fixture](slices/01-reference.md)-- [x] [02 — Bundled parser parity](slices/02-parser.md)-- [x] [03 — Filesystem eligibility and snapshots](slices/03-filesystem.md)-- [x] [04 — Installed CLI + skill + first real task](slices/04-checkpoint.md)-- [x] [05 — Faults, cancellation and partial results](slices/05-failures.md)-- [x] [06 — Default-on fresh cache](slices/06-cache.md)-- [x] [07 — Preserved output policy](slices/07-output-policy.md)-- [ ] [08 — Frozen quality and release verification](slices/08-release.md)--## Product and scope--User supplies `jg "question" [root]`; the CLI returns a summary, all qualifying-file locations, optional declaration leads, and selected verbatim excerpts. It-helps the caller begin with evidence; the caller still owns the patch and tests.-Threshold selection replaces fixed top-N file counts. No negative-path inventory,-generated answer, saved report, daemon, index, MCP server or UI.--Final v1 includes npm packaging and a tested publishing workflow on macOS/Linux,-Node-only runtime, auth/doctor,-Python and TS/JS parsing with text fallback, safe default eligibility, incomplete-results, default-on cache, and the agent skill. Cache persistence uses the same evaluator and retrieval pipeline.-No backward compatibility, data migrations or scaffold shims. Other providers,-Windows, Claude/DeepSWE benchmark expansion and untouched holdout research are-separate follow-ups. Keep personal-repository evals out of version control.--[Contracts](contracts.md) own the exact CLI, data shapes, defaults and semantics.-[Map](map.md) records the completed interview. [Research](research.md) owns-reference distinctions and accepted numerical evidence. The-[stdout sample](assets/stdout-example.txt) is the recorded frozen-reference HTTP-fixture packet,-not a live Jev result or another empirical prompt claim.--## Ladder and review surfaces--```mermaid-flowchart LR- R[01 Reference] --> P[02 Parser]- R --> F[03 Filesystem]- P --> C[04 Installed task]- F --> C- C --> E[05 Failure semantics]- E --> K[06 Cache]- K --> O[07 Output policy]- O --> Q[08 Quality and release]-```--The first user workflow checkpoint is 04; 01–03 are independently runnable-prerequisite probes. Each slice produces one acceptance artifact named in its-file. CLI transcripts and installed-package journeys are the review surface;-there is no browser or screenshot requirement. Human feedback is non-blocking-for reversible implementation choices; evidence gates remain binding.--Docker tests run the built and then packed installed binary in a clean runtime,-with isolated HOME/XDG, fixture-only credentials, bounded resources and real HTTP-transport. Filesystem-writing integration tests must not touch the host. Give-focused commands for cases; reserve the full suite for closeout. Native macOS-installed verification complements Docker. Live Jev and downstream Sol tests are-separate from deterministic fixture tests; neither substitutes for the other.--## Single-owner invariants--Two production packages suffice: CLI owns interaction/process/rendering; core owns-retrieval. Within core, filesystem policy owns every read, snapshot owns all source-coordinates, source inspector owns syntax, request builders own prompt meaning,-evaluator owns all retries/request accounting, traversal owns frontier decisions,-selection owns source expansion, and cache owns persisted answers. Evaluation-harness owns baselines/official grades/billing and never ships in the npm package.--No second renderer or parser in eval tooling. The harness drives the real installed-CLI, while the frozen spike remains a read-only reference oracle. No runtime-compatibility adapter to old flags or personal-eval tooling. No source duplication-in cache. Selected and rendered ranges are distinct data, not competing owners.-The final code should read as designed today, not as experiments bolted together.--## Acceptance--Reconfirm one frozen production policy on the existing official ten-task Sol-cohort: preserve every baseline solve and achieve at least seven lower-cost-successful solves. Baselines are immutable per task/model/harness. Full coding-agent-cost includes retrieved text, reasoning, implementation and tests; Jev cost/tokens-are excluded. Retain unknown outcomes, failures and full traces. Timing is diagnostic,-not a gate. The historical eight solves and 37.784% total saving support the-architecture but do not automatically transfer to this implementation.--The sample was tuned and Python-only. TS/JS conformance tests establish parser-behavior, not downstream solve generalization. Arbitrary roots are supported by-contract; whole-computer effectiveness is not established by synthetic scale tests.--## Planning rationale and remaining boundaries--Three independent fresh-context drafts used the same interview brief: Codex with-fewest-slices and seam-quality biases; Claude Opus/high with a risk-first bias.-They agreed on installed-process testing, explicit owners, baseline reuse and-separate production quality confirmation. The minimal draft proposed three broad-slices; the seam draft ten; the risk draft prioritized oracle and parser probes.-This plan keeps two production packages, moves parser/filesystem risks before the-first task, and separates failures/cache/output evidence instead of bundling them-into a vague hardening phase.--Claude proposed Pyodide for closer CPython parity. The initial smaller grammar-parser failed that requirement; bundled CPython now executes the unchanged-reference helpers. [Runtime evidence](assets/python-runtime.md) records the-completed integration, verification and interpreter-version limits. The Node-only-user contract is unchanged. Do not normalize meaningful source or question order.-The incumbent skill matches the retained accepted instructions apart from the-executable rename; the separate skill experiment is not a production replacement.--Recursive fog audit: parser compatibility has its own artifact (02); eligibility-and snapshot integrity (03); service outcomes (05); freshness (06); preserved-output policy (07); actual task quality (08). Each open implementation freedom is-named in its owning slice. New behavior decisions outside those delegations reopen-the spec instead of becoming silent defaults. No untested representation change,-new recall heuristic or performance optimization hides in the integration slice.diff --git a/specs/jevgrep/map.md b/specs/jevgrep/map.mddeleted file mode 100644index 40bf7f4..0000000--- a/specs/jevgrep/map.md+++ /dev/null@@ -1,84 +0,0 @@-# Product decision map--Completed quadrant walk, 2026-09-25. This map feeds the [build plan](README.md).-Decisions below are user-confirmed unless explicitly attributed to the implementer-or territory. The product is not implemented by this document.--## Known knowns--The [accepted architecture](../../docs/architecture.md) is hierarchical retrieval,-not an answer-generating agent: question → directories → files → source units →-stdout. Preserve every qualifying file, with optional reading leads and selected-verbatim excerpts. Summary comes first; no negative inventory or report files.-The request guard is 50,000, solely to prevent runaway work.--Use TypeScript, Bun/Turbo workspaces, AI SDK native evaluation objects and AI-Gateway Jev. Auth accepts a pasted key. Future providers are deferred. The-[CLI scaffold](../../apps/cli/src/index.ts) currently exposes auth/doctor only.--Acceptance is official SWE-bench solve quality and full coding-agent task cost.-Exclude Jev costs/tokens; include returned text in the coding agent's bill. Fixed-baselines run once per task/model/harness. Personal-repository evals stay deprecated-and out of commits. Sol is the first evaluation consumer. The accepted tuned-Python-only sample achieved 7/10 successful cost wins and preserved all eight-baseline solves; this is not untouched generalization evidence.--## Known unknowns: closed interview decisions--| Question | Decision and reason | Owner |-| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |-| Persistent cache? | Enabled by default, freshness checked; `--no-cache` and clear supported. Repeated work should be reusable. | User |-| Eligibility? | Respect `.gitignore`/`.ignore`; skip hidden, dependency/build, binary and obvious credential files by default. Broadening must be explicit. | User |-| Source output cap? | Choose by solve quality and full agent cost. Retain all qualifying file locations and label omitted source. | Delegated by user |-| Platforms/distribution? | npm, macOS and Linux; Windows deferred. | User |-| Executable name? | `jg`, like `rg`; repo, package and skill keep the Jevgrep name. | User |-| Runtime prerequisites? | Node only; bundle Python parsing and TS/JS parsing, text fallback. | User |-| Compatibility/migrations? | Neither; hard cutover from experiments while preserving evidence. | User |-| Partial provider failure? | Preserve useful results, prominently label incomplete, distinct exit code. | User |-| First useful checkpoint? | Installed CLI + skill + real search; Docker E2E and one saved SWE-bench task before expanding. | User |--## Unknown knowns: expectations extracted--The consumer is an autonomous coding agent, often running under output truncation.-It needs useful evidence early, optional leads, and permission to fill remaining-gaps; it should not reread supplied ranges or treat every lead as required reading.-Production skill invocation is selective; benchmark invocation is required to-isolate retrieval's effect. No daemon, service, editor extension, or background-index is needed for this release.--Installation must work outside this checkout. [Photoctl's packed-install test](../../../photoctl/test/macos/packed-install.test.ts)-proves that property with installed tarballs and cleared development overrides.-[Duet-agent's runner](../../../duet-agent/package.json) isolates writes inside-Docker with a temporary home. Photoctl's [spawn helper](../../../photoctl/packages/test-harness/src/spawn.ts)-uses real CLI processes and disables ambient credentials; its-[Docker configuration](../../../photoctl/test/compose.yaml) makes permission tests-meaningful. These are reference patterns, not benchmark fixtures or sources to copy-wholesale. Jevgrep retains its stdout-only contract.--## Unknown unknowns: landmines from the sweep--Coverage: production CLI/auth/core and manifests; accepted traversal and source-unit-spikes; architecture and lessons; both reference repos' test runners and selected-installed-process/provider tests. No whole-repo security or performance audit claimed.--| Evidence | Why it bites | Disposition |-| ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |-| [Python parser](../../evals/implementation/swebench/source-method-windows-spike.ts) invokes `python3` | The spike violates the new Node-only installation contract. | Decided: bundle parser; pin parser parity before integrating. |-| [Traversal](../../evals/implementation/swebench/hierarchy-unit-locators-spike.ts) adds directory source samples on a follow-up | Calling the winner universally content-sampled would misdescribe it. | Sharp edge: freeze reference separately; evaluate initial directory sampling as an explicit change. |-| [Lessons](../../evals/implementation/swebench/architecture-lessons.md) record failed calls and excerpt expansion | Missing source can be service failure; surrounding context can inflate selection. | Decided: typed partial status, selected and rendered ranges separately owned. |-| [Architecture](../../docs/architecture.md) limits whole-computer claims | Nested roots, files changing during search and permissions are unvalidated. | Verification requirement: adversarial filesystem fixtures; no scalability claim from ten repos. |-| [Auth scaffold](../../apps/cli/src/auth.ts) and CLI emit stderr | Existing success/error paths conflict with the requested output contract. | Decided: cut over deliberately; assert empty stderr through the installed CLI. |--## Facts implementation must establish--Bundled CPython version and component-license compatibility, Node runtime asset loading,-exact SDK evaluation HTTP shape, and initial directory sampling quality must be-proved at the owning slice before its consumer lands. Excerpt budget is delegated-to comparative task evidence, not another product interview. An unavailable external-service is an incomplete validation result, never a passed quality gate.--## Copyable next instruction--“Implement the Jevgrep spec slice by slice, starting at its Next Agent Prompt.-Keep Docker end-to-end coverage and reuse saved benchmark baselines. Record-new evidence and deviations in the spec; do not silently change retrieval policy.”diff --git a/specs/jevgrep/slices/01-reference.md b/specs/jevgrep/slices/01-reference.mddeleted file mode 100644index 5da0e22..0000000--- a/specs/jevgrep/slices/01-reference.md+++ /dev/null@@ -1,37 +0,0 @@-# Freeze the reference and HTTP seam--Status: verified; see [reference evidence](../assets/reference-verification.md). Depends on: None. Read [contracts](../contracts.md) first.--## Contract and owner--Own the test oracle under `test/reference`, not runtime code. Retain a small licensed synthetic tree, exact accepted native request objects, fixture answers and resulting stdout. Pin source/bundle/skill hashes from research.md. Preserve original official traces outside published artifacts. Capture the actual installed SDK evaluation wire response using synthetic input; route the real SDK through a local HTTP fixture. Do not fabricate an SDK response schema from memory.--Pure request-builder seam: `buildRequest(stage, inputs) -> {state, questions}`. Fixture responder accepts actual HTTP and validates body/headers before returning pinned answers. Actual questions and ordered state are significant. Normalize only nondeterministic diagnostic timestamps, not request item ordering or source.--## Human-runnable artifact--One replayable reference corpus.--`bun run test:reference` replays the small reference tree and prints request/packet differences.--Commands are implementation targets. Add them in this slice; do not imply they-already exist. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--Validate healthy true/false answers, malformed/missing answers and SDK warnings. Every literal prompt and source range must trace to the frozen source. Verify the retained skill hash matches the confirmation plan, not the mutable working skill path.--## Delegated decisions--Fixture names and test organization; exact prompt wording and question meaning are not delegated.--## Keep green--No production search yet. Preserve original evidence and official baseline identity.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.diff --git a/specs/jevgrep/slices/02-parser.md b/specs/jevgrep/slices/02-parser.mddeleted file mode 100644index 9706b0c..0000000--- a/specs/jevgrep/slices/02-parser.md+++ /dev/null@@ -1,49 +0,0 @@-# Bundle source inspection without system Python--Status: verified against the exercised reference corpus and installed gates (2026-09-26).-Depends on: 01.-Read [contracts](../contracts.md) first. Recognized syntax outside the reference's-Python 3.11 boundary shares one fallback across inspection, previews and-neighboring-method selection. TypeScript uses the reference comment traversal.--## Contract and owner--Core `source` owns `inspect(snapshot) -> {units, comments, mode}` and Python preview/neighborhood helpers. First reproduce the frozen scripts on fixture source in the test container, then execute unchanged helpers in bundled CPython. See the [runtime evidence](../assets/python-runtime.md). TS/JS uses TypeScript. One snapshot supplies lines and source; unsupported or erroneous syntax falls back to text chunks.--Verify three Python uses: declarations, content previews and neighboring methods. Compare nested classes/functions, decorators, comments/docstrings, Unicode, CRLF, Python-2 syntax and parse failures. Differences must be explained as explicit production behavior changes, never normalized away. Package WASM/license assets now and resolve from the installed module location. If the chosen runtime cannot load reliably, stop this slice and revise the parser decision before integrating; do not add a Python prerequisite.--## Human-runnable artifact--Node-only parser conformance transcript.--`bun run test:parser` packs/installs the parser-bearing CLI artifact in a Node-only Docker runtime and prints extracted units from fixtures.--Commands are implementation targets. Add them in this slice; do not imply they-already exist. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--Earlier grammar conformance checks passed the exercised fixtures but missed-Python AST differences found by whole-product review. They do not establish-completion. Bundled CPython passed the bounded helper probe, merged production and lifecycle-comparisons, installed package checks and whole-product review.-[Runtime evidence](../assets/python-runtime.md) records the exact coverage.-The [parser conformance guide](../../../test/parser/README.md) owns executable-coverage. Neither parser comparisons nor package checks establish task quality.--Assert source text and line coordinates, meaningful comments, bounded oversized units and fallback behavior. Inspect representative source from the saved official task trees without copying personal repos. Ensure no shell-out to python/Bun/compiler and no runtime asset download.--## Delegated decisions--Pinned runtime packaging and isolation; preserve the original extraction helpers and record remaining interpreter-version differences.--## Keep green--Reference request builders stay unchanged. This is a prerequisite probe, not the end-to-end checkpoint.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.diff --git a/specs/jevgrep/slices/03-filesystem.md b/specs/jevgrep/slices/03-filesystem.mddeleted file mode 100644index bd8086a..0000000--- a/specs/jevgrep/slices/03-filesystem.md+++ /dev/null@@ -1,39 +0,0 @@-# Make all retrieval reads eligible and consistent--Status: verified. Depends on: 01. Read [contracts](../contracts.md) first.--## Contract and owner--Core filesystem seam: `listPage(directory, cursor, policy)` and `readSnapshot(path, policy)`. It owns root normalization, nested ignore scopes, exclusion checks, regular-file handling, chunked reads and mutation detection. Preview, follow-up and source-selection readers must use this seam. Implement the exact policy in contracts.md, including non-repository roots and no descendant symlink following.--Bound wide-directory enumeration and content reads without turning omitted work into negative answers. Avoid full-tree preloading. Before uploading snapshots, detect unstable reads; skip unstable input and mark incomplete rather than mix bytes. Normal ignored paths remain exclusions, not service failures.--## Human-runnable artifact--Installed filesystem fixture journey.--`bun run test:filesystem` drives a synthetic plain root and nested repos inside Docker.--Commands are implementation targets. Add them in this slice; do not imply they-already exist. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--Prove ignored/hidden/credential/binary contents never reach the provider fixture, including via directory sampling. Cover negate rules, excluded parents, nested .gitignore reset, .ignore precedence, same-size edits, unreadable files, symlink cycles/outside-root targets, FIFOs, newlines in names and wide/deep trees. Run as non-root or drop DAC override capabilities for permission tests.--## Delegated decisions--Ignore matching library, concrete documented exclusion lists, page size and memory bounds. No new runtime executable requirement.--## Keep green--Parser ranges remain tied to the original snapshot. No personal repository becomes an eval fixture.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.--The named Docker filesystem gate passed, including the installed wide/deep plain-root and nested-repository journey. See [final merged verification](../assets/python-runtime.md).diff --git a/specs/jevgrep/slices/04-checkpoint.md b/specs/jevgrep/slices/04-checkpoint.mddeleted file mode 100644index eacf3ca..0000000--- a/specs/jevgrep/slices/04-checkpoint.md+++ /dev/null@@ -1,47 +0,0 @@-# Deliver the installed CLI and agent workflow--Status: verified for the frozen bundled-CPython artifact (2026-09-26). Depends on: 01, 02, 03.-Read [contracts](../contracts.md) first.--## Contract and owner--Compose core `retrieve` and the CLI contract. Port hierarchy, file admission, source/lead decisions, accepted relationship pass and separate roles; copy exact accepted request builders. Preserve the reference's metadata-only initial directory previews and content-informed relationship pass. Preserve its candidate processing and concurrent completion ordering; cache keys follow the resulting exact requests.--CLI owns credentials, rendering, stdout-only errors, cancellation and exit codes. Core result carries selected versus rendered ranges and completeness. Ship `jg skill` and the canonical `skills/jevgrep/SKILL.md` following write-skills. Production invocation is selective, benchmark wrapper forces first retrieval. Implement initial finite evaluator attempts and 50k counter now; the later fault slice expands conformance rather than allowing runaway work here.--Build/pack/install outside checkout. Cache was integrated through the single evaluator before this checkpoint; slice 06 owns its full freshness acceptance. Start with the accepted source allocation, retaining all qualifying paths.--## Human-runnable artifact--One complete installed-product evidence bundle.--`bun run test:e2e -- --case checkpoint`; then the maintained runner's-[`prepare` and task-scoped `run`](../../../evals/implementation/swebench/installed.md)-against `psf__requests-1142`. The Requests cell of the frozen ten-task confirmation-can supply this checkpoint; no extra diagnostic treatment or baseline rerun is-needed. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--Docker fixture exercises installed auth, help, doctor, query, skill and partial output with empty stderr and isolated HOME/XDG. Pack excludes evals, secrets and workspace dependencies. Run one explicit live Jev query, then Sol through installed skill/CLI on the saved Requests task; inspect query, stdout, subsequent reads, patch, official grade and full bill. Reuse baseline; do not rerun it. One pass proves integration only, not cohort quality.--The current Requests checkpoint officially solved with complete billing and a-lower Sol cost than its saved baseline. The paired review checks its exact query,-packet, subsequent reads, patch and tests against both baseline and accepted-spike. [Cohort confirmation](../assets/cpython-confirmation.md) owns that evidence-and its limits; one checkpoint is not cohort acceptance.--## Delegated decisions--Internal naming and command implementation, packaging mechanics; public contract and chosen checkpoint task are fixed.--## Keep green--Parser/filesystem/reference checks; no automatic report file. Later slices own remaining fault, cache, output and cohort acceptance.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.diff --git a/specs/jevgrep/slices/05-failures.md b/specs/jevgrep/slices/05-failures.mddeleted file mode 100644index 7cf619c..0000000--- a/specs/jevgrep/slices/05-failures.md+++ /dev/null@@ -1,39 +0,0 @@-# Preserve honest results under service and process failures--Status: verified. Depends on: 04. Read [contracts](../contracts.md) first.--## Contract and owner--Evaluator is the only retry/request owner: `evaluate(request, signal) -> validated answers | classified failure`. SDK retries zero; count all actual attempts, including any split. Implement contracts.md defaults and bounded progress. Continue independent useful work after a batch failure, stop on global auth failure, preserve evidence. Distinguish healthy empty results from incomplete zero-result output.--CLI maps complete/incomplete/fatal/interrupted to their specified exit codes. Closed stdout pipe cancels work quietly. No per-request logs or SDK diagnostics leak to stderr. Scope finite resource ceilings and show incompleteness when reached; 50k remains the sole large request runaway guard.--## Human-runnable artifact--Deterministic installed failure matrix.--`bun run test:e2e -- --case failures` prints TAP case/status results; each case asserts its exit code and stdout/stderr contract.--Commands are implementation targets. Add them in this slice; do not imply they-already exist. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--HTTP fixture injects 429, Retry-After, 500, hangs, disconnects, invalid JSON, missing answers and auth failure. Verify eventual completion or bounded incomplete result, no retry multiplication, useful evidence retained, cancellation stops requests, no failed classification becomes false, and `head -200` does not leave the process running. Use a test-injected small counter limit to exercise the same 50k code path.--## Delegated decisions--Concurrency, backoff jitter implementation and bounded splitting only where provider limits require it; no infinite global retry.--## Keep green--Installed checkpoint and all prior seam tests; errors never masquerade as negative evidence.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.--The final installed gate includes the failure journeys. Focused Docker HTTP and retrieval tests cover the small request guard, concurrent authentication failure, interrupted retry waits and retained partial source; the corrected process-group head test passes. See [final merged verification](../assets/python-runtime.md).diff --git a/specs/jevgrep/slices/06-cache.md b/specs/jevgrep/slices/06-cache.mddeleted file mode 100644index f8f13e2..0000000--- a/specs/jevgrep/slices/06-cache.md+++ /dev/null@@ -1,45 +0,0 @@-# Reuse healthy evaluations without stale context--Status: verified. Depends on: 05. Read [contracts](../contracts.md) first.--## Contract and owner--Core cache owns `get(key)/put(key, validatedAnswer)/clear()`, constructed by CLI with XDG location. Enable by default; exact semantic request hashes and seven-day TTL, answer-only payloads, atomic publication, permissions and 256 MiB bound as specified. Do not persist final packets or source. All live filesystem policy/snapshot work precedes lookup; no traversal shortcut based on old directory decisions.--The frozen retrieval preserves completion order inside selected evidence. A warm-query can therefore form a new ordered request and legitimately contact Jev.-Reuse is guaranteed for identical successful requests, not for an entire query-regardless of its computed inputs. Installed checks reject identical resends and-allow only demonstrated evidence-order permutations in their warm fixture.--Cache failures degrade to misses. `--no-cache` bypasses reads and writes. Keep cache policy out of prompt builders and provider transport. An expired schema is disposable, not a migration target.--## Human-runnable artifact--Cold/warm/edit/clear installed journey.--`bun run test:e2e -- --case cache` reports captured request counts and output comparison.--Commands are implementation targets. Add them in this slice; do not imply they-already exist. CLI transcripts replace visual/screenshot gates for this product.--## Verification and verdict--Warm packet matches cold packet under deterministic answers with fewer HTTP requests; edit/add/delete/ignore/query/model/prompt changes invalidate affected requests. Same-size same-mtime edit must not reuse an old answer. Fault recovery must contact provider after failed calls. Cover corrupt files, permissions, concurrent writers, expiry, no-cache and idempotent clear. Check cache contains no source or keys.--## Delegated decisions--On-disk layout and bounded eviction mechanics, not key semantics or failure caching.--## Keep green--All healthy/fault/installed behavior. No daemon or background indexing introduced.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.--The final installed and core cache checks cover the freshness and recovery matrix above. Exact native requests must be reused; ordering changes do not excuse an identical resend. See [final merged verification](../assets/python-runtime.md).diff --git a/specs/jevgrep/slices/07-output-policy.md b/specs/jevgrep/slices/07-output-policy.mddeleted file mode 100644index 03d6b4e..0000000--- a/specs/jevgrep/slices/07-output-policy.md+++ /dev/null@@ -1,35 +0,0 @@-# Preserve the accepted retrieval packet--Status: verified after preservation fixes and whole-product review-(2026-09-26); live quality belongs to 08.-Depends on: 04–06.--The default is the accepted spike's uncapped source packet: ranked file locations,-reading leads, numbered verbatim source blocks, scoped instruction lookup and-unexecuted pytest suggestions. Source selection includes the reference's bounded-second context expansion. Keep original positive selections separately for-provenance without changing what the reference renders.--The user rejected architecture changes during implementation. The 1,500-byte-experiment and its stopped cohort are [superseded evidence](../assets/parity-restoration.md),-not justification for changing the winning strategy. Explicit user-supplied-`--max-source-bytes` remains a whole-excerpt override; it must preserve file/lead-locations and mark omissions. Do not introduce a new allocation heuristic.--The gate compares production's actual computed native requests and complete-stdout with the frozen reference under identical source, query and model answers.-Template equality alone is insufficient. Compare healthy and recoverable-failure-trajectories; keep request-internal array order and control concurrent completion-where it affects later requests. Verify the canonical skill differs from the-accepted skill only in the executable name, and use the accepted benchmark prompt.--Run the reference/production HTTP corpus and installed `--case output` journeys.-The installed command must still handle `head -200`, byte-bounded partial units,-stdout-only failures and all admitted locations. A green deterministic parity gate-allows a new frozen official cohort; it does not itself prove cost or solve rate.--The restored production HTTP comparisons and all 21 installed journeys pass-in the final default `bun run verify` gate. The preserved output contract passes-both `head -200` and explicit byte-budget checks. The-[preservation matrix](../assets/parity-restoration.md) records the tested behavior-and deliberate product differences.diff --git a/specs/jevgrep/slices/08-release.md b/specs/jevgrep/slices/08-release.mddeleted file mode 100644index 1f9bff2..0000000--- a/specs/jevgrep/slices/08-release.md+++ /dev/null@@ -1,58 +0,0 @@-# Confirm quality and the release artifact--Status: open. Freshness fixes and deterministic verification passed, but the corrected package's complete cohort lost Django and Requests baseline solves. See [final confirmation](../assets/freshness-confirmation.md). Depends on: 07. Read [contracts](../contracts.md) first.--## Contract and owner--Freeze code, packed tarball, skill, runtime, prompt/policy hashes and Sol harness before the official ten-task confirmation. Retain grades, trace queries, stdout, reads, patches and complete bills. Run saved baselines zero times. No per-task strategy changes or selective result exclusion. Preserve baseline solves and reach seven successful cost wins; report missing billing/infrastructure errors as unknown/non-passes with original evidence.--Verify packed runtime on supported Linux architectures and macOS Apple Silicon, with isolated config/cache and no development resolution. Reuse installed process journeys. Docker is Linux evidence, not macOS evidence. Run the full closeout gate once after focused iteration. Include a release workflow that publishes the verified package to npm: explicit-version/tag selection, package-content validation, a dry run, GitHub Actions triggered by `v*` tag pushes, with `NODE_AUTH_TOKEN` supplied-from `${{ secrets.NPM_TOKEN }}` (the user will add this secret), then install that exact registry version-in a fresh environment and run help/version/skill plus a fixture-backed search.-Release credentials must never enter the repository. Check package-name ownership-before choosing an unscoped name; record the final registry name in the docs.--Implement and test the workflow without publishing a development checkpoint.-Actual registry publication remains a user-triggered release action after all gates-pass; implementing this spec does not itself authorize publishing now.--Cut over root eval commands to official workflow. Remove deprecated personal-eval entry points from supported scripts and prevent their data/source fixtures entering a commit; preserve existing local historical evidence. Keep official reference source/hash manifests, never depend on ignored traces as the only durable rationale.--## Human-runnable artifact--One frozen release-candidate dossier.--`bun run verify`; the maintained runner's `prepare`, `run --all`, `grade --all`,-`account --all`, and `aggregate` operations on one frozen plan, as documented in-[the runner workflow](../../../evals/implementation/swebench/installed.md); native-macOS installed smoke command documented by the harness.--These commands are implemented. Use the frozen installed runner to finish the-open quality gate and retain its evidence. CLI transcripts replace visual/screenshot-gates for this product.--## Verification and verdict--Check all eight baseline solves preserved and >=7 lower-cost solves under one policy; overall solve rate >=baseline. Costs include failed attempts; unknown bills never wins. Validate package contents/licenses, Node >=22, help before auth, stdout-only protocol and skill distribution. A quality failure reopens its owning slice with trace evidence, never relaxes the gate silently.--## Delegated decisions--Artifact layout, not the user-selected GitHub Actions tag/NPM_TOKEN workflow or acceptance accounting; actual publication requires a later release request.--## Keep green--All earlier tests and official evidence. No claim of untouched generalization, Windows support, universal speedup or whole-computer validation.--## Review--Show the artifact and summarize deviations. This is a non-blocking review checkpoint:-continue on the evidence if the user does not respond. Feedback that changes the-public contract or acceptance measure requires updating this slice before broadening-implementation. Record new choices and update the README handoff before ending.--The earlier `installed-jg-final-cohort-v1` study is stopped and superseded because-its package changed the accepted spike's behavior. Its receipts remain historical-evidence, not release acceptance. [Parity restoration](../assets/parity-restoration.md)-owns the prerequisite for preparing another frozen cohort. Saved baselines remain-unchanged; no result from the superseded package can be pooled into the new study.