Skip to content

fix(apps): use the shared Dashboard for service-reuse campaigns - #758

Merged
jiangkuaixue123 merged 7 commits into
mainfrom
codex/service-reuse-dashboard-styles
Nov 27, 2026
Merged

jiangkuaixue123 merged 7 commits into
mainfrom
codex/service-reuse-dashboard-styles

Conversation

@jiangkuaixue123

@jiangkuaixue123 jiangkuaixue123 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #757

  • Accepted scope and delegation — Use the standard Dashboard for live and offline service-reuse campaigns, including the standard sections and interactions. Owner direction and confirmed Dashboard scope.
  • Delivery — Project the service-reuse control records into the shared Dashboard. The common page provides navigation, per-objective charts, workflow, round decisions, candidate and evidence review, optimization history, knowledge, language and filters, and local Markdown feedback. Live polling retains selections and expanded details. The offline file embeds its assets. The original server-rendered service summary remains available as the fallback with scripts disabled.
  • Record integrity — Preserve outcome, reference epoch, attempt and retry identity, objective units, and service assessment evidence. Keep different reference epochs in different series. Leave missing measurements, durations and captures explicit. The monitor remains read-only.

Anchors touched: A6 (read-only evidence availability under #757)

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "b9ffdaf41886c999a2d0a3cd3e8697ead1bf4e7c",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    }
  ]
}

Changed artifacts and evidence

  • The Apps projection maps service objectives, stage results, knowledge deliveries and assessment receipts onto the shared browser components. The guide and the generated profile example track the shared frontend.

  • Browser regressions cover live HTTP and offline file rendering at 320 px. They check applied styles, all primary sections, objective and stage review, language and filters, navigation to knowledge, local feedback download, and preservation of the selected view during live polling.

  • A re-render of the existing deployment's recorded snapshot in local Chromium rendered at 320 px and 1440 px with no page errors or horizontal page overflow. Its unrecorded objective values remain absent.

  • The projection regression covers zero versus missing values and rejects a line joining different reference epochs.

  • The review follow-up shows the recorded current independent final identity and opens that exact attempt's evidence, including when a historical final has the same verdict. An unavailable retrieval capture retains its recorded round and locator and shows an explicit unavailable state without a result count.

  • The Manager observer now returns validated capture data or an unavailable entry in a single read. The Apps projection carries the original locator and round to both UI surfaces. Campaign execution, recovery and the ordinary session-record reader retain strict validation.

  • Native service campaigns are registered via the CLI in the new browser regression. The test checks an intact capture, then removes and corrupts it. Live polling, a fresh live request and offline export all preserve the unavailable locator. The normal reader and recovery command reject the damaged record. Older native captures show retained contexts where the receipt has no returned-item count.

  • The branch incorporates main through Unify knowledge discovery and delivery through find and read #709 and policy: admit Gemini 4 Neon at xhigh #755. Manager keeps both the scoped knowledge entry point and the Dashboard observer. The native test now exercises scoped Find → Read and verifies that the shared projection can read both receipt formats.

Checks and dependencies

  • Ruff and Git whitespace checks passed. The current head passed 311 local Dashboard, profile-example, service knowledge and architecture tests plus 43 subtests.
  • The local macOS full-suite attempt stopped at the DSH SSH integration test. A broader service run also encountered service process-stop permissions failures. The DSH test and a representative service failure both reproduced on the exact base under the same local environment.
  • The current head's Chromium job passed all 74 cases, including live and offline native capture loading, current-final evidence navigation, and mobile styles and interactions.
  • The current head's Linux 3.10 and Linux 3.11 full suites each passed 7,867 tests and 677 subtests, with 93 skips and one deselection. All jobs in the Ready run passed.

Remaining work and Issue closure

