Skip to content

refactor: add affected obligation routing - #346

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/semantic-diff-routing
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/semantic-diff-routing

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #334.

Summary

Adds semantic changed-path routing from repo diffs into proof obligations, with human and JSON reports plus focused check recommendations.

Problem

Agents could inspect the proof catalog, but they still had to guess which local checks proved a given change. Path-only advice was too crude for parser, schema, command, generated-surface, workflow, and proof-catalog changes.

Solution

  • Added operation-spec and workflow-claim subjects to the proof catalog.
  • Added catalog claims for operation routing metadata, generated-surface freshness, and PR verification records.
  • Added polylogue.proof.diffing to classify changed paths into semantic ChangeSubject rows, route affected obligations with explanations, and bucket obligation diffs into new, dropped, now_failing, now_passing, stale_evidence, and suppressed categories.
  • Added devtools affected-obligations with --base-ref, --head-ref, repeated --path, and --json.
  • Kept focused inner-loop checks separate from explicit PR and deployment gates.
  • Refreshed generated devtools and verification-catalog docs.

Verification

pytest -q -n 0 tests/unit/proof/test_catalog.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py tests/unit/devtools/test_command_catalog.py
ruff format --check polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
ruff check polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
mypy polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
pytest -q -n 0 tests/unit/proof tests/unit/devtools/test_affected_obligations.py tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_render_verification_catalog.py tests/unit/operations/test_specs.py
devtools render-all --check
devtools affected-obligations --path docs/verification-catalog.md --json
devtools affected-obligations --path polylogue/sources/parsers/codex.py
devtools affected-obligations --base-ref master --head-ref HEAD
devtools verify --quick
devtools verify
git push -u origin feature/refactor/semantic-diff-routing  # pre-push quick gate passed

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 24 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 24 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e286d5c0-4618-4348-a497-93421b62e320

📥 Commits

Reviewing files that changed from the base of the PR and between 1e42dbf and a91f023.

📒 Files selected for processing (11)
  • devtools/affected_obligations.py
  • devtools/command_catalog.py
  • docs/devtools.md
  • docs/verification-catalog.md
  • polylogue/proof/__init__.py
  • polylogue/proof/catalog.py
  • polylogue/proof/diffing.py
  • polylogue/proof/subjects.py
  • tests/unit/devtools/test_affected_obligations.py
  • tests/unit/proof/test_catalog.py
  • tests/unit/proof/test_diffing.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/semantic-diff-routing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@Sinity
Sinity merged commit b53ae96 into master Apr 22, 2026
13 checks passed
@Sinity
Sinity deleted the feature/refactor/semantic-diff-routing branch April 22, 2026 04:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a91f023f9c

ℹ️ 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".

Comment thread devtools/affected_obligations.py Resolved
Comment thread polylogue/proof/diffing.py Resolved
Sinity added a commit that referenced this pull request Apr 22, 2026
Closes #334.

## Summary

Adds semantic changed-path routing from repo diffs into proof obligations, with human and JSON reports plus focused check recommendations.

## Problem

Agents could inspect the proof catalog, but they still had to guess which local checks proved a given change. Path-only advice was too crude for parser, schema, command, generated-surface, workflow, and proof-catalog changes.

## Solution

- Added operation-spec and workflow-claim subjects to the proof catalog.
- Added catalog claims for operation routing metadata, generated-surface freshness, and PR verification records.
- Added `polylogue.proof.diffing` to classify changed paths into semantic `ChangeSubject` rows, route affected obligations with explanations, and bucket obligation diffs into `new`, `dropped`, `now_failing`, `now_passing`, `stale_evidence`, and `suppressed` categories.
- Added `devtools affected-obligations` with `--base-ref`, `--head-ref`, repeated `--path`, and `--json`.
- Kept focused inner-loop checks separate from explicit PR and deployment gates.
- Refreshed generated devtools and verification-catalog docs.

## Verification

