Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Found two correctness issues in the decision-integrity implementation: the shared graph-work budget makes later decisions order-dependent, and provenance validation accepts evidence when only one referenced node is connected. These can produce misleading unknown/valid classifications. Inline comments provide regression and fix guidance. Static review only; no tests were run.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review to run again
| // a successful execution alone never establishes a passing validation. | ||
| if (validation.outcome === "passed" && (isToolFailure(call.item) || call.item.status === "failed" || call.item.is_error === true || (call.item.exitCode !== undefined && call.item.exitCode !== 0))) | ||
| unknown.add("conflicting-validation"); | ||
| if (!graph.roots.has(validation.toolCallId) && !graph.roots.has(validation.resultObservationId)) { |
There was a problem hiding this comment.
This accepts a validation when either its tool call or its result observation is reachable from the decision. Thus a result that has no explicit provenance path to the decision can still produce a valid result, despite the contract/docs requiring evidence to be explicitly connected. Please require both referenced nodes to be reachable (or add a clear, tested rule that one side is sufficient), including a negative test for a call-only path.
There was a problem hiding this comment.
The provenance check now requires both the tool call and result observation to be reachable from the decision. Added call-only and result-only regressions. Commit: 89e44a8.
| references += decision.requiredValidations.length + decision.validationIds.length; | ||
| if (references > MAX_REFERENCES) return unavailable("reference-limit"); | ||
| } | ||
| let visits = 0; |
There was a problem hiding this comment.
visits is shared across every decision in the snapshot, so a large ancestry walk for an early decision consumes the budget and makes later, otherwise-evaluable decisions graph-limit/unknown. This makes the score depend on declaration order and can hide valid evidence. Please reset the budget per decision (or explicitly account for a total-work limit without downgrading unrelated decisions), and add a regression covering a large first graph followed by a simple second decision.
There was a problem hiding this comment.
Graph visit accounting is now per decision, with a regression covering large ancestry walks followed by a simple decision. Commit: 89e44a8.
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Contradictory validation evidence can incorrectly support acceptance or increment violation counts instead of leaving affected decisions unknown.
2 open issues
What changed in this PR
This PR adds an opt-in decision-lineage integrity mode to the existing session grader. It checks producer-asserted acceptance evidence while preserving default grading behavior; it does not independently verify correctness or act as a merge gate.
Changes:
- Add valid, invalid, and unknown decision classifications with integrity scores, coverage, and bounded diagnostics.
- Integrate the grader into embedded runtime staging and offline replay.
- Add tests and documentation covering evidence requirements, engine limitations, and deterministic replay.
| File | Description |
|---|---|
pkg/cli/graders_run.go |
Stage the decision-lineage module for offline execution. |
pkg/cli/graders_run_test.go |
Test deterministic decision-integrity replay. |
pkg/cli/graders_regrade.go |
Include the new module in runtime fingerprints. |
docs/src/content/docs/experimental/trace-graders.md |
Document configuration, evidence contracts, coverage, and limitations. |
actions/setup/session_parsers.go |
Embed the new grader module. |
actions/setup/js/trajectory_graders.cjs |
Route the opt-in mode to decision-integrity grading. |
actions/setup/js/grader_session.cjs |
Track the selected trajectory snapshot’s source. |
actions/setup/js/decision_lineage.test.cjs |
Cover classifications, uncertainty, bounds, purity, and compatibility. |
actions/setup/js/decision_lineage.cjs |
Implement evidence consistency checks and diagnostics. |
Review effort: Balanced (adaptive)
| if (!isRecord(validation) || !id(validation.id) || validations.has(validation.id)) return unavailable("ambiguous-validation-id"); | ||
| validations.set(validation.id, { item: validation, index: i }); |
There was a problem hiding this comment.
Contradictory revision or outcome assertions for the same occurrence and requirement now classify affected decisions as unknown before violation counts are recorded. Added regressions for both. Commit: 89e44a8.
| if (validation.outcome === "failed") violations.add("unsupported-acceptance"); | ||
| // An execution failure cannot establish a passing validation. Conversely, | ||
| // a successful execution alone never establishes a passing validation. | ||
| if (validation.outcome === "passed" && (isToolFailure(call.item) || call.item.status === "failed" || call.item.is_error === true || (call.item.exitCode !== undefined && call.item.exitCode !== 0))) |
There was a problem hiding this comment.
A passing assertion now checks explicit failure signals on both the tool call and its referenced observation; conflicting result evidence is unknown. Added regressions. Commit: 89e44a8.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "b8ea113941a33c3bef35b7f3da0042693d7fffae",
"kind": "requested",
"schema_version": "1",
"state": "269b5846ad0de138cac9aa7aabb5804cfd359410c0e4c7759b770e92ba2f8d73",
"work": [
"0384d253d3410c71a864e41868d2b53514a0546251850d41a7465f9d24f0c2f9",
"042501c72bb538ebb0915a24c19724d63b4857bd35e3f3314b086d9f238f28ce",
"1d72b6a0a562c3cd8e60671091076b48dfeb50216f5b76421de962f1f4280c19",
"46da54daad3f4f144a5189ad2f3e421e9fa51e5a5bc69c57cad98d436a1d77b6",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"c5deaab96d29e46816f45671a5a81e87f1abc003ffa949fb33458ae4b34df86e",
"fa531bd0808bae248bbd2229c77a2babd0e5b3b72dbda7732671961f0fd57a6b"
],
"workflow": "pr-sous-chef"
}
|
…inistic-decison-lineage-grader Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged the latest |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "89e44a817cf561ce4cf85bdf3f7a26bc17684709",
"kind": "requested",
"schema_version": "1",
"state": "83ec9b0bcd5ea1df78e34112645f6ab6c36241031ea68e06dbf95ce10b59a3e9",
"work": [
"0384d253d3410c71a864e41868d2b53514a0546251850d41a7465f9d24f0c2f9",
"e9d7501fc834b70ac771af5e7694ba7f29ea683b65e0f01f096571f99da4b76f"
],
"workflow": "pr-sous-chef"
}
|
…inistic-decison-lineage-grader Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged the latest |
|
🍳 The prep is done, but CI needs another taste test. Copilot's assigned task has finished; these checks are still failing: Completed task
Please address the remaining CI failures on this PR's existing branch. No merging or CI triggering. Structured data{
"completed_task": 44855841054,
"head": "74c81d031a2d558d093904c6feed346e6d66f300",
"kind": "ci-follow-up",
"schema_version": "1",
"state": "cd7e7b22cec50d61e2c916109b2b7b27bc8b11995783a24dd68589aa9350e634",
"work": [
"0384d253d3410c71a864e41868d2b53514a0546251850d41a7465f9d24f0c2f9"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The test inherited a 2-second timeout, which was too short for the Node subprocess on the hosted runner. Increased it to 20 seconds; the focused test passes locally. Commit: |

Assess whether UAS evidence can deterministically identify unsupported acceptance, stale validation, and incomplete evidence chains. Current engine traces lack acceptance-to-validation-to-workspace links, so the prototype leaves missing evidence unknown.
end-to-end-lineage-completenesswith an opt-in mode; preserve default behavior. Report valid/invalid/unknown decisions, integrity score, coverage, violation counts, and supporting event references.trajectory.irevents. Use explicit identifiers and revision identities—not timestamps. Treat ambiguous, conflicting, or incomplete evidence conservatively.Boundary: This measures recorded consistency, not independent correctness. Current adapters do not emit the required annotations; coverage includes declared decisions only. It is not an authorization or merge gate.