Skip to content

harden: add failure-class protocol and recurrence ratchets - #9841

Merged
Git-on-my-level merged 5 commits into
mainfrom
codex/issue-9822-failure-class-protocol
Jul 16, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
codex/issue-9822-failure-class-protocol

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Summary\n\n- add a semantic, JSON failure-class registry plus an offline scripts/failure-class CLI for agent-oriented preparation, explanation, validation, and advisory reporting\n- surface the same failure-class guidance with product-invariant suggestions through scripts/pr-preflight --suggest, before a PR exists\n- keep PR-body checks in local/PR preflight while excluding them from metadata-less post-merge main pushes\n- enforce PR-body declarations for reactive fix: commits through the existing preflight manifest, while distinguishing proactive harden: work\n- add manifest-backed recurrence ratchets for naive Python datetime sort sentinels and unsafe macOS Swift dictionary construction\n- replace repetitive existing-class narratives with a validated declaration, require real-incident citations for new guards, and defer locked invariants until seven stable days\n- extract the X connector transport and DTOs from APIClient.swift into its connector feature, reducing the client from 6,502 to 6,430 lines without changing endpoint behavior\n\nCloses #9822\n\n## Failure class (fixes)\n\nFailure-Class: none\n\n## New guards\n\nThe datetime ratchet cites #9571 and #9600; the desktop dictionary ratchet cites #6506 and #9288. These are static checks because the canonical safe primitives already exist, while the prohibited patterns can be reintroduced independently at multiple call sites.\n\n## Product invariants affected\n\n- INV-AUTH-1 — the authenticated transport implementation is unchanged; this moves its X connector extension only.\n- INV-INT-1 — the X connector endpoints and DTOs are now co-located with their connector-import feature; behavior is unchanged.\n\n## Verification\n\n- python3 scripts/test_failure_class.py — 13 passed\n- python3 .github/scripts/test_pr_preflight.py — 10 passed\n- python3 .github/scripts/test_run_checks.py — 13 passed\n- focused backend ratchet tests — 6 passed\n- BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-backend-unit-failures.txt bash backend/test.sh — 9 passed\n- bash backend/test.sh — 631-file CI-equivalent suite passed\n- xcrun swift test --package-path Desktop --filter ConnectorImportOperationsTests — 13 passed\n- xcrun swift build -c debug --package-path Desktop — passed\n- python3 desktop/macos/scripts/check_desktop_test_quality.py — passed\n- desktop-core-harness self-check — passed with the repository virtualenv and Node 22 runtime\n- scripts/pr-preflight — passed (26 checks)\n- make preflight — passed\n\n

@Git-on-my-level Git-on-my-level added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 15, 2026
@mintlify

mintlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 15, 2026, 8:27 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟡 Building – Jul 15, 2026, 8:26 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@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: d3ae968690

ℹ️ 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 .github/checks-manifest.yaml Resolved
@Git-on-my-level
Git-on-my-level force-pushed the codex/issue-9822-failure-class-protocol branch from 26ba8eb to c06cb82 Compare July 15, 2026 22:22
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Resolved the P1 review thread on .github/checks-manifest.yaml regarding PR-body validation running on main pushes.

Finding: The Codex P1 concern was already addressed by commit cb00181c ("harden(ci): scope PR metadata checks to preflight"), authored ~26 minutes after the review was posted. That commit:

  • Added requires_pr_body: true to both failure-class-protocol and product-invariants checks in .github/checks-manifest.yaml
  • Modified .github/workflows/repo-checks.yml to pass --skip-pr-body-checks on the push-to-main path (github.event_name != 'pull_request')
  • Updated run_checks.py to honor the --skip-pr-body-checks flag in resolve_checks()

Verification:

  • python3 .github/scripts/test_run_checks.py — 13 passed
  • Confirmed failure-class-protocol is excluded when --skip-pr-body-checks is set (main push path) and included when it is not (PR path)

No code changes were needed. The review thread has been resolved.

@Git-on-my-level
Git-on-my-level merged commit 419ec53 into main Jul 16, 2026
23 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/issue-9822-failure-class-protocol branch July 16, 2026 03:52
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…ware#9841)

## Summary\n\n- add a semantic, JSON failure-class registry plus an
offline scripts/failure-class CLI for agent-oriented preparation,
explanation, validation, and advisory reporting\n- surface the same
failure-class guidance with product-invariant suggestions through
scripts/pr-preflight --suggest, before a PR exists\n- keep PR-body
checks in local/PR preflight while excluding them from metadata-less
post-merge main pushes\n- enforce PR-body declarations for reactive fix:
commits through the existing preflight manifest, while distinguishing
proactive harden: work\n- add manifest-backed recurrence ratchets for
naive Python datetime sort sentinels and unsafe macOS Swift dictionary
construction\n- replace repetitive existing-class narratives with a
validated declaration, require real-incident citations for new guards,
and defer locked invariants until seven stable days\n- extract the X
connector transport and DTOs from APIClient.swift into its connector
feature, reducing the client from 6,502 to 6,430 lines without changing
endpoint behavior\n\nCloses BasedHardware#9822\n\n## Failure class
(fixes)\n\nFailure-Class: none\n\n## New guards\n\nThe datetime ratchet
cites BasedHardware#9571 and BasedHardware#9600; the desktop dictionary ratchet cites BasedHardware#6506 and
BasedHardware#9288. These are static checks because the canonical safe primitives
already exist, while the prohibited patterns can be reintroduced
independently at multiple call sites.\n\n## Product invariants
affected\n\n- INV-AUTH-1 — the authenticated transport implementation is
unchanged; this moves its X connector extension only.\n- INV-INT-1 — the
X connector endpoints and DTOs are now co-located with their
connector-import feature; behavior is unchanged.\n\n## Verification\n\n-
python3 scripts/test_failure_class.py — 13 passed\n- python3
.github/scripts/test_pr_preflight.py — 10 passed\n- python3
.github/scripts/test_run_checks.py — 13 passed\n- focused backend
ratchet tests — 6 passed\n-
BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-backend-unit-failures.txt bash
backend/test.sh — 9 passed\n- bash backend/test.sh — 631-file
CI-equivalent suite passed\n- xcrun swift test --package-path Desktop
--filter ConnectorImportOperationsTests — 13 passed\n- xcrun swift build
-c debug --package-path Desktop — passed\n- python3
desktop/macos/scripts/check_desktop_test_quality.py — passed\n-
desktop-core-harness self-check — passed with the repository virtualenv
and Node 22 runtime\n- scripts/pr-preflight — passed (26 checks)\n- make
preflight — passed\n\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Skip desktop changelog enforcement for internal-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant