Repository navigation
refactor(harness): automate timeline truth loop - #159
Conversation
PR2 browser acceptance — PASSEnvironment:
Accepted real-model path:
Cross-source evidence:
Honest run note: the first broad prompt produced only CI — PASSRun 30756117842: all 5 jobs passed.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05f970ce3e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if requestsReadOnlyTimelineCheck(userText) && | ||
| !successfulTimelineMutationSinceLatestUser(messages) && | ||
| !successfulToolCallSinceLatestUser(messages, "preview.generate") { | ||
| lane = rushestools.SurfaceRender | ||
| selected = filterSpecsByName(allowed, "timeline.check") | ||
| selected = nil |
There was a problem hiding this comment.
Run an authoritative check for read-only validation requests
When a user asks to validate an existing timeline in a new turn, this clears the tool surface without executing timeline.check. The injected CurrentTimelineView contains the timeline document and a validated boolean, but not the content-contract failures, speech-quality analysis, or other reports computed by toolCheckTimeline; persisted Harness traces are also filtered from model history. Timelines changed manually or in an earlier turn therefore receive an unevidenced model answer instead of the requested validation. Execute a Harness-owned check for this path or inject a current exact-version check result before calling the provider.
Useful? React with 👍 / 👎.
| }, | ||
| "omitted_ranges": omittedRanges, | ||
| "inspect_hint": "当前视图省略了窗口外片段;需要完整轨道、片段 ID、效果或元数据时调用 timeline.inspect 读取当前 timeline_id。", | ||
| "mutation_hint": "当前视图省略了窗口外片段;只可编辑 clips 中明确出现的 ID。每次写入后 Harness 会刷新这一视图。", |
There was a problem hiding this comment.
Preserve access to clips outside the compact window
For timelines exceeding 48 clips, buildCurrentTimelineContext exposes only a 24-clip window selected from recent edit history or the tail. This instruction now forbids editing omitted IDs, while the same commit makes timeline.inspect Harness-only and provides no way to request another window. Consequently, users cannot inspect or update/delete a clip outside the selected window, and refreshing after a write does not help because the omitted clip cannot be targeted to move the anchor. Retain a model-accessible full inspection or add a deterministic way to page/re-anchor the authoritative view.
Useful? React with 👍 / 👎.
Summary
Implements PR2 of #157: the Harness now closes the timeline truth loop automatically after every committed atomic mutation.
timeline.inspectandtimeline.checkout of every LLM dynamic surfaceautomatic_timeline_checkresult to the mutation tool receipt before the next provider callCurrentTimelineViewbetween provider calls and allow zero-tool read-only/final-export guidance callsContract changes
tool_step_progressLocal acceptance
make contractsmake test(Go race)make coverage— handwritten coverage 90.5%make lint— 0 issuesmake e2e— Playwright 9/9Browser acceptance and exact timeline/API/SQLite/log evidence will be added after CI is green.
Part of #157.