Flow Governance Review
Keep local JSON or JSONL payloads as the system of record. This skill is a thin wrapper around the supported CLI governance commands.
Do not use this skill for:
- arbitrary remote CRUD outside the explicit CLI commit commands
- hidden OpenClaw orchestration
- private Python remediation helpers
- remote scope export
Runtime Model
- The canonical entrypoint is
node scripts/run-flow-governance-review.mjs <command>.... - Write outputs to an explicit directory such as
/abs/path/artifacts/<case_slug>/.... - Supported commands are all CLI-backed:
- review-flows -> tiangong review flow - flow-get -> tiangong flow get - flow-list -> tiangong flow list - materialize-db-flows -> tiangong flow fetch-rows - materialize-approved-decisions -> tiangong flow materialize-decisions - remediate-flows -> tiangong flow remediate - publish-version -> tiangong flow publish-version - publish-reviewed-data -> tiangong flow publish-reviewed-data - build-flow-alias-map -> tiangong flow build-alias-map - scan-process-flow-refs -> tiangong flow scan-process-flow-refs - plan-process-flow-repairs -> tiangong flow plan-process-flow-repairs - apply-process-flow-repairs -> tiangong flow apply-process-flow-repairs - regen-product -> tiangong flow regen-product - validate-processes -> tiangong flow validate-processes
publish-reviewed-datais fully CLI-owned for both local preparation and commit-time process publish.- There is no Python fallback path and no shell compatibility shim.
Commands
flow-getflow-listmaterialize-db-flowsmaterialize-approved-decisionsremediate-flowspublish-versionpublish-reviewed-databuild-flow-alias-mapscan-process-flow-refsplan-process-flow-repairsapply-process-flow-repairsregen-productvalidate-processesreview-flows
Run them through:
node scripts/run-flow-governance-review.mjs <command> ...For CLI-backed deterministic governance slices, prefer:
node scripts/run-flow-governance-review.mjs materialize-db-flows \
--refs-file /abs/path/flow-refs.json \
--out-dir /abs/path/materialized \
--fail-on-missing
node scripts/run-flow-governance-review.mjs materialize-approved-decisions \
--decision-file /abs/path/approved-decisions.json \
--flow-rows-file /abs/path/materialized/review-input-rows.jsonl \
--out-dir /abs/path/decision-artifacts
node scripts/run-flow-governance-review.mjs review-flows \
--rows-file /abs/path/flows.jsonl \
--out-dir /abs/path/review
node scripts/run-flow-governance-review.mjs remediate-flows \
--input-file /abs/path/invalid-flows.jsonl \
--out-dir /abs/path/remediation
node scripts/run-flow-governance-review.mjs publish-version \
--input-file /abs/path/ready-flows.jsonl \
--out-dir /abs/path/publish \
--dry-run
node scripts/run-flow-governance-review.mjs publish-reviewed-data \
--flow-rows-file /abs/path/reviewed-flows.jsonl \
--original-flow-rows-file /abs/path/original-flows.jsonl \
--out-dir /abs/path/publish-reviewed
node scripts/run-flow-governance-review.mjs build-flow-alias-map \
--old-flow-file /abs/path/old-flows.jsonl \
--new-flow-file /abs/path/new-flows.jsonl \
--out-dir /abs/path/alias-map
node scripts/run-flow-governance-review.mjs scan-process-flow-refs \
--processes-file /abs/path/processes.jsonl \
--scope-flow-file /abs/path/flows.jsonl \
--out-dir /abs/path/scan
node scripts/run-flow-governance-review.mjs plan-process-flow-repairs \
--processes-file /abs/path/processes.jsonl \
--scope-flow-file /abs/path/flows.jsonl \
--scan-findings /abs/path/scan/scan-findings.json \
--out-dir /abs/path/repair-plan
node scripts/run-flow-governance-review.mjs apply-process-flow-repairs \
--processes-file /abs/path/processes.jsonl \
--scope-flow-file /abs/path/flows.jsonl \
--scan-findings /abs/path/scan/scan-findings.json \
--out-dir /abs/path/repair-apply
node scripts/run-flow-governance-review.mjs regen-product \
--processes-file /abs/path/processes.jsonl \
--scope-flow-file /abs/path/flows.jsonl \
--out-dir /abs/path/regen \
--apply
node scripts/run-flow-governance-review.mjs validate-processes \
--original-processes-file /abs/path/before.jsonl \
--patched-processes-file /abs/path/after.jsonl \
--scope-flow-file /abs/path/flows.jsonl \
--out-dir /abs/path/validateNot Supported
The following legacy commands were intentionally removed with the Python runtime:
openclaw-entryopenclaw-full-runrun-governanceflow-dedup-candidatesexport-openclaw-*apply-openclaw-*validate-openclaw-*
If you need one of those workflows, add it first as a native tiangong review... or tiangong flow... command instead of rebuilding it inside this skill.
Preferred Usage
Use the supported commands as composable slices:
materialize-db-flowswhen the task must bind to real DB rowsreview-flowsmaterialize-approved-decisionsafter merge decisions are approvedremediate-flowsbuild-flow-alias-mapwhen version cleanup produced old/new scopesscan-process-flow-refsplan-process-flow-repairsapply-process-flow-repairsvalidate-processespublish-versionorpublish-reviewed-data
Standard Outputs
flow-alias-map.jsonwhen alias building is applicablescan-findings.jsonandrepair-summary.jsonwhen process snapshots are providedpublish-report.jsonfrompublish-reviewed-dataprepared-flow-rows.jsonandflow-version-map.jsonfrompublish-reviewed-dataskipped-unchanged-flow-rows.jsonfrompublish-reviewed-datawhen--original-flow-rows-fileis providedresolved-flow-rows.jsonl,review-input-rows.jsonl, andfetch-summary.jsonfrommaterialize-db-flowsflow-dedup-canonical-map.json,flow-dedup-rewrite-plan.json,manual-semantic-merge-seed.current.json, andblocked-clusters.jsonfrommaterialize-approved-decisions
Example Output Layout
Write generated machine outputs to an explicit directory outside the skill source tree. Typical bundles include:
/abs/path/artifacts/<case_slug>/flow-processing/datasets/: shared flow pool, invalid-input scope, resolved flow pool, reusableprocess_pool.jsonl/abs/path/artifacts/<case_slug>/flow-processing/validation/: grouped validation failures that still matter for remediation planning/abs/path/artifacts/<case_slug>/flow-processing/naming/remaining-after-aggressive/: post-aggressive completeness summaries and zero-process residuals/abs/path/artifacts/<case_slug>/flow-processing/naming/zero-process-completion-pack/: reference review materials retained for follow-up/abs/path/artifacts/<case_slug>/flow-processing/remediation/: deterministic remediation and publish preparation artifacts/abs/path/artifacts/<case_slug>/flow-remediation-batch-smoketest/: historical smoke-test evidence for remediation-helper startup checks
Load References On Demand
references/workflow.md: command matrix, outputs, removed surface, and recommended sequencing.references/env.md: canonical CLI env expectations for read, review, and publish commands.references/real-db-first-runbook.md: real-DB-first execution guardrails, refs-file shape, and blocked-case handling.references/decision-schema.md: approved decision file schema, merge examples, and downstream artifact meanings.