Skip to content

Add task intake records and question prompts for inference workflows - #706

Open
jiangkuaixue123 wants to merge 24 commits into
InferMatrixLab:mainfrom
jiangkuaixue123:codex/intake-question-cards
Open

jiangkuaixue123 wants to merge 24 commits into
InferMatrixLab:mainfrom
jiangkuaixue123:codex/intake-question-cards

Conversation

@jiangkuaixue123

@jiangkuaixue123 jiangkuaixue123 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #606

The issue author requested this implementation for review. The scope decision accepts the first-phase design. The implementation and acceptance owners have yet to be recorded on the issue.

The existing primary-task router selects the task. The new task intake evaluate, answer and summary commands track field sources, conflicts, unknown values and the stages they block. Performance and Day-0 have field specifications. Interactive performance work now requires a numeric final goal, a quantitative quality gate on a named benchmark, and a separate approval of the full task brief before measurement. Anchors touched: none.

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "e976c1d18724612c156626b5fc0897c0f534c2bf",
  "human_only": false,
  "material_ai_authors": [
    {"tool": "Claude Code", "model_id": "claude-fable-5-2", "effort": "xhigh", "role": "author"},
    {"tool": "Codex", "model_id": "gpt-6.2-astra", "effort": "xhigh", "role": "author"},
    {"tool": "Claude Code", "model_id": "claude-opus-5-5", "effort": "low", "role": "author"}
  ]
}

Codex added the wheel resource checks, the user selection and gate-source handling, the desktop instructions, the quantified brief and its revision-specific approval, and regression tests.

Current verification on a8b61998

  • Quality units. 7407ab71 binds the unit before the final approval, freezes it in AB/BA and checks the service configuration against it. Each numeric scorer receipt reports its unit. The evaluator converts an explicit fraction or ratio to the approved percent scale, rejects missing or incompatible units, and retains the raw receipt. Absolute error ≤ 1% rejects 0.02 fraction and accepts 0.005. Baseline tolerances compare both scores on the same scale and use an additive difference; 2% + 1 percentage point permits 3%. Both CLI entry points exercise prepare, approval and start. The lifecycle regressions also check candidate retention and independent final evaluation. Unit finding
  • Delayed card replies. a8b61998 binds each field token to its record, dependencies, wording, options and issuance revision. The P95 reply is rejected after the P99 question is reissued, with the record byte-for-byte unchanged. A sibling card with unchanged context remains usable, and the new P99 card accepts the reply. Separate cases cover foreign records, changed conflict options and open cards saved by older versions. Settled legacy answers retain their provenance. Removed the unused set_primary_task() helper mentioned in the review. Stale-reply finding · Reviewer’s earlier CLI reproduction
  • Local environment. macOS, Python 3.12.13, pytest 9.2.0, Git 2.50.1. The focused selection recorded 139 passed, 1 Linux-only skip and 94 deselected. Ruff 0.17.6 (ruff check src tests tools), the declared-source skill index and skill coverage passed.
  • The two review reproductions and their variants ran separately on this commit, with 13 passed. An isolated installation verified 777 package resources and repeated the P95→P99 sequence via the installed CLI: stale delivery returned exit 2 without changing the record, the unrelated card kept its token, and the current card accepted its reply.
  • macOS full suite (pytest) finished with 7,466 passed, 103 skipped, 136 failed and 675 passing subtests. All 136 failing IDs match the 136 independently reproduced on the clean base on this host, with zero additions and zero removals. The local service lifecycle could not establish process cleanup on this host; its end-to-end result is tracked separately in Linux CI.
  • Boundaries on the new head. The isolated wheel maps repetitions and rounds to integer / task-input/v1 / count, and max_minutes to number / task-input/v1 / minutes. The CLI regressions for both new answers and old approved records ran again: 6 passed. Exact tests.
  • Increment for re-review. The 14 changed files since d8131f62 are preserved in 11 plain-text patches. Each file is at most 4,500 bytes with real newlines. Concatenating them reproduces all 45,379 bytes / 802 lines and applying the patch reconstructs a8b61998.
  • Both Linux matrix jobs are running. Ready CI on this head.

Changed artifacts and evidence

  • src/inferrsi/apps/cli/intake_contract.py and task_intake.py implement the record and CLI. A card answer can propose an acceptance value. Intake binds issue values to the reference the user identified and frozen values to the selected file’s acceptance snapshot. Discovered performance choices become card suggestions. A changed file reopens the reference question.

  • Every ordinary performance campaign start requires a matching preapproval. Preparation stages the executable settings, the final card binds them, and start compares the staged settings and approved conditions before creating the campaign. The frozen plan references the intake receipt with its brief ID, revision and SHA-256.

  • tests/apps/test_task_intake.py exercises question selection, stale and duplicate replies, frozen-gate disagreement and campaign start. The previous CLI vague-prompt trial exercised the numbered fallback.

  • The final brief includes the absolute metric bound or baseline-relative gain, quality benchmark, metric, comparison, threshold and unit, plus the applicable protocol, scope and budget. The host presents the brief in the user's language and asks for a separate approve-or-revise response. An edit invalidates the old question. Intake rechecks the selected local gate before campaign start and serializes record updates.

  • Brief approval records an explicit host-delivered user response. Service and device execution still require their own authorization.

Review follow-up

  • Resolving conflicting metric choices. An open card retains distinct alternatives across repeated imports. Selecting either metric resolves the card and leaves the choice proposed. The selected issue can confirm the matching value. An issue that disagrees with an explicit card choice opens a new conflict. CLI regressions exercise both P95 and P99 choices through authority confirmation.
  • Execution bounds before approval. New field values and card replies use the task-input/v1 numeric rules. Repetitions and rounds must be positive integers, minutes must be positive and at most seven days, and the minimum improvement percentage must be nonnegative. Reading an older record with an out-of-range value withdraws its approval and reopens the question. Regression tests also exercise failed campaign start, correction and a new final card.

Earlier review on d8131f62

Linux Ready CI passed on d8131f62. Python 3.10 and 3.11 each recorded 7,603 passed, 89 skipped, one deselected and 675 passing subtests. Both installed-package jobs, dashboard-browser and the advisory Windows and macOS jobs passed. The conditional skill-acceptance execution was skipped. Python 3.10 · Python 3.11

d8131f62 updates the ranking-policy parity assertion to check the entire quality receipt, including the approved dataset. The AB/BA guide now identifies the corpus label as self-reported and distinguishes an unscored explicit rejection from a scored receipt with missing identity. These four files are the entire increment since the formally reviewed 1a005543. Production Python on these two heads is identical. Review follow-up

On this head, 205 focused tests passed and one Linux-only test was skipped on macOS. The run includes the exact parity test, both wrong/missing-dataset CLI cases and the earlier search timeout. Ruff passed. The final macOS Python 3.12 full suite recorded 7,453 passed, 103 skipped, 136 failed, plus 675 passing subtests. Comparing every failing test ID to the clean base on this host produced zero added and zero removed. The installed-wheel check verified 777 packaged resources. On 1a005543, both Linux 3.10 and 3.11 full suites had exactly the same single failing test, the parity assertion fixed in this increment, with 7,601 passing on each. Linux 3.11 log. Linux 3.10 log

The bounds and receipt regressions already cover both an invalid new answer and a previously approved record containing invalid values. I reran both test functions and the exact changed ranking assertion on this head: 7 passed. The installed wheel maps repetitions and rounds to integer / task-input/v1 / count and max_minutes to number / task-input/v1 / minutes. The cases include 0 repetitions, −1 rounds and −5 minutes. The legacy record test checks all three fields, blocks start, and requires fresh manual approval after correction. Parity assertion · Current declaration check · Current Ready CI

Complete four-file increment since the previous review
diff --git a/docs/guides/optimization-workflow-unification.md b/docs/guides/optimization-workflow-unification.md
index 785f3d7e..18cde2bd 100644
--- a/docs/guides/optimization-workflow-unification.md
+++ b/docs/guides/optimization-workflow-unification.md
@@ -197,7 +197,7 @@ assessment 另附 `paired_statistics`:同一次重复内的第 k 个基线与
 结果协议:
 
 - 测量脚本正常结束并写 JSON,提供指定字段的有限正数。
