Automattic / Automattic/blocks-engine

Preserve deterministic counter runtime state

Open
#752 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.