Skip to content

feat(contracts): support dynamic contract and occurrence evolution - #30

Merged
piotr-blue merged 22 commits into
nextfrom
feat/dynamic-contract-evolution-milestone
Aug 26, 2026
Merged

feat(contracts): support dynamic contract and occurrence evolution#30
piotr-blue merged 22 commits into
nextfrom
feat/dynamic-contract-evolution-milestone

Conversation

@piotr-blue

Copy link
Copy Markdown
Contributor

Summary

Completes the reviewed dynamic-contract-evolution milestone for the Blue Language and Contracts kernel.

This PR adds:

  • deterministic application-contract evolution;
  • full-lifecycle closure admission;
  • typed, non-committing resource demands;
  • managed transition evidence exposed through the public Contracts API;
  • conformance coverage for contract, graph, lifecycle, and transition behavior;
  • updated API baselines, generated references, release gates, and milestone receipts.

Verification

The milestone was validated through the repository’s complete quality and RC gates, including:

  • clean build and test suite;
  • Contracts and Language conformance;
  • API and compatibility baselines;
  • lifecycle and transition-evidence verification;
  • reproducible release artifacts;
  • final-quality and RC verification.

The large generated diff primarily contains regenerated conformance, API, documentation, and release-evidence artifacts bound to the reviewed implementation.

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

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +213 to +215
Node exactPayload = selectedRoute == null
? request.exactPayload()
: selectedRoute.exactPayload();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject mismatched payloads on selected routes

When a caller classifies two events or updates that match the same channel and then accidentally pairs one route with the other ManagedDocumentStepRequest, requireFrozenDispatchBundle accepts the pair because it checks only the work kind and channel key. These lines then silently replace the request's exact payload—and, for embedded events, its occurrence event—with data from the unrelated route, so executeSelectedRoute processes different work from the exact request and attribution evidence it was given. Compare the request and route payload/occurrence identities and reject mismatches before dispatch.

Useful? React with 👍 / 👎.

@piotr-blue
piotr-blue merged commit 1825a6f into next Aug 26, 2026
1 of 2 checks passed
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