Skip to content
Open access

State-Transition Instrumentation in AI-Mediated Block-Based Programming: Replay Consistency and Provenance Preservation

2026 · IEEE Access · Vol 14, pp. 161428-161445 · 0 citations · 33 references

Abstract

Artificial intelligence (AI)-mediated block-based programming requires process records connecting direct editing, generated proposals, and checking to observable workspace states. This article presents a state-transition instrumentation framework combining structural normalization, SHA-256 identifiers, task-specific checker linkage, proposal provenance, and self-loop retention in a shared schema. The architecture separates online capture from offline reconstruction. Controlled synthetic traces exercise schema-level invariants, and a frozen export from five sixth-grade classes provides 31,168 source records, including 12,513 snapshots. Offline recomputation reproduced all stored canonical representations and state hashes under the specified normalization rules. Canonical hashing consolidated 10,857 raw-snapshot identifiers into 5,345 identifiers. Reconstruction yielded 11,954 transitions, including 5,822 self-loops (48.7%), reported by snapshot-triggering label and mode. In 1,021 state-changing observations at checking, session-end, or generation triggers marked as unapplied, the trigger alone did not identify the operation responsible for the difference. By recording convention, each of the 441 generation events was paired with a provenance entry. Across 1,122 checked task–state pairs, no pair had conflicting recorded outcomes. A stratified 100-pair comparison with adjudicated task judgments reported 93.0% checker–reference agreement (Cohen’s $\kappa =0.86$ ), with seven disagreements in two rule-coverage categories. The contribution is a source-linked representation for direct and AI-mediated programming that supports deterministic replay and inspection of retained process evidence.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.