Independent review and acceptance by @jiangkuaixue123 remain pending.

Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
@jiangkuaixue123 jiangkuaixue123 added the area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters label Nov 27, 2026
@jiangkuaixue123
jiangkuaixue123 marked this pull request as draft November 27, 2026 05:03
Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
@jiangkuaixue123 jiangkuaixue123 changed the title fix(apps): style the service-reuse dashboard fix(apps): use the shared Dashboard for service-reuse campaigns Nov 27, 2026
@jiangkuaixue123
jiangkuaixue123 marked this pull request as ready for review November 27, 2026 05:09
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@zengchuang-hw @Dong1017 Could you independently review PR #758 at head 2be5ed0e1fe41ed8ab226a5e3ccf1f31318e0b28? The accepted scope is the shared Dashboard for live and offline service-reuse campaigns in #757. Please check the record projection, evidence and reference-epoch handling, and the shared browser behavior. The Chromium and installed-package checks have passed. The Linux full suites are still running. Please submit a formal GitHub review with your findings for this revision.

@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).

Reviewed base 477446f and head 2be5ed0. This is a first review on this head (no prior formal review on it), against the full PR diff.

Why not PASS yet (evidence, not a defect I found)

  • The seeded pr/diff.patch (68 KB, one line) could not be read in this session. I therefore could not check the PR's changed lines against the claims in the body, and I will not PASS a revision whose diff I have not read.
  • Per the thread and body, the Linux full suites are still running. Checks needed for merge are not complete.
  • The shared browser and frontend behavior (live polling, offline file, 320 px, scripts-disabled fallback), the new tests and the guide/profile example were not verified by me.

Verified on the head (read from src/, not from the diff)

  • src/inferrsi/apps/views/dashboard_service.py L151 and L174: the native comparison signature is ("service_reuse", epoch) only for integer epochs, and it is popped before the view is serialized.
  • src/inferrsi/apps/views/dashboard_experiments.py L207-214 and L271-275: a point with no native signature gets "native comparison evidence incomplete" and is kept out of series. The series key includes the signature, so different reference epochs land in different series.
  • src/inferrsi/apps/views/dashboard_service.py L95-104: an objective with no value stays listed with value: None and is not plotted, so missing measurements remain explicit.
  • src/inferrsi/apps/views/dashboard_data.py L45-51: _number returns 0.0 for zero and None for missing, boolean or non-finite values, so zero is not conflated with missing.

Optional follow-up (non-blocking; please confirm intent)

  • src/inferrsi/apps/views/dashboard_service.py L93: metric.get("value", measured.get(name)) returns None when an assessed metric carries an explicit "value": null even if a measurement was recorded. Please confirm the assessment never writes a null value next to a recorded measurement.

Next step

  • I will re-read after the author pushes, and I will re-check the diff and the Linux suite results at that point. If the diff is readable and the browser and test evidence is in hand, I will post the verdict then.

@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@Dong1017 Thanks. Here is a file-by-file diff route for the current head 2be5ed0e1fe41ed8ab226a5e3ccf1f31318e0b28 against base 477446f6d675bb47b4912bb52ae04e0cb3fb4b3e. I verified the GitHub files endpoint returns a multiline patch per file. The --jq below prints those lines as text.

gh api 'repos/InferMatrixLab/InferRSI/pulls/758/files?per_page=1' --paginate \
  --jq '.[] | .filename, .patch'

For smaller reads, set &page=N on that endpoint and omit --paginate. The GitHub Files changed view and exact base-to-head comparison also show the diff.

  • Chromium passed on this revision. Its retained JUnit artifact includes the live and offline cases. The local no-script check also exercised the unchanged three-second live fallback and the static offline fallback. The two Linux full jobs are still running in the same Ready run.
  • For the optional null question, the service evaluator rejects a non-finite sample or aggregate. It copies the measured aggregate into the assessment value. A baseline can omit the assessment metric and retain the measured value, which is the fallback exercised by the projection regression.

Please use these reads for your re-review of this head when the Linux results are available.

@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@Bounty-hunter Could you independently review PR #758 at head 2be5ed0e1fe41ed8ab226a5e3ccf1f31318e0b28? Your earlier service-reuse review is relevant to the new Dashboard projection. Please check how the shared page interprets retained attempts, objectives, reference epochs and evidence. The file-wise diff and Chromium evidence are available. The Linux full suites are still running.

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

Responding to the review request. First independent review of 477446f6d675bb47b4912bb52ae04e0cb3fb4b3e…2be5ed0e1fe41ed8ab226a5e3ccf1f31318e0b28 against #757.

Blocking: the shared Dashboard loses the identity of the independent final it summarizes. The Harness summary exposes both current_final_attempt_id and the retained final_attempts. The old render explicitly showed the current attempt ID. The new shared summary shows only the verdict. It neither identifies nor links to the attempt that produced it, and the primary scripted view bypasses the old render in live and offline mode. With two retained finals with the same verdict (permitted by continuation), a reader cannot tell from the summary which receipt supports the stated final. This regresses #757’s requirement to preserve attempt identity and independent final evidence. Show the recorded current final attempt ID, link it to its own evidence/attempt view, and cover two retained finals plus no current final in the shared-view regression.

I traced the 14-file diff, the live/offline path, reference-epoch grouping and attempt-keyed rendering. I ran the exact new summary function in isolation with two same-verdict final attempts: it emitted “Independent final: FAIL” and no attempt ID. I did not rerun Chromium, an installed wheel, a live campaign or CI.

@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 InferRSI PR review.

Found one evidence-availability gap in the shared knowledge projection for #757.

try:
record = service_io.read(service_io.safe_path(root, reference["path"]))
except (ValueError, OSError):
continue # A retained record can disappear during a live refresh.

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 InferRSI PR review.

If the retained capture becomes unreadable between the Harness read and this second read, continue erases its round and locator. I ran service_inputs() with a recorded delivered_context and a missing file; it produced the same projection as a session that never captured anything. #757 asks for an explicit unavailable state. Please preserve an unavailable entry keyed to the recorded round/path (without claiming zero returns), and add a regression for this read failure.

Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@zengchuang-hw @david6666666 @Dong1017 @Bounty-hunter Please independently review the updated head bf890e8a73711883ead58322649d2a27d94c2df1. The incremental diff contains both review fixes. The file-by-file diff route can also be used with the current head.

  • Current-final finding — The overview shows the recorded attempt ID and opens that exact attempt's evidence. Both Chromium entry points passed with two finals of the same verdict and after the current-final pointer was cleared.
  • Knowledge availability finding — The projection retains a known round and locator when its file cannot be read. The knowledge and round-decision views show an unavailable state with no result count. The projection and both Chromium entry points passed.
  • Both Linux full suites passed with 7,710 tests each on the preceding head. The Ready run on the current head has started.

Please bind your formal GitHub review to the current head so that the result can be verified against these changes.

Dong1017
Dong1017 previously approved these changes Nov 27, 2026

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

LGTM

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

PR review verdict — PASS
Reviewed base 477446f and head bf890e8.
Incremental range reviewed: 2be5ed0..bf890e8 (pr/meta.json diffComplete: true; 7 files in pr/diff.patch).

Prior findings on 2be5ed0, status on bf890e8:

  • zengchuang-hw (blocking, current final attempt identity): resolved. src/inferrsi/apps/views/template.html L1202-1219 (renderServiceSummary) now shows summary.current_final_attempt_id (set at src/inferrsi/harness/manager/_state.py L1283) and adds an "Open independent final evidence" button that calls knowledgeView.openRun on the single candidate row with run_id === finalId and service_attempt.kind === 'final'. The new test test_service_reuse_summary_links_the_current_final_evidence (tests/apps/dashboard/test_dashboard_experiments_browser.py, parametrized live/offline) covers two retained finals with the same verdict, then no current final ("Not recorded", no button).
  • david6666666 (inline, retained capture unreadable): resolved. src/inferrsi/apps/views/dashboard_service.py L31-36 keeps {round, path, state: "unavailable"} instead of dropping the entry. knowledge_view.html L189-192 and round_decision_view.html L59-63 render "Retrieval capture is unavailable." without a zero-return claim. Unit test test_service_knowledge_preserves_a_recorded_capture_when_its_file_is_unavailable covers missing, absent and recorded cases.
  • Dong1017 DO NOT PASS on 2be5ed0 (diff not readable, shared frontend unverified): the diff is now complete and readable. The browser test adds unavailable-state checks in knowledge navigation and round decisions.