-- 质量脚本在顶层 `dataset` 字段报告实际评分的数据集、版本及切分标识,与已批准的 `--quality-benchmark` 一致。缺少标识或标识不匹配时,质量证据为 `INCONCLUSIVE`。
+- 对于有评分的结果,质量脚本在顶层 `dataset` 字段自行报告数据集、版本和切分标识。Harness 将它与已批准的 `--quality-benchmark` 核对;缺少标识或标识不一致时,该评分结果为 `INCONCLUSIVE`。
 - 质量脚本正常结束并写 JSON,提供指定字段的严格布尔值。`false` 拒绝候选;基线拒绝说明协议/基线前提不成立。
 - 脚本可捕获已知候选错误,正常结束并写 `{"status":"candidate_failure","reason":"..."}`。候选失败保留为 FAIL 并消耗一轮,后续可修改。不要把设备故障捕获成候选错误。
 - 非零退出、超时、缺少或无法解析的输出不猜测为正确性失败,而是 INCONCLUSIVE,阻止继续把缺失证据当成有效比较。
diff --git a/docs/guides/task-intake.md b/docs/guides/task-intake.md
index 081ddb9d..e8258396 100644
--- a/docs/guides/task-intake.md
+++ b/docs/guides/task-intake.md
@@ -202,11 +202,15 @@ preapproval starts unattended. The frozen `plan.json` references a receipt in
 `plan/` with the SHA-256 and revision of the retained `intake.json`.
 
 For AB/BA the two approved measurement commands describe the same script with
-the candidate path supplied at execution. The quality command returns its
-identity of the dataset actually scored in the top-level `dataset` field. It must
-match both `--quality-benchmark` and the approved benchmark (including its version
-and split). Missing or mismatched identity makes the result `INCONCLUSIVE`.
-Also return the boolean acceptance key and a numeric result under the approved quality metric
+the candidate path supplied at execution. For a scored quality check, the
+frozen script self-reports the dataset it evaluated in the top-level `dataset`
+field. Harness compares that label with the approved `--quality-benchmark`,
+including its version and split. The script supplies the evidence for which
+corpus it loaded. A missing or mismatched label makes a scored result
+`INCONCLUSIVE`. An explicit `status: candidate_failure` is an unscored
+rejection. A candidate rejection is `FAIL`, and a baseline rejection leaves
+the comparison `INCONCLUSIVE`. A scored result also supplies the boolean
+acceptance key and a numeric result under the approved quality metric
 (JSON dotted paths are supported). A boolean metric on the acceptance key is
 compared as 1 or 0. The independent final checks the approved absolute bound or
 relative improvement against the pinned baseline. For service reuse, the first
diff --git a/plugins/inferrsi/skills/inferrsi/SKILL.md b/plugins/inferrsi/skills/inferrsi/SKILL.md
index ef146c19..e6118cc2 100644
--- a/plugins/inferrsi/skills/inferrsi/SKILL.md
+++ b/plugins/inferrsi/skills/inferrsi/SKILL.md
@@ -142,8 +142,9 @@ inputs through `--protocol`. Checks must use the retained `{candidate}`,
 `{baseline}`, `{protocol}` and output `{result}` paths as appropriate. Confirm
 they execute the submitted code, not an unrelated installed package or service.
 For AB/BA, pass the approved dataset version and split as `--quality-benchmark`.
-The quality script must report the identity of the corpus it actually scored in
-the top-level `dataset` field alongside the quality result.
+For a scored result, the quality script self-reports the corpus it evaluated in
+the top-level `dataset` field. Harness checks the reported label against the
+approved identity.
 This command uses the same Harness controller as the packaged task path below.
 
 Edit the returned working candidate. Submit each hypothesis and candidate with
