Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c69930d
feat(intake): add intake/v1 confirmation records and a campaign start…
jiangkuaixue123 Nov 26, 2026
ef72c20
Refresh generated skill indexes for task intake
jiangkuaixue123 Nov 26, 2026
8fb5aeb
Integrate current main with the task intake changes
jiangkuaixue123 Nov 26, 2026
d5a8fa1
Check both task intake specs in the installed wheel
jiangkuaixue123 Nov 26, 2026
9bbbf4e
Require user-selected performance criteria before measured work
jiangkuaixue123 Nov 26, 2026
3f78f63
Refresh generated indexes for performance intake confirmation
jiangkuaixue123 Nov 26, 2026
e4cab3f
Require a separate approval of the quantified performance brief
jiangkuaixue123 Nov 26, 2026
de7977d
Refresh generated skill indexes for task brief review
jiangkuaixue123 Nov 26, 2026
f3c427b
Preserve threshold precision and reselect gates during brief revision
jiangkuaixue123 Nov 26, 2026
0670dd1
Register the intake CLI as a consumer of the Apps file lock
jiangkuaixue123 Nov 26, 2026
cebe927
Resolve intake card conflicts and validate execution bounds before re…
jiangkuaixue123 Nov 26, 2026
6f5775d
Describe executable brief preparation and the final approval card
jiangkuaixue123 Nov 26, 2026
c809595
Require reviewed execution settings before starting performance campa…
jiangkuaixue123 Nov 26, 2026
694ec79
Show the service quality reference and tolerance on the approval card
jiangkuaixue123 Nov 26, 2026
0fb7502
Express baseline-relative quality limits consistently throughout the …
jiangkuaixue123 Nov 26, 2026
9f50e9f
Mark service quality inputs provisional before the executable plan is…
jiangkuaixue123 Nov 26, 2026
1a00554
Bind AB/BA quality evidence to the approved benchmark identity
jiangkuaixue123 Nov 26, 2026
f30813e
Clarify the evidence used for scored AB/BA quality results
jiangkuaixue123 Nov 26, 2026
d8131f6
Assert corpus identity in the ranking-policy quality parity test
jiangkuaixue123 Nov 26, 2026
7407ab7
Enforce the approved quality score unit during campaign evaluation
jiangkuaixue123 Nov 26, 2026
a8b6199
Bind each field reply to the card and context that issued it
jiangkuaixue123 Nov 26, 2026
e976c1d
Cover packaged execution-bound mapping and per-field saved-record reo…
jiangkuaixue123 Nov 26, 2026
abe02d3
Reject placeholder quality units at intake and service-reuse start
jiangkuaixue123 Nov 26, 2026
9541e17
Trim redundant intake docstrings
jiangkuaixue123 Nov 26, 2026
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
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ Portable operator guidance and candidate procedures live in the [skill library](
Benchmark comparisons, ordinary project optimization and packaged optimization
tasks each have one entry workflow; see
[optimization requests](docs/guides/operations.md#optimization-requests).
For interactive project performance work, collect the numeric performance goal,
benchmark and quantitative quality gate through [task intake](docs/guides/task-intake.md).
Read back the complete task brief and obtain a separate approval on a native
question card before measurement or candidate edits.

## Dev smoke (local)

Expand Down
2 changes: 2 additions & 0 deletions docs/apps-module-migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,8 @@
"docs/guides/skill-evaluation/local-skill-evaluation.md",
"examples/qwen21_turbo_b300.py",
"examples/qwen21_turbo_quality.py",
"src/inferrsi/apps/cli/campaign_intake.py",
"src/inferrsi/apps/cli/task_intake.py",
"src/inferrsi/apps/delivery/__init__.py",
"src/inferrsi/apps/delivery/projection.py",
"src/inferrsi/apps/delivery/snapshot.py",
Expand Down
5 changes: 4 additions & 1 deletion docs/guides/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Effect classes used below:
| Inspect a store candidate's history | Python `open_knowledge_store(...).history` | Read-only | Opens an existing store and reads the revision lineage for one store ID |
| Amend repository-owned knowledge | Scoped repository PR | — | Repository review and integration authority apply; this is not a runtime store Update |
| Validate or preview a YAML task file | CLI `task validate` / `task preview [--json]` / `task schema` / `task template`; [task input](task-input.md) | Read-only | Reads one schema v1 task file and prints field errors, effective normalized values, their sources and plan/run blockers. Starts no process or probe and writes no workspace, plan, run or evidence file. A complete preview does not authorize execution |
| Confirm missing inputs before a measured task | CLI `task intake evaluate` / `answer` / `summary [--json]`; `campaign start --intake`; [task intake](task-intake.md) | Local record | Evaluates an intake/v1 record against the packaged field spec and returns the questions that unblock the next stage. `evaluate` and `answer` update the named record under a sibling file lock; `summary` reads. Starts no process or probe. A complete record does not authorize execution or freeze a gate |
| Inspect/prepare experiments | CLI `doctor`; `plan` or `--dry-run` | Read-only inspection / preview | `doctor` may invoke bounded probes and does not certify target compatibility; `plan` previews a specification without persisting a campaign or authorizing execution |
| Execute/inspect experiments | CLI `run`; `status`; `report` | Experiment-executing / read-only / report-generating | `run` executes caller-supplied commands and records evidence; `status` reads recorded progress; `report` generates HTML from recorded evidence |
| Deliver retained results | CLI `export --input --output [--agent-job]`; Python `apps.delivery.export_bundle` / `read_bundle` | Report-generating | Publishes Markdown, offline HTML, versioned result JSON and artifact index from one snapshot without remeasurement. Optional native-job input verifies standalone Benchmark terminal token usage. Iterative CLI final returns separate delivery status. See [result delivery](result-delivery.md) and [Benchmark metrics](../benchmarks/benchmark-metrics.md) |
Expand Down Expand Up @@ -530,7 +531,9 @@ snapshot pinned at startup. The campaign Dashboard remains available through
and follow `next_action`. The default comparison uses Qwen denoising and MoE
forward in independent on/off sessions. See the [comparison workflow](../benchmarks/benchmark-comparison.md).
- **Optimize your project.** Use `inferrsi campaign` in the current Agent
conversation. Supply the workload, metric, gates, scripts and budget, then
conversation. Collect the quantitative performance target, benchmark, accuracy
bound, scripts and budget through [task intake](task-intake.md). Read back
the complete brief and obtain a separate user approval before measurement, then
record the measured bottleneck before candidate search. The
[shared workflow](optimization-workflow-unification.md) defines round limits,
recovery and dashboard generation from the Harness control record.
Expand Down
8 changes: 6 additions & 2 deletions docs/guides/optimization-workflow-unification.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,17 @@ Harness 没有常驻 Agent 驱动。Agent 逐次调用这些操作,代码在

下面是命令结构;尖括号是需要落实的项目条件,不是可直接执行的默认值。命令以 argv 执行,不经 shell;Windows 命令参数中的路径建议用正斜杠。

启动前,按[任务确认流程](task-intake.md#campaign-hand-off)准备实际启动参数,复述任务书并等待用户确认。

```bash
inferrsi campaign start --directory <campaign-dir-outside-project> \
inferrsi campaign start --intake <approved-record.json> --directory <campaign-dir-outside-project> \
--repo <editable-project> --include <source-dir> --include <config-file> \
--protocol <acceptance-dir> --instructions <task.md> \
--measure-command '"{python}" "{protocol}/measure.py" --project "{candidate}" --result "{result}"' \
--quality-command '"{python}" "{protocol}/quality.py" --project "{candidate}" --reference "{baseline}" --result "{result}"' \
--metric-key <json.field> --metric-unit <unit> --direction <maximize-or-minimize> \
--quality-key <json.boolean-field> --scope <actual-validation-scope> \
--quality-benchmark <dataset-version-and-split> --quality-key <json.boolean-field> \
--scope <actual-validation-scope> \
--min-improvement-pct <agreed-gate> --warmups <count> --repetitions <count> \
--rounds <limit> --round-mode up_to --max-minutes <total-budget> \
--evaluation-timeout-seconds <per-evaluation-budget> --knowledge on
Expand All @@ -194,6 +197,7 @@ assessment 另附 `paired_statistics`:同一次重复内的第 k 个基线与
结果协议:

- 测量脚本正常结束并写 JSON,提供指定字段的有限正数。
- 对于有评分的结果,质量脚本在顶层 `dataset` 字段自行报告数据集、版本和切分标识。Harness 将它与已批准的 `--quality-benchmark` 核对;缺少标识或标识不一致时,该评分结果为 `INCONCLUSIVE`。
- 质量脚本正常结束并写 JSON,提供指定字段的严格布尔值。`false` 拒绝候选;基线拒绝说明协议/基线前提不成立。
- 脚本可捕获已知候选错误,正常结束并写 `{"status":"candidate_failure","reason":"..."}`。候选失败保留为 FAIL 并消耗一轮,后续可修改。不要把设备故障捕获成候选错误。
- 非零退出、超时、缺少或无法解析的输出不猜测为正确性失败,而是 INCONCLUSIVE,阻止继续把缺失证据当成有效比较。
Expand Down
17 changes: 13 additions & 4 deletions docs/guides/service-reuse-campaigns.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Supply a JSON file with these fields; every threshold and workload is explicit:
| `scenarios` | Objects declaring unique string `id`, `workload`, positive integer `requests`, and positive integer `required_successes` no greater than requests |
| `objectives` | Objects described below; at least one participates in gain assessment |
| `ranking` | Unique objective IDs in priority order |
| `quality` | `mode`, `dataset`, `scorer`, `key`, `direction`, positive integer `samples`, plus the corresponding quality gate |
| `quality` | `mode`, `dataset`, `scorer`, `key`, `unit`, `direction`, positive integer `samples`, plus the corresponding quality gate |
| `stagnation` | `{"disabled": true}`, or positive integer `rounds` and `action` equal to `advisory` or `pause` |
| `screening` | Optional argv `command` and positive `estimated_gain`; the estimate never replaces a formal gate |

Expand All @@ -50,7 +50,13 @@ thresholds for negative-valued domains.

For quality, `absolute` requires `threshold`. `baseline_comparison` requires
nonnegative `tolerance` and compares with the compatible retained baseline score.
By default the baseline service collects the reference after its performance.
The approved `quality.unit` is the scale for the threshold and the additive
tolerance. Each scored receipt, including an external baseline reference, reports
its own `unit`. The harness converts `fraction` / `ratio` and `%` / `percent`
to the approved scale before storing the score. Other units must match exactly.
Unknown or incompatible units produce `INCONCLUSIVE`. A baseline tolerance in
`%` specifies percentage points. By default the baseline service collects the
reference after its performance.
An optional `reference_path` points inside the retained protocol to a compatible
existing baseline quality result. In addition to the quality-result fields,
that result declares `revision`, `conditions`, `service_id`, and `run_id`.
Expand Down Expand Up @@ -85,7 +91,7 @@ Harness checks service liveness and binding between stages.
Each measurement result contains `scenarios[scenario_id]` with `workload`, actual
`requests`, `successes`, the declared metric fields, and `units[objective_id]`.
Every repetition covers every required scenario. Warmup results are separate.
Quality results contain `dataset`, `scorer`, `samples`, and the declared numeric
Quality results contain `dataset`, `scorer`, `samples`, `unit`, and the declared numeric
score field. An explicit `status: candidate_failure` from precheck/quality is a
rejection; crashes, absent evidence and incompatible results are INCONCLUSIVE.

Expand Down Expand Up @@ -116,8 +122,10 @@ Use `campaign start --help` for shared budget/input arguments. In service mode
supply `--evaluation-config <protocol.json>` and omit the AB/BA single-metric,
quality-command and sampling flags. Mixing both parameter sets is an error.

Prepare the executable brief and confirm the final card using the [campaign hand-off](task-intake.md#campaign-hand-off).

```text
inferrsi campaign start --evaluation-mode service_reuse --evaluation-config <protocol.json> ...
inferrsi campaign start --intake <approved-record.json> --evaluation-mode service_reuse --evaluation-config <protocol.json> ...
inferrsi campaign baseline --session <campaign>
inferrsi campaign diagnose --session <campaign> --bottleneck <description> --evidence <summary.txt>
inferrsi campaign knowledge --session <campaign> --query <cue> --context-bytes <bytes>
Expand Down Expand Up @@ -271,6 +279,7 @@ version shown in `recorded_runtime_version`.

## Records, compatibility and validation

The separate intake receipt in `plan/` identifies the approved brief.
Plan schema 3/state schema 2 are specific to service reuse. Missing mode means
legacy AB/BA; old plans are not converted. Legacy sessions still require their recorded runtime for resume. This mode stores commit records,
configuration values, ownership/run IDs and raw evidence without calculating,
Expand Down
3 changes: 3 additions & 0 deletions docs/guides/task-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ without side effects. `inferrsi plan --task` and `inferrsi run --task` use a com
file with the existing plan and run operations (see
[use with plan and run](#use-with-plan-and-run)).

Intake confirmation records (`inferrsi task intake ...`) are a separate contract
used before a task file is complete; see [task intake](task-intake.md).

| Resource | Location | Print from an installed CLI |
| --- | --- | --- |
| JSON Schema (draft 2020-12) | `src/inferrsi/apps/cli/task-input/v1/schema.json` in the wheel | `inferrsi task schema` |
Expand Down
Loading
Loading