flow-governance-review
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 flowflow-get->tiangong flow getflow-list->tiangong flow listmaterialize-db-flows->tiangong flow fetch-rowsmaterialize-approved-decisions->tiangong flow materialize-decisionsremediate-flows->tiangong flow remediatepublish-version->tiangong flow publish-versionpublish-reviewed-data->tiangong flow publish-reviewed-databuild-flow-alias-map->tiangong flow build-alias-mapscan-process-flow-refs->tiangong flow scan-process-flow-refsplan-process-flow-repairs->tiangong flow plan-process-flow-repairsapply-process-flow-repairs->tiangong flow apply-process-flow-repairsregen-product->tiangong flow regen-productvalidate-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/validate
Not 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.
More from tiangong-lca/skills
process-hybrid-search
Execute and troubleshoot Supabase edge function `process_hybrid_search`, which rewrites process descriptions and calls `hybrid_search_processes` with optional filters. Use when validating process query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
15flow-hybrid-search
Execute and troubleshoot Supabase edge function `flow_hybrid_search`, which rewrites flow descriptions and calls `hybrid_search_flows` with optional filters. Use when validating flow query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
14embedding-ft
Execute and troubleshoot Supabase edge function `embedding_ft` that consumes PGMQ embedding jobs, calls AWS SageMaker embeddings, and writes vectors back to Postgres. Use when validating job payload handling, investigating failed embeddings, tuning ack semantics, or adjusting worker auth/environment.
13process-automated-builder
Execute the supported `process_from_flow` CLI workflow. Use `node scripts/run-process-automated-builder.mjs auto-build|resume-build|publish-build|batch-build` when you need the unified `tiangong process ...` surface from a skill wrapper.
13lifecyclemodel-hybrid-search
Execute and troubleshoot Supabase edge function `lifecyclemodel_hybrid_search`, which rewrites lifecycle model descriptions and calls `hybrid_search_lifecyclemodels` with optional filters. Use when validating lifecycle-model query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
13lifecycleinventory-review
Review process-level or lifecyclemodel-level lifecycle inventory outputs from local TianGong build runs, plus frozen remote TianGong process snapshots. Use when auditing process_from_flow batches, remote process rows fetched through the canonical snapshot wrapper, or lifecyclemodel build artifacts through the unified CLI with reproducible review inputs and outputs.
10