Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
40 changes: 25 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
143 changes: 143 additions & 0 deletions docs/engine-evaluations.md
Original file line number Diff line number Diff line change
@@ -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 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply numerical correctness before the artifact milestone

Starting G1 only at v0.0.5 leaves v0.0.4 governed solely by G3, which checks that values agree across the narrative, charts, and sheets but not that those values match independently calculated truth. A consistently wrong number can therefore satisfy the new v0.0.4 exit condition, whereas the preserved foundation acceptance explicitly requires agreement with independently checked tables in docs/roadmap-foundation-history.md:107; make G1 applicable to this milestone or retain an equivalent independent numerical check.

AGENTS.md reference: AGENTS.md:L18-L19

Useful? React with 👍 / 👎.

| 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 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include unassessed deliveries in the precision gate

Defining precision only over delivered signals that were assessed against references lets G4 pass while excluding an arbitrary set of unfavorable deliveries: for example, eight supported signals among ten assessed signals meets the 80% threshold even if many additional delivered signals remain unassessed. Merely displaying the excluded count does not constrain this selection bias, so require assessment of every delivered replay signal, count unassessed deliveries as failures, or freeze a minimum assessment-coverage rule before applying the threshold.

AGENTS.md reference: AGENTS.md:L18-L20

Useful? React with 👍 / 👎.

| 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.
Loading
Loading