GeezerVison is showing contextcake.com — The capture write path
The capture write path
Knowledge doesn’t only flow down through the cascade — it flows up from repo
activity. The capture write path turns raw events into classified signals,
then turns high-confidence signals into durable OKF concepts:
classify-context.mjs takes a single normalized event and routes it into one
of four outcomes, using the keyword, label, and path rules in
packages/core/fixtures/context-policy.json:
Terminal window
nodeclassify-context.mjs--demo
The demo event is a merged PR titled “Add retry runbook for payment webhook
failures,” labeled runbook and incident. Because incident is a
review_required trigger (see the outcomes below), this event routes to
review_required — it’s staged for a human decision, not written live. Try it
against your own event:
Routine work (lockfile bumps, formatting, dependency bumps) — not stored as team context.
local
Useful session or author context, but not shared team knowledge. Default when no rule matches.
team_candidate
Durable team context, high enough confidence to draft or write automatically.
review_required
Risky, ambiguous, sensitive, or cross-team consequential — requires a human decision before it’s written to shared context.
review_required always wins when its rules match — keywords like auth,
credential, secret, pii, incident, breaking change; labels like
security, incident, api-contract; paths like auth/, security/,
infra/secrets. Otherwise the higher-scoring side of team_candidate vs.
ignore wins, and a repeated question (three or more occurrences by
default) is itself a team_candidate signal — the same question coming up
repeatedly is evidence the answer belongs in shared context. The classifier
result includes route, confidence, reasons (which rules matched), and a
suggestedDestination concept path — for the demo event above, that is
review/billing-api/add-retry-runbook-for-payment-webhook-failures (a
review_required staging path). A team_candidate event instead yields a
live destination like runbooks/retry-payment-webhooks.
Flags: --events <file> (default packages/core/fixtures/mock-events.json), --repos <file>
(default packages/core/fixtures/repos.json, used to attribute an owner per repo), --out <file>
(default apps/control-surface/signals.json), --policy <file> (default
packages/core/fixtures/context-policy.json), --demo (uses the bundled mock events), --help.
Each event becomes a signal carrying its route, repo, a humanized
source ("merged PR", "repeated question", "incident note", …),
confidence, owner, destination, reasons, and the recommended
action. The output also includes a per-repo coverage summary — the share of
a repo’s durable signals (team_candidate + review_required) that were
actually auto-captured, computed honestly from the signals themselves rather
than a fabricated metric.
apps/control-surface/signals.json is generated output — it’s gitignored. Serve
the dashboard to browse it:
Flags: --signals <file> (required), --manifest <file> (required),
--target-layer <name> (defaults to the highest eligible layer below the top
of the cascade — i.e. never the top layer itself, whatever its level or name;
on a conventional 3/2/0 manifest that is team, and on a manifest with no
personal layer it is the layer under whichever one is on top — or the top
layer if it’s the only one available; the chosen default is always printed),
--dry-run (prints what would be written without touching disk), --help.
The target must be a non-live local OKF layer; plain Markdown-folder sources
and live capture repositories are not batch-write targets.
Per signal:
ignore and local signals are skipped — nothing is written.
team_candidate signals are written directly to the target layer, at
the path from destination (for example runbooks/retry-payment-webhooks.md).
review_required signals are staged under _review/ in the target
layer instead of written live — _review/payment-api/add-retry-runbook.md
— pending a human decision. A signal that already resolves to an existing
file is skipped rather than overwritten.
Destinations are validated as concept ids. Traversal and symlinked parents or
files are rejected before a write, so classifier output cannot escape the
selected profile’s target root.
Every written or staged concept carries draft: true, source: <repo>, and
an updated date in its frontmatter, plus a ## Context {#context} section
with the recommended action and a ## Signals {#signals} section listing the
reasons the classifier matched. A review_required concept additionally gets
a ## Review Required {#review-required} note: approve by moving the file
out of _review/ into the appropriate layer directory.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.