Skip to content

fix(contracts): align runtime event types with supported events - #294

Merged
rynfar merged 2 commits into
pylonfrom
upstream/2026-09-06-tool-denied-types
Sep 6, 2026
Merged

fix(contracts): align runtime event types with supported events#294
rynfar merged 2 commits into
pylonfrom
upstream/2026-09-06-tool-denied-types

Conversation

@rynfar

@rynfar rynfar commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

The public runtime event-type alias omitted tool.denied despite its existing wire schema. Keep the alias aligned with the event union and add an equality check to prevent future omissions.

Adopts approved B14, upstream #9770, b7d6e65021b021207424c56cb32d6d711fd875fb. The check also identified five existing Pylon session event types absent from the alias: agent depth, input queue, compaction, harness refinement and goals. Preserve all five in the public alias. No event payload or wire compatibility changes.

Validation: 18 focused runtime contract tests pass, plus contracts, server and shared client-runtime typechecks, targeted lint and diff checks.

Model: GPT-6 Astra. Harness: Codex.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Lucenx9 and others added 2 commits September 6, 2026 07:02
Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
(cherry picked from commit b7d6e65021b021207424c56cb32d6d711fd875fb)
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.6 KiB 13.6 KiB −2 B (−0.0%) 15.1 KiB
Codex Thread snapshot wire 7.1 KiB 7.1 KiB 0 B (0.0%) 7.3 KiB
Codex Live turn WebSocket wire 6.6 KiB 6.6 KiB −2 B (−0.0%) 7.8 KiB
Codex Live turn WebSocket decoded 56.5 KiB 56.5 KiB 0 B (0.0%) 66.4 KiB
Codex Live turn messages 8 8 0 (0.0%) 21
Claude Total thread wire 13.6 KiB 13.6 KiB −4 B (−0.0%) 15.1 KiB
Claude Thread snapshot wire 7.1 KiB 7.1 KiB −3 B (−0.0%) 7.3 KiB
Claude Live turn WebSocket wire 6.5 KiB 6.5 KiB −1 B (−0.0%) 7.8 KiB
Claude Live turn WebSocket decoded 57.3 KiB 57.3 KiB 0 B (0.0%) 66.4 KiB
Claude Live turn messages 8 8 0 (0.0%) 21

Baseline: 10733dc · PR result: 1c675f4 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 111.2 KiB
  • Claude decoded thread snapshot: 111.9 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@rynfar
rynfar merged commit f0cf7eb into pylon Sep 6, 2026
17 checks passed
@rynfar
rynfar deleted the upstream/2026-09-06-tool-denied-types branch September 6, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants