AGENT SKILL

bubbles-propagation-policy

How to author and maintain propagation-policy.yaml — the contract bubbles.propagate (J-Roc) reads to cherry-pick changes across release trains.

License 许可
MIT
最近更新
2026-11-07
Stars
★ 1
Forks
0

01 前言 Front Matter

description
How to author and maintain propagation-policy.yaml — the contract bubbles.propagate (J-Roc) reads to cherry-pick changes across release trains.

03 SKILL.md 正文

bubbles-propagation-policy

bubbles.propagate (J-Roc) is the cross-train change-movement operator. Without propagation-policy.yaml, J-Roc refuses every operation and emits blocked. This skill explains how to write that policy.

When to author this file

  • You have ≥2 release trains declared in config/release-trains.yaml.
  • You want fixes / features that land on one train to flow to others without manual git cherry-pick.
  • You want a single audit trail of which commits moved between which trains, when, by whom.

If you run only one train, you do not need a propagation policy.

File location

J-Roc searches:

  1. propagation-policy.yaml (repo root) — preferred
  2. config/propagation-policy.yaml

If neither exists, J-Roc emits blocked with the template path.

Schema (v1)

See templates/propagation-policy.yaml.tmpl for the canonical example. The required fields:

Field Type Required Notes
version int yes Currently 1
trains[] list yes Each id MUST exist in config/release-trains.yaml
trains[].id string yes Train identifier
trains[].role string no Informational: incoming / staging / production / hotfix-only
defaultFlow[] list yes Directed graph of propagation edges
defaultFlow[].from string yes Source train id
defaultFlow[].to string yes Target train id
defaultFlow[].auto bool yes true = forward processes without confirmation; false = lists with --confirm required
defaultFlow[].receivingTrainValidationMode string yes validate-only | full-delivery | none
defaultFlow[].validationSkipReason string conditional Required iff receivingTrainValidationMode: none
defaultFlow[].backportable bool no (default false) If true, J-Roc may backport via this edge under approval guard
backportRequiresApproval bool yes If true, backport refuses without --approval-token=<sha>
ledgerPath string no Defaults to propagation-ledger.yaml
options.defaultStrategy string no cherry-pick (default) or merge
options.signOff bool no Whether to pass --signoff to cherry-pick

Edges, not chains

Each edge is independent. To express experimental → mvp → prod, declare two edges:

defaultFlow:
  - from: experimental
    to: mvp
    auto: true
    receivingTrainValidationMode: validate-only
  - from: mvp
    to: prod
    auto: false
    receivingTrainValidationMode: full-delivery

J-Roc processes each edge separately. The second only triggers if the first succeeded AND mvp → prod is auto, OR the operator explicitly invokes the next hop.

Validation depth

Mode When to use
validate-only Receiving train is short-lived (mvp, staging); want fast feedback
full-delivery Receiving train is production; want every gate the trunk would enforce
none Receiving train is build-only or experimental sandbox; MUST include validationSkipReason

Backport contract

Backport is intentionally awkward. The default policy ships with backportRequiresApproval: true and backportable: false on every edge. To enable a backport:

  1. Mark the edge backportable: true.
  2. Decide whether backportRequiresApproval stays true (recommended for any edge touching prod).
  3. When operator invokes /bubbles.workflow propagate action:backport from prod to experimental:
    • J-Roc emits route_required with action: human-approval listing the commits + diff summary.
    • Operator reviews, then re-invokes with --approval-token=<sha> (the sha is the approval anchor).
    • J-Roc records the approval token in the ledger entry.

Ledger format

propagation-ledger.yaml (or path declared in policy) is append-only JSONL:

{"timestamp":"2026-05-10T12:34:56Z","operator":"alice","operation":"forward","fromTrain":"experimental","toTrain":"mvp","commits":["abc123","def456"],"validationMode":"validate-only","validationOutcome":"passed","approvalToken":null}
{"timestamp":"2026-05-10T14:00:00Z","operator":"alice","operation":"backport","fromTrain":"prod","toTrain":"experimental","commits":["999aaa"],"validationMode":"validate-only","validationOutcome":"passed","approvalToken":"sha:abc1234567"}

G123 (propagation-ledger-recorded) enforces append-only discipline. Rewriting past entries fails the gate.

Anti-patterns

Don't Why
Declare an edge with auto: true and receivingTrainValidationMode: none and no validationSkipReason Hides risk — J-Roc refuses
Reference a train not in config/release-trains.yaml DVS is the source of truth for trains — J-Roc refuses
Edit past ledger entries Append-only is the audit contract — fails G123
Use J-Roc for the initial cut of a release That's DVS's job — J-Roc only moves what's already cut
Backport without backportable: true on the edge Explicit opt-in is required — J-Roc refuses

Quick start

cp templates/propagation-policy.yaml.tmpl propagation-policy.yaml
# Edit trains[] to match your config/release-trains.yaml
# Edit defaultFlow[] to declare your edges
bash bubbles/scripts/propagation-policy-guard.sh
# Should exit 0. If not, fix the reported issues.
/bubbles.workflow propagate action:audit-drift   # safe first run, no mutation

Gate reference

  • G121 propagation-policy-declared — file exists, schema valid
  • G122 propagation-validation-required — every edge has receivingTrainValidationMode and (if none) validationSkipReason
  • G123 propagation-ledger-recorded — every operation appends one ledger entry; entries are immutable

04 同仓库更多 Skills

pkirsanov
pkirsanov/smackerel

smackerel-trace-capture

Wire Smackerel's concrete validate-plane stack into the framework trace-driven defect-discovery method. Use when running live-category tests (integration/e2e/e2e-ui/stress) against the ephemeral test stack; capturing SLO or trace evidence; hunting latency/error/perf bugs from spans; querying the test-stack Jaeger or Prometheus; or touching `.specify/runtime/observability`. Concrete smackerel endpoints + the exact `capture-slo.sh` command; do NOT duplicate `bubbles-observability-adapter` — this only adds the wiring.

★ 1
pkirsanov
pkirsanov/smackerel

smackerel-no-defaults

Enforce Smackerel's NO-DEFAULTS / fail-loud SST policy. Use when editing config, Docker Compose, deploy adapters, docs, instructions, skills, env handling, host bind addresses, or any runtime value that could be hidden by fallback syntax.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-workflow-mode-resolution

Resolve a Bubbles workflow mode against `bubbles/workflows.yaml`, including template inheritance, status ceilings, gate wiring, and decision policy. Use when picking a mode for a request, when a guard reports a mode-related failure, or when extending workflows.yaml with a new mode or template. Covers natural-language intent routing and the workflow registry consistency rules.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-workflow-execution-loops

Run per-round synchronous workflow execution loops correctly. Use when orchestrating a multi-round workflow, dispatching specialist subagents, handling round-based remediation, or interpreting a workflow mode's execution policy. Covers authorized direct execution, dispatch-and-wait, batch-then-summarize prohibition, and mapped-mode execution.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-vscode-agent-constraints

Design agents that fit the VS Code Copilot Chat runtime instead of fighting it. Use when authoring or editing any `*.agent.md`; when adding `tools:`, `agents:`, `handoffs:`, `model:`, `user-invocable:`, or `disable-model-invocation:` frontmatter; when designing an orchestrator that dispatches specialists; when a design implies agent-calls-agent-calls-agent chaining; when a subagent dispatch silently no-ops or an agent cannot be selected in the dropdown; or when writing a governance rule about delegation that the runtime cannot actually enforce. Prevents multi-level-subagent designs, prose-only dispatch laws, and frontmatter/body contradictions.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-upkeep-cadence

How to schedule, dispatch, and record recurring operational upkeep tasks (backup, restore-drill, BCDR-drill, patch-cycle, secret-rotation, flag-cleanup, compliance-sweep). Use when authoring or modifying `config/upkeep-calendar.yaml`, when investigating a missed task, when reading the upkeep ledger, or when adding a new task type.

★ 1