Verified by reading the head:

  • service_inputs() with empty state does not raise (the state["attempts"] access only runs inside the diagnoses comprehension).
  • The new openRun(matches[0]) call follows the existing pattern at template.html L1474 (openRun(row)).
  • Both knowledge_view.html (render, backLinks) and round_decision_view.html read managed_retrievals and return before touching items when state is unavailable.

Formal review state: prior-reviews.md shows no APPROVED review on bf890e8. The earlier formal reviews are COMMENTED on 2be5ed0. This Approve is one vote; the ruleset still needs two qualifying approvals.

Not verified here:

  • I did not run the Python or Playwright tests; the browser assertions are unexecuted.
  • No check or CI status for bf890e8 is seeded, so this PASS does not rely on CI.
  • I did not read dashboard.py load_dashboard / dashboard_snapshot, so I did not confirm the live test's monkeypatch path end to end.

Non-blocking follow-up (optional): in round_decision_view.html L116-137, a managed retrieval with no recorded round only appears under "Round not recorded" when some other record is also unassigned. The knowledge navigation without a round filter still shows it. Not a blocker for this change.

Later pushes are not auto re-reviewed after this PASS; mention @Dong1017 for a re-check.


@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).

Reviewed base 477446f and head bf890e8 (re-review of the current head; pr/meta.json has diffComplete: true). Re-read by @jiangkuaixue123's request in comment 7211004133.

Blockers

  1. Knowledge-authorship gate is not cleared. The body's knowledge-model-policy block sets human_only: false and declares Codex with model_id: "unknown" and effort: "unknown". Under the repository decisions for the same declaration type (#718: 7193368274, 7193659761, 7194057512, 8129145), a Codex declaration with model and effort unknown is not granted an exception. It needs the owner's by-hand knowledge-policy approval on the exact head, or re-authoring with an admitted model and effort (as #728 was admitted). Dong-bot does not grant that exception here, and the earlier approval on this head did not account for it. Clear this gate, then re-review.

  2. Required checks are not complete on this head. The Linux full suites on bf890e8a (Ready run 45948167652) were still running at the time of the request. The only completed Linux full-suite evidence is on the preceding head 2be5ed0e (run 45944083902). Chromium and installed-package checks are reported as passing on this head. Post the Linux results on bf890e8a before PASS.

Findings from the prior reviews, status on bf890e8

  • zengchuang-hw, blocking: current final attempt identity. Resolved in code. src/inferrsi/harness/manager/_state.py L1282-1284 exposes current_final_attempt_id and final_attempts. src/inferrsi/apps/views/template.html L1202-1219 (renderServiceSummary) shows the recorded ID and an "Open independent final evidence" button only when exactly one candidate row has run_id === finalId and service_attempt.kind === 'final'. It shows "Not recorded" otherwise.
  • david6666666, inline: retained capture unreadable. Resolved in code. src/inferrsi/apps/views/dashboard_service.py L28-36 keeps {round, path, state: "unavailable"} for a failed read instead of continue. I did not re-read the rendering in knowledge_view.html or round_decision_view.html in this session.

What I verified

  • Read src/inferrsi/harness/manager/_state.py, src/inferrsi/apps/views/template.html and src/inferrsi/apps/views/dashboard_service.py at bf890e8a with read_repo_file, and checked each fix above against its finding.
  • Governing scope: #757 names @jiangkuaixue123 as requester, accountable owner and goal-acceptance owner. Dong1017 is not the author or a material contributor, so this review is an eligible independent review.

Not verified here

  • pr/diff.patch (75 KB, single line) was written outside the workspace by the file tool, so I could not read it in full. I did not check the 7 incremental files line by line. My checks cover only the three code paths above.
  • Tests were not run. The Linux full suites on this head have no result yet.
  • My earlier APPROVED review on bf890e8a (pullrequestreview-6084064923) is still on GitHub. A COMMENT review does not withdraw it, and I cannot withdraw it with my tools. Treat it as superseded by this verdict until blocker 1 and blocker 2 clear.

I will re-read after the author pushes, or when the knowledge-policy approval and the Linux results on bf890e8a are posted.


@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@Dong1017 I verified the knowledge-policy status on the current head bf890e8a73711883ead58322649d2a27d94c2df1. GitHub reports the required knowledge-model-policy status as success with description Not applicable. The changed paths are Apps views, Dashboard docs and their tests. These paths fall outside the protected scope. The policy check on this head confirms that the PR already clears the required status.

The Linux full jobs are still running. I will post their exact-head results once available. The optional case of a capture with no recorded round is available through Knowledge trace with the All rounds filter.

@Dong1017

Copy link
Copy Markdown
Collaborator

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

Still DO NOT PASS on bf890e8a. The knowledge-authorship blocker is withdrawn. The Linux full-suite results for this head are still missing.

Dong-bot (authorized delegate) re-checked this head. This is a comment, not a new formal verdict. The formal review on this head remains DO NOT PASS from 05:57Z, and the 05:54Z Approve is not clearance.

Details
  • Withdrawn: knowledge-authorship gate. docs/knowledge-model-policy.md (Rollout and scope, lines 31-47) limits the protected scope to the skill library, the listed knowledge docs, and the Knowledge catalog and operations implementations. Other PRs receive Not applicable. The Apps views, Dashboard docs and tests in this PR fall outside that scope. This relies on the reported knowledge-model-policy status. I did not see the status or the full changed-path list.
  • Open: Linux full suites on bf890e8a (run 45948167652). Post the exact-head results before any PASS. The last Linux full-suite pass is on 2be5ed0e (run 45944083902).
  • Resolved in code: current final attempt identity (src/inferrsi/harness/manager/_state.py L1282-1284, src/inferrsi/apps/views/template.html L1202-1219) and the unavailable retrieval capture (src/inferrsi/apps/views/dashboard_service.py L32-36, src/inferrsi/apps/views/knowledge_view.html L189-192).
  • Not verified: pr/diff.patch could not be opened in this session, so the diff has not been read in full. No tests were run.
  • Next: I will re-read after the author pushes, or when the Linux results are posted. PASS needs an Approve with those results on this head.

@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 InferRSI PR review.

The exact current-final link is fixed. The read-only Dashboard still has an earlier failure path for a registered capture that is already unavailable.

try:
record = service_io.read(service_io.safe_path(root, locator["path"]))
except (ValueError, OSError):
queries.append({**locator, "state": "unavailable"})

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 InferRSI PR review.

This branch catches a failure on the second read only. On the normal live and offline path, load_dashboard() first calls read_session_records(), and the read-only Manager loader opens every recorded context before returning. If a registered receipt is missing or malformed at snapshot start, this row is never built: live refresh returns 503 and offline export cannot build its snapshot. The browser fixture injects an already projected row. Please add a real live/offline regression using a native campaign with one intact registered capture, then remove that file and show its round/path as unavailable without inventing a count. Keep execution and recovery validation strict. This is a pinned source-path check, not a local browser run.

…ilable

Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
@jiangkuaixue123 jiangkuaixue123 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 27, 2026
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@david6666666 @Dong1017 @zengchuang-hw @Bounty-hunter Please independently review the current head f794fcb2a5f0a13217c3c0e7088568d295b92b65. The incremental diff fixes the earlier Manager-loader failure. The read-only observer marks missing or malformed registered knowledge receipts as unavailable during the first read. It supplies the same capture read to Apps. Execution, recovery and the ordinary session reader keep their strict checks.

Local Chromium exercised actual CLI-created service campaigns without substituting the Dashboard loader. It opened a healthy capture, removed and corrupted the registered file, and verified the locator and unavailable state in live polling, fresh live loads and offline exports. Recovery and the strict reader rejected the damaged input. The exact current-final evidence tests still pass.

The preceding head's Linux 3.10 and 3.11 full jobs both passed with 7,711 tests and 677 subtests each. The new exact-head checks have been triggered. I will post their results when done.

@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).

