/hexaemeron:ephorosfrom Hexaemeron
Guides telemetry design: write on-call questions first, then emit structured events, bounded metrics, and correlated traces. Use when adding logging, metrics, tracing, or alerting to unattended systems.
Ships in Hexaemeron. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
From ephoros, the overseer whose office was to watch and report. Watching is the whole job. It does not make the system faster or safer, and without it the first incident becomes archaeology.
Ephoros owns the telemetry that stays: what a step emits, in what shape, and what wakes someone up.
Fiat and Mason apply it while implementing anything that runs unattended, and Warden reruns its mechanical gate in non-Solidity rounds. Elenchus may add temporary instrumentation while chasing one failure; Ephoros decides what remains afterwards. Metron measures performance, and Phylax guards the data and secrets the telemetry boundary crosses.
A Synkrisis finding may suggest that a signal is missing or late. That suggestion cannot decide what telemetry a step keeps.
Its version, held frontier, next job, and maturity state live in EVOLUTION.md.
Current state. Five rules are executable: E001, E002 and E003 read Python and the TypeScript surface, E004 reads the supported block-YAML subset, and E005 reads Python, supported block-YAML label keys and the TypeScript surface through the shared masked lexer. E002, E003 and E005 run clean over this marketplace and the pinned application clone, which holds no metric label container and no mean over a duration; E001 reports 14 interpolated logger messages over that clone.
Telemetry with no question behind it is volume. Write two to four questions someone will ask at three in the morning, then emit only what answers them.
Step: fee submission service
1. Did the last cycle submit, and did what it submitted land?
2. When one fails, is it a revert, a timeout, or a stuck nonce?
3. Is the subgraph behind the chain, and by how many blocks?
Cannot name the questions? Then the step is not ready to instrument. You will emit everything and learn nothing.
| Signal | Answers | Cost |
|---|---|---|
| Event | What happened in this one case | Grows with volume |
| Metric | How often, how slow, in aggregate | Fixed per series |
| Trace | Where the time went across hops | Sampled |
Metrics say something is wrong, traces say where, events say why.
An event carries a stable name and fields a query can reach. A sentence with values baked into it carries neither.
# unreachable by query, and the values are welded into the string
log.info(f"harvested {n} blocks for {market} in {secs}s")
# stable name, machine-readable fields
log.info("harvest_interval_done", extra={
"event": "harvest_interval_done",
"run_id": run_id,
"venue": venue,
"blocks": n,
"duration_s": round(secs, 3),
})
Levels carry meaning, so spend them carefully. error means an invariant broke
and somebody may need to act on it now. warn means degraded but handled: a
retry that worked, a fallback taken, a slow dependency ridden out. info marks
an event the business cares about. debug stays off outside development.
Interleaved output without a shared identifier cannot be reassembled. Mint one at each boundary and carry it through every line, span and outbound call.
The identifier differs by surface. A route takes or generates a request id and returns it in the response header. A harvest mints a run id and stamps every interval under it. A submission carries the nonce and, once broadcast, the transaction hash, because that is the identifier the chain itself will use.
phylax sets this rule and this skill inherits it. No key, no mnemonic, no RPC
or database credential, no session token, no signed payload. An exception
handler that prints the request it failed on prints the header it failed with.
One rule belongs here rather than there. Do not index telemetry by wallet address. Recording who asked about which address, or pairing an address with a resolved name in a log the team greps, builds exactly the linkage Probitas refuses to produce. Where an address is genuinely needed to diagnose, it goes in an event, never in a metric label or a dashboard axis.
Instrument rate, errors and duration on every route and every dependency you call. For pools, queues and workers, watch utilisation, saturation and errors.
Every distinct label combination is a separate series, so labels come from small fixed sets: the route template, a status class, a venue name, a chain id. Never a wallet address, a transaction hash, a run id, a raw URL, or the text of an error. Those belong in events, where high cardinality is the point.
Record durations as histograms and read them at p95 and p99. An average is the number that hides the people having the worst time.
A route. Rate, errors and duration per route template, plus the same for Prisma and for every call out to the subgraph or an RPC. A route that fails because a dependency failed should say which.
A long-running job. Progress is the signal, not completion. Emit the interval just finished, how far behind head it is, and when it last advanced. A harvester that stops is indistinguishable from a slow one unless staleness is measured.
A signer. The highest stakes surface here, because it moves money. Record the intent before broadcast, the hash on broadcast, and the receipt on inclusion, each under the same nonce. Count submitted, landed, reverted and still pending, and record the age of the oldest pending item. Under a process manager, logs are files someone will read later, so the rule above about keys is not advice.
Page on symptoms, put causes on a dashboard. A cause fires when nothing is wrong and stays quiet during failures nobody predicted.
Every alert earns its place: it is actionable, it links to three lines saying what to check first, and its threshold comes from an objective or from history rather than from taste. Two severities are enough. A third teaches people to ignore the first.
Instrumentation is code and can be wrong. Before receipting, exercise it.
Force an error and find it by its correlation id, confirming the fields arrived as fields. Send traffic and confirm the series appear with the labels you expect and no others. Follow one request end to end with no gap where a context was dropped. Fire each new alert once, by moving its threshold, and confirm it arrives where it should.
Then read a sample of real output with phylax's rule in hand, looking for a
credential or an address that should not be there.
Five of these rules are settled by a parser. Run the lint over the paths a step touched, and require exit 0.
python3 "$PLUGIN_ROOT/skills/ephoros/scripts/ephoros.py" src tests
It reports a log message assembled by formatting, a metric label drawn from an
unbounded source, a duration summarised as a mean, and E004 for each supported
block-YAML list entry starting with alert: that lacks its own nested
annotations.runbook Markdown path. Comments, block scalars, top-level keys
and neighbouring alert entries do not satisfy E004. The YAML pass establishes
presence only: Hypomnema H003 resolves the path and H007 checks the target's
answers.
E001 also reads .ts/.tsx through the shared masked lexer, under the same
1 MiB boundary as E005: a log call whose first argument is an interpolated
template literal or a concatenation involving a string literal reports a
message built by formatting. A template literal carrying no ${} is a
constant string on this surface and stays clean, where Python's E001 fires
on a placeholder-free f-string; that divergence is decided once, in
adr/keep-a-constant-template-literal-outside-e001.
Both halves read the argument's text rather than its grammar, and both fail
toward reporting. Interpolation is any ${ in the first argument once it
opens with a backtick, escaped or not and inside the literal or after it, so
logger.debug(`cost is \${x}`) and logger.info(`done` /* ${x} */)
each fire. Concatenation is proximity rather than operands: a + outside
any string or comment and a quote character anywhere in the same first
argument, so logger.info(labels['k'] + n), logger.info(fmt(a + "b")) and
logger.info(a + b /* it's fine */) each fire with no string literal as an
operand. Neither limit is reached in the pinned clone: none of its 21
log-call first arguments carries a +, and no .ts or .tsx file the walk
reads carries \${; the three generated storybook-static bundles that do
are .js files the checker never reads.
E002 also reads .ts/.tsx, from the same label containers E005 reads: the
array or object literal after a labels, labelNames, label_names, tags
or attributes property inside a metric-named call, and the object argument
of a .labels(...) call. Each key is split into words at a case change and
at each _, the way E005 reads walletAddress and wallet_address alike,
and matched against the Python rule's fragments as whole words: hash,
tx, nonce, url, path, email, user, account, session, error,
message, id and their compounds and plurals. An address-shaped key
reports E005 alone, so one key carries one code. Two consequences of that
vocabulary differ from Python, deliberately. Every plural is a word of its
own, so hashes reports E002 and addresses reports E005 here, where the
Python s? suffix passes both; that gap stays open on the Python surface.
And the split reaches camel case, so every key carrying id as a word
reports E002 here, chainId, marketId and tokenId as much as
requestId; Python's _ anchor reaches chain_id and market_id but not
chainId, while its request_?id, run_?id and trace_?id fragments
already read requestId, runId and traceId. A chain id is a bounded
label by the rule above, and the id word claims it on both surfaces; that
reach is the vocabulary's, not this surface's. The pinned clone holds no
label container, so its E002 count is zero and the fixtures are the whole
guard.
E003 also reads .ts/.tsx, from the bracket table the other TypeScript
rules already walk rather than from a scan of its own: a mean, average,
avg or fmean call, or a reduce(...) call followed by / and a .length
chain, standing as the whole right-hand side of a declaration or assignment,
a bare or dotted name with a plain = before it and at most a simple or
dotted type annotation between. The duration vocabulary is the Python rule's
fragments as whole words after the same case and _ split: duration,
latency, elapsed, seconds, secs, millis, ms, runtime,
responsetime, took, wait, time and their plurals, read from the
target name and from every identifier and string literal inside the
expression, so avgWait, stats.mean(requestDurationsMs) and
waits.length each carry one. latencies fires here where the Python s?
suffix passes it; timeout and timestamp carry no duration word on either
surface. The rule is lexical and follows no dataflow, on either surface: a
duration that reaches a mean through an innocently named variable passes,
const summary = mean(samples) reports nothing however the samples were
measured, and the rule does not widen to close that gap, because the
variable's name is the only evidence the parser has. Four shapes stay
outside it, as they do in Python: a mean used as an operand, `mean(latencies)
orMath.round(mean(latencies)); an object property, { meanLatency:
mean(latencies) }; a reducereached through another call,ds.map(toMs)
.reduce(...) / ds.length; and a sumhelper divided by a length. A comment inside the expression carries no word, because the word table is built from the code and string spans alone, somean(xs /* latency */)stays clean. The pinned clone holds no mean call and noreduce` divided by a length, so its
E003 count is zero and the fixtures are the whole guard.E005 reports telemetry keyed by wallet address: an address-shaped name or a
40-hex literal used as a metric label, a dashboard key or a log index. A
subscript on a logger-named receiver is a log index only where the code writes
it: assigned, deleted, incremented, or the receiver of an element mutator such
as append or push. A read passes, so log["address"] taken from a decoded
on-chain log is not telemetry. E005 reads Python, address-named keys directly under a supported block-YAML
labels: mapping, and .ts/.tsx source through the shared masked lexer
phylax already uses, with the same input boundary: at most 1 MiB per
TypeScript file, and a file the lexer cannot read or terminate reports E000
and fails the run. Address-shaped metric labels that E002 used to claim now
report E005, so one concern carries one code; every other unbounded fragment
keeps E002. Where the line between this lint and phylax runs over the same
TypeScript files is decided once, in
ADR-010.
Four limits are part of the rule rather than defects in it. The finding
message says wallet address for any address-fragment key, so ip_address
draws the same words. Recognition under a YAML labels: mapping is
direct-children-only, so a key nested one mapping deeper passes silently. On
the Python and block-YAML surfaces the s? suffix family E005 shares
with E002 misses -es plurals, so addresses passes where address fires;
the TypeScript word set lists addresses and fires on it. And a write to a
field of a decoded record named like a logger, log["address"] = x, still
reports E005, because the name cannot tell that record from a log store keyed
by address; it takes a reasoned pragma.
Two things it deliberately leaves alone. A print in Python and console.*
in TypeScript are command-line output rather than telemetry, and this
marketplace writes a great deal of the first. A mean of something that is not
a duration is arithmetic, so sentence lengths, layout positions and prices
pass untouched.
Deliberate exceptions state a reason: # ephoros: allow <why> in Python and
YAML, // ephoros: allow <why> as a genuine line comment in TypeScript, on
the finding line or the one above it. A bare pragma suppresses nothing, in
either form. Everything else here stays judgement, and a clean exit says only
that these five found nothing.
Report the count, then name every item that failed.
Lead with the state: instrumented against the questions you wrote, or open on a named gap. List the questions and the signal answering each.
Separate what you verified from what you added. A signal you triggered and then found in the output is established. One that merely exists in the diff is asserted, and saying which is which costs a sentence.
End with one action: the alert still needing a threshold, the question with no signal behind it, or the sampled output someone should read.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wildcat-finance/skills --plugin hexaemeron13 skills in this plugin
/elenchusWork a failure you already have down to its cause, then guard it: stop the line, preserve the evidence, reproduce, localise, reduce to a minimal case, fix the cause rather than the symptom, and leave behind a test that fails without the fix. Use when a test fails, a build breaks, a fuzz campaign returns a counterexample, behaviour stops matching expectations, or something that worked has stopped. Do not use it to hunt for findings nobody has observed yet, which belongs to solidity-auditor and x-ray, and do not use it to speed up something that already works, which belongs to metron./fiatRun the one-shot delivery loop: study, runbook, then per-step implement/audit/prose/push until a working prototype exists. Use only when a Wildcat contributor explicitly asks to start, run, resume, or report a Hexaemeron or Fiat delivery, including /hexaemeron:fiat forms. Do not infer activation from a similar task.
/fizzOther plugins' skills for the same job