Skip to content

spec(python): RIPR-SPEC-0238 example 14 aligns directly via the owner token - #10585

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/py-spec0238-14
Oct 26, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/py-spec0238-14

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Correct RIPR-SPEC-0238 example 14's causal explanation: its strong exception oracle observes the imported owner, so the first successful alignment branch reports direct. The example still changes ValueError('empty') to KeyError('empty'); its exposure classification remains exposed.

The tagged corpus case changes the message from empty to blank while retaining KeyError. Its refreshed reasoning preserves that distinction and its historical labeling observation. Neither shape establishes changed_sink_token coverage. Separate sink-alignment tests contain explicit assertions for that branch.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: none
Spec: RIPR-SPEC-0238, Acceptance Example 14 and Sink alignment
ADR: none
Plan item: #9410 corpus coverage; bounded audit follow-up from #10569
Governing issue or accepted claim: #10569, Python example 14 causal documentation
Acceptance delta (one sentence): Example 14 and the tagged message-edit case accurately describe observed owner-identity alignment without claiming exact-shape or changed-sink-token coverage from the message-edit corpus case.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/py-spec0238-14
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): existing #10585 retained; no replacement candidate

Scope

One specification example and one fixture reasoning field. Production delta: none. No changes to classifications, oracle kinds, retained rows, coverage locks, or historical labeling observations.

Scope Classification

  • Docs/spec/test-only evidence package

Acceptance and proof

Candidate: c7cd571413631082d95b08746291aed4bbc05676.

Observed producer evidence was repeated with the executable built from final head c7cd571413631082d95b08746291aed4bbc05676, SHA256 24c0ef28008ab9e3d8600468d0a262925aec3d0bfaee848b6ca1c7684f72f479. Original executable and output records from 705c79ea1b56215bcd1169dff321e34e1c848365 remain preserved under their own identity; all four result tuples agree. Each run used ripr check --root <subject> --diff <input.diff> --json, completed successfully, and emitted exactly one finding:

Input Classification Oracle Alignment / reason
Corpus message edit, KeyError("empty") to KeyError("blank") exposed exact_error_variant, strong direct / strong_oracle_observes_owner_name
Exact spec class edit, inline with body exposed exact_error_variant, strong direct / strong_oracle_observes_owner_name
Same class edit, expanded multiline body exposed exact_error_variant, strong direct / strong_oracle_observes_owner_name
Same class edit, match removed weakly_exposed broad_error, weak unknown / no_strong_oracle

The last row checks current static oracle policy, not runtime nondiscrimination. Full source, tests, configuration, diffs and outputs were retained and hashed: the report's scalar input identity binds the diff only, not the distinct test bytes.

Final-head local checks: specification format and offline PR body validation passed; check-fast passed with an independently verified two-file selector; Python verdict corpus passed 327 cases, false verdicts 0/327, contradictions 0/327, no row drift. Structural coverage counts remain 57/57; those counts do not establish exact-shape or fallback-branch coverage. Full local cargo xtask precommit passed with native exit 0. The original reported local results remain in the earlier review comment for their original source identity.

The independent source review traced classify_sink_alignment_with_old branch ordering, its classification and JSON consumers, the original class-edit unit-test shape, the corpus message-edit inputs, and the separate changed-token unit tests. The exact class-edit unit test pins exposed; it does not itself pin alignment.

Limits and rollback

This correction does not close the remaining Python/Perl audit items in #10569. No production behavior changes are authorized by the wording repair. Revert the documentation commit to roll it back.

Changelog: no fragment; this is an explanatory specification and fixture-reasoning correction with no analyzer, CLI, schema, workflow, or documentation-system change under docs/CHANGELOG_POLICY.md.

…wner identity token

The case reads exposed through the first credit branch (owner identity),
not changed_sink_token. Refresh its stale labeling-time reasoning.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EubZsPCNpWACC9WN6H9YaD
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review of record, head 705c79e

