feat(events): promote tool/failure and compact route families (#258 v2 s2) - #357
Conversation
Keep the three families route-only and project only host channels whose pinned semantics are proven, rejecting unsupported result effects instead of inferring control.
Vendor the Codex 0.147.0 compact schemas byte-for-byte and retain scrubbed Claude captures, including the sensitive post-compaction summary fixture.
Exercise discovery, capability asymmetry, native validation, fail-closed projection, adapter planning, and lifecycle replay while documenting the route-only contract.
🦋 Changeset detectedLatest commit: 1fa818b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fa818b094
ℹ️ 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".
| "compact/after": { "nativeEvent": "PostCompact", "state": "supported" }, | ||
| "compact/before": { "nativeEvent": "PreCompact", "state": "supported" }, |
There was a problem hiding this comment.
Advance revisions for adapters gaining compact routes
These mappings change the Codex adapter's generated hook artifacts, but codex.ts still reports the parent's adapterRevision: '1.5.0'; likewise, the composite plugin adapter now emits compact/before hooks while retaining 1.20.0. Because artifact freshness in matchesTargetMetadata relies on these revisions, artifacts produced before and after this behavior change are indistinguishable by adapter provenance. Increment both adapter revisions and update their metadata expectations.
Useful? React with 👍 / 👎.
Summary
tool/failure(Claude PostToolUseFailure + Cursor postToolUseFailure; Codex honestly unavailable),compact/before(Claude/Codex PreCompact + Cursor preCompact),compact/after(Claude/Codex PostCompact; Cursor unavailable)Test plan