Inspect, initialize, verify, and reconcile the opt-in Singularity Flow capability ledger without inventing lifecycle state.
Install
npx skillscat add ashokraj2011/singularityflow/sflow-ledger Install via the SkillsCat registry.
Singularity Flow capability ledger
Output contract: Let the CLI validate and mutate state; preserve its exact result, warnings, publication status, artifacts, and next actions. For suggested actions, pair Shell with the returned Copilot command; honor commandGuidance. If absent, say "Copilot: no verified equivalent"; never invent a slash command.
Boundary: no Story required; cwd=opened Git root or verified repositoryPath from singularity-flow workspace current --json; refuse if neither resolves; never search $HOME/parents.
Use the deterministic CLI. Do not edit ledger entries, head files, idempotency
indexes, or durable intents by hand.
- Run
singularity-flow ledger status --json. - If disabled, explain that
ledger.enabled: truemust be reviewed; do not enable it silently. - If enabled but uninitialized, offer
singularity-flow ledger init. - Run
singularity-flow ledger doctorto check orphan ancestry, pin transport,
signing readiness, and the clone's custom-ref fetch configuration. - Run
singularity-flow ledger verifyfor integrity and source-pin reachability. - If a pin is unreachable, run
singularity-flow ledger repair --dry-run --json.
Preserve its distinction between a missing ref, a mismatched ref, an unavailable
remote, disabled networking, and an incomplete local cache. Safe local healing may
be applied withsingularity-flow ledger repair [--source-remote <CONFIGURED-REMOTE>]. - Never restore a remote pin on the user's behalf. If the preview proves the exact
recorded commit and offers restoration, show every destination ref and ask the user
to confirm the completeRESTORE LEDGER PINS <PLAN-SHA256>phrase. Only then runsingularity-flow ledger repair --restore-remote [--source-remote <REMOTE>] --confirm "<EXACT-PHRASE>" --json. - Use
singularity-flow ledger archive --out <FILE>only when the user asks for
an export. Explain that the bundle is verified and does not delete retained state. - Run
singularity-flow ledger reconcile [WORK-ID]for pending durable intents. - Report the exact branch, sequence, head hash, pending count, and errors.
Never describe a warning-only or unverifiable ledger as fully enforced. Never merge
the ledger branch into main, use --allow-unrelated-histories, force-push a pin, or
replace a mismatched remote pin. Changing pinTransport affects future entries; it
does not repair or erase refs already recorded in the chain.