Angles: spec vs analyzer behavior (ran ripr check --diff on the case: exposed, exact_error_variant, alignment direct / strong_oracle_observes_owner_name; credit-branch order in SPEC-0238 "Sink alignment" puts owner identity before changed_sink_token), claim scope (one spec example plus one case's reasoning text; no row, lock or production change; verdict-corpus check --language python shows no drift, 327 cases, false 0/327, 57/57 covered), spec format and precommit pass.

Blocking findings: none. This is a self-review of a text-only change; the claim rests on the direct ripr run above rather than a separate reviewer agent.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 189 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 2797123e-62ac-463f-92fe-e74ef25d3b2e
Commits

Reviewing files that changed from the base of the PR and between a58975d and c7cd571.

Files selected for processing: 2
  • docs/specs/RIPR-SPEC-0238-python-oracle-and-reach-rules.md
  • fixtures/python-verdict-corpus/cases/py-spec0233-ex14-raises-match.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Owner / governing claim: assigned continuation of #10585, limited to Python example 14 in #10569.
Source candidate: c7cd571413631082d95b08746291aed4bbc05676; only spec prose and fixture reasoning changed.
Review: REVIEW_READY, exact head was published successfully and read back with matching head and body. Independent source, producer-evidence and qualification inspections found no outstanding blocker.
Proof: final-head local precommit and focused checks passed. Actual producer outputs establish owner-name direct for the corpus message edit and exact inline/multiline spec class edit; the no-match control tests static oracle strength. Original source/executable/output identities remain preserved.
Qualification: run 40279245353, attempt 1 passed all required gates and all four shards: 5565 / 5511 / 5459 / 5410 tests. Actual producer/shard/verifier checkout was af290359cbd64fb47103617b34c2f92eb11475f1 (basis aeeeddacd1e24f3b04e713572717e7b172966431 plus candidate; tree e4f2a44b2ccd88bd81080bf6168b1f051960085a). Verifier confirmed 21945 listed and JUnit tests with zero duplicates, missing tests or extras. Combined artifact 12633441046 digest: 7674e3211be19e0abc57f767fade7b3f39559e6d5647eda724f682ac291f7456. Required result 121443229660 is terminal success. Original run 40274936896 remains bound to its older head.
Integration refresh: after review publication, main advanced from a1c1a33f075d7cc3a5e532c93d054f473fe05202 to c8f08a0cd218ac46c8855c3cbb32d184217e9a47 via #10603's five Rust corpus metadata files. Independent inspection confirmed no changed Python claim/proof dependency. Clean composition is tree f76602ae11ecf9b74cbe3eec7d7cc6cbc2ad585a, containing only the two intended prose changes against current main. Existing exact-head review remains current. This newer composition is source-inspected, not claimed as executed.
Outcome: protected squash completed after successful review publication/readback and final prerequisite checks. Landing commit 87d33c742521da8270c9625b7435ad5e4c8fcbe8 has parent c8f08a0cd218ac46c8855c3cbb32d184217e9a47 and tree f76602ae11ecf9b74cbe3eec7d7cc6cbc2ad585a, exactly matching the inspected composition. PR/main reads and Git objects confirm the merge. #10569 now records this delivered Python scope and remains open for the remaining audit. Neither example shape establishes changed-token credit; the tagged corpus case remains message-only, with the exact class edit verified separately. No behavior change or broader audit completion is claimed.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 26, 2026 05:47

@github-actions github-actions Bot 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.

Refuted

  • The documentation change is incomplete because it drops the changed_sink_token branch.; refuted because: The replacement retains changed_sink_token as a conditional branch when the oracle does not name the owner; it only corrects example 14's applicable credit branch.
  • This documentation-only correction requires a production analyzer or fixture-schema change to preserve behavior.; refuted because: The patch changes only Markdown and one fixture reasoning string; it does not alter analyzer code, verdict rows, locks, schema fields, or classification inputs.

Parked follow-ups

  • The spec0233-ex14 fixture filename may obscure its mapping to SPEC-0238 example 14, but this appears pre-existing and is not introduced by the changed lines.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The scheduled cargo-test receipt remains unavailable for this lane, so the broad automated test result is not independently assessed.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed_head_sha: c7cd571
integration_basis: candidate delta from e4fd4d3; final hosted composition pending.
claim_boundary: correct SPEC-0238 example 14's owner-identity alignment explanation and distinguish its class edit from the tagged corpus message edit.
changed_surfaces_and_semantic_owners_inspected: both complete changed files; Python sink-alignment branch ordering; classification and JSON consumers; class-edit unit-test shape; corpus source/diff/test/expected row; separate changed-token tests.
blocking_findings: none remaining after independent source review. The repair removes ambiguous 'class unchanged' wording and the overbroad fallback rule.
non_blocking_suggestions: none required.
refuted_or_stale_findings: prior prose finding repaired; example 14 exercises owner identity and does not establish changed-token fallback coverage.
proof_and_ci_observed: three real producer inputs each emit one exposed/exact_error_variant/direct finding with reason strong_oracle_observes_owner_name. The no-match control emits one weakly_exposed/broad_error/unknown finding. Input trees, tests, configuration, diffs, outputs, and executable identity were independently inspected. Final-head spec-format, offline PR-body validation, two-file check-fast selector, and 327-case Python corpus checks passed with no row drift.
proof_or_review_missing: full local precommit is running; required hosted qualification and actual final-head checkout/shard evidence remain pending.
affected_currentness_dimensions: public explanation and fixture reasoning only.
residual_assumptions_and_non_claims: producer executable was built from 705c79e, whose Rust/manifests/test inputs/expected rows are identical to this head. Its source identity is preserved. Diff input_identity alone does not bind tests. The broad control demonstrates static policy, not runtime nondiscrimination. No fallback execution, analyzer behavior change, or broader #10569 completion is claimed.
disposition: REVIEW_INCOMPLETE — source review complete; final qualification pending.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 26, 2026 06:07
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot 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.

Refuted

  • This documentation-only correction requires a production analyzer or fixture-schema change.; refuted because: The diff changes only Markdown prose and a fixture reasoning string, with no analyzer, schema, verdict-row, or lock changes.
  • The fixture's message-edit shape might be incorrectly presented as equivalent to the specification's class-edit input.; refuted because: The changed fixture reasoning explicitly says it is not the exact class-edit input and now distinguishes owner-identity credit from changed-sink-token credit.
  • This docs/fixture-only patch requires analyzer or schema changes to remain correct.; refuted because: No production code, public API route, schema field, verdict row, or lock is changed; the seeded corpus check reports no drift and 57/57 coverage.
  • The fixture still proves changed-sink-token coverage for SPEC-0238 example 14.; refuted because: The corrected reasoning expressly says it exercises owner-identity credit and not changed-sink-token credit; seeded producer proof confirms the owner-name reason.
  • The changed documentation overclaims changed_sink_token coverage for example 14.; refuted because: The changed spec explicitly says the example exercises owner-identity credit, not changed-sink-token credit; the seeded direct run reports alignment_reason strong_oracle_observes_owner_name.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The corpus and precommit claims in the seeded thread provide focused validation, but the scheduled cargo-test receipt is not available in this lane.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed_head_sha: c7cd571
review_timestamp: 2026-10-26T07:11:00Z
integration_basis: Required qualification actually checked out af29035, parents aeeedda + reviewed head, tree e4f2a44b2ccd88bd81080bf6168b1f051960085a. Current main a1c1a33 composes cleanly with the reviewed head to tree 03618553ac315210e3ac70ffce1f1fadb3842b30. Independent source review inspected intervening #8831, #10533, #10528 and #10580: Python owners, inputs, corpus rows and both corrected prose files are unchanged from the tested combination. The non-text guard added by #8831 is inactive for these text-hunk inputs. The newer combined tree is source-inspected, not claimed as executed.

claim_boundary: Correct SPEC-0238 example 14's owner-identity alignment explanation and distinguish its ValueError-to-KeyError class edit from the tagged corpus case's message-only edit. No analyzer, test-input, expected-row, lock or historical-labeling change.

changed_surfaces_and_semantic_owners_inspected: Complete two-file diff; SPEC-0238 input assumptions and credit ordering; classify_sink_alignment_with_old in Python sink_alignment.rs; classification and JSON consumers; class-edit unit-test shape; corpus source, diff, tests and expected row; separate changed-token assertions. Independent source review, independent producer-evidence inspection and independent qualification inspection were integrated into this disposition.

blocking_findings: None.
non_blocking_suggestions: None required.
refuted_or_stale_findings: Ambiguous “class unchanged” and overbroad fallback explanations were repaired. The corpus message edit does not prove the spec's exact class-edit input or changed-token credit. No production or schema change is needed for this prose correction. Earlier incomplete review evidence is superseded only for the dimensions verified below.

proof_and_ci_observed:

  • Final-head executable SHA256 24c0ef28008ab9e3d8600468d0a262925aec3d0bfaee848b6ca1c7684f72f479 was bound to its Cargo artifact. Three actual producer inputs (message edit, inline class edit, expanded class edit) each completed successfully with one exposed / exact_error_variant / strong / direct / strong_oracle_observes_owner_name finding. Removing match produced one weakly_exposed / broad_error / weak / unknown / no_strong_oracle finding. Full input trees, tests, configuration, diffs, raw outputs and manifests were independently checked; scalar diff identity alone was not treated as input-tree identity. Original 705c79e executable/output provenance remains separately preserved.
  • Final-head spec format, offline PR-body validation, independently checked two-file check-fast selector, 327-case Python corpus (zero false verdicts/contradictions and no row drift), and full cargo xtask precommit passed.
  • Required run 40279245353, attempt 1 completed successfully. All 14 jobs are accounted for: ten successful and four intentionally skipped alternative routes. Producer gates, four corpora, PR evidence, schema sweep and doctests passed; doctests had two passes and one ignored case.
  • Producer, all four shards and verifier logged actual checkout af29035. Shards passed 5565 / 5511 / 5459 / 5410 tests. Verifier 121442259000 confirmed 21945 workspace-list entries and 21945 JUnit tests, with zero duplicates, missing tests or extras. Discovery inventory 21950 includes five source-declared ignored tests.
  • Exact verifier/workflow source, completed job logs and artifact metadata were inspected. The verifier enforces run/attempt/repository/checkout identity, successful exits, consistent inputs, complete green JUnit and testcase/list equality. Combined artifact 12633441046 has matching upload/metadata SHA256 7674e3211be19e0abc57f767fade7b3f39559e6d5647eda724f682ac291f7456.
  • Required Ripr Rust Small Result 121443229660 is terminal success on the reviewed head. All current-head checks are terminal with no failures; current reviews and Conversation comments contain no unresolved material finding, and the refreshed inline-thread inventory is empty.

proof_or_review_missing: No required claim evidence outstanding. Raw artifact ZIP payloads were not independently reopened; complete receipt/JUnit validation was observed in the inspected exact-source verifier's successful execution and corroborated by completed shard logs and matching artifact metadata.

affected_currentness_dimensions: Public explanation and fixture reasoning only. Independent source inspection covered subsequent integration changes; no material Python proof dimension changed.

residual_assumptions_and_non_claims: Structural coverage 57/57 does not establish exact-shape or fallback-branch coverage. Neither demonstrated example shape exercises changed-token credit. The broad control establishes static policy, not runtime nondiscrimination. The existing exact-class unit test pins classification, not alignment. This PR does not complete the remaining #10569 audit items.

disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit 87d33c7 into main Oct 26, 2026
54 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/py-spec0238-14 branch October 26, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants