Repository navigation
harden: add failure-class protocol and recurrence ratchets - #9841
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
💡 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".
b09b841 to
34f6475
Compare
26ba8eb to
c06cb82
Compare
|
Resolved the P1 review thread on Finding: The Codex P1 concern was already addressed by commit
Verification:
No code changes were needed. The review thread has been resolved. |
…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
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