Repository navigation
Conversation
BaaRai
requested changes
Nov 28, 2026
BaaRai
left a comment
Owner
There was a problem hiding this comment.
Data isolation is the right direction, but three points block it:
prove_goalstill accepts evidence from a linked task. A fact from another task must not close this task's goal.- Old facts without provenance skip verification. Please make that fail closed.
tool_outputfacts can no longer prove a goal, so TCP/DNS and other non-HTTP goals cannot close autonomously. Preserve a task-scoped tool_output proof path, or state explicitly that non-HTTP goals are operator-only and add a test.
Also rebase on main: #598 is merged and took migration 0016, so this PR must renumber to 0017. Keep the migration repair and the digest retirement.
nohanbluu
pushed a commit
to nohanbluu/ARTEX
that referenced
this pull request
Nov 28, 2026
…BaaRai#602) Rebased onto main (5f5ec32), keeping migration 0017_legacy_fact_capture_provenance.sql, cross-task shared-capture isolation, repair_legacy_fact_captures, and digest retirement. Addresses review findings: - prove_goal resolves evidence strictly within this task (GetNode, not GetNodeWithSources), blocking linked-task facts/findings from closing this task's goals. - Facts with missing, empty, unverified, retired (captured_traffic), or non-matching provenance fail closed in prove_goal. - Preserves a task-scoped tool_output proof path for TCP/DNS/non-HTTP goals by tying tool_output facts strictly to this task's recorded tool_result activity (ToolResultActivityContainingEvidence + ActivityMatchesProvenance) without ever reading the shared proxy store. - For source=operator_input, prove_goal requires the whitespace/case-normalized summary to be contained in the verified operator evidence quote, preventing a benign real operator quote from smuggling an unrelated summary claim (tested in TestProveGoalOperatorInputSummaryMustMatchEvidencePG). Co-authored-by: James K <jamesKhor@users.noreply.github.com>
Owner
|
Landed via #639 after the review fixes: prove_goal resolves evidence inside the current task, missing or unverified provenance fails closed, non-HTTP goals close through a task-scoped tool_output fact tied to recorded tool_result activity, and operator_input summaries must be contained in the verified quote. Migration 0017 carries the legacy repair. Thanks for the original work, James K. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
record_factnow uses activity from the current task and intent to record where a quote appeared. A text match in the shared recorder cannot establish who sent an exchange. Removing that lookup makes a fact and its eligibility to close a goal independent of another task's captures.Non-HTTP goals: Free-text shell and tool output remains available as evidence, but it can no longer close a goal by itself. An observed
operator_inputfact can qualify when its evidence quotes a recorded human message in the same intent. Verified findings retain their existing proof path.Migration 0016 clears the old capture ID from identifiable affected facts, preserves their evidence and activity links, and retires affected active digests. Restoring an old task archive runs the same repair before the graph becomes visible. Legacy records with neither capture marker fall outside the repair.
Verification
1b9cf72with disposable PostgreSQL and SQLite databases. All passed. The two-task regression checks the stored fact and proof result with the recorder detached, empty, and holding a matching response.go vet ./...passed. The full Linux suite recorded 3,289 passing tests and subtests, 38 skips and zero failures. Seven native Windows checks passed.I'd welcome your feedback on the non-HTTP proof behavior, especially which structured tool results should qualify as evidence in a future change.