Automattic / Automattic/blocks-engine
Preserve deterministic counter runtime state
- Dominant language
- PHP
- Stars
- 14
- Forks
- 2
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 606
Description
## Problem
The transformer materializes declarative counters directly to endpoint values while source visual capture observes their scripted runtime progression. Home therefore renders different values despite aligned section geometry.
## Direction
Define and preserve a deterministic counter presentation contract that matches source behavior at parity capture without fixture-specific values or timing hacks.
## Acceptance
- Home counter values and positions match source deterministically.
- Counter behavior remains useful in the imported site.
- Repeated captures are stable.
- Transformer contracts and parity fixtures pass.
## AI assistance
OpenAI gpt-5.6-sol through OpenCode analyzed the parity evidence and drafted this issue. Chris Huber remains responsible for scope and implementation decisions.
Contributor guide
Research direction
Start by tracing how the transformer materializes declarative counters and how source visual capture observes their scripted runtime progression. Use the transformer contracts and parity fixtures to compare Home values, positions, imported-site behavior, and repeated captures; done means the results match deterministically without fixture-specific values or timing hacks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100