TianGong LCA Remote Ops
Scope
- This skill is a thin wrapper around native
tiangong-lca process ... commands.
- Use it when the task is specifically about remote
processes maintenance or post-write verification.
- Do not add business-specific runtime logic, Supabase auth code, or custom
.env parsing into this skill. If capability is missing, add it to tiangong-cli first.
Canonical Commands
- Refresh current-user process references:
node tiangong-lca-remote-ops/scripts/update-process-references.mjs \
--out-dir /abs/path/process-refresh \
--dry-run
- Commit the refresh after the local gate passes:
node tiangong-lca-remote-ops/scripts/update-process-references.mjs \
--out-dir /abs/path/process-refresh \
--apply
- Verify frozen rows after any remote write:
node tiangong-lca-remote-ops/scripts/verify-process-rows.mjs \
--rows-file /abs/path/process-list-report.json \
--out-dir /abs/path/post-write-verification
- For multi-type TIDAS reference verification, use the public dataset command through
current-account-dataset-review:
node current-account-dataset-review/scripts/run-current-account-dataset-review.mjs verify-remote \
--input /abs/path/rows.jsonl \
--out-dir /abs/path/dataset-verify-remote
Runtime Contract
- Remote refresh uses canonical CLI env only:
TIANGONG_LCA_API_BASE_URL
TIANGONG_LCA_SUPABASE_PUBLISHABLE_KEY
TIANGONG_LCA_OAUTH_CLIENT_ID
- Run
tiangong-lca auth status --json before remote reads and tiangong-lca auth doctor-auth --json before --apply. If login is required, stop and ask the human to run auth login in a trusted terminal.
- Never ask for or print a username, password, authorization code, token, or legacy API key. A headless orchestrator may inject one short-lived access token without exposing it to argv, prompts, logs, or artifacts.
- Use a separate private
TIANGONG_LCA_SESSION_FILE for each account/project/client.
verify-process-rows is local-only and does not require remote credentials by itself.
- Wrapper-local
--cli-dir is the only supported override for choosing a local CLI checkout.
Guardrails
- Never hardcode or print passwords, access tokens, refresh tokens, authorization codes, decoded legacy payloads, or raw secret env values.
- Keep
--out-dir explicit so manifests, progress logs, blockers, and verification artifacts are reproducible.
- Before any remote write, apply the state-driven routing rule in references/process-write-routing.md.
- Treat local
ProcessSchema validation plus unresolved-reference checks as the hard gate, not HTTP success alone.
- If upstream identity, build-plan, Foundry process curation, reference, or matrix-readiness reports contain blockers, do not call the remote write path.
- Preserve post-write verification artifacts in the handoff; a successful HTTP response is not sufficient evidence.
1---2name: tiangong-lca-remote-ops3description: Wrap TianGong CLI process maintenance commands for authenticated remote process refreshes and local post-write verification. Use when tasks need current-user process reference refreshes, resumable process maintenance artifacts, or strict local verification of fetched process rows.4---56# TianGong LCA Remote Ops78## Scope9- This skill is a thin wrapper around native `tiangong-lca process ...` commands.10- Use it when the task is specifically about remote `processes` maintenance or post-write verification.11- Do not add business-specific runtime logic, Supabase auth code, or custom `.env` parsing into this skill. If capability is missing, add it to `tiangong-cli` first.1213## Canonical Commands14- Refresh current-user process references:1516```bash17node tiangong-lca-remote-ops/scripts/update-process-references.mjs \18 --out-dir /abs/path/process-refresh \19 --dry-run20```2122- Commit the refresh after the local gate passes:2324```bash25node tiangong-lca-remote-ops/scripts/update-process-references.mjs \26 --out-dir /abs/path/process-refresh \27 --apply28```2930- Verify frozen rows after any remote write:3132```bash33node tiangong-lca-remote-ops/scripts/verify-process-rows.mjs \34 --rows-file /abs/path/process-list-report.json \35 --out-dir /abs/path/post-write-verification36```3738- For multi-type TIDAS reference verification, use the public dataset command through `current-account-dataset-review`:3940```bash41node current-account-dataset-review/scripts/run-current-account-dataset-review.mjs verify-remote \42 --input /abs/path/rows.jsonl \43 --out-dir /abs/path/dataset-verify-remote44```4546## Runtime Contract47- Remote refresh uses canonical CLI env only:48 - `TIANGONG_LCA_API_BASE_URL`49 - `TIANGONG_LCA_SUPABASE_PUBLISHABLE_KEY`50 - `TIANGONG_LCA_OAUTH_CLIENT_ID`51- Run `tiangong-lca auth status --json` before remote reads and `tiangong-lca auth doctor-auth --json` before `--apply`. If login is required, stop and ask the human to run `auth login` in a trusted terminal.52- Never ask for or print a username, password, authorization code, token, or legacy API key. A headless orchestrator may inject one short-lived access token without exposing it to argv, prompts, logs, or artifacts.53- Use a separate private `TIANGONG_LCA_SESSION_FILE` for each account/project/client.54- `verify-process-rows` is local-only and does not require remote credentials by itself.55- Wrapper-local `--cli-dir` is the only supported override for choosing a local CLI checkout.5657## Guardrails58- Never hardcode or print passwords, access tokens, refresh tokens, authorization codes, decoded legacy payloads, or raw secret env values.59- Keep `--out-dir` explicit so manifests, progress logs, blockers, and verification artifacts are reproducible.60- Before any remote write, apply the state-driven routing rule in [references/process-write-routing.md](references/process-write-routing.md).61- Treat local `ProcessSchema` validation plus unresolved-reference checks as the hard gate, not HTTP success alone.62- If upstream identity, build-plan, Foundry process curation, reference, or matrix-readiness reports contain blockers, do not call the remote write path.63- Preserve post-write verification artifacts in the handoff; a successful HTTP response is not sufficient evidence.