Skip to content

fix(claims): flag only asserted claims in replies; keep honest rows in training - #9

Merged
quantum-osiris merged 1 commit into
mainfrom
fix/claims-first-person-and-train-filter
Nov 10, 2026
Merged

quantum-osiris merged 1 commit into
mainfrom
fix/claims-first-person-and-train-filter

Conversation

@quantum-osiris

Copy link
Copy Markdown
Owner

What

  • flagged_in_reply() checks only register entries that carry explicit asserts patterns (currently OSIRIS_ON_QPU). A sentence that reports a claim as refuted, failed or untrue does not count as asserting it.
  • train.chat_lessons leaves out only replies that are actually flagged.

Why

Before this change, a reply that merely named a topic (for example "retiring constants like θ_lock") was flagged and dropped from training, so honest replies were being discarded.

Evidence

  • Targeted tests: test_claims, test_train, test_living: 204 passed.
  • Ledger dry run: 921 kept, 1 left out (a deliberate test exchange).
  • Full suite: 1803 passed, 13 skipped, 2 failed. Both failures also occur on main without this change:
    • test_exec_policy::test_symlink_named_ls_pointing_at_rm_is_treated_as_rm
    • TestGitHubBridge::test_auth_status_inspection (expects the old osiris-dnalang account)
  • ruff check --select E,F,W on the changed files: clean.

Caveat

Assertion detection is a word test, not semantic reading. Quoted text and hypotheticals can still be misclassified.

🤖 Generated with Claude Code

…n training

flagged_in_reply() now checks only register entries with explicit `asserts`
patterns (currently OSIRIS_ON_QPU), and a sentence that reports a claim as
refuted, failed or untrue is not an assertion. Previously, naming a topic
(e.g. "retiring constants like theta_lock") flagged the reply and dropped it
from training.

Ledger dry run (~/.osiris/living/exchanges.jsonl): 921 kept, 1 left out (a
test exchange). Full suite: 1803 passed, 2 failed; both failures pre-exist on
main (test_exec_policy symlink case; GitHubBridge auth test expects the old
osiris-dnalang account).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quantum-osiris
quantum-osiris merged commit 06b9c65 into main Nov 10, 2026
10 checks passed
@quantum-osiris
quantum-osiris deleted the fix/claims-first-person-and-train-filter branch November 10, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant