Skip to content

N1.1 — mutation-proof document output guards - #146

Open
lamemustafa wants to merge 6 commits into
feat/client-groupingfrom
tapish-codex/n1-mutation-document-boundaries
Open

N1.1 — mutation-proof document output guards#146
lamemustafa wants to merge 6 commits into
feat/client-groupingfrom
tapish-codex/n1-mutation-document-boundaries

Conversation

@lamemustafa

Copy link
Copy Markdown
Owner

Stacked on feat/client-grouping — review only this PR's own diff.

Local gate green at this level: workspace tests and clippy in both feature configurations, fmt, tools tests, live-read boundary, fixture byte integrity, licence inventory, tsc, production build, and the workflow-consistency gate.

CI is NOT proven: the GitHub-hosted Windows and bundle-smoke jobs have never run, and one read-transport harness test fails deterministically on macOS with an unknown ubuntu outcome.

@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 164081e to 327944e Compare August 14, 2026 05:30
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 327944e to 9658e46 Compare August 14, 2026 07:21
@lamemustafa
lamemustafa marked this pull request as ready for review August 14, 2026 09:47
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 9658e46 to 95d740e Compare August 15, 2026 05:42
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 95d740e to 4c8a43d Compare August 16, 2026 06:48

@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: 4c8a43d5d1

ℹ️ 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 src-tauri/src/reports/party_statement_pdf.rs
Comment thread src-tauri/src/reports/bulk_party_statement.rs
Comment thread src-tauri/src/reports/bulk_party_statement.rs
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 4c8a43d to 7190a97 Compare August 17, 2026 14:37

@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: 7190a97f29

ℹ️ 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 src-tauri/src/commands.rs
Comment thread src-tauri/src/reports/bulk_party_statement.rs
Comment thread src-tauri/src/reports/party_statement_pdf.rs
Comment thread src-tauri/src/reports/bulk_party_statement.rs
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 7190a97 to 06d6f23 Compare August 17, 2026 18:16
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 06d6f23 to b11d72f Compare August 17, 2026 21:20
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from b11d72f to 3876c38 Compare August 17, 2026 23:52
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 3876c38 to 5acc37f Compare August 18, 2026 04:21
Harden the unprotected client-facing document boundaries demonstrated by the W1 mutation sweep. Add regression coverage that makes PDF invalid-date substitution fail, verifies bulk output bytes rather than file existence alone, and records per-party creation failures in the returned batch manifest. Extract the existing shared report filename predicate unchanged and cover CSV/local-export traversal, hidden-name, and separator rejection; cover single-statement slug portability.

Mutation proof: defaulting PDF dates to 01-Jan-2000 passed the prior valid-only test, then failed new invalid_statement_date_fails_instead_of_using_a_default. Replacing bulk write_all(bytes) with write_all(&[]) passed the prior existence-only test, then failed its byte assertion. Silently dropping a file-creation error failed the new manifest test. Returning a default filename and raw party slug each failed their new tests. Existing XLSX/PDF amount/date/text and bulk slug/collision/renderer error mutations were already caught.
Signed-off-by: Tapish Khandelwal <tapishkhandelwal13@gmail.com>
Carry the N1.1 document-boundary surface over the F4X BILLREF presentation disclosure. Claims, evidence, and trusted-evidence keys remain byte-identical to the preserved N1.1 head.

Compatibility gate: exit 0, unknown_claims=11, evidenced_claims=0. Claims/evidence/trusted identity checks: exit 0.
@lamemustafa
lamemustafa force-pushed the tapish-codex/n1-mutation-document-boundaries branch from 5acc37f to aaa855c Compare August 18, 2026 09:10
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