diff --git a/tests/apps/test_session_ranking_policy.py b/tests/apps/test_session_ranking_policy.py
index 2b5b0b61..13c2ed32 100644
--- a/tests/apps/test_session_ranking_policy.py
+++ b/tests/apps/test_session_ranking_policy.py
@@ -167,7 +167,8 @@ def test_project_assessor_uses_the_same_measurements_quality_and_threshold(proje
         assert assessment["verdict"] == "PASS" and assessment["quality_passed"]
         directory = arm[-1] / read(arm[-1] / "state.json")["rounds"][0]["path"]
         samples = {p.parent.name: read(p) for p in (directory / "execution").glob("*/result.json")}
-        assert {"metric": 20} in samples.values() and {"correct": True} in samples.values()
+        assert {"metric": 20} in samples.values()
+        assert {"correct": True, "dataset": "fixture-exact-v1"} in samples.values()
         evidence.append((read(arm[-1] / "plan.json")["evaluation_settings"], samples,
                          assessment["verdict"], assessment["score"], assessment["quality_passed"]))
     assert evidence[0] == evidence[1]

Earlier review and validation history

Dong1017’s review and zengchuang-hw’s review identified the missing default gate and the gap between approval and execution.

Exercised path Observed result
Start without an intake, with an incomplete intake, or with a planning-only approval Exit 2 before campaign creation.
Prepare executable options, display the brief and record the separate approval, then start with matching options The session starts unattended and retains the evaluated record. The SHA-256 in the frozen receipt matches the retained bytes.
Repeat preparation, then change the metric unit, measurement command, budget, warmups, quality key or AB/BA validator Identical preparation preserves approval. Changed conditions block start and a revised launch needs a fresh approval.
Change the service quality threshold or a final-stage warmup after approval Both changes block creation. Restoring the reviewed configuration starts successfully.
Synthetic candidate doubles the baseline metric but misses the final absolute or relative target The search round can retain the candidate. The independent final records FAIL. A true boolean quality result also fails to override a missed numeric quality bound.

Service quality read-back on 694ec791. Absolute mode shows the fixed score inequality and metric direction. Baseline-comparison mode names the retained baseline for the current comparison epoch and shows the permitted decrease or increase. With a baseline accuracy of 90 and 0.1 points allowed degradation, the card states accuracy >= baseline accuracy - 0.1 points. The Harness accepts 89.95 and rejects 89.8. Four executable-card tests compare both modes and directions with the real scorer. A fifth test confirms that approval of the former wording reopens the final card. 70 tests passed across intake and these service hand-off cases.

Complete service quality read-back on 0fb75023. The card headline, structured conditions and text summary now use the candidate score direction. In relative mode the numeric allowance is labeled protocol.quality_baseline_tolerance and the comparison epoch’s retained score is identified as the reference. The four mode/direction tests exercise the full rendering and scorer; an older maximize approval storing at_most reopens the comparator question before start. 118 focused tests passed (including module migrations). Ruff passed.

On 1a005543, the AB/BA invocation must name the approved dataset, including its version and split, using --quality-benchmark. The frozen quality script reports the dataset actually scored in its result. A mismatched launch cannot create a campaign. A mismatched or missing result identity gives INCONCLUSIVE and retains the incumbent even with accuracy 100, an approved minimum of 95, and boolean success. Regression tests cover both invalid receipts. On the final code, 203 focused tests passed and one Linux-only test was skipped on macOS. Ruff and the three skill projection checks passed. The macOS full suite on 1a005543 finished: 7,452 passed, 103 skipped, 137 failed and 675 subtests passed. Comparing IDs against the clean base left one additional failure, test_project_assessor_uses_the_same_measurements_quality_and_threshold. The fixture expected exactly a boolean-only receipt; the actual passing receipt also carried the required dataset. Reviewer reproduction

Service planning cards now label unbound quality inputs provisional; the prepared card displays the executable inequality and asks separately for approval. The previous head's macOS and Ready outcomes are tracked separately. On 0fb75023, Linux 3.11 full-check reported one timed-out search test (test_skill_carry_reuses_winning_child_verification). Its call path and fixture are unchanged from base, and the exact test passed in isolation locally. Previous CI result

On 1a005543, zengchuang-hw formally approved after independently checking all four service-quality cases and matched, missing and mismatched AB/BA corpus labels. The trusted knowledge-model declaration status also passed. Review · Declaration CI · Ready CI

The earlier Desktop transcript below verified the planning brief and the separate human decision. The new executable-binding checks used the real CLI with synthetic project and service fixtures.

  • Local focused run on c8095959: 232 passed, 1 skipped and 54 subtests passed. The intake and service launch regressions also ran separately on that head: 65 passed. Ruff, the skill index at its declared source revision, the search-space index, skill coverage, and the isolated installed-wheel smoke check (777 resources) passed. On 0fb75023, macOS Python 3.12 ran the full suite: 7,449 passed, 103 skipped, 136 failed, plus 675 passing subtests. The set of all 136 failing test IDs exactly matches the set independently reproduced on the clean PR base on this host (zero added and zero missing). The index, coverage checks, Ruff and the isolated wheel resource check also passed on this head.
  • The base policy admits the two declared authors (claude-fable-5-2, gpt-6.2-astra, both xhigh). PR #518 declares deepseek-flash, unknown effort and an explicit exception. The current PR declares no exception. The trusted declaration check on 694ec791 passed, as did the preceding head. Executable model and effort rules · Exception procedure
  • The router skill adds two lines telling the agent to ask when two deliverables fit. The CLI changes register intake and the campaign hand-off. Existing primary-task selection remains in place and no skills route command was introduced.

Review files on the current head

The complete diff in 36 ordered parts contains 227,854 bytes and 4,542 lines across 40 changed files. Applying it to the base index reproduced the current head tree. SHA-256 8182418d03eca21916461df6de69acdcbde2909d81f19992f94bd03186831697.

All 40 changed files at the current commit

Earlier checks on cebe9271

  • On cebe9271, 304 focused tests passed with 43 passing subtests. These include intake, the shared YAML task contract, module migrations, coverage and the architecture checks. All 54 intake tests passed.
  • macOS, Python 3.12, full suite with the virtual environment active: 7,432 passed, 103 skipped, 136 failed. The 136 failing test IDs exactly match those reproduced on the clean PR base 51e475ad on the same host. There were no additional failing IDs on this head.
  • Ruff passed. The skill index at its declared source revision, the search-space index and skill coverage all matched. The installed-wheel smoke check passed for 777 resources.
  • Re-reading the retained desktop trial with this head produced revision 11, brief_review: approved, status: ready and execution: not started. The transcript below is from the original desktop trial.

Codex Desktop verification of the performance intake

The test started a new chat in the ASR project with the original prompt: “使用 ~/code/InferRSI 帮我优化一下性能”. The native cards asked six questions in four rounds. The user authorized Codex to answer as a tester; the replies were sent through the test chat. No benchmark was run or ASR project file changed. RTF is transcription wall time divided by audio duration. P6 supplies the fixed English and Chinese clips, and P7 names the existing acceptance plan. The numbers below are acceptance targets for this replay.

Round What the card asked Reply sent in the test chat
1 本轮优先优化什么指标、用哪个数值判定达标? 选“目标为实时”。以当时的 main 为基线,在 P6 中英文单条请求、并发 1 下,合并 RTF ≤ 1.0 秒/音频秒。
1 本轮用哪套质量验收? 沿用 P7。P6 和完整 Natural30 的原生稳定输出差异数 = 0,全部正常 EOS,相关 Metal 测试全部通过。质量失败就保留基线。沿用 P7 计时边界,每组预热 1 次,做 6 组交替对照。
2 是否选用这份验收记录? 选用。保留候选要求配对加速区间下界 > 1.0×。最终复测仍须达到合并 RTF ≤ 1.0。
2 任务书中的优化范围和预算是否沿用 P7? 沿用。范围限模型执行和 Metal 内核,最多试 1 个候选,预算 60 分钟,含最终复测。
3 完整复述后:是否批准刚展示的第 9 版任务书? 要求修改。把最终合并 RTF 上限从 1.0 收紧到 0.95 秒/音频秒,其余条件照旧。
4 复述修订版后:是否批准合并 RTF 上限为 0.95 的第 11 版任务书? 批准第 11 版。确认 RTF ≤ 0.95 和稳定输出差异数 = 0,记录审批后结束本次流程验证。

Before each approval reply, the campaign gate returned blocked, the brief was awaiting_confirmation, and only read-only preparation was allowed. An attempted answer using the obsolete revision 9 question ID was rejected without changing the record. Only the explicit revision 11 approval produced ready and approved. Execution remained not started.

Remaining work and Issue closure

  • Day-0 still needs equivalent end-to-end acceptance examples. Comparing normalized records from paired native-card and text-fallback runs remains outstanding.
  • The issue remains open for the owner handoff, independent verification and acceptance.

jiangkuaixue123 and others added 3 commits November 26, 2026 11:04
… gate

A vague request such as "make the service faster without losing quality"
reaches campaign start with no record of which conditions the user stated.
Add a host-independent intake record that a question card and a numbered
text fallback both write, so missing inputs are asked once and kept.

- apps/cli/intake_contract.py: pure functions for question selection by
  batch and dependency, answers, stale and duplicate rejection, frozen gate
  comparison and the derived allowed next stages.
- task-performance and task-day-0 field specs next to their skills.
- task intake evaluate / answer / summary commands.
- campaign start --intake refuses an incomplete task-performance record
  before writing anything and retains the gated record with its digest.

An acceptance value is confirmed only when its declared source is the
acceptance issue or the frozen gate record; a card answer stays a proposal
and does not unblock candidate search. Without --intake, campaign start
warns and proceeds as before.

Agent-assisted-by: Claude Code / claude-fable-5-2 [effort=xhigh] (author)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Claude Code / claude-fable-5-2 [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Skill evaluation

PLANNED: not executed; there are no task outcomes yet.
No approval, model efficacy or current-head test result is implied.

  • Next: run the pinned source/index --check below at head 9541e1738e4109fc3e4b1b3403e1c82ebef3b36d.
  • Task selection: no supported automatic comparison; choose a relevant source/content check and disposition uncovered claims.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 40; Canonical library paths: 4; Generated projection paths: 2; Other paths: 34. These are paths, not independent claims.
  • Return: command, input/source pin, exit status, outputs/failures and untested claims for independent verified/refuted/unverified disposition.
Author verification steps (nonpaid; not yet run)
  1. Bind the checkout. Run git rev-parse HEAD; it must equal 9541e1738e4109fc3e4b1b3403e1c82ebef3b36d. If it differs, obtain a current plan; do not reuse old results.
  2. Check source/index consistency. At that PR checkout, using the reviewed repository tool and its documented development dependencies, run:
python tools/build_skill_index.py --source-revision 6f5775d29d3546732113900ef811d60a5943aa62 --check

The declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy.
No supported automatic comparison is selected. Review the canonical changes and explain which claims need evidence, are unaffected, or remain unverified; do not treat generated records as separate behavioral claims.
Uncovered scope by location: Canonical library paths: 4; Generated projection paths: 2; Other paths: 34. Path counts are not claim counts; no metadata-only conclusion is inferred.
3. Return evidence for independent review: head, check/task/source pin, command, environment, exit status, outputs/failures and untested claims. Label scripted controls. Request each claim's disposition: verified, refuted or unverified; this plan proves neither model provenance nor benefit.
Check recipes and evidence limits

Evidence and logs · Retention: 30 days.
Retained artifacts are verifiable only before Unix time 1798295605 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Applicable only while these revisions and inputs match the current PR.
Paid execution requires trusted label authorization and cumulative PR reservation. Unknown accounting blocks new paid calls; planning is not execution.
Pipeline evidence only; offline fixed outputs do not establish skill efficacy.
Unchanged-correct is valid neutral evidence, not incremental benefit.
Content/source review and authorship admission remain separate.
Trusted regrading checks retained answers, not model/hardware provenance or a hostile executor; this is not an efficacy certification.

  • Retained evidence is planned / unexecuted.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: 246a7f73f064cc70558a0574a51f54bd3c20e7626d01bdb0ccd5c70121f94b59
    Base: 51e475ad077ec88d60f9e8c561dc0415ca9855aa · Head: 9541e1738e4109fc3e4b1b3403e1c82ebef3b36d
    Trusted implementation: 54342cc573896c953cb0e2fb8734ef28262b5bda

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":0,"estimated_calls":0,"limits_per_comparison":{"campaign_seconds":600,"max_task_calls":2,"repeats":1,"timeout_seconds":180,"token_stop_new_trials":200000},"provider_config_sha256":"b28d80f8194fbe0f5a9f01515efb24b218979fd45f702776560da276f4b30d04","reservation":null}

Skill Comparison Cases Estimated calls

Automatic execution / cumulative PR budget:

{"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}

Projection check selection (not an executed result):

{"declared_in":"src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json","source_revision":"6f5775d29d3546732113900ef811d60a5943aa62","status":"ready"}

Provider/settings: {"client":{"api_version":"2023-06-01","endpoint":"https://yibuapi.com/v1/messages","kind":"anthropic-messages-full-context-v1","max_output_tokens":4096,"max_read_bytes":32768,"max_request_bytes":262144,"max_requests":1,"max_tool_calls":12,"provider":"yibuapi"},"limits":{"token_stop_new_trials":200000},"model":{"effort":"not_applicable","name":"claude-opus-5-5"},"pricing":{"currency":"USD","expires_at":1793271228,"group":"default","max_input_tokens":1000000,"model":"claude-opus-5-5","rate_evidence":"https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341","rates":{"cache_read":"0.4","cache_write":"10","input":"8","output":"40"},"request_fee":"0","unit":"per_million_tokens"},"spend_limit":{"amount":"200","currency":"USD"}}

Uncovered / unsupported paths (40)
  • uncovered: "AGENTS.md"
  • uncovered: "docs/apps-module-migrations.json"
  • uncovered: "docs/guides/operations.md"
  • uncovered: "docs/guides/optimization-workflow-unification.md"
  • uncovered: "docs/guides/service-reuse-campaigns.md"
  • uncovered: "docs/guides/task-input.md"
  • uncovered: "docs/guides/task-intake.md"
  • uncovered: "docs/searchspace-index.json"
  • uncovered: "docs/skill-coverage.md"
  • uncovered: "plugins/inferrsi/skills/inferrsi/SKILL.md"
  • uncovered: "src/inferrsi/apps/cli/init.py"
  • uncovered: "src/inferrsi/apps/cli/arguments.py"
  • uncovered: "src/inferrsi/apps/cli/campaign_intake.py"
  • uncovered: "src/inferrsi/apps/cli/intake_contract.py"
  • uncovered: "src/inferrsi/apps/cli/task_input.py"
  • uncovered: "src/inferrsi/apps/cli/task_intake.py"
  • uncovered: "src/inferrsi/harness/optimization_session.py"
  • uncovered: "src/inferrsi/harness/project.py"
  • uncovered: "src/inferrsi/harness/project_service.py"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/_compiled/inputs.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/tasks/inference-task-router/SKILL.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/tasks/task-day-0/intake.json"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/tasks/task-performance/SKILL.md"
  • uncovered: "src/inferrsi/knowledge/data/skill_library/tasks/task-performance/intake.json"
  • uncovered: "tests/apps/test_engineering_benchmark_plugins.py"
  • uncovered: "tests/apps/test_project_explanation.py"
  • uncovered: "tests/apps/test_project_optimization.py"
  • uncovered: "tests/apps/test_project_service_reuse.py"
  • uncovered: "tests/apps/test_session_ranking_policy.py"
  • uncovered: "tests/apps/test_task_intake.py"
  • uncovered: "tests/fixtures/campaign_intake.py"
  • uncovered: "tests/fixtures/intake/performance/complete.json"
  • uncovered: "tests/fixtures/intake/performance/frozen-gate.yaml"
  • uncovered: "tests/fixtures/intake/performance/frozen-mismatch.yaml"
  • uncovered: "tests/fixtures/intake/performance/partial.json"
  • uncovered: "tests/fixtures/service_reuse.py"
  • uncovered: "tests/fixtures/service_reuse_protocol.py"
  • uncovered: "tests/harness/test_service_reference_evidence.py"
  • uncovered: "tests/repository/check_installed.py"

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
@Dong1017 Dong1017 added area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters area:harness Harness module: profile, A/B loop, quality gates, evidence reports labels Nov 26, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dot, acting for @david6666666 under delegated PR review.

An intake conflict still cannot be resolved through the stated question workflow. This is separate from the already announced acceptance-source binding update.

Keep workspace choices as suggestions, ask outstanding questions through the desktop host, and bind acceptance values to an independently selected issue or frozen snapshot. Re-evaluate existing intake records at campaign start.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dot, acting for @david6666666 under delegated PR review.

The revision-specific brief is useful. One execution-value validation gap remains in this draft; see the inline note.

@jiangkuaixue123
jiangkuaixue123 marked this pull request as ready for review November 26, 2026 06:39
…view

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123.

@david6666666 @Dong1017 @zengchuang-hw 麻烦评审这个版本 cebe9271。

  • @david6666666 请复核之前的两条意见。P95/P99 冲突现在覆盖了从卡片选择、保留为 proposed 到验收来源确认的完整路径。零重复、负轮数和非法时间预算都覆盖了新输入和旧记录。
  • @Dong1017 请重点看 intake 复用 task-input/v1 数值校验的边界,以及旧记录纠正后是否正确要求重新批准任务书。
  • @zengchuang-hw 请重点看 campaign 启动前的审批检查,以及用户修改性能目标后旧卡失效、修订版重新出卡的流程。

PR 描述中的桌面验证记录 列出了四轮六问和代答。304 项专项测试通过。本机全量测试的 136 个失败用例与干净基线逐项一致。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Dong-bot (authorized delegate for Dong1017), first review of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9 (full diff mode, 25 files, +2634 -15). No formal Approve exists on this head; prior-reviews.md shows only COMMENTED reviews from @david6666666 on older commits and no outstanding CHANGES_REQUESTED.

Blockers

  1. Performance campaign gate is still opt-in, but #606 accepted it as default-on. The accepted first-phase scope in decisions.md (#606, 2026-11-25T15:01:13Z) includes a campaign-start gate that is default-on for performance. At head, --intake is an optional flag on campaign start (src/inferrsi/apps/cli/arguments.py:186-188), and the PR body's remaining-work list says performance campaigns started without --intake currently warn and proceed. Required: performance campaign start refuses an incomplete intake by default, with a tested, explicit opt-out only if the owner decides on one, plus regression tests for the default path.

  2. Knowledge-model policy is not satisfied for this head. .github/knowledge-model-policy.json protects src/inferrsi/knowledge/data/skill_library/** (lines 4-5) and names approval_owners: ["Dong1017"] with independent_approvers: [] (lines 48-49). The PR declares human_only: false with Claude Code and Codex as material authors, and the performance spec src/inferrsi/knowledge/data/skill_library/tasks/task-performance/intake.json is at head under that protected path. No knowledge-authorship exception for cebe9271 is recorded in decisions.md. Per the repository precedent on #518, Dong-bot does not post this grant; it needs an exact-head grant from the approval owner by hand, or the protected-path changes need to be separated from this PR.

  3. Required evidence is incomplete: the full diff was not reviewed. The 146 KB pr/diff.patch could not be opened in this session, so I have not verified the 25-file change set. Not verified: that no skills-route change (#606 §3 is excluded by Dong1017's decision) is in the diff, the four canonical library paths the skill-eval bot lists, and tests/apps/test_task_intake.py. A PASS needs that evidence.

Earlier findings (read at head, not executed)

  • Execution bounds (resolved by reading). Numeric task-input/v1 fields go through _coerce → task_input.field_value_problem (src/inferrsi/apps/cli/intake_contract.py:274-281). That check runs for set_fields (:370), answer (:711) and reconcile_record, which reopens older out-of-range values (:329-339). count requires at least 1 and minutes requires 0 < value ≤ 7 days (src/inferrsi/apps/cli/task_input.py:267-274). Repetitions=0, rounds=-1 and max_minutes=-5 should therefore be rejected for new answers and loaded records.
  • P95/P99 conflict loop (resolved by reading). An explicit answer replaces the conflicting entry with the chosen value and status (intake_contract.py:709-716). Repeated imports cannot reselect an open choice (:392-399), which is intentional. An Issue value settles a field only when its reference is selected (:309-317).

Not verified here

  • No tests were run. The PR body's counts (304 focused, 54 intake, 7,432 passed / 136 failed full suite) are not reproduced. The skill-eval bot still lists the tools/build_skill_index.py --check run as not executed.
  • The Codex Desktop transcript and the campaign warn path were not traced beyond the PR body.

Next step

Author pushes the default-on campaign gate and the protected-path resolution, with the evidence above. Dong-bot will re-read the new head after the push (the next synchronize after a DO NOT PASS triggers an incremental re-check). Knowledge-policy grants remain with the owner by hand.


@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NO PASS
dot, acting for zengchuang-hw.

回应本轮检视邀请。首审:base 51e475ad077ec88d60f9e8c561dc0415ca9855aa → head cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9。

阻塞项与验证
  1. 未提供审批记录时仍会启动性能 campaign。 CLI 启动分支 在未传入 --intake 时只打警告,然后调用 _optimization_session(args)。传了记录但记录未通过才会提前返回。这个行为不满足 #606 已接受的默认开启。请在创建 campaign 前拒绝没有有效批准的性能启动。
  2. 记录内的修订审批没有绑定到实际启动。 审批卡 把 revision 和确认条件写进卡 ID,这能区分不同版本的记录;但 启动校验 只评估传入记录及其引用,没有比较实际 invocation,启动后才保存 intake.json 并把 digest 返给调用者,没有写入冻结 plan/。请在创建前比对实际使用的目标、质量门槛和执行约束,将批准的 digest 写入计划。匹配的预审批应能无交互启动;缺失、过期或与实际参数不匹配的审批应在创建前停止。

实际验证:从当前 head 提取原始 CLI 分支,以本地 Python 和替身 launcher 执行三条路径:无记录到达 launcher;记录返回 ready 时实际启动参数未进入校验;记录返回 blocked 时未启动。另静态核对卡 ID、校验调用与 digest 写入位置。未独立重跑桌面问答、安装包、整套测试或真实性能 campaign。

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
…igns

Compare the staged AB/BA or service plan with the approved brief before creating the session. Freeze the receipt and enforce the numerical quality and independent final gates.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123.

@Dong1017 @zengchuang-hw 请复审 c8095959。两条启动路径现在都要求已批准的任务书。缺少记录、审批过期、目标或执行参数不匹配都会在创建 campaign 前返回 2。匹配的预审批可以无交互启动。plan.json 指向含卡片 ID、修订号和 SHA-256 的冻结回执。

  • @zengchuang-hw 请重点检查 启动条件和回执、AB/BA 回归 和 服务复用回归。布尔质量检查通过但数值越界、搜索有收益但最终复测未达标,两种情况均已有实测。
  • @Dong1017 这个提交的知识作者声明检查已通过。基线规则列出了本 PR 声明的两个模型及其 xhigh 档位,例外条款适用于超出规则的声明。PR 描述提供了全部 37 个文件各自的源码和 diff 链接,包括四份 canonical skill 源文件、生成索引和完整 intake 测试。本次检查 · 规则和例外适用条件

完整桌面问答记录和本轮 CLI 复现结果已保留在 PR 描述。专项结果为 232 passed、1 skipped、54 subtests passed,独立安装的 wheel 检查验证了 777 项资源。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head c80959595141ba5b1d3cfd3824fc1edcfdf00764, after the DO NOT PASS on cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9.

Why this is not a PASS yet

  • pr/meta.json has diffComplete: false, so the seeded pr/diff.patch does not show the whole change. The file is about 154.5 KB and my read tool would not return it in full, so I did not review the hunks. I cannot PASS a change whose full diff I have not seen.
  • Required to PASS: a complete diff for this range (diffComplete: true), plus CI and test results on c8095959. Dong-bot will re-read after the author pushes or once the complete diff is seeded.

Status of the cebe927 blockers (checked against head source, not diff hunks)

  1. Default-on performance gate: resolved in source. src/inferrsi/apps/cli/__init__.py:873-879 routes project campaign start through campaign_intake.start. src/inferrsi/apps/cli/campaign_intake.py:108-112 returns blocked with missing_intake when --intake is absent, before any campaign is created. The help text at src/inferrsi/apps/cli/arguments.py:186-188 matches. Regression tests not run.
  2. Approval not bound to the actual launch: resolved in source. campaign_intake.py:136-144 compares the staged plan settings (_execution) and the approved conditions with the approved campaign_launch before _initialize. Mismatches return launch_conflict or launch_changed. campaign_intake.py:167-170 writes the receipt to plan/intake-<sha256>.json. intake_contract.py:518-523 folds campaign_launch into the brief ID, so a changed launch needs a new approval. intake_contract.py:347-349 (_bump) pops brief_decision on every revision bump, and intake_contract.py:335-343 reopens out-of-range older values, so a corrected record needs fresh approval.

Reviewer asks, checked in source

  • Execution bounds (david6666666, cebe927). _coerce (intake_contract.py:274-281) applies the task-input/v1 validator to integer/number fields. task_input.py:267-270 requires a positive integer for count, task_input.py:271-275 requires minutes in (0, 7 days], and task_input.py:276-280 requires a nonnegative percent. task-performance/intake.json maps environment.repetitions, environment.rounds, environment.max_minutes and acceptance.min_improvement_pct to task-input/v1 (lines 236-252, 300-307 and 50-57). New answers go through _coerce at intake_contract.py:713. Loaded records are rechecked in reconcile_record (intake_contract.py:326-339).
  • P95/P99 conflict (david6666666, cebe927). answer() replaces the conflicting field with the single answered value (intake_contract.py:711-716), so an explicit card choice resolves it. Repeated imports only append candidates (intake_contract.py:392-399). Source-level only; not run.
  • Knowledge-model policy. I am not repeating the cebe927 blocker. The declaration names the current head and two admitted models at xhigh (.github/knowledge-model-policy.json:29-40; docs/knowledge-model-policy.md:91-103). No exception is requested, so the exception approval-owner rule does not apply. This is declaration compliance only. I did not see the knowledge-model-policy status result.

Not verified in this pass

  • The full diff and the hunks outside the files cited above.
  • Tests, ruff, the installed-wheel check, the 136-failure baseline comparison, and the CI result for c8095959.
  • Current-head reviews from zengchuang-hw and david6666666. Their formal reviews are on cebe9271, so they have not re-checked this head.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Incremental re-review of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head d8131f62dad69e63c81562f2ffa4c626b676bf9c, range 1a005543b28dcf130dd2a26da4f65b5c9d7963a7..d8131f62dad69e63c81562f2ffa4c626b676bf9c (diffComplete: true, 4 files: two guides, plugins/inferrsi/skills/inferrsi/SKILL.md, tests/apps/test_session_ranking_policy.py). No formal Approve exists on this head, and no outstanding CHANGES_REQUESTED is recorded.

Blockers

  1. Execution-bounds finding is not confirmed closed. The inline note from @david6666666 on src/inferrsi/apps/cli/intake_contract.py says repetitions=0, rounds=-1 and max_minutes=-5 were offered for approval and then reported complete=true. At head, _coerce (intake_contract.py L270-277) runs task_input.field_value_problem on task-input/v1 integer and number fields, and count requires an integer of at least 1 while minutes requires 0 < value <= 7 days (src/inferrsi/apps/cli/task_input.py L267-275). reconcile_record (intake_contract.py L341-352) reopens loaded records that fail. I did not confirm that the packaged performance spec maps environment.repetitions, environment.rounds and environment.max_minutes to those types, and no test in this increment covers those three values for new answers or loaded records. Required: confirm the spec mapping and add a regression test for both paths.
  2. No test or CI evidence for this head. The increment changes the assertion at tests/apps/test_session_ranking_policy.py L171 to require {"correct": True, "dataset": "fixture-exact-v1"}. The fixture at tests/apps/test_project_optimization.py L34-38 and L56 does write that dataset label and passes --quality-benchmark fixture-exact-v1, so the expectation matches. The seed contains no run of that test on d8131f62, and no CI status for it. Required: the result of the changed test and CI on d8131f62.
  3. Carry-over from the 1a00554 review. The seeded record of my DO NOT PASS on 1a005543 is cut off before its blocker list, so I could not confirm that this increment closes every item in it. The author should map each item from that review to a commit on d8131f62.

Verified in this increment (source read at head, not run)

  • docs/guides/task-intake.md L202-214, docs/guides/optimization-workflow-unification.md L197-200 and plugins/inferrsi/skills/inferrsi/SKILL.md L144-147 describe dataset self-report, candidate_failure as FAIL, and baseline rejection as INCONCLUSIVE. This matches src/inferrsi/harness/project.py L134-138 (dataset mismatch returns quality_benchmark_mismatch), L151-157 (rejection statuses) and L177-180 (candidate_failure gives FAIL, other non-completed results give INCONCLUSIVE).
  • Non-blocking: the dataset check at project.py L135-137 runs only when settings["quality_benchmark"] is set. The docs state it without that condition. The AB/BA start requires the benchmark according to the 1a00554 review; I did not re-check that path here.

Not verified here

  • Tests were not run, and I did not confirm CI for d8131f62.
  • I reviewed the 4-file increment and source at head, not the full base..head change.
  • The PR body and the rest of the thread were not read in full, because the issue read output was not accessible from the workspace.
  • The knowledge-model policy was not re-checked for this increment. The increment does not touch the skill_library/** paths that the policy protects.

I will re-read after the author pushes or after the test and bounds evidence is posted on d8131f62.


@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw,请复审当前提交 d8131f62dad69e63c81562f2ffa4c626b676bf9c。以下结果都对应这个提交。

  • 执行边界。 从安装后的 wheel 读取性能规格并核对校验器,repetitions 和 rounds 都是 task-input/v1 的整数计数,max_minutes 是数值型分钟。提交 cebe9271 已加入两条回归路径。输入 0 次重复、−1 轮、−5 分钟时,CLI 和卡片均拒绝写入。加载含这三项的旧批准记录会挡住启动、撤销批准,改正后重新要求确认。五组新输入、旧记录和此次修改的回执断言合计 7 passed in 1.42s。打包规格 · 新输入和旧记录用例 · 回执断言
  • 全量验证。 Linux Python 3.10 与 3.11 全量 CI 均通过,每个版本都是 7,603 通过、89 跳过、1 项未选入,另有 675 个子测试通过。 本机 macOS 全量 7,453 通过、103 跳过、136 失败。按测试 ID 同干净基线逐一比较,新增和消失均为 0。本机专项 205 通过、1 个 Linux 专属用例跳过。Linux 3.10 · Linux 3.11
  • 上一轮三项意见。 1a005543 的 Linux 全量在两个 Python 版本上都只剩同一条旧断言,d8131f62 已改为核对包含数据集的完整回执。两个提交各自的模型声明检查均通过。@zengchuang-hw 已在 1a005543 正式批准。此后只改动两份指南、插件入口说明、一条测试断言,生产 Python 无变更。@david6666666 提出的 benchmark 绑定由 1a005543 实现;f30813e4 补清脚本自行报告数据集和显式拒绝的语义。新建 AB/BA 必填 benchmark,已有历史计划按保存的设置解释。之前的复审 · 四文件增量 · 前一提交声明 · 当前声明

请在当前提交记录复审结论。有可复现的剩余问题,请附输入或测试名称。

zengchuang-hw
zengchuang-hw previously approved these changes Nov 26, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS
dot, acting for zengchuang-hw.

回应本轮复审邀请。上一轮批准的 1a005543b28dcf130dd2a26da4f65b5c9d7963a7 至当前 d8131f62dad69e63c81562f2ffa4c626b676bf9c;base 51e475ad077ec88d60f9e8c561dc0415ca9855aa。

增量仅两份指南、插件说明和一条测试断言,没有生产 Python 改动。文档与实际质量结果分支一致:有评分的结果需 self-report 匹配的 dataset,不能把标签核对说成校验实际文件;显式无评分拒绝按候选或基线分别处理。更新后的断言核对完整 dataset 回执,未放宽两入口一致性。

独立取本提交的 inspect_step / _value 在本地跑了 5 个临时回执:标识匹配、错标、缺失、候选显式拒绝、基线显式拒绝,并核对了各自证据摘要。未重跑全套、安装包或设备实验。

@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123.

@amy-why-3459,想请你从 #400 的用户验收标准 角度独立复核 d8131f62。这次把性能指标、目标值和具名 benchmark 的精度门槛放进提问卡片。用户看完完整任务书后单独确认。随后如果实际准备执行的协议或质量标准变化,之前的批准会失效。请重点看用户已给的标准能否原样保留,以及 Agent 自写 gate 文件时能否绕过这次确认。

PR 描述记录了 Desktop 测试里实际问的卡片、逐项回答、改目标后再次确认的过程。工作流、回归与 Linux CI · 当前提交的数据集回执复审

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dot,代表 @amy-why-3459。回应本轮复核,检查了 d8131f62 的验收标准如何从任务书进入实际执行,基线 51e475ad。暂不批准:用户确认的质量单位在执行时没有约束数值比较。

任务书会显示用户给出的单位,但 service-reuse 启动绑定只比对质量指标、数据集、方向和阈值;评分与判定直接比较原始数值。普通 AB/BA 的冻结门槛也没保留单位。举例:用户批准固定 benchmark 的错误率 ≤ 1%,同名评分器用 0–1 小数返回 0.02(即 2%),当前判定当成 0.02 <= 1 而放行。我用该提交提取出的判定函数配合合成回执独立验证:service 的质量判断返回 true,AB/BA 的质量步骤返回 completed;未跑完整安装态 CLI 或桌面流程。

建议把单位或明确的换算规则绑定到可执行任务书、冻结门槛和评分结果。未知或不兼容的单位不能放行;如果支持百分比与小数换算,建议两种入口各加一组经过 prepare → 用户确认 → start 的测试:0.02 必须拒绝,0.005 应通过。相对基线容忍值也要和基线、候选分数用同一量纲,别把百分点当成相对百分比。

另核对了 test_self_written_gate_keeps_campaign_blocked 的正常 CLI 路径:它覆盖 Agent 自写 gate、用户尚未选择时不能启动;上述单位问题是在用户确实批准后发生,和绕过批准是两件事。

@amy-why-3459

Copy link
Copy Markdown
Collaborator

@Dong1017 @amy-why-3459

Bind the AB/BA numeric gate before approval and compare the service quality scale with the task brief. Normalize explicitly labelled proportions and percentages before applying absolute gates or additive baseline tolerances. Reject incompatible receipts and retain the raw evidence for replay.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Codex, acting for @amy-why-3459 at the user's request. Supplemental review; no formal vote.

PR review verdict — DO NOT PASS

Reviewed base 51e475ad077ec88d60f9e8c561dc0415ca9855aa through head d8131f62dad69e63c81562f2ffa4c626b676bf9c (all 38 changed files). This adds a newly reproduced stale-reply defect and full CLI lifecycle evidence for the existing quality-unit finding. The two inline comments identify the fixes and regression coverage.

Architecture, verification and remaining evidence

The Apps-owned intake/approval and Harness-owned execution split is reasonable, subject to carrying the complete acceptance contract across that boundary. Quality units and question-instance identity currently fail that contract.

Local verification: Python 3.12.13, pytest 9.1.1, PyYAML 6.0.3; CPU-only synthetic scripts/services. Three review probes reproduced the defects: both AB/BA and service-reuse ran prepare → synthetic user approval → start → round → final; a separate CLI sequence delivered an old field reply after its dependency changed and the question was reissued. These are synthetic controls, not model-performance or native Desktop acceptance evidence.

The selected repository tests were:

python -m pytest tests/apps/test_task_intake.py tests/apps/test_project_optimization.py tests/apps/test_project_service_reuse.py tests/apps/test_session_ranking_policy.py -rs

The initial run had 122 passed, 94 failed: 93 failures hit the system Git 2.34.1's unsupported ls-tree --format, and one subprocess could not import the checkout. After supplying Git 2.47.3 and the checkout's src/root via PYTHONPATH, the same selection with --lf -rs reported 94 passed, 55 deselected. Thus all 216 selected test IDs have passing results across the two runs; the initial failure is not relabeled green. No tracked PR files were changed and no local full-suite run was performed.

Existing CI: Ready run 45788580340 is associated with this head; its checkout is merge commit 31d0329c4ffa6c8dfb1ed1aeca1bfcb7d861e694. Each Linux Python 3.10/3.11 job reports 7,603 passed, 89 skipped, 1 deselected, 675 passing subtests. The deselected architecture-anchor test passes separately. Installed-package, dashboard-browser and advisory Windows/macOS jobs succeeded. Optional dependency/platform/namespace/external-fixture skips remain explicit.

After fixing the defects, please provide complete repository unit-test evidence for the updated head across the required CI matrix: commands, environment versions, result counts and CI/log links. Account for remaining skipped or unavailable tests with execution evidence or an explicit maintainer disposition. Existing passing jobs need no redundant rerun on this unchanged revision.

Optional redundancy cleanup: set_primary_task() has no callers, tests, CLI route, registry entry or documented API consumer in this revision. It rejects changing the task and only rewrites its source. Consider removing it until there is a concrete consumer; this is not a blocker.

Comment on lines +163 to +165
plan["evaluation_settings"]["quality_bound"] = {
name: conditions["protocol.quality_" + name]
for name in ("metric", "comparator", "limit")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[P1] Preserve and validate the approved quality unit

This freezes only metric/comparator/limit, dropping protocol.quality_unit. The service-reuse launch mapping also omits it, and both assessors compare raw scores with the numeric threshold.

I reproduced the real CLI lifecycle in both modes: prepare → synthetic user approval → start → round → final. With a quality gate of ≤ 1%, the matching-dataset scorer reported baseline 0.005 and candidate 0.02 in fractional units. The candidate was retained and both round and final returned PASS, although 0.02 = 2%. AB/BA froze {"metric":"error_rate","comparator":"at_most","limit":1.0}.

This violates the PR's claim that the approved quantitative quality inequality is enforced. Please bind the approved unit and scorer output unit into the executable contract, then convert supported units or reject incompatible/unknown ones. Add regression coverage for both entry points: 0.02 fraction must fail a ≤ 1% gate and 0.005 must pass. Baseline-relative tolerance also needs consistent units, distinguishing percentage points from relative percentages. This extends the existing unit finding with full CLI execution evidence.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Codex, acting for @jiangkuaixue123. Fixed in 7407ab71 with lifecycle coverage on a8b61998. Preparation binds the approved unit and the service configuration must agree. Both evaluators convert explicitly labelled fractions to percent and reject missing or incompatible units. The 1% gate rejects 0.02 and accepts 0.005; service baseline tolerances use an additive difference in the approved unit. The two portable prepare → confirm → start regressions passed locally. The service lifecycle test also checks selection and independent final on Linux CI. AB/BA cases · Service cases · Service lifecycle.

options = [{"value": item["value"], "hint": f"from {item['source']}"}
for item in entry["candidates"]]
return {
"id": _QUESTION + field["path"],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[P2] Bind field-question IDs to the issued dependency snapshot

Every instance uses q:<field>. Re-evaluation overwrites open_questions with the latest snapshot, so a delayed reply carrying an old ID selects the new question. The comparison at lines 743–747 then compares the new snapshot with itself.

Reproduced through the CLI (use a fresh <record>):

inferrsi task intake evaluate --task task-performance --record <record> --set acceptance.reference=issue-606 --set acceptance.metric_key=p95_ttft --json
# Save the emitted q:acceptance.min_improvement_pct ID.
inferrsi task intake evaluate --record <record> --source issue --set acceptance.reference=issue-606 --set acceptance.metric_key=p99_ttft --json
# Deliver the reply to the OLD P95 question:
inferrsi task intake answer --record <record> --question q:acceptance.min_improvement_pct --value 5 --json

The last command exits 0 and records 5 under P99 instead of returning stale_answer. The final brief still needs approval, but the field record now attributes an answer to a context the user did not answer. This violates the documented stale-reply guarantee.

Please include the record and relevant dependency/option snapshot (or a per-question generation) in the question token and require the exact issued token on reply. Preserve unaffected questions in a batch. Add a regression that reissues the question between changing its dependency and delivering the delayed reply; the existing stale-answer tests do not cover this sequence.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Codex, acting for @jiangkuaixue123. Fixed in a8b61998. Each token binds the record, issuance revision, field, dependencies, options and wording. The installed CLI reproduced the P95→P99 reissue: the old reply returned stale_answer and left the record byte-identical, the sibling token remained usable and the newly issued gain question accepted 5. Tests cover changes to conflict options, a different record and previously saved field-only cards. Reissue, siblings, legacy and cross-record tests.

Keep unaffected batch tokens across edits, reissue changed choices and reject late or legacy open tokens before writing. Preserve provenance for existing settled answers. Exercise the reviewed percent and fraction cases through independent final evaluation.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author)
Signed-off-by: jiangkuaixue123 <[email protected]>

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Incremental re-review of head a8b619985bbb86fe16906c071e3ced83eec85b93, range d8131f62dad69e63c81562f2ffa4c626b676bf9c..a8b619985bbb86fe16906c071e3ced83eec85b93. Base 51e475ad077ec88d60f9e8c561dc0415ca9855aa. pr/meta.json reports diffComplete: true, but I could not read pr/diff.patch (46.5 KB, one line): the read tool returned it outside the workspace, so I have not seen the hunks of this increment. No formal Approve exists on this head and no outstanding CHANGES_REQUESTED is recorded. The PASS from zengchuang-hw on 1a005543 and the PASS dismissed on d8131f62 do not cover this head.

Blockers

  1. Increment not reviewed. I could not read the seeded diff for d8131f62..a8b61998. Required: re-seed the increment in a form the reviewer can read in full (or split it), and I will re-read it after that.
  2. No test or CI evidence for a8b61998. I could not read the PR body or comments for this head either. Required: post focused test results for the intake and service-reuse paths on a8b61998, the CI status for that head, and the full-suite result or reproduced failing test IDs on that head.
  3. Execution-bounds finding from d8131f62 is not confirmed closed. At head, _coerce (src/inferrsi/apps/cli/intake_contract.py L272-279) runs task_input.field_value_problem on mapped integer and number fields. count requires an integer of at least 1 and minutes requires 0 < value <= 7 days (src/inferrsi/apps/cli/task_input.py L267-275). reconcile_record (intake_contract.py L342-359) reopens loaded records that fail. I did not open the packaged performance spec, so I could not confirm that environment.repetitions, environment.rounds and environment.max_minutes map to those types. I also found no regression test in what I could read for 0, -1 and -5 on new answers and on loaded records. Required: the spec mapping confirmed, plus regression tests for both paths.

Checked at head (source read, not run)

  • Quality-unit finding (@amy-why-3459, d8131f62): the service-reuse launch now freezes protocol.quality_unit (src/inferrsi/apps/cli/campaign_intake.py L47), and _conflicts (L86-107) compares the launch fields. Both assessors convert units through quality_score_in_unit (src/inferrsi/harness/project.py L119-133, applied on the AB/BA path at L170; src/inferrsi/harness/project_service.py L351 for service reuse). Unspecified or incompatible units raise quality_unit_mismatch. The AB/BA threshold, comparator and unit come from the approved brief through quality_bound (campaign_intake.py L139-142). The 0.02 versus 1% reproduction was not re-run.
  • Stale-reply finding (@amy-why-3459, d8131f62): the question ID digests record_id, the issued revision and the card with its dependency snapshot (intake_contract.py L486-503). answer() recomputes the ID from the current record (L746) and rejects a mismatch as stale_answer (L747-749). Not re-run.
  • AB/BA benchmark identity: a scored quality result whose dataset differs from quality_benchmark returns quality_benchmark_mismatch (src/inferrsi/harness/project.py L154-156).

Not verified here

  • The full diff of d8131f62..a8b61998 (blocker 1).
  • Tests, CI and the full suite on a8b61998: none run, and no readable evidence in the PR body (blocker 2).
  • The packaged performance spec mapping (blocker 3).
  • Knowledge-model policy: I cannot see whether this increment touches protected src/inferrsi/knowledge/data/skill_library/** paths. If it does, the policy check must be re-run on this head.
  • No re-review from @amy-why-3459 or @zengchuang-hw covers a8b61998.

No approval is given on this head. I will re-read after the author pushes or once the increment and test evidence are seeded.


…pening

Assert that environment.repetitions, rounds and max_minutes map to the
task-input/v1 count/minutes bounds, and that a saved record holding 0, -1
or -5 reopens that field and rejects the same value again on answer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dot,代表 @amy-why-3459。复核 e976c1d(base 51e475ad),回应任务书验收复核。先前的单位换算和过期卡片已各有明确回归;这一版新增的执行值边界测试覆盖了打包映射和旧记录重开。还有一个需要补的闸门:未确定的质量单位仍能被写入并批准,而执行端不可能接受它。

用提交中的性能 intake 数据与原函数做了合成复核:把质量单位设为文字 unknown,set_fields 接收,evaluate 生成 errors <= 1 unknown,答复 approve 后返回 complete=true。同一冻结单位在 AB/BA inspect_step 中让本来合格的 0.005 fraction 返回 quality_unit_mismatch;就连回执也填 unknown 仍会被拒绝。campaign_intake.start() 直接把任务书单位冻结进 AB/BA plan,没有在准备阶段检查这类占位符;service-reuse 的协议验证也只检查 unit 是非空字符串,判分才调用同一个拒绝 unknown / unspecified / n/a 的函数。这是确定不能被满足的已批准门槛,不是实际工作负载失败;合成复核没有启动服务或模型。

建议 intake 与启动前校验复用判分的保留值规则:把这些占位符视为待补或明确拒绝,保留合法自定义单位。补一条 CLI 回归:--value unknown 或等效导入不能生成可批准、可启动的任务书,改成 % 后重新批准可启动,并保留 0.005 fraction 的正向对照。当前不批准。

jiangkuaixue123 and others added 2 commits November 26, 2026 21:21
Share the scoring rule for unspecified quality units (empty, unknown,
unspecified, n/a) with intake coercion and service-reuse validation, so a
placeholder unit can no longer be set, approved or frozen into a plan. A
saved record holding one reopens the field for a real answer. Cover
unknown -> % re-approval through a scored 0.005 fraction PASS, and the
service-reuse pre-start rejection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drop docstrings that restate the function signature and shorten the module
and gate docstrings to the invariants a reader cannot see from the code:
proposals never freeze a gate, unknown answers are not re-asked, late replies
change nothing, and the retained record is the one the gate evaluated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

@Dong1017 @zengchuang-hw @david6666666 @amy-why-3459 请复审 / please re-review head 9541e173.

(Posted by Claude Code on behalf of @jiangkuaixue123.)

New since a8b61998:

  • e976c1d1 (tests only). Regressions for environment.repetitions / rounds / max_minutes = 0, -1, -5, covering both the new-answer path and the saved-record reopen path. The packaged spec maps them to integer|number / task-input/v1 / count|minutes. Addresses @Dong1017's execution-bounds blocker.
  • abe02d32. Intake coercion and the service-reuse pre-start validation now share the scorer's placeholder-unit rule (empty / unknown / unspecified / n/a). A placeholder unit can no longer be set, approved or frozen into an AB/BA plan, and a saved record holding one reopens the field. A CLI regression covers unknown → rejected, % → re-approved and startable, plus a scored 0.005 fraction PASS control. Addresses @amy-why-3459's unit gate.
  • 9541e173. Removed redundant explanatory docstrings in intake (13+/43−), per @david6666666's conciseness point. Comments that state non-obvious invariants are kept.

Evidence:

  • Linux CI full-check 3.10 and 3.11 passed on e976c1d1. CI on 9541e173 is running.
  • Local full suite, Python 3.11, pytest -rs same as CI. The failing-test ID set is identical before and after these commits: 0 added, 0 removed. These are host-only failures, e.g. Git 2.43 < 2.45 and no bubblewrap. Passed count is +4 from the new tests.
  • Incremental diff: git diff d8131f62..9541e173, or view the three commits above separately; each is small.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review (PTAL) of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head 9541e1738e4109fc3e4b1b3403e1c82ebef3b36d. The author's ask covers e976c1d1 (tests), abe02d32 (placeholder-unit rule) and 9541e173 (docstring removal), on top of a8b61998, which my last formal review (a8b61998) could not read.

Why no PASS

  • pr/meta.json reports diffComplete: false. The seeded pr/diff.patch is one 154.9 KB line, and my read tool returned it out of workspace, so I have not seen the hunks of this range. Under the review rules I cannot PASS a change whose full diff I have not read.
  • prior-reviews.md: no formal APPROVED on 9541e173. The PASS from zengchuang-hw on 1a005543 was dismissed and does not cover this head. The COMMENT from amy-why-3459 on e976c1d1 asks for a unit gate that abe02d32 claims to close; that is not yet checked here.

Blockers

  1. Unread increment. The range since d8131f62 spans 7407ab71, a8b61998, e976c1d1, abe02d32 and 9541e173. Required: re-seed d8131f62..9541e173 (or base..head) with diffComplete: true, split into readable parts if needed. I will re-read after that.
  2. Unit-placeholder fix not verified. abe02d32 says intake coercion, approval, frozen AB/BA plans and service pre-start validation now reject the placeholder units (empty, unknown, unspecified, n/a), and that a saved record holding one reopens the field. I have not read those hunks, so the claim stays unverified. Required: a regression that runs --value unknown through prepare, confirm and start, plus the % and 0.005 fraction controls, shown on 9541e173.
  3. Test and CI evidence for 9541e173. The thread says Linux full-check 3.10 and 3.11 passed on e976c1d1 and that 9541e173 was still running. No run link or focused-test result for either head is recorded in the PR body or thread. Required: the green Linux run for 9541e173 and the focused result for the e976c1d1 bounds regressions and the abe02d32 unit regressions.

Verified at head (read, not run)

  • src/inferrsi/knowledge/data/skill_library/tasks/task-performance/intake.json L236-251 and L300-306: environment.repetitions (integer), environment.max_minutes (number) and environment.rounds (integer) map to task-input/v1. This is the mapping the earlier execution-bounds blocker asked me to confirm.
  • src/inferrsi/harness/project_service.py L341-363: quality_score rejects a dataset or scorer mismatch and a missing numeric score or sample count. quality_passed uses the sign of the direction, and in baseline-comparison mode it checks score - reference >= -tolerance as an additive difference. This matches the approval wording described in the thread.

Claimed fixed, not verified by me

  • Amy's P1 quality-unit finding (7407ab71) and P2 stale field-question IDs (a8b61998).
  • David's inline findings on P95/P99 conflict resolution and on execution bounds.
  • The AB/BA benchmark identity check (1a005543), which was David's highest-priority finding on 0fb75023.
  • Execution bounds for repetitions, rounds and max_minutes (e976c1d1). The mapping above is confirmed, but the coercion and the new regressions are not.

Not verified here: the full test suite, the CI status of any head in this range, the installed wheel, the Desktop replay and any campaign or device run. Nothing here tests the Day-0 path.

Dong-bot will re-read after the author pushes or after a complete diff for d8131f62..9541e173 is seeded. No change to the #606 decision that performance campaign start is gated by default.


@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dot,代表 @amy-why-3459。回应复审:9541e173 已解决我上轮的质量单位占位符问题。我用当前提交的 intake/判分函数和性能 fixture 单独确认:文字 unknown、UNSPECIFIED、N/A 不可写入,留在已批准旧记录中会重开问题;空字符串也不会获得批准。合法 % 可批准,0.005 fraction 换算为 0.5%,0.02 为 2%。读到实际 CLI 回归覆盖了旧记录禁止启动、修正单位重新批准并得到 PASS;旧窗口的过期卡回归仍在,服务协议验证共用同一占位符规则。本轮没有独立重跑已安装 CLI 或 Desktop。

当前 Ready CI 已通过。不过 declarations 仍报 Missing, invalid or stale knowledge author declaration;PR 正文的 head_sha 还指向 e976c1d1。请按实际作者信息更新到当前提交,并确认门禁重跑成功。这个前置条件未通过,所以本条不是 Approve。

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS
dot, acting for zengchuang-hw.

回应复审邀请。从我上次批准的 d8131f62复核至 9541e1738e4109fc3e4b1b3403e1c82ebef3b36d,base 51e475ad077ec88d60f9e8c561dc0415ca9855aa。

  • 评分单位校验区分占位、未知换算和明确的比例单位。AB/BA 冻结 quality bound 时录入 unit;service-reuse 在准备时对照同一字段,并在读取评分时换算至已批准单位。
  • 问题 ID绑定记录及发卡快照;提交只接受仍打开且与当前依赖一致的题。执行数值继续由 task-input 校验,回归覆盖旧记录与新答案。
  • 本地运行本提交的提取函数,验证 0.005 fraction → 0.5%、四种占位拒绝,以及无关修订保留同批卡、依赖变化使旧 ID 失效。静态核对了二条 campaign 路径;未独立重跑完整 CLI、wheel、桌面或设备。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants