diff --git a/AGENTS.md b/AGENTS.md index 7f1d553..a4e54df 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,8 +12,12 @@ acceptance remains open. Durable background scheduling and hosted delivery are r The historical branch name (`codex/backintel-v2`) identifies this rebuild, not product stability; the earlier implementation remains in Git history and is not imported. -The build order is deliberate (owner decision, 2026-11-09): benchmark first, agent second, -infrastructure last. The agent's value is measured, not asserted. +The original build order (owner decision, 2026-11-09) was benchmark first, agent second, +infrastructure last. The benchmark is now frozen by owner direction. The 2026-11-14 +[product roadmap](docs/roadmap.md) and [engine evaluation gates](docs/engine-evaluations.md) +govern the next operating-workflow sequence. Preserve unfinished acceptance and fix or +exclude failures material to the chosen workflow; do not restart unrelated campaigns. +The agent's value is measured, not asserted. ## Architecture @@ -96,6 +100,7 @@ infrastructure last. The agent's value is measured, not asserted. ## Deferrals -Production hosting, web UI, live scheduling, customer integrations, Infrastructure Engine -enrollment and scale factors above 1. The public-benchmark comparison in INT-399 is separate +Production hosting, a live manager workspace, scheduling, customer integrations, +Infrastructure Engine enrollment and scale factors above 1. The +public-benchmark comparison in INT-399 is separate from this execution goal; these results do not establish external leaderboard performance. diff --git a/README.md b/README.md index 50cae34..161ab09 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ not a product version. Code is available under the [MIT license](LICENSE). [Get started](#get-started) · [Capabilities](#capabilities-today) · [Architecture](#how-it-works) · [Evaluation](#what-has-been-measured) · -[Roadmap](docs/roadmap.md) · [Contributing](#contributing) +[Roadmap](docs/roadmap.md) · [Engine release gates](docs/engine-evaluations.md) · +[Contributing](#contributing) ## Capabilities today @@ -302,26 +303,35 @@ Method-judge scores have not been calibrated against human labels. ## Roadmap -These are acceptance milestones, not shipped versions or promised dates. Some later-stage -components already exist; a milestone closes only when its evaluation and delivery criteria pass. +The product direction is a persistent business and operational analyst: understand approved +data and SOPs, investigate opportunities, support manager decisions, and follow through on +outcomes. Dashboards communicate that work. These are capability targets, not shipped +versions or promised dates. | Target | Capability to establish | | --- | --- | -| **v0.0.1** | Reproducible foundation, reliable completion/refusal, executable evidence and a frozen baseline/candidate comparison | +| **v0.0.1** | Reconcile frozen analytical evidence and supported scope; preserve incomplete acceptance | | **v0.0.2** | Drop-in analysis across three unfamiliar domains, with one entire domain reserved from tuning | | **v0.0.3** | Real large-data analysis at staged sizes up to at least 10 GiB on a qualified host | | **v0.0.4** | Consistent, verified report/chart/workbook delivery across the acceptance suite | -| **v0.0.5** | Reusable business metrics and decision-report packs | -| **v0.1.0** | One controlled customer pilot with an explicit data and workload contract | -| **v0.2.0** | Durable scheduled jobs, cancellation, bounded retries and recovery | -| **v0.3.0** | Qualified operational connectors, change detection and deduplicated alerts | -| **v0.4.0** | Evaluated document context and statistical/forecasting workflows | -| **v0.5.0** | Managed background-analysis beta with user controls, history and spending limits | -| **v0.9.0 → v1.0.0** | Operational hardening, reversible releases and a supported, bounded service | - -The [detailed roadmap](docs/roadmap.md) gives the next implementable tasks, dependencies and -completion criteria. Linear remains the internal delivery tracker; the public plan is readable -without access to it. No production hosting or continuous background operation is available today. +| **v0.0.5** | Mission/metric definitions, applicable SOPs, attributed memory and contextual report packs | +| **v0.1.0** | One chronological shadow workflow with an opportunity, manager decision and follow-up | +| **v0.2.0** | Durable jobs, bounded investigations, qualified worker and recovery; ≥72 real operating hours | +| **v0.3.0** | Qualified connectors, useful signals and an authorized attention/delivery policy | +| **v0.4.0** | Outcome accounting and independently evaluated improvement proposals | +| **v0.5.0** | Manager workspace and funded execution; ≥3 approved goals over ≥7 real days | +| **v0.6.0** | Workspace isolation, credential lifecycle, retention and recovery | +| **v0.7.0** | Measured capacity and cost per useful operating cycle | +| **v0.8.0** | A second workflow through a reusable source/metric/SOP domain pack | +| **v0.9.0 → v1.0.0** | Reversible release and ≥30 real days meeting predeclared operating and business objectives | + +The [detailed roadmap](docs/roadmap.md) defines user stories, responsible roles and delivery +sequence. [Evaluation gates](docs/engine-evaluations.md) separate analytical correctness, +operating reliability and business value. The historical benchmark stays frozen; unrelated +domain/scale qualification does not block a bounded small-data pilot. Forecasting and +fine-tuning remain optional, separately qualified capabilities. + +Linear owns live delivery status; the public plan is readable without access to it. No production hosting or continuous background service is available today. ## Contributing diff --git a/docs/engine-evaluations.md b/docs/engine-evaluations.md new file mode 100644 index 0000000..76c2106 --- /dev/null +++ b/docs/engine-evaluations.md @@ -0,0 +1,143 @@ +# Background-engine evaluation and release gates + +Planning specification, 2026-11-14. Read with the [product roadmap](roadmap.md). +These are future acceptance requirements, not completed evaluations. Existing benchmark +data and results remain frozen. Writing this plan authorizes no paid runs. + +## Evidence model + +Assess separately: calculation/context correctness; continuing system behavior; and useful +organizational outcomes. Independent SQL/Python settles numerical facts, job/event state +settles lifecycle behavior, and source evidence settles procedure applicability. +A bounded model judge can assess semantic quality after objective checks; the existing +human-calibration waiver remains visible. + +Return pass, capability failure, or invalid evaluation. Setup, provider, verifier or evidence +failures are not silent passes or automatic agent-quality zeros. Retain them in completion +and cost accounting. Reference truth stays inaccessible to the analyst and improvement worker. + +## Gate matrix + +| Gate | Requirement | Evidence / pass rule | First use / owner | +| --- | --- | --- | --- | +| G1 Data/arithmetic | Correct grain, joins, units, completeness, freshness, calculations and refusal | Every mandatory material number within frozen tolerance; missing cost cannot become profit; stale/partial inputs explicit | v0.0.5 / Data + Evaluation | +| G2 Context/memory | Applicable SOP, provenance, permissions, conflicting/expired knowledge, corrections | Applicable version and material source support in every mandatory case; no cross-workspace retrieval, hypothesis-to-fact promotion or document-instruction adoption | v0.0.5 / Context + Evaluation | +| G3 Artifact/design | Narrative, chart and sheet consistency; comprehension and accessibility | Material values/labels agree; primary tasks/downloads work desktop/mobile; no clipped content or inaccessible primary controls | v0.0.4 onward / Frontend | +| G4 Opportunity/attention | Useful signal, no-change behavior, detection, priority and deduplication | No critical acceptance-case miss or unauthorized notification; proposed ordinary-signal precision ≥80%, recall ≥90% on frozen replay; raw counts visible | v0.1 shadow, v0.3 live / Analyst + Product | +| G5 Continuity | Triggers, time zones, leases, recovery, cancellation, budgets and readiness | All mandatory crash/duplicate/late-data cases pass; zero duplicate publications; bounded work after cancellation limited to declared cleanup; all admitted jobs accounted for | v0.2 / Platform | +| G6 Outcomes | Decisions, actions, follow-up and benefits | Baseline/window/source, implementation evidence and costs for every benefit claim; estimated/observed/causally supported value separate; negative/inconclusive results retained | v0.4 / Product + Analyst | +| G7 Improvement | Frozen comparison, regressions, independent verification and rollback | Same allowed inputs/time visibility; intended behavior improves; mandatory controls hold; regressing control rejected; accept/reject/invalid plus accounting | v0.4 / Evaluation | +| G8 Service | Access, credentials, isolation, capacity, retention, restore and operating cost | Mandatory boundary/recovery cases pass; frozen targets hold on actual deployed workload; every eligible job/incident included | v0.5–v1 / Platform + Release | + +Thresholds are proposed planning defaults to freeze or replace before use. They are not +population-accuracy estimates. Zero denominators are undefined, not perfect scores. No critical +permission, source-write, budget, fabricated-result or duplicate-action failure can be +averaged away. A gate cannot be lowered after seeing a candidate's results. + +## Scenario contract + +Use the first workflow's permitted history and ordinary documentation. Add controlled +conditions only for material coverage gaps. This checklist does not initiate a broad new +synthetic benchmark. + +| Case | Input condition | Required observable behavior | +| --- | --- | --- | +| E01 Opportunity | Complete history shows a material process delay | Supported calculation, scoped finding and feasible next step; no unsupported cause | +| E02 Healthy operation | No material change in complete data | No manufactured opportunity or unnecessary escalation | +| E03 Late data | Stale source / missing partition | Input failure distinguished from business deterioration; readiness policy respected | +| E04 Identity/joins | Duplicate identifiers / changed mappings | Incompatible grain detected; no multiplied counts or revenue | +| E05 SOP version | Old/new procedures with effective dates | Applicable version used; earlier decisions keep their original context | +| E06 Insufficient/conflicting context | Conflicting rules or missing costs | Explain conflict or refuse unsupported metric; targeted clarification | +| E07 Correction | Supported manager correction/rejection | Attributed memory persists; no repetition without material new evidence | +| E08 Duplicate/out-of-order event | Repeated or late observation | One durable opportunity/publication; temporal state consistent | +| E09 Restart | Crash before/after artifact persistence | Recover or fail visibly without lost state or duplicate delivery | +| E10 Pause/budget/provider | Pause, failed admission or model failure | Bounded stop, unknown charges retained, no silent paid fallback | +| E11 Attention | Mixed urgency during quiet hours | Authorized urgent handling; ordinary events batched/deferred; no arbitrary recipients | +| E12 Permissions/injection | Cross-workspace data or malicious document | Source treated as data; unauthorized access/action denied | +| E13 Delayed outcome | Action implemented; benefit not observable yet | Follow-up pending; estimate never reported as realized saving | +| E14 Negative/confounded outcome | Metric worsens or population mix changes | Honest result, uncertainty and no double-counted or unsupported causal benefit | +| E15 Regressing candidate | New routine fixes one case and breaks another | Promotion rejected despite a better average or self-assessment | +| E16 Workspace | Inspect finding, check source, record decision, pause | Accessible primary flow and actual authorized durable state transition | + +Declare applicable cases and exclusions before execution. Verifier controls include a +known-good result, a different valid result, realistic wrong result, prohibited collateral +change, and missing/corrupt evidence. Use targeted repetition only where observed model/judge +variance could change a decision. Do not optimize for preferred wording or a prescribed +tool sequence unless that sequence is itself required behavior. + +## First pilot and chronological replay + +Proposed mission: find actionable delivery bottlenecks in IntelIP's approved project history +while preserving quality. Inputs include source snapshots, issue/PR relationships, event +timestamps, metric definitions and applicable delivery SOPs. No individual productivity +ranking from commit counts. + +1. Establish permission, coverage, field meanings, joins and missing history. +2. Split by time/entity/workflow; related observations cannot leak into reserved acceptance. +3. At time T expose only facts and procedures available by T. Later outcomes, hidden controls, + reference computations and grader prompts remain outside the worker. +4. Use recorded events and deterministic controls first. Label simulated people/tool + responses and check them independently; generated simulation responses are not truth. +5. Save intermediate decisions and final durable state, not only the final narrative. +6. Compare candidate, retained analyst and a simple deterministic report/rule baseline on + equivalent visible inputs. A provider/model change is a separate experimental variable. +7. Produce ready/narrow/fix/not-ready with reasons. Replay does not establish live scheduling, + realized savings, authorized notification delivery or customer satisfaction. + +One opportunity lifecycle is the minimum functional demonstration. Product value needs +actual operator use and review-effort evidence. The historical judge-calibration waiver does +not create human business acceptance. If feedback is missing, say usefulness is unestablished. + +## LangSmith design + +Keep historical datasets unchanged. When execution is authorized, create a separate +engine-pilot dataset containing workflow, observation time, source/SOP versions, permission +scope, severity, terminal behavior and evaluator-only references. Dataset names are selected +at implementation; this document does not claim they already exist. + +One trace root represents an investigation/job; child spans cover source checks, retrieval, +analysis, rendering, presentation review and controlled delivery. Associate mission/opportunity +identities across roots. Apply data minimization, access and retention before tracing customer +information; no secrets or unnecessary raw records. + +Independent feedback: numeric_supported, source_ready, sop_applicable, memory_correct, +permission_safe, opportunity_supported, notification_policy_pass, job_terminal_correct, +report_consistent, design_usable, outcome_honest and budget_pass. +Invalid evaluator output remains invalid. Pin candidate, runtime, prompt/skill, evaluator +and allowed-input versions for comparison. Job-store totals supplement traces so missing +telemetry does not remove failed or missed work from denominators. + +LangSmith records and compares behavior. Our engineering/release process performs changes. +No automatic training, permission expansion or self-approved deployment is implied. + +## Executive metrics + +| Metric | Definition | Required qualification | +| --- | --- | --- | +| Signal precision | Supported relevant signals / delivered signals assessed against references | Unassessed shown separately; reference relevance differs from human usefulness | +| Detection recall | Eligible material events detected by deadline / all reference-eligible events | Freeze severity and first observable time | +| Useful opportunity rate | Owner-marked useful opportunities / opportunities assessed | Show delivered, assessed and pending; no judge substitution | +| Review time saved | (Manual total − engine-assisted total) / manual total | Both totals include preparation and review; engine total includes correction; equivalent scope | +| Timely job success | Eligible jobs with usable output by deadline / all eligible scheduled jobs | Include missed triggers and infrastructure faults; classify input-not-ready separately | +| Duplicate delivery | Duplicate user-visible publications / all attempted publications | Zero in mandatory tests; retries are accounted for | +| Cost per useful cycle | Model + sandbox + storage/delivery costs / useful completed cycles | Separate fixed overhead, failures and unknown charges; credits are funding, not free consumption | +| Outcome value | Observed benefit less implementation/operating cost for a declared window | Baseline and confounders; no causal or double-counted savings without evidence | +| Follow-through | Decisions with completed follow-up / decisions whose follow-up is due | Negative or inconclusive assessment can correctly complete follow-up | + +## Operating windows and decisions + +- v0.1 shadow: chronological replay and a reviewed report/decision lifecycle. +- v0.2: ≥72 real hours on an authorized qualified worker; at least one recovery exercise. +- v0.5: ≥7 real days, ≥3 approved goals, complete job/alert/incident/cost ledger and at least + one manager decision/follow-up cycle. +- v1: ≥30 real days on a declared workload against frozen operating and business targets. + +Proposed v1 planning default: ≥99% timely eligible-job success, zero critical permission +violations, deduplicated delivery, and at least one workflow with demonstrated net value. +Freeze actual availability, freshness, latency, correction burden, cost, recovery time/point +and useful-value thresholds against pilot needs before trial. No uptime guarantee is made +by this planning document. + +Every executive recommendation includes scope, candidate, denominators, failures, limits, +rollback, and continue/narrow/fix/stop decision. Do not expand verification once the actual +done condition is met merely to accumulate confidence. diff --git a/docs/roadmap-foundation-history.md b/docs/roadmap-foundation-history.md new file mode 100644 index 0000000..c286886 --- /dev/null +++ b/docs/roadmap-foundation-history.md @@ -0,0 +1,228 @@ +# Historical foundation roadmap — 2026-11-13 + +This preserved plan records earlier benchmark and qualification requirements. The +[current product roadmap](roadmap.md) supersedes its sequencing following the owner's +background-intelligence direction. Unrun evaluations are not passes. The frozen benchmark +is retained; this document does not authorize restarting or expanding its campaigns. + +BackIntel starts at **v0.0.1, experimental**. Version numbers below describe acceptance +milestones, not released capability or delivery dates. The internal +[Linear project](https://linear.app/intelip/project/backintel-0287c22fe5a7) owns priority and +execution status. This public plan describes the work and its completion criteria without +requiring tracker access. Planning snapshot: 2026-11-13 UTC. + +## Starting point + +The agent can discover assigned schemas, execute bounded read-only native queries, run +Python/shell analysis in SmolVM and return executable evidence. Its opt-in specialist can +render reports, five chart families, CSV and XLSX through a separate clean VM. The runtime +uses one Deep Agents graph per request, with no automatic delegation or production scheduler. +GPT-6.1 Sol is the specialist default; the benchmark analyst remains separately configured. + +Its strongest demonstrated capability is **bounded business analysis**. Data engineering +covers source access, profiling and temporary transformations, not production ETL. Data +science covers descriptive analysis and calculation checks; forecasting, causal inference +and general statistical-model validity remain unqualified. Native MongoDB deployments and +vector databases are not established by the FerretDB benchmark. + +The original controlled SmolVM specialist baseline passed 3/4 cases, followed by a successful +targeted energy fix. A fresh eight-trial guidance comparison on 2026-11-13 passed 4/4 on both +versions, including the corrected grader. The candidate eliminated incorrect virtual-skill +shell lookups in all four cases, with no measured task regression. Both arms refused missing +costs without rendering a substitute report. These are small controlled trials; the broader +92-response reliability comparison remains required. See +[current capabilities and measured outcomes](../README.md#what-has-been-measured). + +## Next achievable increments + +Each item below is small enough to define a concrete development handoff. A role names the +work involved, not an assigned person or a new runtime sub-agent. The +[four-case evaluation package](../evals/analysis/cases.md) supplies its scripts and fixtures +in the checkout; publication and release evidence belongs in the linked Linear issues. + +| Order | Deliverable | Completion criteria | Dependency / tracker | +| --- | --- | --- | --- | +| 1 | Reproducible foundation and evaluation handoff | Publish the reviewed SmolVM/completion candidate and docs; publish the four-case runner, case definitions, tests and reference generation as a separately reviewed change; verify a clean checkout can run the offline suite without private files | Engineering + evaluation; INT-451, INT-454 | +| 2 | Reliable finish, refusal and artifact claims | Clarify virtual skill reads versus shell paths; stop unsupported profit calculations without unnecessary report generation; never claim an unexported file exists; add regressions for these observed behaviors and retain the completion recovery/call-limit tests | Existing failure traces; INT-435, INT-454 | +| 3 | A measured reliability improvement | Freeze model, inputs, prompt/skills, graders, candidate and finite allowance; execute the 92-response comparison described below; improve mandatory historical failures without regressing controls; assess all development and reserved cases | Readiness and frozen comparison plan; INT-430–438, parent INT-429 | +| 4 | An unfamiliar-domain data package | Qualify three distinct non-retail sources, including terms, provenance, hashes, units, grain, nulls and joins; reserve one entire domain; define six challenge questions and one bounded discovery report per domain | Data + evaluation; INT-440, INT-441, INT-443 | +| 5 | First drop-in dataset run | Mount one qualified development folder and its ordinary documentation through configuration; discover its shape with bounded tools; produce a supported report without notebooks, hidden references or handcrafted answer hints | Item 4; runtime + analysis; INT-442 | +| 6 | Domain-transfer evidence | Record a first-pass baseline on development domains; make a justified general revision; freeze it before seven reserved-domain scenarios; report all 21 outcomes and independently checked discoveries by domain | Items 3–5; INT-444, parent INT-439 | +| 7 | Real large-data acceptance | Freeze a real corpus of at least 10 GiB, plus deterministic roughly 100 MiB and 1 GiB samples; run equivalent questions at each size with correctness, memory, latency, scan/spill and graceful-limit evidence | Qualified source and compatible host/runtime; INT-446, parent INT-398 | +| 8 | Reusable decision-report packs | Define metric grain, populations, units and required inputs; compose findings, evidence, charts and sheets for standing business questions; validate temporal consistency and supported conclusions | Reliable analysis and artifact delivery; INT-455–457 | + +Items 1–3 are the immediate engineering iteration. Dataset qualification and task design can +proceed alongside them, but scored expansion waits for frozen criteria and its own authorized +allowance. This plan does not authorize those runs or provision new compute. + +### Reliability comparison: what “done” means + +The planned **92 responses** comprise 24 original-regression responses (six cases, two +trials per baseline/candidate arm), 34 development responses (17 cases per arm), and 34 +reserved responses (17 cases per arm). A response may require many model calls. + +- Keep the three historical failures and three healthy controls; require a demonstrated + improvement on that comparison and no material control regression. +- Evaluate all 17 development cases and all 17 reserved variants against the frozen + mandatory correctness, refusal, evidence and temporal-consistency criteria. +- Keep model/provider and input visibility comparable. A model change is a separate + experiment, not an unexplained part of the candidate. +- Preserve failed and invalid attempts, token/cost accounting and the distinction between + infrastructure failures, incorrect answers and unfinished delivery. +- Human calibration remains waived for the current work. Report method scores as + uncalibrated; do not turn that waiver into fabricated business-user acceptance. + +### Unfamiliar data: what “drop it in the sandbox” means + +Transport, building energy and weather are **candidate domains**, not already qualified +or downloaded corpora. Kaggle pages, competition notebooks and public mirrors do not by +themselves establish permission or independent ground truth. The data package must record +its source rights, exact version, transformations, schema and limitations before use. + +The evaluated agent receives the business brief, read-only data and ordinary source +metadata. Solutions, Kaggle notebooks, evaluator code, private references and reserved truth +remain outside its mounts. An open-ended discovery report may contain up to five supported +findings; fewer are acceptable when the data warrants them. Novel-sounding claims and long +narratives do not substitute for independently verified facts. + +The two small synthetic energy/service fixtures do not satisfy this domain-transfer goal. +“Cold-start” means no BackIntel-specific tuning on the held-out domain; public pretraining +exposure cannot be excluded. + +### Large-data prerequisite + +The current SmolVM integration is qualified only on macOS ARM64. The earlier proposal to +use the Windows workstation for heavier workloads is a host candidate, not an implemented +SmolVM deployment there. Qualify a compatible host/runtime and available RAM, disk and spill +capacity before the full run. A 4 GiB VM profile, generated TPC-H SF1 or a small replicated +file does not fulfill the real 10 GiB target. Do not close this milestone from a sample alone. + +## Version acceptance map + +| Target | Capability delta | Required exit evidence | +| --- | --- | --- | +| v0.0.1 | Measured analytical foundation | Reproducible published source; reliable terminal behavior; frozen baseline/candidate reliability results and documented limitations | +| v0.0.2 | Unfamiliar-domain analysis | Three qualified domains, at least 21 scenarios, separate development/reserved results and independently supported findings | +| v0.0.3 | Large-data sandbox | Real 10 GiB acceptance with staged scale checks, bounded compute and graceful exhaustion | +| v0.0.4 | Verified visual artifacts | Reports, charts and workbooks agree with independently checked tables; delivery and refusal semantics hold across acceptance tasks | +| v0.0.5 | Business-analysis report packs | Reusable metric definitions and standing reports pass factual, evidence and temporal-consistency checks | +| v0.1.0 | Controlled business-analysis pilot | One named workflow, approved read-only data contract, representative development/reserved cases and an explicit pilot-entry decision | +| v0.2.0 | Durable background execution | Persisted jobs, schedule/data-ready triggers, cancellation, deadlines and bounded retries survive whole-job failure scenarios | +| v0.3.0 | Operational monitoring | Qualified connectors, freshness/missing-data handling, measured alert quality, deduplication and authorized delivery | +| v0.4.0 | Contextual/statistical analysis | Document retrieval and statistical/forecasting workflows improve held-out tasks with honest uncertainty; vector retrieval is optional | +| v0.5.0 | Managed background-intelligence beta | User controls, run history, artifact access and spending limits; sustained-operation evidence; bounded improvement proposals | +| v0.9.0 | Release candidate | Measured beta gaps resolved, operational/support boundaries defined, reproducible candidate and rollback plan | +| v1.0.0 | Supported background-analysis service | A declared workload and connector matrix, supported artifact delivery, operational objectives and verified recovery/rollback | + +Renderer and artifact-contract components already exist ahead of their numbered milestone. +Implementation progress does not imply that the corresponding release criteria have passed. +Fine-tuning is an optional later experiment only if approved data and held-out results show +value beyond prompt/tool improvements. LangSmith provides measurement and comparison; it +does not automatically train or promote a model. + +## Version development loop + +1. Select the capability and its Linear acceptance issue; state the baseline, boundaries, + mandatory/regression/reserved cases, candidate owner and finite experiment allowance. +2. Implement the smallest justified change; review the actual diff and run relevant code, + runtime and artifact checks. +3. Compare frozen baseline and candidate in LangSmith. Diagnose the failed layer; retain + the attempt and revise only the responsible behavior. Never rerun until a lucky pass. +4. Review the exact candidate, hosted CI and evaluation evidence. Record what improved, + what regressed, usage and remaining uncertainty. +5. Publish a version only through its authorized release process, retain rollback identity, + and feed observed failures into the next development cycle. Green CI alone is not + analytical acceptance; `accept_for_review` is not deployment authority. + +## What the current evidence establishes + +The original 73 scenarios exercise historical Olist and Online Retail II data plus a +synthetic TPC-H workload. The [capability report](results.md) records measured model +results and their failures. The fresh demo also exposed variable refusal behavior: a +question that had passed in an earlier SQLite sweep later exhausted its execution limit. + +The [data-quality assessment](data-quality.md) identifies consequential grain, coverage, +duplication and identity limitations. Twelve selected existing references matched separate +SQLite calculations, but both calculation paths share the acquisition and canonicalization +pipeline. That agreement does not certify source semantics or every business definition. + +The [acceptance specification](acceptance-spec.md) adds 34 targeted controlled cases: +17 development cases and 17 reserved variants. Their deterministic construction and +independent SQL checks establish fixture readiness. They do not themselves establish that +the analyst passes them. The [improvement-loop guide](improvement-loop.md) distinguishes +offline orchestration checks from the real model runs needed to demonstrate a completed +improvement cycle. The owner [approved the business scope and waived human calibration](improvement-goal.md#owner-decision-recorded-on-2026-11-10) +on 2026-11-10. Method scores remain uncalibrated against human labels; the waiver does not +establish agreement with domain reviewers or population reliability. + +These counts are not 107 independent observations drawn from a defined customer population. +The original cases share datasets and business assumptions; storage repetitions test +adapter behavior, not new customers. The controlled variants share generation patterns. +Millions of source rows measure data scale, while case coverage measures selected behaviors. +Neither the case count nor a single aggregate pass rate estimates population reliability. + +## Evidence-driven decision sequence + +| Decision | Evidence needed | Resulting action | +|---|---|---| +| Accept the initial business scope | Owner-approved metric definitions and required data for repeat purchasing, delivery/satisfaction, and seller/category revenue; approval recorded on 2026-11-10 | Freeze the intended populations, grains and exclusions. Obtain costs before expanding revenue claims to profit; obtain a defensible design before making causal claims. | +| Accept a reliability improvement for review | Baseline and candidate evaluated with the same frozen data and graders; mandatory cases pass; answerable controls do not regress; relevant variability and accounting are reported | Review the focused change. A failed candidate remains a useful finding and returns to development. | +| Enter a controlled pilot | A real improvement cycle and representative cases from the intended pilot workflow support the agreed acceptance criteria; disclose the current human-calibration waiver and its limits | Authorize a limited read-only pilot with a named audience, workload and feedback process. This is a separate owner decision; customer-derived feedback can subsequently support human calibration. | +| Add live scheduling | The pilot shows useful recurring analysis, realistic freshness handling, acceptable false alarms and stable reports across successive observations | Implement the required cadence and input-readiness checks, with bounded spend and clear handling of incomplete data. Historical replay alone does not establish this readiness. | +| Add customer integrations and production hosting | The pilot identifies actual source systems, access scope, workload, operational failures and service expectations | Implement only those integrations and operating requirements; obtain deployment/resource approval and verify the deployed behavior. | + +A higher overall score cannot compensate for a material regression in a mandatory refusal, +evidence or business-definition case. Conversely, an infrastructure failure or exhausted +evaluation allowance invalidates that trial; it does not demonstrate that the analyst is +incapable. Review per-case results and unresolved limits before making the next decision. + +## Bringing representative cases and human feedback into the benchmark + +For an authorized pilot, collect actual business questions with their decision context, +approved read-only data snapshots, expected grain, observation time and required sources. +Preserve customer permissions and remove identifying details where appropriate. A domain +reviewer should validate the metric meaning and whether the available data can answer it; +an independently executable calculation should supply numerical truth where possible. + +Assign each case to a purpose before using it: + +- **Development:** representative examples and observed failures that implementation workers + may inspect. Use them to diagnose and improve the analyst. +- **Reserved acceptance:** unseen questions, source/snapshot variants or business situations + held outside the implementation worker's context. Freeze the candidate and comparison + policy before running them. Related variants must be grouped deliberately so a near-copy + of a development case is not presented as independent validation. +- **Regression:** previously resolved failures and important successful behaviors retained + to catch later breakage. If an exposed reserved failure informs a fix, move it into this + category and reserve a fresh independent case for the next acceptance decision. + +Human feedback should identify the specific claim, definition, omission or unsupported +inference at issue. Separate business acceptance from numerical correctness and explanation +ratings. Resolve contradictory reviewer definitions before changing the oracle, and version +material rubric changes separately from agent changes. Preserve earlier judgments and +experiments instead of overwriting an unfavorable result. + +This is proposed pilot feedback work, not an outstanding human-label requirement for the +current goal. The preserved blank review packet must not be counted as completed feedback. + +Select coverage from the pilot's tasks and failure consequences: common requests, important +rare failures, missing-data boundaries, dirty joins, timing changes, and reasonable alternative +solutions. Choose repetitions where observed stochastic behavior could change the decision. +Set any operational quality, cost or latency thresholds from the agreed pilot requirements; +this roadmap does not invent a universal accuracy target or claim statistical significance +from the current controlled cases. + +## Boundaries after acceptance + +An improvement-loop result of `accept_for_review` remains a review recommendation. It does +not authorize a commit, merge, deployment, purchase, new provider or expanded data access. +Each execution campaign needs its own recorded authorization and allowance. Historical +allowances do not fund new domain/scale experiments. Deployment and purchases remain +separately authorized decisions. +Development subagents coordinate engineering; they do not imply runtime delegation inside +the analyst. Scheduling, customer integrations and production infrastructure remain separate +proposed work until the evidence and owner authorization support them. + +The immediate value of the loop is repeatable learning from failures under fixed criteria. +Pilot observations should later feed that same development/reserved/regression process, +allowing the roadmap to follow demonstrated needs rather than accumulated features. diff --git a/docs/roadmap.md b/docs/roadmap.md index 4b0ed0c..0efba74 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,223 +1,241 @@ -# Capability roadmap and next development increments - -BackIntel starts at **v0.0.1, experimental**. Version numbers below describe acceptance -milestones, not released capability or delivery dates. The internal -[Linear project](https://linear.app/intelip/project/backintel-0287c22fe5a7) owns priority and -execution status. This public plan describes the work and its completion criteria without -requiring tracker access. Planning snapshot: 2026-11-13 UTC. - -## Starting point - -The agent can discover assigned schemas, execute bounded read-only native queries, run -Python/shell analysis in SmolVM and return executable evidence. Its opt-in specialist can -render reports, five chart families, CSV and XLSX through a separate clean VM. The runtime -uses one Deep Agents graph per request, with no automatic delegation or production scheduler. -GPT-6.1 Sol is the specialist default; the benchmark analyst remains separately configured. - -Its strongest demonstrated capability is **bounded business analysis**. Data engineering -covers source access, profiling and temporary transformations, not production ETL. Data -science covers descriptive analysis and calculation checks; forecasting, causal inference -and general statistical-model validity remain unqualified. Native MongoDB deployments and -vector databases are not established by the FerretDB benchmark. - -The original controlled SmolVM specialist baseline passed 3/4 cases, followed by a successful -targeted energy fix. A fresh eight-trial guidance comparison on 2026-11-13 passed 4/4 on both -versions, including the corrected grader. The candidate eliminated incorrect virtual-skill -shell lookups in all four cases, with no measured task regression. Both arms refused missing -costs without rendering a substitute report. These are small controlled trials; the broader -92-response reliability comparison remains required. See -[current capabilities and measured outcomes](../README.md#what-has-been-measured). - -## Next achievable increments - -Each item below is small enough to define a concrete development handoff. A role names the -work involved, not an assigned person or a new runtime sub-agent. The -[four-case evaluation package](../evals/analysis/cases.md) supplies its scripts and fixtures -in the checkout; publication and release evidence belongs in the linked Linear issues. - -| Order | Deliverable | Completion criteria | Dependency / tracker | +# BackIntel: background-intelligence product roadmap + +Planning revision: 2026-11-14. Executive sponsor and product owner: **Hudson Aikins**. +[Linear owns delivery status and assignments](https://linear.app/intelip/project/backintel-0287c22fe5a7). +This document owns scope and acceptance. Versions are capability targets, not release +announcements, completion percentages, or promised dates. + +## Executive decision + +Build a persistent business and operational analyst that understands approved data and +procedures, identifies opportunities to reduce costs or increase revenue, helps managers +improve performance, and follows up on outcomes. + +The operating cycle is **observe → investigate → recommend → record the decision → +follow up → measure**. A separate engineering cycle evaluates changes to the agent. +Dashboards and workbooks communicate the work. Business value and model quality are +different measurements. + +Current source is experimental **v0.0.1**. Bounded read-only analysis, SmolVM execution, +calculation checks, local artifacts, Streamlit generation and optional visual review exist. +Persistent organizational memory, continuous missions, customer hosting and opportunity +follow-through are planned. There is one analyst graph per invocation. The specialist +remains GPT-6.1 Sol. Current SmolVM qualification is macOS ARM64. + +## Product principles + +- Each mission has an outcome, owner, counter-metrics, source scope, attention policy, + spending/compute limits, and delegated authority. +- Connect relevant permitted systems incrementally. Correct access does not prove correct + joins, metric meaning, freshness, completeness or procedure applicability. +- Version metric definitions and SOPs; preserve source-attributed organizational memory. +- Separate observations, hypotheses, estimated benefit and realized outcomes. A proposed + saving is not money saved. A before/after change is not automatically causal. +- Investigation is autonomous within scope. Source writes, spending, external communication + and production changes require their own delegated permissions. +- Optimize management value including review/correction burden. Activity volume is not value. +- Preserve the existing Deep Agents, SmolVM, model and LangSmith foundation. New providers, + runtime subagents, infrastructure, fine-tuning and paid campaigns require justified scope. + +## Users and first workflow + +| User | Job to be done | Surface | Evidence of value | | --- | --- | --- | --- | -| 1 | Reproducible foundation and evaluation handoff | Publish the reviewed SmolVM/completion candidate and docs; publish the four-case runner, case definitions, tests and reference generation as a separately reviewed change; verify a clean checkout can run the offline suite without private files | Engineering + evaluation; INT-451, INT-454 | -| 2 | Reliable finish, refusal and artifact claims | Clarify virtual skill reads versus shell paths; stop unsupported profit calculations without unnecessary report generation; never claim an unexported file exists; add regressions for these observed behaviors and retain the completion recovery/call-limit tests | Existing failure traces; INT-435, INT-454 | -| 3 | A measured reliability improvement | Freeze model, inputs, prompt/skills, graders, candidate and finite allowance; execute the 92-response comparison described below; improve mandatory historical failures without regressing controls; assess all development and reserved cases | Readiness and frozen comparison plan; INT-430–438, parent INT-429 | -| 4 | An unfamiliar-domain data package | Qualify three distinct non-retail sources, including terms, provenance, hashes, units, grain, nulls and joins; reserve one entire domain; define six challenge questions and one bounded discovery report per domain | Data + evaluation; INT-440, INT-441, INT-443 | -| 5 | First drop-in dataset run | Mount one qualified development folder and its ordinary documentation through configuration; discover its shape with bounded tools; produce a supported report without notebooks, hidden references or handcrafted answer hints | Item 4; runtime + analysis; INT-442 | -| 6 | Domain-transfer evidence | Record a first-pass baseline on development domains; make a justified general revision; freeze it before seven reserved-domain scenarios; report all 21 outcomes and independently checked discoveries by domain | Items 3–5; INT-444, parent INT-439 | -| 7 | Real large-data acceptance | Freeze a real corpus of at least 10 GiB, plus deterministic roughly 100 MiB and 1 GiB samples; run equivalent questions at each size with correctness, memory, latency, scan/spill and graceful-limit evidence | Qualified source and compatible host/runtime; INT-446, parent INT-398 | -| 8 | Reusable decision-report packs | Define metric grain, populations, units and required inputs; compose findings, evidence, charts and sheets for standing business questions; validate temporal consistency and supported conclusions | Reliable analysis and artifact delivery; INT-455–457 | - -Items 1–3 are the immediate engineering iteration. Dataset qualification and task design can -proceed alongside them, but scored expansion waits for frozen criteria and its own authorized -allowance. This plan does not authorize those runs or provision new compute. - -### Reliability comparison: what “done” means - -The planned **92 responses** comprise 24 original-regression responses (six cases, two -trials per baseline/candidate arm), 34 development responses (17 cases per arm), and 34 -reserved responses (17 cases per arm). A response may require many model calls. - -- Keep the three historical failures and three healthy controls; require a demonstrated - improvement on that comparison and no material control regression. -- Evaluate all 17 development cases and all 17 reserved variants against the frozen - mandatory correctness, refusal, evidence and temporal-consistency criteria. -- Keep model/provider and input visibility comparable. A model change is a separate - experiment, not an unexplained part of the candidate. -- Preserve failed and invalid attempts, token/cost accounting and the distinction between - infrastructure failures, incorrect answers and unfinished delivery. -- Human calibration remains waived for the current work. Report method scores as - uncalibrated; do not turn that waiver into fabricated business-user acceptance. - -### Unfamiliar data: what “drop it in the sandbox” means - -Transport, building energy and weather are **candidate domains**, not already qualified -or downloaded corpora. Kaggle pages, competition notebooks and public mirrors do not by -themselves establish permission or independent ground truth. The data package must record -its source rights, exact version, transformations, schema and limitations before use. - -The evaluated agent receives the business brief, read-only data and ordinary source -metadata. Solutions, Kaggle notebooks, evaluator code, private references and reserved truth -remain outside its mounts. An open-ended discovery report may contain up to five supported -findings; fewer are acceptable when the data warrants them. Novel-sounding claims and long -narratives do not substitute for independently verified facts. - -The two small synthetic energy/service fixtures do not satisfy this domain-transfer goal. -“Cold-start” means no BackIntel-specific tuning on the held-out domain; public pretraining -exposure cannot be excluded. - -### Large-data prerequisite - -The current SmolVM integration is qualified only on macOS ARM64. The earlier proposal to -use the Windows workstation for heavier workloads is a host candidate, not an implemented -SmolVM deployment there. Qualify a compatible host/runtime and available RAM, disk and spill -capacity before the full run. A 4 GiB VM profile, generated TPC-H SF1 or a small replicated -file does not fulfill the real 10 GiB target. Do not close this milestone from a sample alone. - -## Version acceptance map - -| Target | Capability delta | Required exit evidence | +| Executive / owner | Set priorities and choose interventions | Missions and outcome review | Defensible decisions and measurable benefits | +| Operations / program manager | Find and resolve recurring problems | Opportunities, investigations, follow-ups | Useful signals with less preparation/correction | +| Data / process owner | Make source meanings and procedures dependable | Sources, metric dictionary, SOP history | Incorrect joins and stale definitions rejected visibly | +| Administrator | Control access, costs and continuity | Workspace and operating controls | Isolation, recovery, retention and spending work | + +**Planning assumption:** start with IntelIP delivery operations, using permitted Linear and +GitHub history and delivery SOPs. Confirm the actual workflow and business owner in INT-447 +before live/paid execution. This is not a claim of an installed connector or customer. +Reuse existing Infrastructure Engine metric definitions where relevant. Assess process +bottlenecks; do not infer individual productivity from commit counts. + +Later domain packs: franchise sales/labor/waste/service; fleet availability/turnaround; +program cost/staffing/milestones; startup retention/support/unit economics. Each requires +its own source, metric, SOP and evaluation contract. No universal-domain qualification. + +## Frozen foundation and migration of the plan + +The benchmark remains frozen by owner direction. Preserve results and unfinished acceptance +in [foundation history](roadmap-foundation-history.md). Do not restart the historical +92-response or domain/scale campaigns merely to advance a version. Reuse applicable checks; +unrun work remains unrun, and material failures relevant to a pilot must be fixed or excluded. + +Basic SOP context moves from the old v0.4 plan to v0.0.5. Controlled improvement proposals +move from v0.5 to v0.4. Opportunity/decision/outcome history becomes explicit product work. +Unfamiliar-domain and large-data milestones remain qualification tracks for their claimed +scope; neither is a blanket prerequisite for a small-data internal pilot. +Historical issues are not silently closed or relabeled as passed. + +## Accountability + +Hudson owns priorities, data/deployment authority and continue/stop/release decisions. +The integrator owns coordination and the evidence-backed recommendation. Roles below are +assigned responsibilities, not invented staff. Hudson is the only verified project member; +execution workers remain unassigned until dispatch and capacity are known. + +| Responsible role | Deliverables | Relevant skills | | --- | --- | --- | -| v0.0.1 | Measured analytical foundation | Reproducible published source; reliable terminal behavior; frozen baseline/candidate reliability results and documented limitations | -| v0.0.2 | Unfamiliar-domain analysis | Three qualified domains, at least 21 scenarios, separate development/reserved results and independently supported findings | -| v0.0.3 | Large-data sandbox | Real 10 GiB acceptance with staged scale checks, bounded compute and graceful exhaustion | -| v0.0.4 | Verified visual artifacts | Reports, charts and workbooks agree with independently checked tables; delivery and refusal semantics hold across acceptance tasks | -| v0.0.5 | Business-analysis report packs | Reusable metric definitions and standing reports pass factual, evidence and temporal-consistency checks | -| v0.1.0 | Controlled business-analysis pilot | One named workflow, approved read-only data contract, representative development/reserved cases and an explicit pilot-entry decision | -| v0.2.0 | Durable background execution | Persisted jobs, schedule/data-ready triggers, cancellation, deadlines and bounded retries survive whole-job failure scenarios | -| v0.3.0 | Operational monitoring | Qualified connectors, freshness/missing-data handling, measured alert quality, deduplication and authorized delivery | -| v0.4.0 | Contextual/statistical analysis | Document retrieval and statistical/forecasting workflows improve held-out tasks with honest uncertainty; vector retrieval is optional | -| v0.5.0 | Managed background-intelligence beta | User controls, run history, artifact access and spending limits; sustained-operation evidence; bounded improvement proposals | -| v0.9.0 | Release candidate | Measured beta gaps resolved, operational/support boundaries defined, reproducible candidate and rollback plan | -| v1.0.0 | Supported background-analysis service | A declared workload and connector matrix, supported artifact delivery, operational objectives and verified recovery/rollback | - -Renderer and artifact-contract components already exist ahead of their numbered milestone. -Implementation progress does not imply that the corresponding release criteria have passed. -Fine-tuning is an optional later experiment only if approved data and held-out results show -value beyond prompt/tool improvements. LangSmith provides measurement and comparison; it -does not automatically train or promote a model. - -## Version development loop - -1. Select the capability and its Linear acceptance issue; state the baseline, boundaries, - mandatory/regression/reserved cases, candidate owner and finite experiment allowance. -2. Implement the smallest justified change; review the actual diff and run relevant code, - runtime and artifact checks. -3. Compare frozen baseline and candidate in LangSmith. Diagnose the failed layer; retain - the attempt and revise only the responsible behavior. Never rerun until a lucky pass. -4. Review the exact candidate, hosted CI and evaluation evidence. Record what improved, - what regressed, usage and remaining uncertainty. -5. Publish a version only through its authorized release process, retain rollback identity, - and feed observed failures into the next development cycle. Green CI alone is not - analytical acceptance; `accept_for_review` is not deployment authority. - -## What the current evidence establishes - -The original 73 scenarios exercise historical Olist and Online Retail II data plus a -synthetic TPC-H workload. The [capability report](results.md) records measured model -results and their failures. The fresh demo also exposed variable refusal behavior: a -question that had passed in an earlier SQLite sweep later exhausted its execution limit. - -The [data-quality assessment](data-quality.md) identifies consequential grain, coverage, -duplication and identity limitations. Twelve selected existing references matched separate -SQLite calculations, but both calculation paths share the acquisition and canonicalization -pipeline. That agreement does not certify source semantics or every business definition. - -The [acceptance specification](acceptance-spec.md) adds 34 targeted controlled cases: -17 development cases and 17 reserved variants. Their deterministic construction and -independent SQL checks establish fixture readiness. They do not themselves establish that -the analyst passes them. The [improvement-loop guide](improvement-loop.md) distinguishes -offline orchestration checks from the real model runs needed to demonstrate a completed -improvement cycle. The owner [approved the business scope and waived human calibration](improvement-goal.md#owner-decision-recorded-on-2026-11-10) -on 2026-11-10. Method scores remain uncalibrated against human labels; the waiver does not -establish agreement with domain reviewers or population reliability. - -These counts are not 107 independent observations drawn from a defined customer population. -The original cases share datasets and business assumptions; storage repetitions test -adapter behavior, not new customers. The controlled variants share generation patterns. -Millions of source rows measure data scale, while case coverage measures selected behaviors. -Neither the case count nor a single aggregate pass rate estimates population reliability. - -## Evidence-driven decision sequence - -| Decision | Evidence needed | Resulting action | -|---|---|---| -| Accept the initial business scope | Owner-approved metric definitions and required data for repeat purchasing, delivery/satisfaction, and seller/category revenue; approval recorded on 2026-11-10 | Freeze the intended populations, grains and exclusions. Obtain costs before expanding revenue claims to profit; obtain a defensible design before making causal claims. | -| Accept a reliability improvement for review | Baseline and candidate evaluated with the same frozen data and graders; mandatory cases pass; answerable controls do not regress; relevant variability and accounting are reported | Review the focused change. A failed candidate remains a useful finding and returns to development. | -| Enter a controlled pilot | A real improvement cycle and representative cases from the intended pilot workflow support the agreed acceptance criteria; disclose the current human-calibration waiver and its limits | Authorize a limited read-only pilot with a named audience, workload and feedback process. This is a separate owner decision; customer-derived feedback can subsequently support human calibration. | -| Add live scheduling | The pilot shows useful recurring analysis, realistic freshness handling, acceptable false alarms and stable reports across successive observations | Implement the required cadence and input-readiness checks, with bounded spend and clear handling of incomplete data. Historical replay alone does not establish this readiness. | -| Add customer integrations and production hosting | The pilot identifies actual source systems, access scope, workload, operational failures and service expectations | Implement only those integrations and operating requirements; obtain deployment/resource approval and verify the deployed behavior. | - -A higher overall score cannot compensate for a material regression in a mandatory refusal, -evidence or business-definition case. Conversely, an infrastructure failure or exhausted -evaluation allowance invalidates that trial; it does not demonstrate that the analyst is -incapable. Review per-case results and unresolved limits before making the next decision. - -## Bringing representative cases and human feedback into the benchmark - -For an authorized pilot, collect actual business questions with their decision context, -approved read-only data snapshots, expected grain, observation time and required sources. -Preserve customer permissions and remove identifying details where appropriate. A domain -reviewer should validate the metric meaning and whether the available data can answer it; -an independently executable calculation should supply numerical truth where possible. - -Assign each case to a purpose before using it: - -- **Development:** representative examples and observed failures that implementation workers - may inspect. Use them to diagnose and improve the analyst. -- **Reserved acceptance:** unseen questions, source/snapshot variants or business situations - held outside the implementation worker's context. Freeze the candidate and comparison - policy before running them. Related variants must be grouped deliberately so a near-copy - of a development case is not presented as independent validation. -- **Regression:** previously resolved failures and important successful behaviors retained - to catch later breakage. If an exposed reserved failure informs a fix, move it into this - category and reserve a fresh independent case for the next acceptance decision. - -Human feedback should identify the specific claim, definition, omission or unsupported -inference at issue. Separate business acceptance from numerical correctness and explanation -ratings. Resolve contradictory reviewer definitions before changing the oracle, and version -material rubric changes separately from agent changes. Preserve earlier judgments and -experiments instead of overwriting an unfavorable result. - -This is proposed pilot feedback work, not an outstanding human-label requirement for the -current goal. The preserved blank review packet must not be counted as completed feedback. - -Select coverage from the pilot's tasks and failure consequences: common requests, important -rare failures, missing-data boundaries, dirty joins, timing changes, and reasonable alternative -solutions. Choose repetitions where observed stochastic behavior could change the decision. -Set any operational quality, cost or latency thresholds from the agreed pilot requirements; -this roadmap does not invent a universal accuracy target or claim statistical significance -from the current controlled cases. - -## Boundaries after acceptance - -An improvement-loop result of `accept_for_review` remains a review recommendation. It does -not authorize a commit, merge, deployment, purchase, new provider or expanded data access. -Each execution campaign needs its own recorded authorization and allowance. Historical -allowances do not fund new domain/scale experiments. Deployment and purchases remain -separately authorized decisions. -Development subagents coordinate engineering; they do not imply runtime delegation inside -the analyst. Scheduling, customer integrations and production infrastructure remain separate -proposed work until the evidence and owner authorization support them. - -The immediate value of the loop is repeatable learning from failures under fixed criteria. -Pilot observations should later feed that same development/reserved/regression process, -allowing the roadmap to follow demonstrated needs rather than accumulated features. +| Product owner — Hudson | Mission, constraints, pilot and release decisions | Product judgment, actual workflow ownership | +| Product / engineering integrator | Refinement, dependencies, integration and scope | product-ops-sync, codex-system-design, ponytail | +| Data and context engineer | Source contracts, metrics, SOPs and memory | data quality, validate-data, langchain-rag when needed | +| Runtime / platform engineer | Persistent jobs, sandbox, recovery, isolation | Deep Agents / LangGraph persistence, credential-management | +| Analyst engineer | Investigation, recommendations, outcome accounting | ai-engineering, analytical skills, tool-design | +| Evaluation engineer | Independent truth, replay and LangSmith gates | eval-engineering, evaluation, advanced-evaluation | +| Frontend engineer | Manager workspace, reports, landing experience | frontend-design, accessibility, ui-quality-review | +| Release / operations engineer | Deployment readiness, operating trials, support | pr-workflow, operational verification | + +## Version milestones + +See [evaluation gates G1–G8](engine-evaluations.md). All releases require their applicable +mandatory correctness, permission and regression checks. Version numbering does not +require serial execution of unrelated qualification work. + +| Version | Goal / responsible role | Deliverable and exit condition | Existing work | +| --- | --- | --- | --- | +| **v0.0.1** | Honest foundation / Integrator + Evaluation | Frozen evidence and supported pilot scope reconciled; unrun cases remain unrun; relevant regressions and limits visible | INT-429–438, INT-451; baseline scope story | +| **v0.0.2** | Unfamiliar data / Data + Evaluation | Named-domain ingestion and transfer qualification with independent references and separate held-out results | INT-439–445 | +| **v0.0.3** | Larger workloads / Platform + Data | Real ≥10 GiB evidence only when that support is claimed; declared compute, limits and graceful failures | INT-398, INT-446 | +| **v0.0.4** | Inspectable analysis / Analyst + Frontend | Dashboard, chart and workbook values reconcile; mobile/desktop inspection and downloads pass G3 | INT-452–454 | +| **v0.0.5** | Organization-aware analysis / Data + Analyst | Mission/metric definitions, applicable SOP context, durable attributed memory and contextual report pass G1–G3 | INT-455–457, INT-465; S04 | +| **v0.1.0** | One useful shadow workflow / Product + Evaluation | Chronological replay completes an opportunity/decision/follow-up cycle; G1–G4 as applicable; explicit pilot verdict | INT-447–449; S06 | +| **v0.2.0** | Continuing mission / Platform | Durable jobs, triggers, investigation queue, qualified worker and recovery pass G5; ≥72 real hours with a recovery exercise | INT-458–460; S05 | +| **v0.3.0** | Useful signals / Analyst + Data | Named connectors, meaningful detection, attention policy and authorized delivery meet frozen G1/G4/G5 targets | INT-461–464 | +| **v0.4.0** | Outcomes and adaptation / Analyst + Evaluation | Outcome accounting and replay-tested improvement proposals pass G6/G7; one complete outcome assessment | INT-469; S09; INT-466–467 only for enabled methods | +| **v0.5.0** | Managed beta / Frontend + Platform | Workspace, opportunity inbox and one qualified funding route; G1–G8; ≥3 approved goals over ≥7 real days | INT-468, INT-471; S12 | +| **v0.6.0** | Organizational boundaries / Platform | Tenant/source isolation, credential lifecycle, retention/deletion and restore demonstrated across workspaces | INT-472; S13 | +| **v0.7.0** | Affordable operating envelope / Platform + Evaluation | Declared concurrency, capacity and cost per useful cycle measured; overload bounded and usage reconciled | INT-472; S14 | +| **v0.8.0** | Reusable domain packs / Data + Analyst | A second workflow onboards without core changes; separate semantics, transfer evidence and no first-workflow regression | S15 | +| **v0.9.0** | Release candidate / Release + Evaluation | Supported matrix, runbooks, rollback and 30-day protocol frozen; required gates pass | INT-472–473 | +| **v1.0.0** | Supported background analyst / Hudson + Release | ≥30 real days meet predeclared operating/business targets; complete incidents, costs, support and outcome record | INT-474 | + +Optional forecasting and fine-tuning do not block a useful descriptive-analysis engine. +v1 remains bounded to named sources/workflows and read-only business systems, with +manager-approved interventions recorded and assessed. No universal autonomy claim. + +## User stories + +| ID | User story | Owner / target | Acceptance | +| --- | --- | --- | --- | +| S01 | As an owner, I can state an outcome and its limits so the engine knows what good means. | Product / v0.0.5 | Objective, counter-metrics, owner, sources, cadence, budget, escalation and review date required before live admission. INT-447/455. | +| S02 | As a data owner, I can define joins, time zones and freshness so conclusions reflect the business. | Data / v0.0.5 | Duplicate joins, missing partitions/costs and incompatible grain lead to explicit limitations or refusal. INT-455/461. | +| S03 | As a manager, I can provide procedures so recommendations follow applicable rules. | Context / v0.0.5 | Effective versions cited; conflicts, stale documents, revoked access and document injection handled. INT-465. | +| S04 | As a manager, corrections and past decisions persist so the engine does not repeat known mistakes. | Context / v0.0.5 | Facts/hypotheses/preferences separated; origin and effective dates; correction, expiry, restart and access checks. | +| S05 | As a manager, the engine selects useful questions so I need not write every prompt. | Analyst / v0.2 | Prioritize materiality, uncertainty, effort and attention cost; remember tried/rejected approaches; bounded exploration and legitimate no-action results. | +| S06 | As a manager, I can inspect, accept, defer or reject an opportunity so work has an owner and next step. | Product + Analyst / v0.1 | Evidence, estimate assumptions, uncertainty, owner, due date and reason; valid durable transitions; update duplicate observations. | +| S07 | As an owner, approved missions continue while no chat is open. | Platform / v0.2 | Persistent schedule, deduplication, readiness and leases; visible terminal state; cancellation and bounded concurrent admission. INT-458–460. | +| S08 | As a manager, I receive significant updates without repetitive interruption. | Analyst / v0.3 | Severity, quiet hours, digest/cooldown, recipient authorization, new evidence and pause tested. INT-462–464. | +| S09 | As an executive, I can distinguish estimated benefit from what happened after an action. | Analyst / v0.4 | Baseline, intervention date, observation window, costs and confounders; negative/inconclusive outcomes remain visible. | +| S10 | As an operator, agent improvements are tested before changing behavior. | Evaluation / v0.4 | Independent replay, same allowed inputs, intentionally regressing control, accept/reject/invalid verdict and rollback. INT-469. | +| S11 | As a manager, I can control missions and review opportunities in one workspace. | Frontend / v0.5 | Real persistent actions, useful failures, secure downloads, keyboard/mobile usability. INT-468. | +| S12 | As an administrator, I can select supported managed or customer-funded inference and inspect usage. | Platform / v0.5 | Qualify one route first; account isolation, revocation, limits, truthful credits/usage, no silent paid fallback; keys outside generated code. | +| S13 | As a customer, data, memories and outputs respect assigned roles. | Platform / v0.6 | Cross-workspace read/write/search/download, revocation, retention/deletion and restore checks. | +| S14 | As an operator, concurrent missions stay within compute and spending limits. | Platform / v0.7 | Admission, fairness, bounded backlog, overload/cancellation and bill reconciliation at declared workload. | +| S15 | As another team, I can onboard a different process without changing the engine core. | Data / v0.8 | Versioned source/metric/SOP pack, unseen time/entity cases and first-workflow regressions. | +| S16 | As a prospect, I understand the direction and current availability before evaluating it. | Frontend / current increment | Honest current/planned distinction; illustrative examples labeled; accessible navigation and local mission-brief download; no fake lead submission. | + +Opportunity lifecycle: discovered → investigating → proposed → accepted/deferred/rejected → +implemented (manager-confirmed) → measuring → closed/reopened. A rejection keeps its reason; +material new evidence can reopen it. Closure can record no gain or an inconclusive result. + +## Delivery sequence + +Two-week planning cycles are a coordination cadence, not an estimate or calendar promise. +At refinement assign a real worker, scope source changes, size the story against capacity, +and take only ready work. Demonstrate a vertical outcome at each review. + +| Sequence | Sprint goal | Work | Demo / exit | +| --- | --- | --- | --- | +| A | Make the mission and promise concrete | S01, baseline scope, S16 | Usable mission brief, accurate benchmark scope | +| B | Understand the organization | S02–S04, INT-456–457 | Current SOP and prior correction change analysis appropriately; numbers reproduce | +| C | Complete a shadow investigation | S06, INT-448–449 | Historical observation → opportunity → decision → follow-up assessment | +| D | Keep the mission alive | S05/S07, worker qualification | No-prompt trigger, restart, duplicate event, pause and exhausted budget | +| E | Prove operational usefulness | S08/S09 | Real signals, suppressed noise, follow-up, measured review burden | +| F | Deliver the managed beta | S10–S12, INT-471 | Workspace, funded jobs, tested improvement and seven-day operating report | + +Capability chain: mission → sources/context → verified analysis → shadow decision → +durable mission → operational outcomes → managed beta. Landing work is independent. +Remove the old blanket unfamiliar-domain prerequisite from pilot entry, preserving all +workflow-relevant correctness and supported-scale requirements. + +Definition of ready: user outcome, accountable role/worker, data and authority, dependencies, +acceptance cases, evidence layer, and finite execution envelope are known. +Definition of done: implementation, direct checks, review and required CI; evidence and limits +linked; rollback ready; release/deployment only when authorized. Plans and mocks are not live +capabilities. One successful model response is not sustained operation. + +## Executive scorecard and decision gates + +At each milestone present: supported capability delta; G1–G8 results; useful/false/missed +signals with denominators; correction effort; operating cost and latency; observed outcomes; +and a continue/narrow/fix/stop recommendation. + +Proposed pilot defaults: ≥50% reduction in total preparation/review/correction time for an +equivalent recurring review; ≥80% useful opportunities among those assessed; no critical +miss in declared acceptance cases; operation inside the agreed budget. Freeze or replace +these values before the trial. They are planning targets, not measured achievements, +population guarantees, or implicit approval of new spending. + +The historical waiver of human judge calibration remains. Ordinary operator decisions and +usefulness feedback are business evidence, not fabricated calibration. Without that feedback, +business usefulness remains unestablished. + +## Architecture and commercialization + +The analyst becomes a bounded worker behind a persistent mission/job coordinator. The +coordinator owns permissions, budgets, schedules, leases and history. Trusted renderers +publish inspectable artifacts. The workspace reads durable state; LangSmith records +traces and independent feedback. + +Managed and customer-funded inference are separate from sandbox compute, storage and support. +The local subscription connection is not a multi-customer billing integration. Qualify +provider routes, terms, model/vendor provenance, accounting and secrets before offering +funding options. A private deployment can still send context to its configured model provider. + +This plan creates no cloud resources, external notifications, customer access or paid runs. +No hosting vendor, new database or model is selected by example. Runtime delegation remains +disabled until a specific measured need justifies it. + +## References + +[Hone engine model](https://hone.com/blog/introducing-engines/) and +[simulation research](https://hone.com/blog/closing-the-gap/) inform outcome ownership and +replay-tested changes; their reported results are not BackIntel results. +[LangChain context engineering](https://www.langchain.com/blog/context-engineering-challenges-late-2026) +identifies open problems; [proactive agents](https://www.langchain.com/blog/proactive-agents) +provides scheduling patterns, not a requirement to change the current stack. +See [implementation](../README.md), [sandbox](sandbox-environment.md), +[evaluation gates](engine-evaluations.md), and [historical plan](roadmap-foundation-history.md). + +## Linear delivery index + +The [product plan in Linear](https://linear.app/intelip/document/backintel-background-intelligence-product-plan-and-release-gates-v001-e8419da3f6f6) mirrors this roadmap and the +evaluation definitions. Milestones carry the version goals. Existing completed work remains +unchanged; new stories are planned work, not implemented capability. + +| Issue | Deliverable | Version / responsible role | +| --- | --- | --- | +| [INT-499](https://linear.app/intelip/issue/INT-499/reconcile-frozen-evidence-with-the-supported-operating-pilot-scope) | Reconcile frozen evidence with the supported operating-pilot scope | v0.0.1 / Integrator + Evaluation | +| [INT-500](https://linear.app/intelip/issue/INT-500/persist-attributed-organizational-memory-and-manager-corrections) | Persist attributed organizational memory and manager corrections | v0.0.5 / Data and context engineer | +| [INT-501](https://linear.app/intelip/issue/INT-501/track-opportunities-manager-decisions-and-follow-up-commitments) | Track opportunities, manager decisions and follow-up commitments | v0.1.0 / Analyst engineer + Product owner | +| [INT-502](https://linear.app/intelip/issue/INT-502/select-useful-investigations-within-mission-and-attention-budgets) | Select useful investigations within mission and attention budgets | v0.2.0 / Analyst engineer | +| [INT-503](https://linear.app/intelip/issue/INT-503/qualify-an-execution-worker-for-continuous-missions) | Qualify an execution worker for continuous missions | v0.2.0 / Runtime / platform engineer | +| [INT-504](https://linear.app/intelip/issue/INT-504/measure-intervention-outcomes-without-turning-estimates-into-savings) | Measure intervention outcomes without turning estimates into savings | v0.4.0 / Analyst engineer + Evaluation engineer | +| [INT-505](https://linear.app/intelip/issue/INT-505/qualify-inference-funding-secret-isolation-and-workspace-usage) | Qualify inference funding, secret isolation and workspace usage accounting | v0.5.0 / Runtime / platform engineer | +| [INT-506](https://linear.app/intelip/issue/INT-506/enforce-workspace-isolation-retention-and-recoverable-state) | Enforce workspace isolation, retention and recoverable state | v0.6.0 / Runtime / platform engineer | +| [INT-507](https://linear.app/intelip/issue/INT-507/measure-capacity-and-cost-per-useful-operating-cycle) | Measure capacity and cost per useful operating cycle | v0.7.0 / Runtime / platform engineer + Evaluation engineer | +| [INT-508](https://linear.app/intelip/issue/INT-508/qualify-a-reusable-operating-domain-pack-on-a-second-workflow) | Qualify a reusable operating-domain pack on a second workflow | v0.8.0 / Data and context engineer + Analyst engineer | +| [INT-509](https://linear.app/intelip/issue/INT-509/deliver-the-background-intelligence-product-roadmap-and-landing) | Deliver the background-intelligence product roadmap and landing experience | v0.0.1 / Product integrator + Frontend engineer | + +The mission decision is [INT-447](https://linear.app/intelip/issue/INT-447), the shadow-pilot +decision is [INT-449](https://linear.app/intelip/issue/INT-449), beta acceptance is +[INT-471](https://linear.app/intelip/issue/INT-471), and v1 acceptance is +[INT-474](https://linear.app/intelip/issue/INT-474). These decision issues are assigned to +Hudson. Engineering roles are named; worker allocation and estimates happen at refinement. + +Native dependencies connect these tasks to the existing implementation backlog. INT-449 +now depends on scoped foundation evidence, contextual reports, reserved pilot cases and the +opportunity lifecycle. Optional unfamiliar-domain, scale and statistical work remains visible +without becoming an unrelated universal pilot/beta blocker.