Client: add a ledger line for a change
expectation_addThe client's expectations ledger: every change and the result it should bring, checked on a date with a pass/fail rule. Adds a line for a change you made (or one the agency made by hand) the moment you make it: what changed, the number it should move, what you expect and by when. Page changes and Google Ads changes add their lines automatically. A failure line (rule <= or >= with on_miss) for 'if leads are under 0.5 a week on 11/23, investigate' is its own line even on the same number. For work on one page, measure that page (gsc_page, or gsc_query with path): without a path a search's position is the site's best page, and the result warns when a line already passes today. For something that must stay true, use rule every_days to re-check on a cycle. The nightly check fills the before-number from history (28 days before the change) and records met / partial / missed with the number (up to 28 days before the check); manual lines need a verdict by hand (expectation_verdict).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | pass/fail. On a Google position, <= 3 means top 3 and up means a better rank. | |
| change | Yes | what changed, specifically ("Home title now leads with NW Structures") | |
| client | Yes | Client name from list_clients | |
| metric | Yes | The number the change should move | |
| on_miss | No | what to do if it is missed | |
| baseline | No | the number before, when you read it yourself; otherwise it is read from history | |
| check_on | No | YYYY-MM-DD; default from change_kind | |
| expected | No | the expected result in words, with a rough size | |
| rollback | No | how to undo the change | |
| change_kind | No | sets the default check window (title 21 days, page 42, ads 21, indexing 14, speed 7, tracking 2, other 28) | |
| confounders | No | what else could move the number (season, learning period, low volume) | |
| baseline_note | No | where and when the baseline came from |