promote
Promote local knowledge items to team or org scope based on trust thresholds, with automatic content restatement for cross-project use.
Instructions
Graduate knowledge up a scope as it earns trust — the compound-growth step. With no arguments, scans your local items and promotes every one that qualifies to team. With an item_id, promotes that item one level (local->team, or team->org with to_scope="org").
Thresholds: local->team needs recalls >= CAMBIUM_PROMOTE_RECALLS or one endorsement; team->org always needs an endorsement (force=True overrides, use deliberately). Org promotion lands as a direct push, or as a pull request when CAMBIUM_ORG_PR=1 — the PR review is the org trust gate.
org_content : the cross-project restatement of a body that is specific to
one repo. Promotion to org changes the readership to everyone, so a
project-local runbook ("append to dashboard.py REGIMES") must become the
general rule ("annotate a regime boundary when a metric's computation
changes"). If the body reads project-specific and no org_content is given,
promotion is refused (with the tells and a suggested draft) unless
force=True. When supplied, org_content becomes the org body and the original
is preserved as example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| item_id | No | ||
| to_scope | No | ||
| org_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |