Skip to content

Enforce typed test and tooling boundaries#425

Draft
HardlyDifficult wants to merge 35 commits into
codex/schema-cardinality-guardrailsfrom
codex/typed-test-infrastructure
Draft

Enforce typed test and tooling boundaries#425
HardlyDifficult wants to merge 35 commits into
codex/schema-cardinality-guardrailsfrom
codex/typed-test-infrastructure

Conversation

@HardlyDifficult

@HardlyDifficult HardlyDifficult commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • enforce unknown-first, no-explicit-any boundaries across production fixtures, tests, mocks, and scripts
  • make the Canton mock honor amulet_rules.domain_id and cover conflicting-domain behavior
  • remove dead fixture exports and parse dynamically prepared fixtures into their exact OCF entity types
  • add recursive type assertions that detect nested any in source, built declarations, and package-consumer contracts
  • verify exact self-package configuration and package artifacts from a clean build

Validation

  • full Jest suite passes
  • npm run test:declarations
  • npm run test:package-consumer
  • npm run test:exact-public-config
  • npm run typecheck
  • npm run build
  • npm run lint
  • npm run format
  • npm pack --dry-run
  • CI and OCP QuickStart pass on exact head 22d8fb1b0bdf3ea34e43617d0c6e81d39c5b16bf

Stack

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d1bb263b-8712-4c24-806b-2b1d67ecc8d2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/typed-test-infrastructure

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

…ils' into codex/typed-test-infrastructure

# Conflicts:
#	test/integration/production/productionDataRoundtrip.integration.test.ts
@HardlyDifficult HardlyDifficult marked this pull request as ready for review July 10, 2026 19:01
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Current head 32ad56c is green, merge-clean, unassigned, and thread-free. Advancing to Stage 2 and queuing automated review. CodeRabbit is deferred to the org-wide cooldown and remains queued without a ping.

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@copilot review

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

cursor review

@cursor cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 32ad56c. Configure here.

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown

@copilot review

Reviewed the current head (32ad56c). No additional changes are needed from my side at this time.

@HardlyDifficult HardlyDifficult marked this pull request as draft July 10, 2026 19:20
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Returned to draft because upstream schema-boundary branches #417#421 have new material fixes that still need to be propagated through this stacked PR. Exact-head CI and Copilot-first bot review will be refreshed after the ordered restack.

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@coderabbitai pause

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
✅ Action performed

Reviews paused.

@HardlyDifficult HardlyDifficult marked this pull request as ready for review July 10, 2026 22:55
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Exact head 4a1dc8b is merge-clean with CI and QuickStart green and no unresolved review threads.

@copilot review

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown

Exact head 4a1dc8b is merge-clean with CI and QuickStart green and no unresolved review threads.

@copilot review

Reviewed current head 4a1dc8b. No additional changes are needed from my side.

@HardlyDifficult HardlyDifficult marked this pull request as draft July 10, 2026 22:57
…ped-test-infrastructure

# Conflicts:
#	package.json
#	scripts/check-declarations.ts
#	test/exact/builtPublicConfig.types.ts
#	test/exact/sourcePublicConfig.types.ts
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Corrected stack propagation is pushed at 689f0d222214fa658b9395c071956ea27c50702e, incorporating exact parent #424 8968c1f5f7f1e2e2435d66a50338f3b8a1748343.

Validation on this exact head:

  • full test:ci: 91 suites / 5,287 tests, coverage passing
  • hardened test:declarations pipeline passing after a clean build
  • package entrypoint artifacts, source-vs-built canonical inventory, declaration compilation, exact public config, built cardinality, and real package-consumer resolution all checked
  • package consumer compiles with exactOptionalPropertyTypes and noUncheckedIndexedAccess; current environment discriminants include staging
  • source and built exact config assertions preserve required OAuth credentials, forbid MainNet shared-secret auth, and retain all parent immutable/omission-only contracts
  • source and built inventories agree: 55 canonical variants, 0 aliases, fingerprint 39418162cb257fc316d7a15efc24d825223fac9a9d9d4d2d5104cc53ebb444c0
  • typecheck, ESLint, Prettier, and diff checks passing

The PR remains draft and unassigned while fresh CI runs on this material revision. No reviewer requests were made during propagation.

@HardlyDifficult HardlyDifficult marked this pull request as ready for review July 12, 2026 07:29
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@copilot review

Please review exact current head 689f0d222214fa658b9395c071956ea27c50702e. Pre-review gate: both required checks are successful, GitHub is CLEAN/MERGEABLE, the PR is unassigned, and zero review threads are unresolved. Focus on typed test infrastructure, declaration assertions that cannot degrade to any, package-consumer parity, and failure-signal quality. Report every actionable current-head issue before the other reviewers.

Copilot AI commented Jul 12, 2026

Copy link
Copy Markdown

@copilot review

Please review exact current head 689f0d222214fa658b9395c071956ea27c50702e. Pre-review gate: both required checks are successful, GitHub is CLEAN/MERGEABLE, the PR is unassigned, and...

Reviewed exact current head 689f0d222214fa658b9395c071956ea27c50702e against stacked base codex/schema-cardinality-guardrails. I don’t see any additional actionable current-head issues to address.

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@cursor review

Please review exact current head 689f0d222214fa658b9395c071956ea27c50702e. Copilot completed its required exact-head pass with no actionable findings: #425 (comment). Both required checks are green, GitHub is CLEAN/MERGEABLE, and zero review threads are unresolved. Focus on typed test infrastructure, any-resistant exactness assertions, package-consumer parity, and meaningful failure signals.

@cursor cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 689f0d2. Configure here.

@HardlyDifficult HardlyDifficult marked this pull request as draft July 12, 2026 08:00
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Upstream PR #424 advanced materially with the shared dense-array security boundary and corrected #423 parent. Returning this stacked PR to draft while I propagate exact parent 1557d19b5ef42e2ec99dd8f875cb72f3fbac347c, validate the integrated tree, and rerun exact-head reviewer gates.

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Corrected parent #424 is integrated and the independent audit’s exactness finding is fixed at 8b2caa991c0ad8ace14edaf8f00bb4c811eaf0c2. All source, built, and installed-package IsExactly helpers now reject any on either operand, with lint-safe meta-assertions that fail compilation if this regresses.

Independent final validation is green: targeted 7 suites / 235 tests; full test:ci 91 suites / 5,292 tests; clean build/declaration graph/exact-public/built-cardinality/package-consumer; typecheck; lint; formatting; ancestry and diff checks. This PR remains draft and unassigned while fresh remote CI runs; Copilot will be requested first on the new exact head.

@HardlyDifficult HardlyDifficult marked this pull request as ready for review July 12, 2026 08:16
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@copilot review

Please review exact current head 8b2caa991c0ad8ace14edaf8f00bb4c811eaf0c2 against exact parent 1557d19b5ef42e2ec99dd8f875cb72f3fbac347c. This revision preserves the typed test infrastructure while making source, built, and installed-package IsExactly helpers reject any on either operand, with meta-assertions that fail if the guard regresses. Pre-review: both checks green, CLEAN/MERGEABLE, unassigned, zero threads. Focus on declaration-test soundness, any resistance, package exports, compiler-flag probes, and parent guardrail integration. Report all actionable issues before Cursor and CodeRabbit.

Copilot AI commented Jul 12, 2026

Copy link
Copy Markdown

@copilot review

Please review exact current head 8b2caa991c0ad8ace14edaf8f00bb4c811eaf0c2 against exact parent 1557d19b5ef42e2ec99dd8f875cb72f3fbac347c. This revision preserves the typed test inf...

Reviewed exact head 8b2caa991c0ad8ace14edaf8f00bb4c811eaf0c2 against parent 1557d19b5ef42e2ec99dd8f875cb72f3fbac347c with focus on declaration-test soundness, any resistance in IsExactly, package-consumer parity, compiler-flag probes, and parent guardrail integration. I don’t see any additional actionable current-head issues to address.

@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

@cursor review\n\nCopilot has completed an exact-head substantive review of 8b2caa9 with no actionable findings. Please now review this exact head, including the hardened IsExactly any guards and source/built/package-consumer type-test parity.

@cursor cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 8b2caa9. Configure here.

@HardlyDifficult HardlyDifficult marked this pull request as draft July 12, 2026 08:41
@HardlyDifficult

Copy link
Copy Markdown
Collaborator Author

Returned to draft because upstream #417 received a material exact-head corrective revision after full CodeRabbit review. This stacked PR will remain held until the audited #417 head and each intervening parent are propagated normally; fresh CI and Copilot-first reviewer gates are required afterward.

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.

2 participants