```text
pytest -q -n 0 tests/unit/proof/test_catalog.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py tests/unit/devtools/test_command_catalog.py
ruff format --check polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
ruff check polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
mypy polylogue/proof devtools/affected_obligations.py tests/unit/proof/test_diffing.py tests/unit/devtools/test_affected_obligations.py
pytest -q -n 0 tests/unit/proof tests/unit/devtools/test_affected_obligations.py tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_render_verification_catalog.py tests/unit/operations/test_specs.py
devtools render-all --check
devtools affected-obligations --path docs/verification-catalog.md --json
devtools affected-obligations --path polylogue/sources/parsers/codex.py
devtools affected-obligations --base-ref master --head-ref HEAD
devtools verify --quick
devtools verify
git push -u origin feature/refactor/semantic-diff-routing  # pre-push quick gate passed
```
Sinity added a commit that referenced this pull request Apr 22, 2026
Agents could inspect the proof catalog, but they still had to guess
which local checks proved a given change. Path-only advice was too
crude for parser, schema, command, generated-surface, workflow, and
proof-catalog changes.

Adds semantic changed-path routing from repo diffs into proof
obligations, with human and JSON reports plus focused check
recommendations. Adds operation-spec and workflow-claim subjects to
the proof catalog, plus catalog claims for operation routing
metadata, generated-surface freshness, and PR verification records.
Adds `polylogue.proof.diffing` to classify changed paths into
semantic `ChangeSubject` rows, route affected obligations with
explanations, and bucket obligation diffs into `new`, `dropped`,
`now_failing`, `now_passing`, `stale_evidence`, and `suppressed`
categories. Adds `devtools affected-obligations` with `--base-ref`,
`--head-ref`, repeated `--path`, and `--json`. Keeps focused
inner-loop checks separate from explicit PR and deployment gates.

Verification: ruff + mypy + pytest over proof / devtools-affected /
command-catalog / operations / render-verification suites; live
`devtools affected-obligations` probes; devtools render-all --check,
verify and --quick green.

Closes #334
Sinity added a commit that referenced this pull request Apr 22, 2026
Agents could inspect the proof catalog, but they still had to guess
which local checks proved a given change. Path-only advice was too
crude for parser, schema, command, generated-surface, workflow, and
proof-catalog changes.

Adds semantic changed-path routing from repo diffs into proof
obligations, with human and JSON reports plus focused check
recommendations. Adds operation-spec and workflow-claim subjects to
the proof catalog, plus catalog claims for operation routing
metadata, generated-surface freshness, and PR verification records.
Adds `polylogue.proof.diffing` to classify changed paths into
semantic `ChangeSubject` rows, route affected obligations with
explanations, and bucket obligation diffs into `new`, `dropped`,
`now_failing`, `now_passing`, `stale_evidence`, and `suppressed`
categories. Adds `devtools affected-obligations` with `--base-ref`,
`--head-ref`, repeated `--path`, and `--json`. Keeps focused
inner-loop checks separate from explicit PR and deployment gates.

Verification: ruff + mypy + pytest over proof / devtools-affected /
command-catalog / operations / render-verification suites; live
`devtools affected-obligations` probes; devtools render-all --check,
verify and --quick green.

Closes #334
Sinity added a commit that referenced this pull request Apr 22, 2026
Agents could inspect the proof catalog, but they still had to guess
which local checks proved a given change. Path-only advice was too
crude for parser, schema, command, generated-surface, workflow, and
proof-catalog changes.

Adds semantic changed-path routing from repo diffs into proof
obligations, with human and JSON reports plus focused check
recommendations. Adds operation-spec and workflow-claim subjects to
the proof catalog, plus catalog claims for operation routing
metadata, generated-surface freshness, and PR verification records.
Adds `polylogue.proof.diffing` to classify changed paths into
semantic `ChangeSubject` rows, route affected obligations with
explanations, and bucket obligation diffs into `new`, `dropped`,
`now_failing`, `now_passing`, `stale_evidence`, and `suppressed`
categories. Adds `devtools affected-obligations` with `--base-ref`,
`--head-ref`, repeated `--path`, and `--json`. Keeps focused
inner-loop checks separate from explicit PR and deployment gates.

Verification: ruff + mypy + pytest over proof / devtools-affected /
command-catalog / operations / render-verification suites; live
`devtools affected-obligations` probes; devtools render-all --check,
verify and --quick green.

Closes #334
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #550.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: add semantic diffing and affected-obligation routing

2 participants