Contents

Part of the OBSERVER skill package

From zero to an OBSERVER Folder

Ten steps. Each one names the decision it forces, what you write, and how you know it is correct. Examples marked (example) come from a weekly Observer over sales at twelve retail stores, the worked example is in the specification's appendix; substitute your own analysis freely.

The end state is one directory:

OBSERVER/
  1.0_INDEX.md                     the contract: purpose, metrics, rules of elevation, data dictionary
  1.1_LOG.md                       report history and every contract change
  2.0_VALENCE.md                   the objects the that elevation rule selected, ranked
  3.0_PERCEPTION.md                every computed value
  4.0_RAW_DATA.csv                 the inputs (or .parquet, .json, or a 4.0_RAW_DATA/ directory)
  README.md AGENTS.md CLAUDE.md    identical entry files, can be targeted at OBSERVER producer's discretion
  references/                      optional: longer formula implementations, source documents

Read top to bottom the first time. After that, step 10 is the one to keep.

Step 0. Decide whether this analysis is one Observer

An Observer holds one analysis with one report date. Several unrelated analyses are several folders (sales_OBSERVER/, latency_OBSERVER/), not one folder with sections.

Ask three questions:

  1. Does it compute named quantities from a table you can ship or reference? If not, this is a document, not an Observer.
  2. Would a reader want the most important results first, and the rest on demand? That ordering is the whole point of the format.
  3. Can you state, in one rule, what makes a result important? You will have to write that rule down in step 6. If you cannot, the analysis is not ready.

(example) One Observer: "Weekly sales at twelve retail stores." Two metrics per store, one report date, one contract. Warehouse throughput would be a second Observer, not a section of this one.

Step 1. Fix the raw table

Layer 4 is the ground everything else stands on. Settle it first, because the key columns you choose here are the vocabulary every verify field uses.

Decide:

  • Shape. One row per instance of the thing you measure. Long (one row per subject per period) suits panel data; wide (one row per period, one column per series) suits time series. Both are fine; be consistent.
  • Key columns. The smallest set of columns that uniquely identifies a row — [store_id, week_ending], [patient_id, visit], [date]. Every row must be addressable by them. Positional references ("row 14") are forbidden by the spec, and for good reason: files get re-sorted.
  • Gaps. A missing observation is a missing value, never a carried-forward one. If a source stopped publishing, the rows stop; they do not repeat. This is the single most common way an Observer becomes quietly wrong — see PITFALLS.md, first entry.
  • Availability. Shipped in the folder (included), too large and fetched by URI (referenced, with a sha256), or impossible to share (withheld, with a reason). Withheld data makes the whole Observer declared_opacity. When the data is referenced or withheld, there is no 4.0_RAW_DATA in the folder at all: 1.0_INDEX.md carries the declaration, and 3.0_PERCEPTION.md becomes the lowest layer.
  • More than one table. Use a 4.0_RAW_DATA/ directory. Each object's verify.source names the file it was computed from, so the tables never have to be told apart anywhere else.

Write 4.0_RAW_DATA.csv (or .parquet, .json, .jsonl, or a 4.0_RAW_DATA/ directory of them). Column names here are the names every other file will use.

Step 2. Name the metrics and state their units

A metric is one named quantity, computed the same way for every subject.

Every value in the folder reports its unit. Each metric's description states it, and every observation object carries it in unit, spelled out: percent, percentage points, USD, minutes. Units are the cheapest transparency there is, and they prevent the most embarrassing class of error: reading percentage points as percent. Putting the unit in the name as well (wow_revenue_change_pct, queue_wait_minutes, margin_gap_pp) is a helpful convention, but it is optional. Add a utility: one sentence on what decision the metric informs. If you cannot write the utility, drop the metric.

(example) wow_revenue_change — "week-over-week change in revenue, as a fraction; negative = revenue fell"; unit fraction; utility: "Detects abrupt shifts in store demand."

Step 3. Write each formula as a named Python function

The trust field publishes the formula. Spec §4.5: a self-contained function, named after the metric, whose arguments are named after the raw columns (or upstream metrics) they receive, with no I/O, no network and no undeclared randomness.

def wow_revenue_change(revenue_t, revenue_t_minus_1):
    return (revenue_t - revenue_t_minus_1) / revenue_t_minus_1

