Skip to content

refactor(replay): own execution and source data ports in contracts - #4534

Open
thymikee wants to merge 8 commits into
t3/maestro-plugin-extractionfrom
t3/replay-data-contracts
Open

thymikee wants to merge 8 commits into
t3/maestro-plugin-extractionfrom
t3/replay-data-contracts

Conversation

@thymikee

@thymikee thymikee commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Advance #3871: move replay data and execution-port contracts to their shared owner; reuse NodeStructuralDenotation and correct stale module references.

61 files; 1,486 gross lines against the immediate layer. This depends on #4505 and adds no execution engine or lifecycle owner.

Validation

Published 8a215d81e08818cffb02853b13b5b027ef6e94fa, base 0158fac999f447ff592e753ccdbbcf760fe7177e. All eight data patches are unchanged through range-diff. Prior six step-loop checks at f4a715a1 remain historical evidence. The composed top 3c32e14e0046147ac31a63ab41a978edf0091970 passed pinned pnpm 11.17 frozen install/build, full format, typecheck, lint, layering and 58 focused cases.

Independent Apex source/prose recheck found no regressions. This layer's exact-head affected gate remains pending. Current-head hosted records show 15 successful/3 skipped, plus 12 cancelled duplicate records; none are pending or failing. The unselected mutation matrix remains skipped, not a sweep pass. Size at 8a215d8 passed: +30 B unpacked, +3 B download; seven-run startup snapshots establish no causal performance conclusion. Top checks are separate from a layer-specific receipt; earlier exact 42/25 evidence remains at its old head.

C3 canonical/performance/publication prerequisites and C4 representative native/platform/remote qualifications remain open. Ready for review; no merge clearance.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.08 MB 6.08 MB +30 B
Package (unpacked) 6.08 MB 6.08 MB +30 B
Package (download) 1.84 MB 1.84 MB +3 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 21.6 ms 20.9 ms -0.7 ms
CLI --help 43.6 ms 44.4 ms +0.8 ms

@thymikee
thymikee added this pull request to stack #4529 November 13, 2026 23:26
@thymikee thymikee changed the title refactor(replay): separate divergence data from executable engines refactor(replay): own execution and source data ports in contracts Nov 14, 2026
@thymikee
thymikee force-pushed the t3/replay-data-contracts branch from 1ae41e5 to 164b557 Compare November 14, 2026 01:51
@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 164b557: I found no problems in the code. CI is green at this head, and the cancelled jobs in the earlier runs were superseded by the passing runs. I did not run tests locally, did not re-measure the startup-median latency left open, and did not read all 60 changed files line by line. Instead I relied on the patches matching the earlier reviewed commit plus spot checks of the contracts exports. Not blocking: the header comments in packages/contracts/src/ad-replay-execution.ts still carry history, and the ../index.ts reference no longer resolves in contracts, so you can trim them to the current ownership statement in a follow-up or leave them. The PR is a draft stacked on t3/maestro-plugin-extraction, so it merges after its base.

@thymikee
thymikee force-pushed the t3/replay-data-contracts branch from 164b557 to 1078ec0 Compare November 14, 2026 05:57
@thymikee

Copy link
Copy Markdown
Member Author

The preparation layer remains unchanged at 1078ec04f8baab6301072d20bec94ae0ceb00c55. Its affected admission passed at that exact head (42 passed / 25 skipped, exactCommit=true, checkoutChanged=false) and all 19 hosted checks passed. The retained range-diff shows the preparation patches unchanged through the public-type restack.

I have left the optional comment/constant-placement cleanup out of this round: there is no triggering source defect, and changing this already independently reviewed lower layer would rebase all consumers. The actual contracts-first boundary, moved declarations' runtime consumers, and unused-export/changed-line guard failures were addressed in the published layers; historical failed receipts remain historical failures. This is code/admission evidence only. C3 integration, native ADR acceptance, live/platform requirements and private-package npm setup still block stack integration.

@thymikee
thymikee marked this pull request as ready for review November 14, 2026 08:08

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 60 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@blacksmith-sh

blacksmith-sh Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
smoke:deep-link-navigation/smoke:deep-link-navigation View Logs

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

@apex-sentinel-staging

apex-sentinel-staging Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve

Since the last review: 0 new · 0 still open · 0 no longer raised

The changes are the same as on f4a715a, so this is that review, not a new one. Comment @apex-sentinel-staging review to review again.

No open findings.

Not in the reviewers' prompt (1 file)
  • pnpm-lock.yaml: generated or a lockfile, so its lines were left out

Reviewed with this repository's own Sentinel configuration (d38e35e61193).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

Earlier reviews

Review of f4a715a1 · 14.11.2026 09:57 UTC

Apex Sentinel · ✅ Approve

Since the last review: 0 new · 0 still open · 0 no longer raised

No open findings.

Not in the reviewers' prompt (1 file)
  • pnpm-lock.yaml: generated or a lockfile, so its lines were left out

Reviewed with this repository's own Sentinel configuration (d38e35e61193).

Review of 1078ec04 · 14.11.2026 08:16 UTC

Apex Sentinel · ✅ Approve

No open findings.

Not in the reviewers' prompt (1 file)
  • pnpm-lock.yaml: generated or a lockfile, so its lines were left out

2 findings below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (d38e35e61193).

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 14, 2026
@thymikee

Copy link
Copy Markdown
Member Author

The iOS log at 1078ec04 identifies the Blacksmith failure: smoke:deep-link-navigation calls the stored-URL Maestro YAML and receives INVALID_ARGS with details.reason: plugin-not-installed for @agent-device/maestro. The selected Apple aggregate correctly fails with iOS.

A local correction now installs the built Maestro plugin after the shared Apple build, using a job-scoped plugin home inherited by subsequent smoke steps. It belongs in the lower Maestro layer, so it reaches this PR too. Frozen install/build/format and a device-free real installer/source-export check pass; publication is queued in the active stack refresh. Fresh hosted iOS success is still required.

@thymikee
thymikee force-pushed the t3/replay-data-contracts branch from f4a715a to 8a215d8 Compare November 14, 2026 10:11
@thymikee

Copy link
Copy Markdown
Member Author

I found no code problems at 8a215d8. Both earlier minor notes are fixed there: AdReplayTargetStructuralDenotation is now Readonly<NodeStructuralDenotation>, and the step-loop.ts comments point to @agent-device/contracts/ad-replay-execution. This follows the earlier review of 1078ec0 (#4534 (comment)).

The two minor threads, #4534 (comment) and #4534 (comment), no longer apply at this head, so you can resolve them.

The checks do not confirm green yet. All 12 jobs that did not pass were cancelled, not failed, which points to superseded runs. A complete CI run on 8a215d8 must finish green before merge. I did not compile or run tests. I judged the type change from the type shapes, and CI owns that check.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant