SOURCE-003 Build Mart Post Commit Gate Rehearsal 001¶
Fecha: 2026-06-18
Estado: PASS / ROLLED_BACK / SIN DATOS PERSISTIDOS
Objetivo¶
Validar que el write path de:
python scripts/source_003_importer.py build-mart --execute --confirm-local-dev-write SOURCE003_MART_LOCAL_DEV_1886 --rollback-rehearsal
sigue funcionando despues de agregar el segundo gate
--commit-local-dev-write, sin habilitar ni ejecutar persistencia real.
Safe point¶
mainlimpioHEAD/origin:4032fb837cd75e7602b9ce5bf9b70b459d34964e- ultimo commit:
tools: add source 003 build mart commit gate
Alcance autorizado¶
local-devunicamente- base autorizada:
openclaw_business_observer_dev - batch autorizado:
1827f887-9499-4579-b4f3-234d54f41f7f - sin produccion
- sin sync diaria
- sin runner ni scheduler
- sin CSV
- sin tocar
La Directa - sin runtime
O4 - sin
VPS,Docker,NPMniPortainer - sin push ni deploy
- sin persistencia final en
MART
Validaciones previas¶
git status -sb:## main...origin/maingit rev-parse HEAD:4032fb837cd75e7602b9ce5bf9b70b459d34964epython -m py_compile scripts/source_003_importer.py:PASSpython scripts/source_003_importer.py build-mart:DRY_RUNpython scripts/source_003_importer.py build-mart --execute:BLOCKEDpython scripts/source_003_importer.py build-mart --execute --confirm-local-dev-write SOURCE003_MART_LOCAL_DEV_1886:BLOCKEDpython scripts/source_003_importer.py build-mart --execute --confirm-local-dev-write SOURCE003_MART_LOCAL_DEV_1886 --commit-local-dev-write WRONG_TOKEN:BLOCKEDpython scripts/source_003_importer.py build-mart --execute --confirm-local-dev-write SOURCE003_MART_LOCAL_DEV_1886 --rollback-rehearsal --commit-local-dev-write SOURCE003_MART_LOCAL_DEV_COMMIT_1886:BLOCKED
Rehearsal autorizado¶
Comando ejecutado:
python scripts/source_003_importer.py build-mart --execute --confirm-local-dev-write SOURCE003_MART_LOCAL_DEV_1886 --rollback-rehearsal
Evidencia estructurada¶
BEFORERAW = 1886CORE = 1886MART = 0/0/0/0INSIDE_TX- inserts:
daily = 1,seller = 25,customer = 173,sku = 180 MART dentro de transaccion = 1/25/173/180AFTER_ROLLBACKRAW = 1886CORE = 1886MART = 0/0/0/0
Resultado final¶
ROLLBACKobligatorio ejecutadodb_write_attempted = truedata_persisted = falserollback_rehearsal = truetransaction_committed = falserollback_executed = trueexecution_status = ROLLED_BACK
Conclusion¶
La compuerta agregada con --commit-local-dev-write no rompio el write path
del rehearsal. La ruta transaccional sigue operativa, pero el estado final de
MART queda preservado en 0/0/0/0 y no se habilita persistencia real en
esta tarea.