Reviewed base 477446f and head f794fcb. Incremental range: bf890e8..f794fcb (pr/meta.json diffComplete: true; 10 files in pr/diff.patch).

Prior state: the 05:54Z PASS on bf890e8 is dismissed and does not carry to this head. No formal APPROVED on f794fcb is seeded. The 05:57Z DO NOT PASS was COMMENT only, so there is no Request changes to clear.

Blocker

  1. Required evidence for this head is missing. No Linux full-suite result for f794fcb is seeded. The Linux full suites on bf890e8 were still open at the 06:00Z decision, and nothing is seeded for f794fcb. Post the Linux full-suite result and the Chromium dashboard browser results for f794fcb before PASS. They must cover the new tests: test_service_reuse_dashboard_observes_a_missing_or_malformed_native_capture (tests/apps/dashboard/test_dashboard_experiments_browser.py, live and offline) and test_service_knowledge_preserves_an_unavailable_capture_locator (tests/apps/dashboard/test_dashboard_data.py).

Verified at f794fcb

  • Knowledge-authorship gate: not applicable. The protected scope in docs/knowledge-model-policy.md (lines 31-47) covers none of the 10 changed files, consistent with the 06:00Z decision.
  • Observer path: observe_service_records (src/inferrsi/harness/manager/_state.py L832-839) runs the same _control and _service_load checks as _load (L121-124). Only a delivered-context read failure is tolerated (L1047-1058). Other context kinds still raise.
  • Damaged captures: service_io.read raises ValueError for missing or malformed JSON (src/inferrsi/harness/records/service_io.py L50-59), so read_session_records still raises as the browser test expects.
  • Unavailable entry: src/inferrsi/apps/views/dashboard_service.py L31-44 keeps {round, path, state: unavailable} and makes no zero-return claim. This addresses the earlier inline finding on bf890e8.

Non-blocking, check in the run
a. observe_service_records passes the raw state to service_inputs, while read_session_records applies selection_view (_state.py L825-828). Only service_pending (dashboard_service.py L45) is affected. I did not trace _managed_submission, so I cannot rule out a difference in the pending row.
b. A readable delivered capture that fails the diagnosis-binding or ranking-policy check (_state.py L1049-1055) is shown as "Retrieval capture is unavailable." Status and recover still raise. Consider a separate label so an integrity failure does not read as a transient gap.
c. The intact-capture assertion expects "Retained contexts" for a capture from a real knowledge call. That holds only if the service writer omits items. I did not trace collect_service_context, so confirm this in the run.

Not verified here: no tests run, no CI status for f794fcb seeded, browser behavior and live polling not exercised, and lint for unused imports in the edited test files not checked.

Re-read after the author pushes. A PASS on a later head needs Linux results for that head.


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

Responding to the current-head request. Incremental review 2be5ed0e1fe41ed8ab226a5e3ccf1f31318e0b28…f794fcb2a5f0a13217c3c0e7088568d295b92b65 against #757, following my previous review.

Resolved on this head: the shared summary names the exact current final and opens its evidence. I ran the actual summary function with a minimal DOM stand-in: with two same-verdict finals, only the current attempt was selected; without one, it displayed unavailable. In a temporary tree, I exercised the actual loader branch, service JSON reader and Apps projection with malformed and missing registered captures, substituting unrelated validators. Observation kept the locator as unavailable; the normal read still failed.

Blocking integration at the Manager API: a three-way merge of the actual pinned files against main ed13999d4c8a5ee25d1fefcfd79f0ce14b91c647 conflicts in both the import and __all__ of harness/manager/__init__.py. The Dashboard now imports observe_service_records; current main separately exports knowledge_operation. Taking either side alone drops one public call. Preserve both exports and run one live/offline regression on the resolved head, with the strict reader and missing-capture path still distinct.

I did not rerun Chromium, an installed wheel, or CI. The finding is the actual source conflict, not a CI status.

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应这条复审邀请。该请求的提交 bf890e8a 已被后续提交替代;我按当前提交 f794fcb2 做了正式增量检视,不再对过期提交重复发表评审。

Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@zengchuang-hw @david6666666 @Dong1017 @Bounty-hunter, the current head is b9ffdaf41886c999a2d0a3cd3e8697ead1bf4e7c, with main incorporated through 4f03587e. GitHub now reports no conflicts. The Manager exports preserve both scoped knowledge operations and the Dashboard observer. Current diff · Conflict review

The native regression uses scoped Find → Read and checks intact, missing and corrupt captures through live polling, a fresh live request and offline export. The ordinary reader and recovery remain strict. Six focused Chromium cases and 73 focused Python checks passed after resolving the integration, and Ruff and whitespace checks passed on the current head. Both Linux full suites and dashboard-browser have started on the current head. Ready run

Please re-review this head and submit your formal review once the relevant CI checks finish.

@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).

Reviewed base 4f03587 and head b9ffdaf.
Incremental range: f794fcb..b9ffdaf (pr/meta.json: diffMode incremental, diffComplete false).
No formal APPROVED review on b9ffdaf is seeded. The last formal review on f794fcb was a COMMENT DO NOT PASS, and its blockers still apply to this head.

Blockers

  1. The diff is not complete. pr/meta.json has diffComplete: false, so the seed does not show the whole incremental change. I also could not read pr/diff.patch in this session: the 153 KB single-line file was written outside the workspace and my reader did not return it. I have not verified the changed lines of b9ffdaf, so I cannot PASS on this seed.
  2. Required evidence for b9ffdaf is missing. Neither pr/prior-reviews.md nor pr/meta.json shows a Linux full-suite result or Chromium dashboard browser results on b9ffdaf. The f794fcb DO NOT PASS asked for both, including test_service_reuse_dashboard_observes_a_missing_or_malformed_native_capture (tests/apps/dashboard/test_dashboard_experiments_browser.py, live and offline) and test_service_knowledge_preserves_an_unavailable_capture_locator (tests/apps/dashboard/test_dashboard_data.py). Post those results on b9ffdaf.
  3. The Manager API merge question from zengchuang-hw (NO PASS on f794fcb) is not confirmed closed. At b9ffdaf, src/inferrsi/harness/manager/init.py L36 and L45-46 export knowledge_operation, observe_service_records and read_session_records together, which looks like the fix. However, the base has moved from 477446f (cited in earlier reviews) to 4f03587 (pr/base.sha). I could only read the PR head, not current main ed13999, so the clean merge is unverified. Show a clean merge with the current base.

Checked at the head

  • src/inferrsi/apps/views/dashboard_service.py L38-45: a registered capture that is missing or malformed is kept as {round, path, state: "unavailable"} and is not dropped. This addresses the david6666666 finding about erasing unavailable captures, for the service_inputs path. I did not check the browser behavior for this head.

Not verified here

  • Knowledge-authorship gate: it was treated as not applicable on bf890e8 because the protected scope in docs/knowledge-model-policy.md excludes Apps views, Dashboard docs and tests. I could not read the changed-file list for b9ffdaf, so I have not re-checked that. If this range touches the protected scope, the gate applies again.
  • No tests were run, no CI status was read, and no browser checks were done.

Next step: post the Linux full-suite and Chromium results on b9ffdaf, show the merge with the current base, and confirm the knowledge-policy scope is unchanged. I will re-read after the author pushes or when mentioned again.


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

Responding to the current-head request. Incremental review f794fcb2a5f0a13217c3c0e7088568d295b92b65…b9ffdaf41886c999a2d0a3cd3e8697ead1bf4e7c against #757, after my previous review. Target base 4f03587eea627637f98f637bb3cde6c6142d487b.

The previous conflict is resolved: Manager imports and exports knowledge_operation, observe_service_records and the strict read_session_records together; Dashboard still uses the observer. In an isolated temporary tree using the actual loader/observer/projection functions with stubbed unrelated ports, a malformed delivered receipt and a missing search receipt stayed visible as unavailable while the ordinary loader refused both. I also executed the shared summary function with a minimal DOM port: with two same-verdict finals it opened the evidence for the current attempt only. No blocker on this revision. I did not rerun the native browser, wheel, full service or CI.

@jiangkuaixue123
jiangkuaixue123 enabled auto-merge (squash) November 27, 2026 07:37
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @jiangkuaixue123 (PR author).

@Dong1017 @david6666666 @Bounty-hunter, the full Ready run finished on b9ffdaf41886c999a2d0a3cd3e8697ead1bf4e7c. Both Linux suites passed 7,867 tests and 677 subtests, with 93 skips and one deselection. Chromium passed all 74 cases, including both parameters of the native service capture regression and both parameters of the current-final evidence regression. The unavailable-locator data test also passed directly on this checkout. Linux 3.10 · Linux 3.11 · Chromium

For the remaining questions in Dong's review, the base-to-head comparison has all 16 changed files and is zero commits behind the current base. Git reported a clean merge tree identical to the head tree. The Manager exports retain scoped knowledge and the Dashboard observer. The native browser test exercises scoped Find → Read, missing and corrupt receipts, and strict recovery. The knowledge-authorship check reported “Not applicable” on this head.

zengchuang-hw's re-review cleared the previous integration concern. Please re-review this exact head with the completed CI evidence.

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

LGTM

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

PR review verdict — PASS
Reviewed base 4f03587 and head b9ffdaf (full base-to-head range; pr/meta.json diffComplete: true, 16 files). This supersedes my 07:18Z DO NOT PASS on this head. Governing scope: #757 (accepted Dashboard scope, read in full).

Prior blockers on b9ffdaf, status:

  1. Diff completeness: resolved. pr/meta.json now covers the full base-to-head range with diffComplete true.
  2. Exact-head evidence: reported in the thread for b9ffdaf (run 45957244546). Linux 3.10 and 3.11 each passed 7,867 tests and 677 subtests. Chromium passed all 74 cases, including the native service capture regression (live and offline; intact, missing and corrupt captures) and the current-final evidence regression. The unavailable-locator data test passed. I did not re-run these; I am relying on the CI results cited by the author.
  3. Manager API merge: resolved at head. src/inferrsi/harness/manager/init.py L36 imports knowledge_operation, observe_service_records and read_session_records, and L45 exports all three. zengchuang-hw's formal APPROVED on this head also reports an isolated check of the merged functions.

Verified in head source for the changed contracts:

  • src/inferrsi/apps/views/dashboard_service.py L38-45: a registered capture that is missing or malformed is kept as {round, path, state: unavailable} with its recorded round and locator. It is not dropped and makes no zero-return claim.
  • src/inferrsi/harness/manager/_state.py L1287-1316: the read-only path (observed_contexts set) records the context as unavailable on OSError or ValueError. Without observed_contexts the same failure still raises, so the strict reader and recovery keep their checks.
  • src/inferrsi/apps/views/template.html L1202-1219: the shared summary shows summary.current_final_attempt_id. It opens evidence only when exactly one candidate row matches run_id with service_attempt.kind 'final', and shows "Not recorded" when no current final is recorded.
  • Knowledge authorship: docs/knowledge-model-policy.md L31-47 protected scope covers skill_library, the listed knowledge docs and the Knowledge catalog and operations implementations. The changed paths are Apps views, Dashboard docs and tests, and harness manager exports, which are outside that scope. The reported knowledge-model-policy status on this head is "Not applicable". The earlier gate is not applicable and no exception is needed.

Not verified here:

  • The full pr/diff.patch (about 88.7 KB, single line) could not be opened in this session; the reader returned it outside the workspace. This verdict rests on the head source of the changed contracts above, the seeded file list and metadata, and the CI results cited in the thread. I did not read every changed line of the diff.
  • No tests, browser runs or wheel builds were run by me.
  • The knowledge-authorship conclusion relies on the reported status, not on a file-by-file check of the changed paths.

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.

4 participants