Write the formula so that calling it on the inputs verify names returns the published value itself: arguments in, one number out. When a formula reads the same column at more than one key, as here, give each argument a descriptive name (revenue_t, revenue_t_minus_1) and map it to its column and period in verify.args (step 7). Avoid operations that depend on row order, such as shift: they tie the result to how the table happens to be sorted and silently span a gap when a period is missing.

Two practical rules:

  • Publish what you ran. If your engine computes the value some other way, the published formula is fiction. Step 10 closes this hole mechanically.
  • Factor shared helpers into one file — for example references/metrics.py — and point at it with trust.resource. Ship that file in the folder so the formula is runnable from the folder alone, and copy it verbatim from the engine's own source rather than retyping it.

A citation is optional and your choice. The published formula and its verify inputs are what let a reader check the value; a citation adds credibility on top, and it earns its place where your readers may not know the method. An industry report that relies on Shannon entropy, for instance, can cite Shannon (1948), Bell System Technical Journal 27(3), so that professionals who have never met the measure can see it is established rather than improvised.

If a formula is genuinely proprietary, say so instead of hiding it: disclosure: proprietary plus a citable statement — here the citation is required, as proprietary, citable as "<name>" — and a track_record if you have one. Undeclared opacity is the one thing the format forbids outright.

Step 4. Choose the relative observations

This is the step that makes an Observer more than a table. A relative observation is a declared comparison that says how unusual a value is. Pick one or more and write each as Python, with the population it compares against:

ComparisonAnswersTypical formula
cross_sectionalUnusual against its peers right now?z-score or percentile against all subjects at this report date
temporalUnusual against its own past?z-score against the subject's own trailing window
benchmarkUnusual against an external reference?difference from an index, a target, a model prediction

Novel variations of relative observations are encouraged in order to accomplish the task of establishing 'the most important' information in the individuated context of each instance of quantitative analysis. As long as the trust and verify requirements of the standard are met, the relative observations that best measure the asymmetry of metric values which should be elevated from the Perception layer to the Valence layer are the right ones to implement.

Declare population in words precise enough to recompute: "same store, same metric, the 8 report dates immediately before report_date; missing weeks are not filled and do not extend the window; at least 6 values are required." A reader must be able to rebuild the comparison set without guessing. For any comparison against history the specification requires three things (§7.4): the window's length, how gaps within it are handled, and the minimum number of values required. It also requires 4.0_RAW_DATA to keep every row the window reaches, not only the rows verify names, so a reader can rebuild the history by running the metric's formula over those earlier rows.

One observation is legitimate. There is no formal ceiling on relative observations. The best fit for the analysis is the best fit for the OBSERVER structure.

(example) rel_ob_1, z-score against all 12 stores at the same report date (cross_sectional); rel_ob_2, z-score against the same store's previous 8 report dates (temporal). Both are z-scores, so step 5 can compare them directly.

Step 5. Reduce them to one relative value

relative_value is the single number that ranks objects and drives elevation. Write it as a function of the relative observations:

def relative_value(rel_ob_1, rel_ob_2):
    return max(abs(rel_ob_1), abs(rel_ob_2))

Direction usually belongs in the observations, not in the relative value: a large fall matters as much as a large rise, so take magnitudes unless your analysis genuinely only cares about one side. Say which you did, and why, in relative_value.description.

When an observation cannot be computed — too little history, too few peers — make relative_value null and say so in the observation's note. A null is honest, and sorts to the bottom of the order; a zero is a lie, indistinguishable from a real, ordinary result.

Step 6. Write the elevation rule

One rule, in 1.0_INDEX.md, that decides membership of 2.0_VALENCE.md:

elevation:
  rule: relative_value >= 2.0
  order: descending

How many objects the rule elevates is the producer's choice; the standard sets no floor and no ceiling. A rule may elevate nothing, which is valid and meaningful — nothing was unusual — or a great deal. A cap (max_objects) is optional. If you declare one, the specification requires two keys in the 2.0_VALENCE.md frontmatter (§8): max_objects, echoing the contract, and elevated_count, the number of objects marked elevated in perception. object_count then equals the smaller of the two, and valence keeps the highest-ranked elevated objects. A reader sees at a glance whether the list was cut: it was when elevated_count exceeds object_count.

A consumer must be able to tell from 1.0_INDEX.md alone why any object is in 2.0_VALENCE.md. Read your rule back and ask whether that is true.

Step 7. Emit the perception objects

One object per computed value, in 3.0_PERCEPTION.md, each under a ## heading holding its id and followed by one fenced YAML block:

## wow_revenue_change/S07/2026-09-20

```yaml
id: wow_revenue_change/S07/2026-09-20
metric: wow_revenue_change
subject: S07
report_date: 2026-09-20
value: -0.2648
unit: fraction
observations:
  - { rel_ob: rel_ob_1, value: -3.12, note: z-score against the 12 stores this week }
  - { rel_ob: rel_ob_2, value: -2.87, note: z-score against this store's previous 8 report dates }
relative_value: 3.12
elevated: true
trust:
  disclosure: open
  formula: |
    def wow_revenue_change(revenue_t, revenue_t_minus_1):
        return (revenue_t - revenue_t_minus_1) / revenue_t_minus_1
verify:
  source: 4.0_RAW_DATA.csv
  rows: { store_id: S07, week_ending: [2026-09-13, 2026-09-20] }
  columns: [revenue]
  args:
    revenue_t:         { column: revenue, rows: { week_ending: 2026-09-20 } }
    revenue_t_minus_1: { column: revenue, rows: { week_ending: 2026-09-13 } }
  notes: >
    Temporal comparison (rel_ob_2) uses S07 rows for weeks ending
    2026-07-19 through 2026-09-13. No gaps.
```

Had a week been missing, the note is where it would say so, with its consequences worked through. Suppose S07 had closed for a refit in the week ending 2026-08-16. The week-over-week change could then be computed neither for 2026-08-16 (no revenue) nor for 2026-08-23 (no prior week), so the temporal comparison would rest on six of its eight report dates, which the population's minimum of six still allows:

  notes: >
    Week ending 2026-08-16 is absent (store closed for refit), so no
    week-over-week change exists for 2026-08-16 or 2026-08-23. The temporal
    comparison (rel_ob_2) uses the six remaining report dates of eight.

Points that decide whether this layer is usable:

  • id is <metric>/<subject>/<report_date>. Drop subject when a metric has only one. Never use a position.
  • verify.rows selects on the key columns from step 1, as a single value, a list, or {from, to}.
  • verify.columns lists every column the formula read — the names from layer 4, exactly.
  • verify.args says which data feeds which argument whenever that isn't evident: when an argument is not named after a column, or when verify.rows selects more than one row. Each entry names a column and a rows selector that narrows verify.rows; keys it omits are inherited. A selector matching several rows passes a list ordered by the key, which is how a window or history argument is fed. When a value is computed from a join, an entry names the other table in source; shared keys such as store_id are inherited, and keys that table lacks don't apply. For avg_ticket(revenue, transactions) over a single row of one file, leave args out.
  • verify.notes is where gaps live. A value computed around a hole in the data, with no note, is not conformant. Attach the note to the objects whose inputs actually lack the data, not to all of them.
  • Order objects by relative_value, descending, in a single list across all metrics, with nulls at the bottom, so a partial read still reaches the interesting ones first.

Step 8. Elevate to valence

2.0_VALENCE.md is the same objects, filtered by the rule, plus rank and perception_ref. It must be a subset: value, observations, relative_value, trust and verify must match the perception object exactly. Do not recompute them for this file — copy them, or generate both files from one in-memory object, which is the only way they cannot drift.

You may open the body with one plain sentence per object, each linking to its heading (the specification makes this optional):

1. [S03 average ticket rose to $45.00](#avg_tickets032026-09-20), far above its own recent range.

If you include them, those sentences are what most agents and most people will actually quote. Write each as a finding, not as a field dump. The anchor is the id, lowercased, with everything but letters, digits, hyphen and underscore removed.

Step 9. Write the contract, the log and the entry files

1.0_INDEX.md carries the whole contract in frontmatter: observer_version, observer_id, title, purpose, report_date, transparency, runtime, raw_data (files, key, column dictionary, availability, the reading notice), metrics, valence, and — recommended — complexity, generated, stale_after, sources. FIELD_REFERENCE.md has every field. An agent must be able to judge relevance from this frontmatter alone, so purpose does real work: name the subject, the period and the question.

complexity is the Total Space of Information: raw, compute, perception and valence, each as {n, p}. It tells a reader in advance what full verification would cost. Compute it from the actual objects; do not estimate. complexity is recommended but optional.

1.1_LOG.md is required even for a one-off report: date headings, newest first, entries led by **Report**, **Data**, **Contract**, **Correction** or **Initialization**. Every change to a formula, a relative observation, the relative value or the elevation rule must appear as a **Contract** entry. Changing how importance is judged changes what readers are told is important; that can never be silent.

Decide early where the log's history lives. A build that rewrites the folder each run will erase it unless the history is kept in source (a tracked file the build copies, or entries in the build script) and the current report's entry is prepended.

README.md and AGENTS.md are byte-identical, state that they are identical copies, carry type: OBSERVER Entry and a navigation block, and give the reading order and the raw data reading notice. Write them from one string in your build script; two files that can drift, will. Add an identical CLAUDE.md if your readers use a harness that looks for that name.

The reading notice (§3.4.4), with raw data included, must appear in three places: the contract's raw_data.reading_notice, the navigation.note of 3.0_PERCEPTION.md, and the entry files. With data referenced it appears in raw_data.reading_notice only; with data withheld, withheld_reason takes its place. Generate it once from the raw table's real shape.

Anything in references/ that is a .md file carries type: OBSERVER Reference and a navigation block (layer: reference, up: 1.0_INDEX.md, no down), so a reader who lands there by search is pointed back into the hierarchy.

Step 10. Gate the build and check the folder, every build

Two checks, both yours as the producer.

The build gate, inside the engine. Before writing anything, evaluate each published formula against the raw table and require it to agree with the value the engine computed, to a tolerance you state. If they disagree, raise rather than write. This is what makes "publish what you ran" true next year, when someone edits a formula string and not the code — or the code and not the string. It is also the one check that stops a folder from being perfectly conformant and completely wrong.

Conformance — is this a well-formed OBSERVER Folder?

python3 validate_observer.py OBSERVER/

Replication is the consumer's. A consumer — an agent or a person — replicates a value by running its trust.formula over the rows and columns its verify field names, to whatever depth their task calls for (specification §14). Writing that script is routine for a current AI system; what it cannot do is guess a formula or find data that is not there. Your obligation is that replication can be done from the folder alone:

  • every open formula in trust is exactly the code that ran, runnable with the declared dependencies and any trust.resource shipped in the folder — the build gate guarantees this;
  • every input is named in verify;
  • every history a relative observation reaches back over is kept in 4.0_RAW_DATA and described by its population: window, gap handling, minimum count (step 4).

The Replicate variant of the OBSERVER prompt (a separate download from the standard's website) gives a consumer the procedure. You may run it on your own folder before publishing as a final confidence check, but you do not need to write or ship a replication script.

The producer's decisions, in one table

DecisionWhere it is recordedConsequence if left implicit
What the analysis is forpurposeAgents cannot judge relevance and read everything
Row identityraw_data.files[].keyverify fields cannot be resolved
What each metric meansmetrics[].description, utilityValues get quoted with the wrong unit
How each value was computedtrust.formulaThe number must be taken on faith
What each value was computed fromverify.rows, verify.columnsReplication is impossible
What counts as unusualvalence.relative_obs, relative_valueImportance looks arbitrary
What reaches the top layervalence.elevation.ruleA reader cannot tell why an object is there
What is missing, and how it was handledverify.notesA gap silently becomes a trend
What is not discloseddisclosure, transparencyUndeclared opacity: the one thing forbidden
When it stops being currentstale_after, cadenceStale numbers get quoted as current

Checklist before publishing

  • validate_observer.py passes with no failures
  • Every value can be replicated from the folder alone: exact formula in trust, inputs in verify
  • Every gap is named in the verify.notes of the objects it affects
  • 2.0_VALENCE.md is as compact as the analysis allows, and any opening sentences read as findings
  • 1.0_INDEX.md frontmatter alone answers "is this relevant to me?"
  • Contract changes since the last report are in 1.1_LOG.md
  • Nothing in the folder leaks a key, a path, or an internal identifier
  • A rebuild from the same inputs produces the same bytes, apart from generated.at