Failure catalogue
Every way an Echo functionality fails
Each functionality of Echo Web, its API and its commands declares the causes it can meet, including the ones nobody has met yet: which step failed, why, what the refusal shows, what fixes it, its code and exit status, and the test that provokes it. A refusal links to its line on this page.
Reading a refusal#
A command prints the sentence, then fix: with what repairs it, then cause: with the functionality and cause and their section on this page, and exits 2 for a command line it does not take, 69 when running it again unchanged can help, and 1 otherwise. An API route whose failure is a declared cause answers JSON with error, code, operation, cause, remedy, doc (its section here) and retryable.
npm run errors -- list [--json]
npm run errors -- show <functionality> [--json]Where this catalogue comes from#
The sections below are what `npm run errors -- list --json` prints in an echo-web checkout, read by `npm run docs:web-errors -- --checkout <echo-web>` in this site's checkout; `--check` refuses a site whose catalogue differs from the one that checkout prints. echo-cli's causes are on the CLI failure catalogue, /docs/cli/errors.
echo.onboarding.publish#
Publish each journey definition a product commits and presents, through the state machine the admin studio uses; --dry-run validates and reports without writing.
Started by `npm run onboarding:publish -- <definition.json>...`, `npm run onboarding:publish -- --discover <root> [--dry-run]`, `npm run onboarding:check`.
It also meets the causes of echo.onboarding.command-line, echo.onboarding.discovery, echo.onboarding.catalog, echo.onboarding.contract, echo.onboarding.store, echo.database.
echo.onboarding.publish.nothing-discovered#
- not_found, exit 1
- discovering journey definitions under {root}: nothing to publish: no repository there commits a file named like first-use*.json or onboarding_first_run.json; observed: {repositories} under {root}
- Fix: name the directory that holds the product checkouts with --discover <root>, or commit the product's definition
- Test: tests/onboarding/definitions.test.mjs::a_root_without_definitions_is_named
echo.onboarding.publish.definition-absent#
- not_found, exit 1
- reading the journey definition {label}: no file stands at that path; observed: {reason}; at {label} stands {state}
- Fix: name the path of a committed definition file, or publish with --discover <root>
- Test: tests/onboarding/definitions.test.mjs::a_definition_file_that_does_not_exist_is_named
echo.onboarding.publish.definition-directory#
- refused, exit 1
- reading the journey definition {label}: the path names a directory, and a definition is one JSON file; observed: {reason}; at {label} stands {state}
- Fix: name the definition file inside {label}, or pass the directory as --discover {label}
- Test: tests/onboarding/definitions.test.mjs::a_directory_named_as_a_definition_is_refused
echo.onboarding.publish.definition-unpermitted#
- refused, exit 1
- reading the journey definition {label}: the file exists and this process may not read it; observed: {reason}; at {label} stands {state}
- Fix: let the account running the command read {label} (chmod u+r {label}), or run it as the file's owner
- Test: tests/onboarding/definitions.test.mjs::a_definition_this_process_may_not_read_is_named
echo.onboarding.publish.definition-unreadable#
- refused, exit 1
- reading the journey definition {label}: the file cannot be read: the system refused the read with {code}, which is neither a missing file, a directory nor a denied permission; observed: {reason}; at {label} stands {state}
- Fix: repair what {code} names for {label} (a disk or file system fault, a broken mount), then publish again
- Test: tests/onboarding/definitions.test.mjs::a_definition_the_system_cannot_read_is_named
echo.onboarding.publish.definition-not-json#
- refused, exit 1
- reading the journey definition {label}: the file is not JSON; observed: {bytes} bytes; the parser stopped with: {reason}
- Fix: repair the JSON of {label} and commit it
- Test: tests/onboarding/definitions.test.mjs::a_definition_that_is_not_json_is_named
echo.onboarding.publish.definition-unnamed#
- refused, exit 1
- reading the journey definition {label}: a definition names its product_id and its journey_id, and this one does not name both; observed: product_id {product}, journey_id {journey}
- Fix: state product_id and journey_id in {label}
- Test: tests/onboarding/definitions.test.mjs::a_definition_without_its_ids_is_named
echo.onboarding.publish.copies-disagree#
- refused, exit 1
- publishing {product}/{journey}: the checkouts commit different contents for this journey, and publishing one of them would be a guess; observed: {count} contents: {labels}
- Fix: make every copy the same, or remove the stale copy from its repository
- Test: tests/onboarding/definitions.test.mjs::copies_that_disagree_are_refused
echo.onboarding.publish.no-presenter#
- refused, exit 1
- publishing {product}/{journey}: no committed product source presents this journey: a presenter passes the definition's file name or stem as a string literal, outside comments, to the code that loads it; observed: definitions: {labels}
- Fix: commit the product code that loads the definition by its file name, or retire the journey with --retire {product}/{journey}
- Test: tests/onboarding/definitions.test.mjs::a_journey_nothing_presents_is_refused
echo.onboarding.publish.product-uncatalogued#
- refused, exit 1
- publishing {product}/{journey}: not claimed by a surface in Stado's product catalog (`stado product catalog`, the parts under stado/catalog/products/), and this command registers no product the catalog does not name; observed: {product} is not among the {count} identities the catalog gives
- Fix: register the product with `stado product registry add`, or add the surface to its entry with `stado product registry set`, or retire this journey with --retire {product}/{journey}
- Test: tests/onboarding/definitions.test.mjs::a_product_the_catalog_does_not_claim_is_refused
echo.onboarding.publish.surface-unmapped#
- refused, exit 1
- registering the surfaces of {product}/{journey}: the definition declares no surface_kinds, and its analytics surface is not one this command can translate; observed: unmapped analytics surface {surface}; the register says {registered}
- Fix: declare surface_kinds in the definition and commit it
- Test: tests/onboarding/publication.test.mjs::a_journey_without_a_surface_is_refused
echo.onboarding.publish.origin-missing#
- config, exit 1
- registering the repository of {product}/{journey}: no git origin for its repository, and the register records the repository by its origin; observed: {repository} has no remote named origin
- Fix: add the product's GitHub repository as the origin remote of {repository}
- Test: tests/onboarding/publication.test.mjs::a_repository_without_origin_is_refused
echo.onboarding.publish.version-content-changed#
- refused, exit 1
- publishing {product}/{journey} {version}: active {version} has different content, and a published version is immutable; observed: active content {active}, committed content {committed}
- Fix: bump journey_version in the definition and publish again
- Test: tests/onboarding/publication.test.mjs::changed_content_under_an_active_version_is_refused
echo.onboarding.retire#
Archive a journey once no definition on any default branch under the root names it, and settle its product row when no active journey is left.
Started by `npm run onboarding:publish -- --retire <product-id>/<journey-id> [--discover <root>]`.
It also meets the causes of echo.onboarding.command-line, echo.onboarding.discovery, echo.onboarding.catalog, echo.database.
echo.onboarding.retire.no-repositories#
- not_found, exit 1
- retiring {target}: no git checkout lies under {root}, so nothing shows whether a product still ships the journey; observed: 0 repositories under {root}
- Fix: name the directory that holds the product checkouts with --discover <root>
- Test: tests/onboarding/retire.test.mjs::a_root_without_checkouts_retires_nothing
echo.onboarding.retire.definitions-unreadable#
- refused, exit 1
- retiring {target}: refusing: definitions could not be read, so {target} may still be shipped by one of them; observed: {definitions}
- Fix: repair the definitions named, or move their repositories out from under the root, and retire again
- Test: tests/onboarding/retire.test.mjs::unreadable_definitions_block_a_retirement
echo.onboarding.retire.still-shipped#
- refused, exit 1
- retiring {target}: refusing: a default branch still commits a definition of {target}, so a product still ships it; observed: shipped by {definitions}
- Fix: remove the definition from those repositories first, then retire it
- Test: tests/onboarding/retire.test.mjs::a_journey_still_shipped_is_not_retired
echo.onboarding.coverage#
Compare every surface the Wisent product catalog declares with the journeys published for it, and name each gap.
Started by `npm run onboarding:coverage`.
It also meets the causes of echo.onboarding.command-line, echo.onboarding.catalog, echo.database.
echo.onboarding.coverage.coverage-incomplete#
- refused, exit 1
- checking first-run coverage against the Wisent product catalog: the register and the catalog disagree, as the lines above the counts name; observed: {findings}
- Fix: publish a journey for each surface named, retire each journey a preview carries, and correct the catalog entry or register row each remaining line names
- Test: tests/onboarding/coverage.test.mjs::coverage_with_a_gap_names_it
echo.onboarding.runtime#
Serve a product's onboarding journey at run time: its published bundle, the events it reports, and the state of an attempt.
Started by `/api/onboarding/bundle`, `/api/onboarding/events`, `/api/onboarding/routes`, `echo-cli onboarding-routes`.
It also meets the causes of echo.http.body, echo.http.query, echo.database, echo.store, echo.onboarding.contract, echo.onboarding.store.
echo.onboarding.runtime.bundle-secret-unset#
- config, exit 1
- admitting a product's onboarding call to {route}: the runtime routes answer only a caller presenting ONBOARDING_BUNDLE_TOKEN, and the deployment sets none, so no product can be admitted; observed: ONBOARDING_BUNDLE_TOKEN is unset
- Fix: set ONBOARDING_BUNDLE_TOKEN in the deployment's environment and give the same value to the products that call it
- Test: tests/onboarding/runtime.test.mjs::a_deployment_without_a_bundle_secret_refuses_by_name
echo.onboarding.runtime.bundle-secret-rejected#
- auth, exit 1
- admitting a product's onboarding call to {route}: the runtime routes answer only a caller whose Authorization: Bearer token matches ONBOARDING_BUNDLE_TOKEN; observed: {presented}
- Fix: send Authorization: Bearer <ONBOARDING_BUNDLE_TOKEN>
- Test: tests/onboarding/runtime.test.mjs::a_call_without_the_bundle_secret_is_refused
echo.onboarding.runtime.answer-duplicate#
- refused, exit 2; the request itself is refused
- reading the answers of onboarding event {event}: an event answers each question once, and question {question} is answered twice; observed: answers {first} and {second} both name question {question}
- Fix: send one answer per question_id
- Test: tests/onboarding/runtime.test.mjs::an_event_answering_a_question_twice_is_refused
echo.onboarding.runtime.attempt-absent#
- not_found, exit 1
- reading onboarding attempt {attempt} of {product}: no attempt of that product has that id for that subject: none was started, or the subject hash differs; observed: onboarding_attempts holds no row for attempt {attempt}, product {product} and the subject hash sent
- Fix: report onboarding_started for the attempt first, and read it back with the same subject_hash
- Test: tests/onboarding/runtime.test.mjs::an_attempt_nobody_started_is_named
echo.onboarding.runtime.subject-unrouted#
- not_found, exit 1
- routing subject {subject} of {product} to a journey: no route of the product matches what the subject carried, so Echo guesses no journey and the product shows its own default; observed: source {source}, persona {persona}
- Fix: declare a route with echo-cli onboarding-routes add, or name journey_id in the bundle request
- Test: tests/onboarding/runtime.test.mjs::a_subject_no_route_matches_is_named
echo.onboarding.runtime.route-unstated#
- refused, exit 2; the request itself is refused
- adding a route of {product} to journey {journey}: a route names what a subject must carry to get the journey, and this one names neither source nor persona; observed: source and persona are both absent
- Fix: send source, persona or both
- Test: tests/onboarding/runtime.test.mjs::a_route_naming_nothing_to_match_is_refused
echo.onboarding.runtime.journey-unpublished#
- not_found, exit 1
- reading the bundle of journey {journey} of {product}: the product has no published version of that journey{version}; observed: onboarding_journey_versions holds no published version of {product}/{journey}{version}
- Fix: publish the journey with npm run onboarding:publish, or name a version that was published
- Test: tests/onboarding/runtime.test.mjs::a_journey_never_published_is_named
echo.errors#
List the functionalities Echo declares with every cause each meets, and check that each cause has its real test or a listed reason why it has none.
Started by `npm run errors -- list [--json]`, `npm run errors -- show <functionality> [--json]`, `npm run errors -- check [--json]`.
It uses no other functionality.
echo.errors.verb-unknown#
- refused, exit 2; the request itself is refused
- reading the command line: {verb} is not a verb of this command; observed: arguments: {given}
- Fix: run one of list, show <functionality> or check, each with --json for machines
- Test: tests/errors/catalogue.test.mjs::an_unknown_verb_is_named
echo.errors.argument-unexpected#
- refused, exit 2; the request itself is refused
- reading the command line: {argument} is not taken by {verb}; observed: arguments: {given}
- Fix: run one of list, show <functionality> or check, each with --json for machines
- Test: tests/errors/catalogue.test.mjs::an_argument_the_verb_does_not_take_is_refused
echo.errors.functionality-missing#
- refused, exit 2; the request itself is refused
- reading the command line: show takes the id of the functionality to show, and none follows it; observed: arguments: {given}
- Fix: write show <functionality>, one of the ids `npm run errors -- list` prints
- Test: tests/errors/catalogue.test.mjs::show_without_a_functionality_is_refused
echo.errors.functionality-unknown#
- not_found, exit 2; the request itself is refused
- showing the causes of {operation}: Echo declares no functionality by that id; observed: declared: {declared}
- Fix: name one of the declared functionalities
- Test: tests/errors/catalogue.test.mjs::an_unknown_functionality_is_named
echo.errors.untested-unreadable#
- config, exit 1
- reading {path}, the causes whose real test cannot run locally: the file cannot be read, and without it every cause it lists reads as a false claim; observed: {reason}
- Fix: run the check from the echo-web checkout, which holds tests/untested-causes.json
- Test: tests/errors/catalogue.test.mjs::a_check_outside_the_checkout_names_the_list
echo.errors.untested-malformed#
- refused, exit 1
- reading {path}, the causes whose real test cannot run locally: the list is a JSON array of { operation, cause, test, why }, and this file is not; observed: {reason}
- Fix: repair {path} so each entry names its functionality, cause, test path and why the test cannot run locally
- Test: tests/errors/catalogue.test.mjs::a_malformed_untested_list_is_named
echo.errors.untested-parts-unlisted#
- config, exit 1
- listing {path}, the directory of parts that lists an area's causes whose real test cannot run locally: the directory exists and cannot be listed, so every cause its parts list would read as a false claim; observed: {reason}
- Fix: give the account running the check read and search permission on {path} (`ls -ld {path}` shows its mode and owner)
- Test: tests/errors/catalogue.test.mjs::an_unlistable_parts_directory_is_named
echo.errors.catalogue-incomplete#
- refused, exit 1
- checking the failure catalogue against the checkout at {repository}: a declaration is malformed, or a cause names a test that is neither written nor listed in tests/untested-causes.json; observed: {problems}
- Fix: write each test named, or list it with why it cannot run locally, and repair each declaration the lines above name
- Test: tests/errors/catalogue.test.mjs::a_cause_without_its_test_is_named
echo.agent#
Converse with Echo's agent, which answers with the model route and runs Echo's tools as the signed-in person, and read its conversations, pending actions and activity.
Started by `/api/agent/chat`, `/api/agent/conversations`, `/api/agent/pending-actions`, `/api/agent/activity-feed`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.model, echo.store.
echo.agent.model-answer-empty#
- infra_down, exit 69; trying again unchanged can help
- answering the message in conversation {conversation}: the model route answered without text and without a tool call, so there is nothing to show or run; observed: the answer holds {blocks}
- Fix: send the message again; the model route general answers it anew
- Test: tests/agent/chat.test.mjs::an_empty_model_answer_is_named
echo.ask#
Answer a question in words over Echo's data with one reading statement the model route writes, run read-only over the declared tables.
Started by `/api/ask`, `echo-cli ask`.
It also meets the causes of echo.http.access, echo.http.body, echo.model, echo.store.
echo.ask.statement-multiple#
- refused, exit 1
- checking the statement written for the question: a question runs one reading statement, and the one written holds more than one; observed: the statement: {statement}
- Fix: ask the question again, worded so one SELECT answers it
- Test: tests/ask/question.test.mjs::a_statement_of_two_statements_is_not_run
echo.ask.reply-incomplete#
- config, exit 1
- reading the statement route {route} wrote for the question: the route called record_statement without its {field}, so there is no statement to run; observed: the reply: {reply}
- Fix: set ECHO_ASK_ROUTE to a route whose model calls record_statement with statement and explanation, or ask again
- Test: tests/ask/question.test.mjs::a_route_that_records_no_statement_is_named
echo.ask.statement-refused#
- refused, exit 1
- running the statement written for the question: the database refused the statement: it does not parse, reads a table or column outside the declared ones, or a value in it is malformed; observed: SQLSTATE {sqlstate}: {reason}; the statement: {statement}
- Fix: ask the question again over the tables POST /api/ask declares, naming the columns it should read
- Test: tests/ask/question.test.mjs::a_statement_the_database_refuses_is_named
echo.discovery#
Download a reference video, scrape a trend source, generate content ideas from the current trends, and read the ideas, trends, sounds and hashtags Echo holds.
Started by `/api/apify/download`, `/api/apify/scrape`, `/api/ideas`, `/api/ideas/generate`, `/api/platform-trends`, `/api/sounds`, `/api/trends`, `/api/trends/hashtags`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.integration, echo.model, echo.store.
echo.discovery.not-youtube#
- refused, exit 2; the request itself is refused
- downloading the video at {url}: only https YouTube videos have a bounded provider contract, and this address is not one; observed: the address names {host}
- Fix: send url as an https://www.youtube.com/watch?v=… or https://youtu.be/… address
- Test: tests/discovery/discovery.test.mjs::a_video_off_youtube_is_refused
echo.discovery.no-download-url#
- infra_down, exit 69; trying again unchanged can help
- downloading the video at {url}: the video downloader answered without the address of the downloaded file; observed: apify.video.download answered downloadUrl null
- Fix: download the video again; GET /api/diagnostics/integrations shows each call
- Test: tests/discovery/discovery.test.mjs::a_download_without_a_file_is_named
echo.automation.approvals#
Queue an irreversible action for a reviewer, list the queue, and approve (run once) or reject a pending request.
Started by `/api/automation/approvals`, `/api/automation/approvals/[id]`, `echo-cli approvals`.
It also meets the causes of echo.automation.caller, echo.http.body, echo.http.query, echo.store.
echo.automation.approvals.action-unknown#
- refused, exit 2; the request itself is refused
- queueing {action} for approval: the approval queue holds only the actions this Echo runs, and {action} is none of them; observed: action is {action}; the queue runs {actions}
- Fix: send action as one of {actions}
- Test: tests/automation/approvals.test.mjs::an_action_the_queue_does_not_run_is_refused
echo.automation.approvals.payload-invalid#
- refused, exit 2; the request itself is refused
- checking the payload of {action}: the payload is not what {action} takes; observed: {issues}
- Fix: send the payload {action} takes; GET /api/automation/approvals lists what each action does
- Test: tests/automation/approvals.test.mjs::a_payload_the_action_does_not_take_is_refused
echo.automation.approvals.payload-on-rejection#
- refused, exit 2; the request itself is refused
- rejecting approval request {id}: payload amends what an approval runs, and a rejection runs nothing; observed: decision is reject, and the body sends a payload
- Fix: send the rejection without payload, or approve with it
- Test: tests/automation/approvals.test.mjs::a_rejection_with_a_payload_is_refused
echo.automation.approvals.not-pending#
- refused, exit 1
- deciding approval request {id}: only a pending request can be decided, and this one was decided already; observed: the request is {status}: {meaning}
- Fix: read the request with GET /api/automation/approvals; queue the action again if it should still run
- Test: tests/automation/approvals.test.mjs::a_request_decided_already_is_refused
echo.automation.approvals.action-retired#
- config, exit 1
- running approval request {id}: the request names {action}, which this Echo no longer runs; observed: this Echo runs {actions}
- Fix: reject the request, and queue the action it stood for under one this Echo runs
- Test: tests/automation/approvals.test.mjs::a_request_naming_a_retired_action_is_refused
echo.automation.approvals.post-gone#
- not_found, exit 1
- publishing blog post {post} on approval: the post was deleted after its publication was queued; observed: blog_posts holds no row with id {post}
- Fix: reject the request; queue a new one for the post that should go out
- Test: tests/automation/approvals.test.mjs::an_approved_post_that_was_deleted_is_named
echo.automation.budgets#
Read every channel's autonomy budget with its use, set one, or remove one.
Started by `/api/automation/budgets`, `echo-cli autonomy`.
It also meets the causes of echo.automation.caller, echo.http.body, echo.http.query, echo.store.
echo.automation.policies#
List the dispatched account actions that wait in the approval queue, put one under approval, or release it.
Started by `/api/automation/approval-policies`.
It also meets the causes of echo.automation.caller, echo.http.body, echo.http.query, echo.store.
echo.automation.playbooks#
Publish a product's playbook as its next version, run a version by queueing each step for approval, and read the versions and their runs.
Started by `/api/automation/playbooks`, `/api/cron/playbook-steps`, `echo-cli playbooks`.
It also meets the causes of echo.automation.caller, echo.automation.approvals, echo.http.body, echo.http.query, echo.store.
echo.automation.playbooks.steps-malformed#
- refused, exit 2; the request itself is refused
- reading the steps of playbook {name}: every step is an object { action, payload, reason } whose action the approval queue runs; observed: step {index}: {issue}
- Fix: send steps as a list of { action, payload, reason }, each action one of {actions}
- Test: tests/automation/playbooks.test.mjs::a_playbook_step_that_is_not_one_is_refused
echo.automation.playbooks.version-frozen#
- refused, exit 1
- changing a published playbook version: a published playbook version never changes, so a run always names the steps it ran; observed: the request is a PATCH of a published version
- Fix: publish the changed steps under the same name with POST /api/automation/playbooks to make its next version
- Test: tests/automation/playbooks.test.mjs::a_change_to_a_published_version_is_refused
echo.automation.playbooks.run-orphaned#
- config, exit 1
- settling the held steps of playbook run {run}: the {what} the held steps name was deleted while they waited; observed: {missing}
- Fix: reject the held steps of run {run} in the approval queue; they belong to no playbook any more
- Test: tests/automation/playbooks.test.mjs::held_steps_whose_run_was_deleted_are_named
echo.automation.audit#
Read every automatic action, and every run an approval made, since an instant.
Started by `/api/automation/audit`.
It also meets the causes of echo.http.query, echo.store.
echo.automation.effects#
Report every automated action with the product's metrics before and after it, now or on a schedule that emails it.
Started by `/api/automation/effects`, `/api/automation/effects/schedules`, `/api/cron/automation-effects`.
It also meets the causes of echo.automation.caller, echo.http.body, echo.http.query, echo.integration, echo.store.
echo.automation.effects.period-reversed#
- refused, exit 2; the request itself is refused
- reading the period of the effect report: to must come after from; observed: from is {from}, to is {to}
- Fix: send from before to
- Test: tests/automation/effects.test.mjs::a_period_that_ends_before_it_starts_is_refused
echo.automation.effects.metrics-undefined#
- not_found, exit 1
- measuring the effect of automated actions on product {product}: the effect is read from the metrics of the product's tree, and the product defines none; observed: metric_definitions holds no row of product {product}
- Fix: give the product its North Star and the metrics under it with echo-cli tracking metrics define
- Test: tests/automation/effects.test.mjs::a_product_without_metrics_is_named
echo.automation.effects.recipient-suppressed#
- refused, exit 1
- emailing the effect report of schedule {schedule} to {recipient}: the recipient is on the suppression list, and Echo emails no suppressed address; observed: {reason}
- Fix: name another recipient for the schedule, or run echo-cli lifecycle suppressions lift --address {recipient} --by <name> when the address asks for mail again
- Test: tests/automation/effects.test.mjs::a_report_to_a_suppressed_recipient_is_not_sent
echo.experiments#
Assign a subject a variant of the experiment running on a surface, read the adaptive components' diagnostics, and report an experiment's factors, guardrails, revenue and verdict.
Started by `/api/experiments/assign`, `/api/experiments/diagnostics`, `/api/experiments/factors`, `/api/experiments/guardrails`, `/api/experiments/revenue`, `/api/experiments/verdict`.
It also meets the causes of echo.automation.caller, echo.http.query, echo.http.body, echo.database, echo.store.
echo.experiments.surface-not-allowed#
- refused, exit 2; the request itself is refused
- assigning {subject} a variant on {app}/{platform}/{surface}: a surface is assigned only when an active onboarding journey declares an experiment contract on it, or when it is one of the web and iOS surfaces the deployment allows; observed: neither holds for {app}/{platform}/{surface}
- Fix: publish an onboarding journey with an experiment contract on the surface, or name an app EXPERIMENT_WEB_APP_IDS or EXPERIMENT_IOS_APP_IDS lists and one of its surfaces
- Test: tests/experiments/assign.test.mjs::a_surface_nothing_allows_is_refused
echo.experiments.surface-ambiguous#
- config, exit 1
- assigning a variant on {app}/{surface}: one surface runs one {what}, and the database holds several; observed: {names}
- Fix: archive all but one of {names}
- Test: tests/experiments/assign.test.mjs::a_surface_with_two_running_experiments_is_named
echo.experiments.token-unset#
- config, exit 1
- admitting the caller to the adaptive experiment diagnostics: the diagnostics answer only a caller presenting EXPERIMENT_DIAGNOSTICS_ADMIN_TOKEN, and the deployment sets none, so no caller can read them; observed: EXPERIMENT_DIAGNOSTICS_ADMIN_TOKEN is unset
- Fix: set EXPERIMENT_DIAGNOSTICS_ADMIN_TOKEN in the deployment's environment and give the same value to the callers
- Test: tests/experiments/diagnostics.test.mjs::a_deployment_without_a_diagnostics_token_refuses_by_name
echo.experiments.token-rejected#
- auth, exit 1
- admitting the caller to the adaptive experiment diagnostics: the diagnostics answer only a caller whose x-admin-token header matches EXPERIMENT_DIAGNOSTICS_ADMIN_TOKEN; observed: {presented}
- Fix: send x-admin-token: <EXPERIMENT_DIAGNOSTICS_ADMIN_TOKEN>
- Test: tests/experiments/diagnostics.test.mjs::a_request_without_the_diagnostics_token_is_refused
echo.warehouse.exports#
Create, list and remove an export of one of Echo's tables into the operator's BigQuery table, and run it now or on its schedule.
Started by `/api/warehouse/exports`, `/api/warehouse/runs`, `/api/cron/warehouse-export`, `echo-cli export`.
It also meets the causes of echo.automation.caller, echo.http.body, echo.http.query, echo.integration, echo.store.
echo.warehouse.exports.already-running#
- refused, exit 1
- opening a run of export {export}: an export runs once at a time, so two runs never load the same window, and run {run} of it is still open; observed: run {run} has been running since {since}
- Fix: wait for run {run} to end, then run the export again; GET /api/warehouse/runs?export_id={export} shows how it ends
- Test: tests/warehouse/exports.test.mjs::a_second_run_of_a_running_export_is_refused
echo.experiments.verdict#
Count each variant's exposures and conversions within the reward window, compare the leader with the others at the stated intervals, pool factors, sum revenue, and require a winner.
Started by `/api/experiments/verdict`, `/api/experiments/factors`, `/api/experiments/revenue`, `echo-cli experiments outcomes`, `echo-cli experiments verdict`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.store.
echo.experiments.verdict.experiment-absent#
- not_found, exit 1
- reading {what} of experiment {experiment}: no adaptive experiment has the id {experiment}; observed: adaptive_experiments holds no row with id {experiment}; nothing was read or changed
- Fix: name an experiment echo-cli experiments lists
- Test: tests/experiments/verdict.test.mjs::an_experiment_that_does_not_exist_is_not_found
echo.experiments.verdict.sigmas-not-positive#
- refused, exit 2; the request itself is refused
- reading the verdict of experiment {experiment}: sigmas is how many standard errors each interval spans, a number above zero, and it is {value}; observed: sigmas is {value}; nothing was read
- Fix: send sigmas as a number above zero, such as 2 (echo-cli experiments verdict --experiment {experiment} --sigmas 2)
- Test: tests/experiments/verdict.test.mjs::sigmas_that_are_not_positive_are_refused
echo.experiments.verdict.reward-event-undeclared#
- refused, exit 2; the request itself is refused
- reading the reward of experiment {experiment}: a conversion is the reward event the reward_spec names, and the reward_spec of experiment {experiment} names none; observed: reward_spec is {spec}; no conversion was counted
- Fix: set reward_spec of experiment {experiment} to {"event_name": "<conversion event>", "window_hours": <hours>}
- Test: tests/experiments/verdict.test.mjs::an_experiment_without_a_reward_event_is_named
echo.experiments.verdict.reward-window-undeclared#
- refused, exit 2; the request itself is refused
- reading the reward of experiment {experiment}: a conversion counts only within the reward window after assignment, and the reward_spec of experiment {experiment} declares no window_hours above zero; observed: reward_spec is {spec}; no conversion was counted
- Fix: set window_hours in the reward_spec of experiment {experiment}: {"event_name": "<conversion event>", "window_hours": <hours>}
- Test: tests/experiments/verdict.test.mjs::an_experiment_without_a_reward_window_is_named
echo.experiments.verdict.assignments-none#
- not_found, exit 1
- reading {what} of experiment {experiment}: it is read from the subjects the experiment assigned a variant, and experiment {experiment} has assigned none yet; observed: adaptive_assignments holds no row of experiment {experiment}
- Fix: read it once the surface has assigned subjects: echo-cli experiments outcomes --experiment {experiment} --sigmas <n> shows the exposures
- Test: tests/experiments/verdict.test.mjs::an_experiment_without_assignments_is_named
echo.experiments.verdict.variant-alone#
- not_found, exit 1
- reading the verdict of experiment {experiment}: a verdict compares variants, and experiment {experiment} has assigned only variant {variant}; observed: {count} subjects were all assigned {variant}; nothing was compared
- Fix: activate a second variant of experiment {experiment} and read the verdict once it is assigned
- Test: tests/experiments/verdict.test.mjs::an_experiment_with_one_variant_assigned_is_named
echo.experiments.verdict.winner-open#
- refused, exit 1
- deciding the winner of experiment {experiment} at {sigmas} standard errors: a winner is named only once every interval of the leader against another variant clears zero, and {open}; observed: the leader is {leader}; no winner was recorded
- Fix: wait for more exposures, or read where it stands: echo-cli experiments verdict --experiment {experiment} --sigmas {sigmas}
- Test: tests/experiments/verdict.test.mjs::an_experiment_without_a_winner_is_refused
echo.experiments.verdict.factors-missing#
- refused, exit 2; the request itself is refused
- reading the factors of experiment {experiment}: factors is the list of names the variants' configs give the factors, such as headline,button, and it is {value}; observed: factors is {value}; nothing was read
- Fix: send factors: echo-cli experiments factors --experiment {experiment} --factors <name,name> --sigmas <n>
- Test: tests/experiments/verdict.test.mjs::a_factor_list_that_is_empty_is_refused
echo.experiments.verdict.level-unstated#
- refused, exit 2; the request itself is refused
- pooling factor {factor} of experiment {experiment}: a multivariate variant states its level of every factor in its config, and variant {variant} states none of {factor}; observed: the config of variant {variant} is {config}
- Fix: name only factors every variant states, or set {factor} in the config of variant {variant}
- Test: tests/experiments/verdict.test.mjs::a_variant_without_a_level_of_a_factor_is_named
echo.experiments.guardrails#
Measure every guardrail of every active variant past its minimum exposure, and quarantine each variant past a bound, recording the stop.
Started by `/api/experiments/guardrails`, `echo-cli experiments guardrails`, `echo-cli experiments stops`.
It also meets the causes of echo.experiments.verdict, echo.http.access, echo.automation.caller, echo.store.
echo.experiments.guardrails.specs-not-list#
- refused, exit 2; the request itself is refused
- reading the guardrails of experiment {experiment}: guardrail_specs is a list of { key, event_name, direction, bound, window_hours }, and experiment {experiment} holds {value}; observed: guardrail_specs is {value}; no variant was stopped
- Fix: set guardrail_specs of experiment {experiment} to a list, such as [{"key": "errors", "event_name": "app_error", "direction": "max", "bound": 0.05, "window_hours": 24}]
- Test: tests/experiments/guardrails.test.mjs::guardrail_specs_that_are_not_a_list_are_named
echo.experiments.guardrails.spec-shapeless#
- refused, exit 2; the request itself is refused
- reading guardrail {place} of experiment {experiment}: a guardrail needs key and event_name as text, a direction of max or min, a finite bound and window_hours above zero, and guardrail {place} lacks {lacking}; observed: guardrail {place} is {value}; no variant was stopped
- Fix: write guardrail {place} of experiment {experiment} as {"key": "<name>", "event_name": "<event>", "direction": "max", "bound": <share>, "window_hours": <hours>}
- Test: tests/experiments/guardrails.test.mjs::a_guardrail_of_another_shape_is_named
echo.experiments.guardrails.guardrails-none#
- refused, exit 2; the request itself is refused
- evaluating the guardrails of experiment {experiment}: a variant is stopped only past a declared guardrail, and experiment {experiment} declares none; observed: guardrail_specs is []; no variant was stopped
- Fix: declare a guardrail in guardrail_specs of experiment {experiment}
- Test: tests/experiments/guardrails.test.mjs::an_experiment_without_guardrails_is_named
echo.experiments.power#
Measure a surface's conversion baseline and daily traffic from stored events and size the sample a test of it needs.
Started by `/api/experiments/power`, `echo-cli experiments power`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.experiments.power.min-effect-missing#
- refused, exit 2; the request itself is refused
- sizing a test of {app}: the sample is sized for the smallest change of the conversion rate the test must detect, a share sent as min_effect, and it is {value}; observed: min_effect is {value}; no event was read
- Fix: send min_effect as a share above zero, such as 0.02: echo-cli experiments power --min-effect 0.02 …
- Test: tests/experiments/power.test.mjs::a_test_sized_without_its_effect_is_refused
echo.experiments.power.variants-too-few#
- refused, exit 2; the request itself is refused
- sizing a test of {app}: a test compares a variant with another, so variants is a whole number of at least 2, and it is {value}; observed: variants is {value}; no event was read
- Fix: send variants of at least 2
- Test: tests/experiments/power.test.mjs::a_test_of_one_variant_is_refused
echo.experiments.power.events-none#
- not_found, exit 1
- sizing a test of {app} over the last {days} days: the baseline and traffic are measured from the events of {app}, and none was stored since {since}; observed: no web or mobile event of {app} since {since}
- Fix: name a source that reports: echo-cli tracking quality show --days {days} names the sources and their events
- Test: tests/experiments/power.test.mjs::a_source_without_events_is_named
echo.experiments.power.exposures-none#
- not_found, exit 1
- sizing a test of {app} over the last {days} days: the surface's traffic is the people who sent {event}, and no one sent it on {app} since {since}; observed: {count} events of {app} since {since}, none of them {event}
- Fix: name the event the surface sends when it is shown (echo-cli tracking schemas list lists the declared events of {app})
- Test: tests/experiments/power.test.mjs::a_surface_without_exposures_is_named
echo.experiments.power.target-above-one#
- refused, exit 2; the request itself is refused
- sizing a test of {app}: the target rate is the baseline plus min_effect, and {baseline} plus {effect} is above 1, which no rate reaches; observed: {converted} of {exposed} exposed people converted; no sample was sized
- Fix: send a min_effect of at most {room}
- Test: tests/experiments/power.test.mjs::an_effect_past_the_whole_is_refused
echo.activation.aha#
Rank the actions people of a source took in their first days by how well each separates those still active later from those who were not, and store the run.
Started by `/api/analytics/aha`, `echo-cli activation aha`.
It also meets the causes of echo.http.access, echo.http.body, echo.automation.caller, echo.products.lookup, echo.store.
echo.activation.aha.retention-before-activation#
- refused, exit 2; the request itself is refused
- computing the aha moment of {app} for product {product}: retention is read after the first actions, and retained_after_days {retained} ends before activation_days {activation} does; observed: activation_days is {activation}, retained_after_days is {retained}; nothing was computed
- Fix: send retained_after_days of {activation} or more
- Test: tests/activation/aha.test.mjs::retention_read_before_activation_ends_is_refused
echo.activation.aha.retention-past-window#
- refused, exit 2; the request itself is refused
- computing the aha moment of {app} for product {product}: a person is told retained or churned only once retained_after_days have passed since their first event in the window, and retained_after_days {retained} does not fit in a window of {days} days; observed: days is {days}, retained_after_days is {retained}; nothing was computed
- Fix: send days above {retained}, or a shorter retained_after_days
- Test: tests/activation/aha.test.mjs::retention_past_the_window_is_refused
echo.activation.aha.source-silent#
- not_found, exit 1
- computing the aha moment of {app} for product {product}: an aha moment is read from the events of the source, and {app} stored no web or mobile event since {since}; observed: {events} web and mobile events were stored since {since}, none of app_id {app}; nothing was computed
- Fix: name a source that reports (echo-cli tracking quality show --days {days} names them), or read a longer window
- Test: tests/activation/aha.test.mjs::a_source_without_events_is_not_found
echo.activation.aha.outcomes-one-sided#
- refused, exit 2; the request itself is refused
- computing the aha moment of {app} for product {product}: an aha moment compares the early actions of retained people with those of churned ones, and the window holds {retainedCount} retained and {churnedCount} churned people whose first event is at least {retained} days old; observed: {people} people of {app} started in the last {days} days; nothing was computed
- Fix: read a longer window (days), or a shorter retained_after_days, so both kinds of people are counted
- Test: tests/activation/aha.test.mjs::a_window_of_one_kind_of_people_is_refused
echo.landing.tests#
Vary a landing block without a deploy: create a test of its variants, stop it, read its exposures and each variant's conversions of an event.
Started by `/api/analytics/landing`, `echo-cli landing list`, `echo-cli landing create`, `echo-cli landing stop`, `echo-cli landing exposures`, `echo-cli landing outcomes`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.store.
echo.landing.tests.variants-not-list#
- refused, exit 2; the request itself is refused
- creating a test of block {block} of {app}: a test holds the block's variants as a list of { key, content }, and variants is {kind}; observed: variants is {value}; no test was created
- Fix: send variants as [{ "key": "a", "content": "…" }, { "key": "b", "content": "…" }]
- Test: tests/landing/tests.test.mjs::variants_that_are_not_a_list_are_refused
echo.landing.tests.variants-few#
- refused, exit 2; the request itself is refused
- creating a test of block {block} of {app}: a test compares a variant with another, so it holds at least two, and variants holds {count}; observed: variants names {keys}; no test was created
- Fix: send at least two variants, each with its own key and content
- Test: tests/landing/tests.test.mjs::a_test_of_one_variant_is_refused
echo.landing.tests.variant-key-repeated#
- refused, exit 2; the request itself is refused
- creating a test of block {block} of {app}: each variant is told apart by its key, and {key} names more than one; observed: variants names {keys}; no test was created
- Fix: give every variant its own key
- Test: tests/landing/tests.test.mjs::variants_sharing_a_key_are_refused
echo.landing.tests.test-running#
- refused, exit 1
- creating a test of block {block} of {app}: at most one test runs per block, and block {block} of {app} already runs test {test}, created by {by} at {at}; observed: landing_tests row {test} is running with variants {keys}; no test was created
- Fix: stop it first with echo-cli landing stop --test {test}, then create the new one
- Test: tests/landing/tests.test.mjs::a_second_running_test_of_a_block_is_refused
echo.landing.tests.test-absent#
- not_found, exit 1
- {step} landing test {test}: no landing test has the id {test}; observed: landing_tests holds no row with id {test}; nothing was changed
- Fix: name a test echo-cli landing list --app <web source> lists
- Test: tests/landing/tests.test.mjs::a_test_that_does_not_exist_is_not_found
echo.landing.tests.test-stopped#
- not_found, exit 1
- stopping landing test {test}: only a running test is stopped, and test {test} of block {block} was stopped at {at}; observed: landing_tests row {test} has status stopped; it was left as it was
- Fix: nothing to stop; echo-cli landing exposures --test {test} reads what it showed
- Test: tests/landing/tests.test.mjs::a_test_stopped_twice_is_named
echo.landing.tests.exposure-variant-gone#
- config, exit 1
- showing the block of landing test {test} to subject {subject}: a subject is shown the variant their first exposure kept, and their exposure keeps variant {variant}, which test {test} no longer holds; observed: landing_exposures row of test {test} and subject {subject} keeps {variant}; the test holds {keys}
- Fix: set variant_key of that exposure to one of {keys}, or delete the exposure so the subject is given a variant again
- Test: tests/landing/tests.test.mjs::an_exposure_to_a_variant_the_test_lost_is_named
echo.landing.rules#
Fill a landing block from a parameter of the visit: add a rule, list a source's rules and a rule's matches, and remove one.
Started by `/api/analytics/landing/rules`, `echo-cli landing rules`, `echo-cli landing rule`, `echo-cli landing unrule`, `echo-cli landing matches`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.store.
echo.landing.rules.rule-held#
- refused, exit 1
- adding a rule to block {block} of {app} for {parameter}={value}: a block has one rule per parameter and value, and rule {rule} already fills block {block} when {parameter} is {value}; observed: landing_rules row {rule}, created by {by} at {at}; no rule was added
- Fix: remove rule {rule} first (echo-cli landing unrule --rule {rule}), then add the new one
- Test: tests/landing/rules.test.mjs::a_second_rule_of_one_value_is_refused
echo.landing.rules.rule-absent#
- not_found, exit 1
- removing landing rule {rule}: no landing rule has the id {rule}; observed: landing_rules holds no row with id {rule}; nothing was removed
- Fix: name a rule echo-cli landing rules --app <web source> lists
- Test: tests/landing/rules.test.mjs::a_rule_that_does_not_exist_is_not_found
echo.landing.hints#
Add a hint a product shows users whose events meet its condition, list and remove hints, answer the hints a subject meets and record impressions and dismissals.
Started by `/api/analytics/hints`, `/api/public/hints`, `echo-cli hints`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.store.
echo.landing.hints.hint-held#
- refused, exit 1
- adding hint {key} to {app}: a product names each hint by its key once, and {app} already has hint {key} as {hint}; observed: product_hints row {hint}, created by {by} at {at}; no hint was added
- Fix: remove hint {hint} first (echo-cli hints remove --hint {hint}), or add the hint under another key
- Test: tests/landing/hints.test.mjs::a_hint_key_taken_twice_is_refused
echo.landing.hints.hint-absent#
- not_found, exit 1
- removing hint {hint}: no hint has the id {hint}; observed: product_hints holds no row with id {hint}; nothing was removed
- Fix: name a hint echo-cli hints list --app <web source> lists
- Test: tests/landing/hints.test.mjs::a_hint_that_does_not_exist_is_not_found
echo.landing.hints.hint-key-absent#
- not_found, exit 1
- recording that {subject} dismissed hint {key} of {app}: {app} has no hint named {key}; observed: product_hints holds no row of {app} with key {key}; the hints of {app} are {keys}; nothing was recorded
- Fix: dismiss a hint by the key /api/public/hints answered it with
- Test: tests/landing/hints.test.mjs::a_dismissal_of_an_unknown_hint_is_not_found
echo.competitors.captures#
Render a competitor's public page through Weles and store its text, title and headings, list its captures, and compare its last two readable captures.
Started by `/api/market/captures`, `/api/market/diff`, `echo-cli competitors capture`, `echo-cli competitors captures`, `echo-cli competitors diff`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.weles, echo.store.
echo.competitors.captures.capture-none#
- not_found, exit 1
- comparing the last two readable captures of {url}: a comparison reads two readable captures of the page, and {url} has none; observed: competitor_page_captures holds no capture of {url} without a fetch error
- Fix: capture it now with echo-cli competitors capture --url {url} --by <name>, twice, then compare
- Test: tests/market/competitor-captures.test.mjs::a_page_never_captured_is_not_found
echo.competitors.captures.capture-single#
- refused, exit 2; the request itself is refused
- comparing the last two readable captures of {url}: a comparison reads two readable captures of the page, and {url} has one, taken {at}; observed: competitor_page_captures holds one readable capture of {url}, {capture}
- Fix: capture it again with echo-cli competitors capture --url {url} --by <name>, then compare
- Test: tests/market/competitor-captures.test.mjs::a_page_captured_once_is_refused
echo.competitors.releases#
Watch a competitor's changelog with the pattern its entries follow, capture it daily and store each dated heading once as a release.
Started by `/api/market/releases`, `/api/cron/competitor-releases`, `echo-cli competitors releases`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.competitors.captures, echo.store.
echo.competitors.releases.pattern-unparsed#
- refused, exit 2; the request itself is refused
- watching the changelog {url}: entry_pattern is read as a JavaScript regular expression (flag u), and it does not parse as one; observed: entry_pattern is {pattern}: {reason}
- Fix: send entry_pattern as a regular expression that parses, such as ^(?<date>\d+-\d+-\d+)
- Test: tests/market/competitor-releases.test.mjs::a_pattern_that_does_not_parse_is_refused
echo.competitors.releases.pattern-dateless#
- refused, exit 2; the request itself is refused
- watching the changelog {url}: a release is dated by the (?<date>…) group of entry_pattern, and the pattern names no such group; observed: entry_pattern is {pattern}
- Fix: name the date of an entry with a (?<date>…) group, such as ^(?<date>\d+-\d+-\d+)
- Test: tests/market/competitor-releases.test.mjs::a_pattern_without_a_date_group_is_refused
echo.competitors.releases.changelog-watched#
- refused, exit 1
- watching the changelog {url}: a changelog is watched once, and {url} is already watched as {competitor}'s, since {at}; observed: competitor_changelogs row {url} with pattern {pattern}; nothing was added
- Fix: stop the watch first with echo-cli competitors releases unwatch --url {url}, then watch it again
- Test: tests/market/competitor-releases.test.mjs::a_changelog_watched_twice_is_refused
echo.competitors.releases.changelog-unwatched#
- not_found, exit 1
- {step} the changelog {url}: {url} is not a watched changelog; observed: competitor_changelogs holds no row of {url}; the watched changelogs are {watched}
- Fix: watch it with echo-cli competitors releases watch --url {url} --competitor <name> --pattern <regex> --by <name>, or name one echo-cli competitors releases watched lists
- Test: tests/market/competitor-releases.test.mjs::a_changelog_that_is_not_watched_is_not_found
echo.competitors.pages#
Track competitor pages per product, recapture them every so many days and raise one pending action per product for each price move.
Started by `/api/market/watched`, `/api/cron/competitor-pages`, `echo-cli competitors pages`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.products.lookup, echo.competitors.captures, echo.store.
echo.competitors.pages.page-tracked#
- refused, exit 1
- tracking {url} for product {product}: a product tracks each competitor page once, and product {product} tracks {url} since {at}, declared by {by}; observed: competitor_watched_pages row of {product} and {url}, captured {every}; nothing was added
- Fix: stop it first with echo-cli competitors pages unwatch --product {product} --url {url}, then track it again
- Test: tests/market/competitor-pages.test.mjs::a_page_tracked_twice_is_refused
echo.competitors.pages.page-untracked#
- not_found, exit 1
- stopping the tracking of {url} for product {product}: product {product} does not track {url}; observed: competitor_watched_pages holds no row of {product} and {url}; nothing was removed
- Fix: name a page echo-cli competitors pages tracked --product {product} lists
- Test: tests/market/competitor-pages.test.mjs::a_page_that_is_not_tracked_is_not_found
echo.competitors.report#
Subscribe email addresses and webhooks to the week's market changes, send each ended week's report once to every subscriber and archive each attempt.
Started by `/api/market/report`, `/api/market/report/deliveries`, `/api/cron/market-report`, `echo-cli report`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.integration, echo.store.
echo.competitors.report.recipient-unsubscribed#
- not_found, exit 1
- unsubscribing {recipient} from the market report: {recipient} is not subscribed to the market report; observed: market_report_recipients holds no row of {recipient}; nothing was removed
- Fix: name a recipient echo-cli report recipients lists
- Test: tests/market/market-report.test.mjs::a_recipient_who_is_not_subscribed_is_not_found
echo.competitors.report.recipients-none#
- refused, exit 2; the request itself is refused
- sending the market report of the week of {week}: the report is sent to its subscribers, and no email address or webhook is subscribed; observed: market_report_recipients holds no row; nothing was sent or archived
- Fix: subscribe one with echo-cli report subscribe --recipient <email|https webhook> --by <name>
- Test: tests/market/market-report.test.mjs::a_report_with_no_subscriber_is_refused
echo.competitors.report.recipient-suppressed#
- refused, exit 1
- emailing the market report of the week of {week} to {recipient}: Echo emails no suppressed address, and {recipient} is suppressed: {reason}; observed: the delivery to {recipient} is archived with this refusal; no email was sent
- Fix: lift the suppression with echo-cli lifecycle suppressions lift --address {recipient} --by <name> if the address receives mail again, or unsubscribe it
- Test: tests/market/market-report.test.mjs::a_suppressed_recipient_is_not_emailed
echo.trends.ranks#
Answer each item of the latest scrape run of trending sounds or hashtags with its rank in each of the newest runs, hashtags narrowed to an industry when named.
Started by `/api/analytics/trends`, `echo-cli trends sounds`, `echo-cli trends hashtags`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.trends.ranks.industry-unfiled#
- refused, exit 2; the request itself is refused
- reading the trending {kind} of the newest {runs} runs in the industry {industry}: only hashtags are filed under an industry by the source, and {kind} carry none, so they cannot be narrowed to one; observed: the query sends kind={kind} and industry={industry}
- Fix: leave industry out for {kind}, or read kind=hashtags in {industry}
- Test: tests/market/trend-ranks.test.mjs::sounds_narrowed_to_an_industry_are_refused
echo.trends.watches#
Watch a term of a product's niche, list the watches with their alerts, stop one, and check a scrape run against every watch, raising one pending action per rise.
Started by `/api/analytics/trends/watches`, `echo-cli trends watches`, `echo-cli trends watch`, `echo-cli trends unwatch`, `echo-cli trends check`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.products.lookup, echo.store.
echo.trends.watches.watch-held#
- refused, exit 1
- watching "{term}" for product {product}: a product watches each term once, and product {product} already watches "{term}" as {watch}; observed: trend_watches row {watch} watches "{term}" for {product} since {since}, climbing {climb} places; nothing was added
- Fix: stop watch {watch} first (echo-cli trends unwatch --id {watch}), then watch the term again with the climb you want
- Test: tests/market/trend-watches.test.mjs::a_term_watched_twice_is_refused
echo.trends.watches.watch-absent#
- not_found, exit 1
- stopping the trend watch {watch}: no trend watch has the id {watch}; observed: trend_watches holds no row with id {watch}; nothing was removed
- Fix: name a watch echo-cli trends watches --product <id> lists
- Test: tests/market/trend-watches.test.mjs::a_watch_that_does_not_exist_is_not_found
echo.trends.watches.run-none#
- not_found, exit 1
- checking the newest {kind} run against the trend watches: a run is checked once it is stored, and no scrape run of {kind} is stored yet; observed: trend_ranks holds no row of kind {kind}; no watch was checked
- Fix: run the Creative Center scrape (GET /api/cron/scrape-creative-center) so a run of {kind} is stored, then check again
- Test: tests/market/trend-watches.test.mjs::a_kind_without_runs_is_not_found
echo.trends.watches.run-absent#
- not_found, exit 1
- checking the {kind} run of {asked} against the trend watches: run_at names a stored run by its instant, and no {kind} run was stored at {asked}; observed: the {count} stored {kind} runs run from {oldest} to {newest}; no watch was checked
- Fix: send run_at as the instant of a stored run (echo-cli trends {kind} --runs <n> lists them), or leave it out to check the newest
- Test: tests/market/trend-watches.test.mjs::a_run_that_was_not_stored_is_not_found
echo.content.queue.item#
Read a queued post with its metrics and account, edit or schedule it (at a time or at its account's best measured slot), and remove it.
Started by `/api/content-queue/[id]`, `echo-cli content queue edit`, `echo-cli content queue schedule`, `echo-cli content queue remove`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.queue.lookup, echo.store.
echo.content.queue.item.time-and-slot#
- refused, exit 2; the request itself is refused
- scheduling queued post {post}: a post is scheduled either at the time scheduled_at gives or at the next hour of best_slot, and the body gives both; observed: the body sends scheduled_at {at} and best_slot; the post was left unchanged
- Fix: send scheduled_at alone, or best_slot { days, time_zone } alone
- Test: tests/content/queue-edit.test.mjs::a_time_and_a_slot_together_are_refused
echo.content.queue.item.post-unaccounted#
- refused, exit 2; the request itself is refused
- scheduling queued post {post} at its account's best slot: the best slot is measured from the posts of the post's social account, and queued post {post} names no social account; observed: content_posts row {post} has social_account_id null; the post was left unchanged
- Fix: send scheduled_at instead (echo-cli content queue schedule --id {post} --at <t>); a post queued with echo-cli content queue add --account <id> has slots to choose from
- Test: tests/content/queue-edit.test.mjs::a_post_without_an_account_has_no_slot
echo.privacy.erasure#
Delete every row naming a person, through every identifier linked to them, from every personal store, and record the erasure with what each store did.
Started by `/api/privacy/erasures`, `echo-cli privacy erase`.
It also meets the causes of echo.http.access, echo.privacy.subjects, echo.automation.caller, echo.store.
echo.privacy.erasure.erasure-incomplete#
- infra_down, exit 69; trying again unchanged can help
- erasing a person from every personal store: an erasure is complete only when no personal store keeps a row naming the person, and {count} stores failed or kept rows; observed: erasure {erasure} is recorded with {failed}
- Fix: send the erasure again once the stores named answer; echo-cli privacy erasures lists every erasure with its report
- Test: tests/privacy/erasure.test.mjs::an_erasure_a_store_kept_rows_of_is_named
echo.privacy.export#
Read every row of every personal store that names a person, through every identifier linked to them.
Started by `/api/privacy/exports`, `echo-cli privacy export`.
It also meets the causes of echo.http.access, echo.privacy.subjects, echo.store.
echo.privacy.retention#
Declare, list and remove how many days a personal store keeps its rows, and delete every row past its store's period, recording a run per store.
Started by `/api/privacy/retention`, `/api/privacy/retention/run`, `/api/cron/privacy-retention`, `echo-cli privacy retention`, `echo-cli privacy run`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.store.
echo.privacy.retention.store-unknown#
- refused, exit 2; the request itself is refused
- {step} the retention period of {store}: a retention period is declared for a personal store Echo knows, and {store} is none of them; observed: the personal stores are {stores}; nothing was changed
- Fix: name one of {stores} as store
- Test: tests/privacy/retention.test.mjs::a_store_that_is_not_personal_is_refused
echo.privacy.retention.policy-absent#
- not_found, exit 1
- removing the retention period of {store}: {store} has no declared retention period, so it keeps its rows already; observed: retention_policies holds no row of store {store}; nothing was removed
- Fix: name a store echo-cli privacy retention lists
- Test: tests/privacy/retention.test.mjs::a_store_without_a_period_is_not_found
echo.privacy.retention.policy-store-retired#
- config, exit 1
- deleting the rows of every personal store past its retention period: the run deletes by the declared period of each personal store, and retention_policies declares {days} days for {store}, which is no longer a personal store; observed: retention_policies row {store}, set by {by} at {at}; no store was touched
- Fix: remove that period with echo-cli privacy retention forget --store {store}, then run again
- Test: tests/privacy/retention.test.mjs::a_period_of_a_retired_store_is_named
echo.email.domain-health#
Read a sending domain's SPF, DKIM key at a selector, DMARC policy and every declared domain and IP blocklist from DNS now, store a reading and re-check it daily.
Started by `/api/analytics/email/domains`, `/api/analytics/email/domains/checks`, `echo-cli email domains`, `echo-cli email check`, `echo-cli email checks`.
It also meets the causes of echo.http.access, echo.http.query, echo.automation.caller, echo.config, echo.email.dns, echo.store.
echo.email.domain-health.domain-malformed#
- refused, exit 2; the request itself is refused
- reading the health of the sending domain {value}: a domain is read from DNS by its name, dot-separated labels of letters, digits and inner hyphens ending in a top-level label, and {value} is not one; observed: domain is {value}
- Fix: send domain as a domain name such as example.com, without a scheme, path or address
- Test: tests/email/domain-health.test.mjs::a_domain_that_is_no_name_is_refused
echo.email.domain-health.selector-malformed#
- refused, exit 2; the request itself is refused
- reading the DKIM key of {domain}: the DKIM key is read at <selector>._domainkey.{domain}, so selector must be the letters, digits, dots, hyphens and underscores the s= tag of a DKIM-Signature names; observed: selector is {value}
- Fix: send selector as the s= tag of a message the domain signed, such as google or s1
- Test: tests/email/domain-health.test.mjs::a_selector_that_is_no_label_is_refused
echo.email.domain-health.zones-none#
- config, exit 1
- reading the {meaning} the deployment declares: {setting} is set and names no zone once split at its commas; observed: {setting} holds {length} characters and no zone
- Fix: set {setting} in the deployment's environment to a comma-separated list of {meaning}, such as dbl.example.org
- Test: tests/email/domain-health.test.mjs::a_blocklist_setting_naming_no_zone_is_named
echo.changelog#
Set the https address of a product's Keep a Changelog file, and read it now into one entry per released version.
Started by `/api/analytics/changelog`, `/api/analytics/changelog/sync`, `/api/cron/changelog-sync`, `echo-cli changelog`.
It also meets the causes of echo.http.access, echo.http.body, echo.automation.caller, echo.products.lookup, echo.store.
echo.changelog.source-not-https#
- refused, exit 2; the request itself is refused
- setting the changelog of product {product}: the changelog is read from the https address of the product's Keep a Changelog file, and source_url is {value}; observed: source_url is {value}; nothing was set
- Fix: send the https address of the file: echo-cli changelog set --product {product} --url <https-url> --by <name>
- Test: tests/announcements/changelog.test.mjs::a_changelog_address_that_is_not_https_is_refused
echo.changelog.source-unset#
- not_found, exit 1
- reading the changelog of product {product}: a changelog is read from the address set for the product, and product {product} has none; observed: product_changelogs holds no row of {product}; nothing was read
- Fix: set one: echo-cli changelog set --product {product} --url <https-url> --by <name>
- Test: tests/announcements/changelog.test.mjs::a_product_without_a_changelog_is_named
echo.changelog.changelog-refused#
- infra_down, exit 69; trying again unchanged can help
- reading the changelog of product {product} at {url}: the server answered HTTP {status} {text} instead of the file; observed: GET {url} answered {status}; no entry was stored
- Fix: open {url}: when it moved, set the new address with echo-cli changelog set --product {product} --url <https-url> --by <name>; when the server failed, sync again later
- Test: tests/announcements/changelog.test.mjs::a_changelog_the_server_refuses_is_named
echo.changelog.changelog-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the changelog of product {product} at {url}: the server answered HTTP {status}, and the file's body broke off before it was read whole; observed: {error}; no entry was stored
- Fix: sync again: echo-cli changelog sync --product {product}; a body that keeps breaking off is a fault of the server at {url}
- Test: tests/announcements/changelog.test.mjs::a_changelog_whose_body_breaks_off_is_named
echo.changelog.releases-none#
- refused, exit 2; the request itself is refused
- reading the changelog of product {product} at {url}: a Keep a Changelog file has a release heading ("## [version] - date") per version, and the file read holds none; observed: the file holds {length} characters without such a heading; no entry was stored
- Fix: point the product at its Keep a Changelog file: echo-cli changelog set --product {product} --url <https-url> --by <name>
- Test: tests/announcements/changelog.test.mjs::a_file_without_release_headings_is_refused
echo.changelog.entry-absent#
- not_found, exit 1
- {step} changelog entry {entry}: no changelog entry has the id {entry}; observed: changelog_entries holds no row with id {entry}; nothing was drafted or announced
- Fix: name an entry echo-cli changelog entries --product <id> lists
- Test: tests/announcements/changelog.test.mjs::an_entry_that_does_not_exist_is_not_found
echo.changelog.drafts#
Write an entry's release notes with the route ECHO_RELEASE_DRAFT_ROUTE names into the product's one blog as a draft, and queue publishing it and announcing the entry.
Started by `/api/analytics/changelog/drafts`, `/api/cron/changelog-sync`, `echo-cli changelog draft`.
It also meets the causes of echo.changelog, echo.config, echo.model, echo.automation.approvals, echo.store.
echo.changelog.drafts.slugless#
- refused, exit 2; the request itself is refused
- drafting the release notes of {product} {version}: the post is named release-<the letters and digits of the version>, and version {version} holds none; observed: changelog entry {entry} names version {version}; the notes were written and no post was stored
- Fix: give the release a version with letters or digits in the changelog, then echo-cli changelog sync --product <id>
- Test: tests/announcements/drafts.test.mjs::a_version_without_letters_is_refused
echo.changelog.drafts.drafted-already#
- refused, exit 1
- drafting the release notes of changelog entry {entry}: an entry is drafted once, and entry {entry} was drafted at {at} as post {post}; observed: release_drafts holds entry {entry}; nothing was drafted again
- Fix: edit post {post}, or read the drafts: echo-cli changelog drafts --product <id>
- Test: tests/announcements/drafts.test.mjs::an_entry_drafted_twice_is_refused
echo.changelog.drafts.surface-unlinked#
- not_found, exit 1
- drafting the release notes of {product} {version}: release notes are drafted in the blog of the product, and no blog surface is linked to product {product}; observed: blog_surfaces holds no row with product_id {product}; nothing was drafted
- Fix: link one: echo-cli glossary surface --surface <slug> --product {product}
- Test: tests/announcements/drafts.test.mjs::a_product_without_a_blog_is_named
echo.changelog.drafts.surfaces-several#
- refused, exit 2; the request itself is refused
- drafting the release notes of {product} {version}: release notes belong in one blog, and {count} blog surfaces are linked to product {product}: {surfaces}; observed: nothing was drafted
- Fix: link only one of {surfaces} to {product} (echo-cli glossary surface --surface <slug> --product <other product>)
- Test: tests/announcements/drafts.test.mjs::a_product_with_two_blogs_is_named
echo.announcements#
Publish a changelog entry as an announcement emailed once to every subscriber not suppressed, withdrawn or capped, and subscribe or unsubscribe an address.
Started by `/api/analytics/announcements`, `/api/public/announcements`, `echo-cli announcements`.
It also meets the causes of echo.changelog, echo.http.access, echo.config, echo.integration, echo.products.lookup, echo.store.
echo.announcements.announced-already#
- refused, exit 1
- announcing changelog entry {entry}: an entry is announced once, and entry {entry} was announced as {announcement} at {at}; observed: announcements holds entry {entry}; no subscriber was emailed again
- Fix: read its deliveries: echo-cli announcements deliveries --announcement {announcement}
- Test: tests/announcements/publish.test.mjs::an_entry_announced_twice_is_refused
echo.announcements.not-subscribed#
- not_found, exit 1
- unsubscribing {email} from the announcements of product {product}: {email} is not subscribed to them now; observed: announcement_subscribers holds no subscribed row of {email} for {product}; nothing was changed
- Fix: nothing to do: echo-cli announcements subscribers --product {product} lists who is subscribed
- Test: tests/announcements/publish.test.mjs::an_address_that_is_not_subscribed_is_not_found
echo.comparisons.write#
Capture both sides' pages now and write the next comparison version quoting them, withdraw a version, and refresh every product's comparisons whose pages changed.
Started by `/api/market/comparisons`, `/api/cron/product-comparisons`, `echo-cli comparisons`.
It also meets the causes of echo.comparisons.competitors, echo.comparisons.products, echo.http.access, echo.http.body, echo.config, echo.weles, echo.model, echo.store.
echo.comparisons.write.competitor-removed#
- refused, exit 2; the request itself is refused
- writing the comparison of {product} against {slug}: a comparison is written only against an active competitor, and {slug} was removed by {by} at {at}; observed: no page was captured and nothing was written
- Fix: declare it again: echo-cli comparisons competitors add --product {product} --name <n> --pages <https-url,...> --by <name>
- Test: tests/market/comparisons.test.mjs::a_removed_competitor_is_not_compared
echo.comparisons.write.competitor-pageless#
- refused, exit 2; the request itself is refused
- writing the comparison of {product} against {slug}: a comparison quotes the competitor's pages, and competitor {slug} has none; observed: comparison_competitors row {slug} holds pages []; nothing was captured or written
- Fix: remove and declare it again with its pages: echo-cli comparisons competitors add --product {product} --name <n> --pages <https-url,...> --by <name>
- Test: tests/market/comparisons.test.mjs::a_competitor_without_pages_is_not_compared
echo.comparisons.write.page-unread#
- not_found, exit 1
- capturing {url} for a comparison: a comparison quotes every page of both sides as captured now, and Weles could not read {url}; observed: capture {capture} keeps the error: {error}; {done} of {count} pages were captured before it and nothing was written
- Fix: repair or replace the page: echo-cli competitors capture --url {url} --by <name> reads it again and shows the error
- Test: tests/market/comparisons.test.mjs::a_page_weles_cannot_read_is_named
echo.comparisons.write.version-absent#
- not_found, exit 1
- withdrawing comparison version {version}: no comparison version has the id {version}; observed: product_comparisons holds no row with id {version}; nothing was withdrawn
- Fix: name a version echo-cli comparisons list --product <id> prints
- Test: tests/market/comparisons.test.mjs::a_version_that_does_not_exist_is_not_found
echo.comparisons.write.version-withdrawn#
- refused, exit 1
- withdrawing comparison version {version} of {product} against {slug}: a version is withdrawn once, and it was withdrawn by {by} at {at}; observed: product_comparisons row {version} holds withdrawn_at {at}; nothing was changed
- Fix: nothing to withdraw; echo-cli comparisons write --product {product} --competitor {slug} --by <name> writes the next version
- Test: tests/market/comparisons.test.mjs::a_version_withdrawn_twice_is_refused
echo.comparisons.competitors#
Declare a product's competitor with its pages, discover more from cited search evidence, and remove one so discovery never adds it again.
Started by `/api/market/comparisons/competitors`, `echo-cli comparisons competitors`.
It also meets the causes of echo.comparisons.products, echo.http.access, echo.http.body, echo.config, echo.model, echo.store.
echo.comparisons.competitors.name-slugless#
- refused, exit 2; the request itself is refused
- naming the page of competitor {name}: a competitor's page is named by the letters and digits of its name, and {name} holds none; observed: the name {name} gives an empty slug; nothing was stored
- Fix: name the competitor as its own pages name it, with at least one letter or digit
- Test: tests/market/comparison-competitors.test.mjs::a_competitor_name_without_letters_is_refused
echo.comparisons.competitors.pages-missing#
- refused, exit 2; the request itself is refused
- declaring competitor {name} of {product}: a comparison quotes the public pages of the competitor, so pages is a list of at least one https page, and it is {value}; observed: pages is {value}; nothing was stored
- Fix: send pages as a list of https pages: echo-cli comparisons competitors add --product {product} --name <n> --pages <https-url,...> --by <name>
- Test: tests/market/comparison-competitors.test.mjs::a_competitor_without_pages_is_refused
echo.comparisons.competitors.competitor-held#
- refused, exit 1
- declaring competitor {slug} of {product}: {product} already has the competitor {slug} ({name}, {origin} by {by}), and a competitor is declared once; observed: it reads {pages}; nothing was changed
- Fix: keep it, or remove it first: echo-cli comparisons competitors remove --product {product} --competitor {slug} --by <name>
- Test: tests/market/comparison-competitors.test.mjs::a_competitor_declared_twice_is_refused
echo.comparisons.competitors.competitor-absent#
- not_found, exit 1
- reading competitor {slug} of {product}: {product} has no competitor {slug}; observed: comparison_competitors holds {known} for {product}; nothing was changed
- Fix: name one echo-cli comparisons competitors list --product {product} prints
- Test: tests/market/comparison-competitors.test.mjs::a_competitor_that_does_not_exist_is_not_found
echo.comparisons.competitors.competitor-removed-already#
- refused, exit 1
- removing competitor {slug} of {product}: competitor {slug} was already removed by {by} at {at}; observed: comparison_competitors row {slug} holds rejected true; nothing was changed
- Fix: nothing to remove; echo-cli comparisons competitors add declares it again
- Test: tests/market/comparison-competitors.test.mjs::a_competitor_removed_twice_is_refused
echo.comparisons.products#
Store every product of the Stado catalogue as sent, publishable only when public, retiring the ones it no longer holds and withdrawing their comparisons.
Started by `/api/market/comparisons/products`, `echo-cli comparisons products`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.store.
echo.comparisons.products.products-missing#
- refused, exit 2; the request itself is refused
- storing the Stado catalogue sent by {by}: a catalogue sync stores every product the catalogue holds, so products is a list of at least one, and it is {value}; observed: products is {value}; no product was stored or retired
- Fix: send products as stado product catalog --json prints them: echo-cli comparisons products sync --by <name> sends the whole catalogue
- Test: tests/market/comparison-products.test.mjs::a_sync_without_products_is_refused
echo.comparisons.products.entry-shapeless#
- refused, exit 2; the request itself is refused
- storing the Stado catalogue sent by {by}: each product of the catalogue is an object { id, name, description?, visibility, status }, and products[{place}] is {value}; observed: products[{place}] is {value}; no product was stored or retired
- Fix: send products as stado product catalog --json prints them
- Test: tests/market/comparison-products.test.mjs::a_catalogue_entry_that_is_not_an_object_is_named
echo.comparisons.products.entry-field-missing#
- refused, exit 2; the request itself is refused
- storing the Stado catalogue sent by {by}: each catalogue product names its {field} as text, and products[{place}]{id} sends {value}; observed: products[{place}].{field} is {value}; no product was stored or retired
- Fix: send products as stado product catalog --json prints them, each with id, name, visibility and status
- Test: tests/market/comparison-products.test.mjs::a_catalogue_entry_without_a_field_is_named
echo.comparisons.products.products-repeated#
- refused, exit 2; the request itself is refused
- storing the Stado catalogue sent by {by}: the catalogue holds each product once, and products names {repeated} more than once; observed: {count} products were sent; no product was stored or retired
- Fix: send each product of stado product catalog --json once
- Test: tests/market/comparison-products.test.mjs::a_catalogue_naming_a_product_twice_is_refused
echo.comparisons.products.product-absent#
- not_found, exit 1
- {step} the comparisons of product {product}: comparisons are kept for the products of the last catalogue sync, and it stored no product {product}; observed: comparison_products holds {known}; nothing was changed
- Fix: name one of those products, or store the catalogue first: echo-cli comparisons products sync --by <name>
- Test: tests/market/comparison-products.test.mjs::a_product_the_catalogue_does_not_hold_is_not_found
echo.comparisons.products.product-retired#
- refused, exit 2; the request itself is refused
- {step} the comparisons of product {product}: a product that left the Stado catalogue is retired and its comparisons are not published, and {product} was retired at {retired}; observed: comparison_products row {product} holds retired_at {retired}; nothing was changed
- Fix: add {product} to the Stado catalogue again and run echo-cli comparisons products sync --by <name>
- Test: tests/market/comparison-products.test.mjs::a_retired_product_is_refused
echo.comparisons.products.product-private#
- refused, exit 2; the request itself is refused
- {step} the comparisons of product {product}: only a product the Stado catalogue declares public has published comparisons, and {product} is not: {reason}; observed: comparison_products row {product} holds publishable false; nothing was changed
- Fix: declare {product} public in the Stado catalogue and run echo-cli comparisons products sync --by <name>
- Test: tests/market/comparison-products.test.mjs::a_product_that_is_not_public_is_refused
echo.contact.suppressions#
Suppress an address, lift a suppression keeping its row, list them, and read or suppress the addresses emailed often without a click or reply.
Started by `/api/analytics/lifecycle/suppressions`, `/api/analytics/lifecycle/suppressions/inactive`, `echo-cli lifecycle suppressions`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.automation.caller, echo.store.
echo.contact.suppressions.address-not-text#
- refused, exit 2; the request itself is refused
- reading the email address {step}: an address is one email address as text, and it was sent as {value}; observed: address is {value}; nothing was read or written
- Fix: send address as text, such as person@example.com
- Test: tests/contact/suppression.test.mjs::an_address_that_is_not_text_is_refused
echo.contact.suppressions.address-malformed#
- refused, exit 2; the request itself is refused
- reading the email address {step}: an address is a local part and a domain around one @, without spaces, and {value} is not; observed: address is {value}; nothing was read or written
- Fix: send one email address, such as person@example.com
- Test: tests/contact/suppression.test.mjs::an_address_that_is_not_one_address_is_refused
echo.contact.suppressions.reason-unknown#
- refused, exit 2; the request itself is refused
- suppressing {address}: a suppression says why mail must not reach the address, one of {reasons}, and reason is {value}; observed: reason is {value}; nothing was suppressed
- Fix: send reason as one of {reasons}: echo-cli lifecycle suppressions add --address {address} --reason <reason> --source <text> --by <name>
- Test: tests/contact/suppression.test.mjs::a_suppression_of_an_unknown_reason_is_refused
echo.contact.suppressions.suppressed-already#
- refused, exit 1
- suppressing {address}: {address} is already suppressed since {at} ({reason} from {source}), as {suppression}; observed: contact_suppressions holds that suppression unlifted; nothing was added
- Fix: nothing to add; echo-cli lifecycle suppressions check --address {address} shows it
- Test: tests/contact/suppression.test.mjs::an_address_suppressed_twice_is_refused
echo.contact.suppressions.not-suppressed#
- not_found, exit 1
- lifting the suppression of {address}: {address} is not suppressed now; observed: contact_suppressions holds no unlifted row of {address}; nothing was lifted
- Fix: nothing to lift: echo-cli lifecycle suppressions list shows the addresses that are suppressed
- Test: tests/contact/suppression.test.mjs::an_address_that_is_not_suppressed_is_not_found
echo.contact.consent#
Record an address's consent to each email topic and its own frequency choice, through the signed preference link of an email Echo sent or the operator.
Started by `/api/public/preferences`, `/api/public/preferences/page`, `/api/analytics/lifecycle/consents`, `echo-cli lifecycle consent`.
It also meets the causes of echo.contact.suppressions, echo.http.body, echo.config, echo.store.
echo.contact.consent.topic-unknown#
- refused, exit 2; the request itself is refused
- recording the consent of {address}: consent is kept per topic, one of {topics}, and topic is {value}; observed: topic is {value}; nothing was recorded
- Fix: send topic as one of {topics}
- Test: tests/contact/consent.test.mjs::a_consent_of_an_unknown_topic_is_refused
echo.contact.consent.state-unknown#
- refused, exit 2; the request itself is refused
- recording the consent of {address} to {topic} emails: a consent record states one of {states}, and state is {value}; observed: state is {value}; nothing was recorded
- Fix: send state as one of {states}
- Test: tests/contact/consent.test.mjs::a_consent_of_an_unknown_state_is_refused
echo.contact.consent.consent-unchanged#
- refused, exit 1
- recording the consent of {address} to {topic} emails as {state}: {address}'s consent to {topic} emails is already {state} since {at}, as {record}, and a record that changes nothing is not kept; observed: email_consents holds {record} as the latest; nothing was recorded
- Fix: nothing to record; echo-cli lifecycle consent show --address {address} shows every record
- Test: tests/contact/consent.test.mjs::a_consent_that_changes_nothing_is_refused
echo.contact.consent.token-missing#
- refused, exit 2; the request itself is refused
- opening the preferences of {address}: the preference page opens only with the token of the link an email Echo sent to the address, and the request carries none; observed: token is {value}; nothing was read or changed
- Fix: open the preference link at the end of an email Echo sent to {address}
- Test: tests/contact/consent.test.mjs::a_preference_request_without_a_token_is_refused
echo.contact.consent.token-foreign#
- refused, exit 2; the request itself is refused
- opening the preferences of {address}: the token is the signature of the address under the deployment's ECHO_EMAIL_LINK_SECRET, and the one sent ({length} characters) does not sign {address}; observed: nothing was read or changed
- Fix: open the preference link from an email Echo sent to {address}; a link made before ECHO_EMAIL_LINK_SECRET changed no longer opens
- Test: tests/contact/consent.test.mjs::a_preference_link_of_another_address_is_refused
echo.contact.consent.recipient-blank#
- refused, exit 2; the request itself is refused
- {step} the frequency choice of a recipient: a choice is kept for the address its emails are counted under, and the recipient is blank; observed: the recipient holds {length} characters, none of them an address; nothing was read or written
- Fix: name the address the choice is for
- Test: tests/contact/consent.test.mjs::a_frequency_choice_without_a_recipient_is_refused
echo.contact.consent.frequency-unchosen#
- not_found, exit 1
- clearing the frequency choice of {recipient}: {recipient} chose no frequency of their own; observed: contact_frequency_choices holds no row of {recipient}; nothing was removed
- Fix: nothing to clear; only the operator's cap (echo-cli lifecycle caps deferrals --since <ISO instant>) applies to {recipient}
- Test: tests/contact/consent.test.mjs::a_frequency_never_chosen_is_not_found
echo.contact.frequency#
Set or remove the cap on messages to any recipient per window, defer a send over it or over their own choice, and list the deferrals and sends.
Started by `/api/analytics/lifecycle/caps`, `echo-cli lifecycle caps`.
It also meets the causes of echo.contact.consent, echo.http.access, echo.http.body, echo.automation.caller, echo.store.
echo.contact.frequency.cap-unset#
- not_found, exit 1
- removing the frequency cap: no frequency cap is set; observed: contact_caps holds no row; nothing was removed
- Fix: nothing to remove; echo-cli lifecycle caps set --max-messages <n> --window-hours <n> --by <name> sets one
- Test: tests/contact/frequency.test.mjs::a_cap_never_set_is_not_found
echo.contact.frequency.recipient-unnamed#
- config, exit 1
- counting a message against the frequency cap: a message is counted under its email address, else under its CRM contact, and the message names neither; observed: the email is {email} and the contact {contact}; the message was not sent
- Fix: give the recipient an email address or a CRM contact
- Test: tests/contact/frequency.test.mjs::a_message_without_a_recipient_is_not_counted
echo.contact.frequency.since-malformed#
- refused, exit 2; the request itself is refused
- listing the messages the frequency cap deferred: since is the ISO 8601 instant to list deferrals from, and {value} does not parse as one; observed: since is {value}; nothing was read
- Fix: send since as an ISO 8601 instant: echo-cli lifecycle caps deferrals --since 2026-01-31T00:00:00Z
- Test: tests/contact/frequency.test.mjs::a_since_that_is_not_an_instant_is_refused
echo.segments#
Define a segment of a product's source by rules on stored events, read its members live, record who entered and left, and remove one nothing reads.
Started by `/api/analytics/segments`, `echo-cli segments`.
It also meets the causes of echo.http.access, echo.http.body, echo.automation.caller, echo.products.lookup, echo.store.
echo.segments.rules-refused#
- refused, exit 2; the request itself is refused
- defining segment {name} of product {product}: rules is a list of at least one [{ "event": "<name>", "within_days": <n>, "at_least": <n> | "at_most": <n>, "where"?: { "property": "<name>", "equals": "<value>" } }], and what was sent breaks it: {issues}; observed: rules is {value}; no segment was defined
- Fix: repair each rule the issues name: echo-cli segments define --product {product} --name {name} --app <source> --file <rules.json> --by <name>
- Test: tests/segments/segments.test.mjs::rules_of_another_shape_are_refused
echo.segments.rules-stored-broken#
- config, exit 1
- reading the rules of segment {segment}: a stored segment holds [{ "event": "<name>", "within_days": <n>, "at_least": <n> | "at_most": <n>, "where"?: { "property": "<name>", "equals": "<value>" } }], and segment {segment} holds rules that break it: {issues}; observed: behavioural_segments row {segment} holds rules {value}; no member was read
- Fix: remove the segment (echo-cli segments remove --segment {segment}) and define it again with rules of that shape
- Test: tests/segments/segments.test.mjs::stored_rules_that_no_longer_parse_are_named
echo.segments.name-taken#
- refused, exit 1
- defining segment {name} of product {product}: a product names each segment once, case aside, and it already has {held} ({segment}); observed: nothing was defined
- Fix: name it otherwise, or remove {segment} first: echo-cli segments remove --segment {segment}
- Test: tests/segments/segments.test.mjs::a_segment_named_twice_is_refused
echo.segments.segment-absent#
- not_found, exit 1
- reading segment {segment}: no segment has the id {segment}; observed: behavioural_segments holds no row with id {segment}; nothing was read or changed
- Fix: name a segment echo-cli segments list --product <id> lists
- Test: tests/segments/segments.test.mjs::a_segment_that_does_not_exist_is_not_found
echo.segments.segment-held#
- refused, exit 2; the request itself is refused
- removing segment {segment}: a segment is removed only once nothing reads it, and {holders}; observed: nothing was removed
- Fix: {release}, then remove the segment
- Test: tests/segments/segments.test.mjs::a_segment_still_read_is_kept
echo.segments.entry#
Bind a lifecycle trigger of the segment's own product and source to fire on entry, and enrol each person entering it once.
Started by `/api/analytics/segments`, `echo-cli segments onentry`, `echo-cli segments unentry`, `echo-cli segments refresh`.
It also meets the causes of echo.segments, echo.http.access, echo.http.body, echo.store.
echo.segments.entry.trigger-other-product#
- refused, exit 2; the request itself is refused
- binding trigger {trigger} to fire on entering segment {segment}: a segment fires only its own product's triggers, and trigger {trigger} belongs to product {triggerProduct} while the segment belongs to {product}; observed: nothing was bound
- Fix: name a trigger of product {product}: echo-cli lifecycle triggers list --product {product}
- Test: tests/segments/entry.test.mjs::a_trigger_of_another_product_is_refused
echo.segments.entry.trigger-other-source#
- refused, exit 2; the request itself is refused
- binding trigger {trigger} to fire on entering segment {segment}: a segment fires only triggers of its own source, and trigger {trigger} reads {triggerSource} while the segment reads {source}; observed: nothing was bound
- Fix: name a trigger of source {source}, or add one: echo-cli lifecycle triggers add --product {product} --app {source} …
- Test: tests/segments/entry.test.mjs::a_trigger_of_another_source_is_refused
echo.segments.entry.entry-bound#
- refused, exit 1
- binding trigger {trigger} to fire on entering segment {segment}: segment {segment} already fires trigger {trigger} on entry, bound by {by} at {at}; observed: segment_entry_triggers holds that binding; nothing was bound again
- Fix: nothing to bind: echo-cli segments entry --segment {segment} lists what it fires
- Test: tests/segments/entry.test.mjs::a_trigger_bound_twice_is_refused
echo.segments.entry.entry-unbound#
- not_found, exit 1
- unbinding trigger {trigger} from segment {segment}: segment {segment} does not fire trigger {trigger} on entry; observed: segment_entry_triggers holds no such row; nothing was removed
- Fix: name a binding echo-cli segments entry --segment {segment} lists
- Test: tests/segments/entry.test.mjs::an_unbound_trigger_is_not_found
echo.segments.entry.enrolment-vanished#
- infra_down, exit 69; trying again unchanged can help
- enrolling {subject} in trigger {trigger} on entering segment {segment}: the enrolment was neither made (one existed) nor found when read back, so it was removed between the two; observed: lifecycle_enrollments holds no row of {subject} for trigger {trigger}; {subject} was not enrolled
- Fix: refresh the segment again: echo-cli segments refresh --segment {segment}
- Test: tests/segments/entry.test.mjs::an_enrolment_removed_while_made_is_named
echo.simulation.respondent#
Ask at least two routes, as one described respondent or as a described population, a question with stated choices about a public page, count the answers by choice, and measure how far a repeat, a paraphrase, a control page and a left-out attribute move them and, where real answers are given, how far they stand from them beside everyone's; every answer is synthetic.
Started by `npm run simulate:respondent -- --url <address> --question <text> --choice <answer> (twice or more) --route <provider/model> (twice or more) --samples <n> --budget-calls <n> --stable-within <0..1> and one respondent described by at least one of --age, --gender, --origin, --country, --language, --description, or --population <file>`.
It also meets the causes of echo.web.public, echo.model.
echo.simulation.respondent.flag-unknown#
- refused, exit 2; the request itself is refused
- reading the command line: {flag} is not a flag of this command; observed: arguments: {given}
- Fix: write npm run simulate:respondent -- --url <address> --question <text> --choice <answer> (twice or more) --route <provider/model> (twice or more) --samples <n> --budget-calls <n> --stable-within <0..1> and one respondent described by at least one of --age, --gender, --origin, --country, --language, --description, or --population <file>; --paraphrase <text>, --control-url <address> with --favourable <answer>, --without <attribute>, and --real <file> with --real-everyone <file> add a check each; --second-url <address> shows a second page, --translate-to <language> adds each reason in a second language, and --out <file> keeps the result
- Test: tests/simulation/respondent.test.mjs::an_unknown_flag_is_named
echo.simulation.respondent.value-missing#
- refused, exit 2; the request itself is refused
- reading the command line: {flag} takes a value, and none follows it; observed: arguments: {given}
- Fix: write the value after {flag}
- Test: tests/simulation/respondent.test.mjs::a_flag_without_its_value_is_refused
echo.simulation.respondent.stated-missing#
- refused, exit 2; the request itself is refused
- reading the command line: a run states {flag}, and the line does not: nothing about a simulated answer is assumed; observed: arguments: {given}
- Fix: write npm run simulate:respondent -- --url <address> --question <text> --choice <answer> (twice or more) --route <provider/model> (twice or more) --samples <n> --budget-calls <n> --stable-within <0..1> and one respondent described by at least one of --age, --gender, --origin, --country, --language, --description, or --population <file>
- Test: tests/simulation/respondent.test.mjs::a_run_that_leaves_a_stated_flag_out_is_refused
echo.simulation.respondent.number-refused#
- refused, exit 2; the request itself is refused
- reading the command line: {flag} takes {takes}; observed: {flag} is {written}
- Fix: write {flag} as {takes}
- Test: tests/simulation/respondent.test.mjs::a_number_of_another_form_is_refused
echo.simulation.respondent.out-unwritable#
- refused, exit 2; the request itself is refused
- planning where the result is kept: the result is written to {file} once the routes have answered, and {directory} is not a directory: no route is asked for answers that would have nowhere to go; observed: arguments: {given}
- Fix: name with --out a file in a directory that exists, or leave --out out and read the printed result
- Test: tests/simulation/respondent.test.mjs::a_result_file_in_no_directory_is_refused
echo.simulation.respondent.routes-few#
- refused, exit 2; the request itself is refused
- planning the run: one route cannot be told from its own habit: a run asks at least two routes, so their disagreement is seen; observed: routes: {routes}
- Fix: name a second --route <provider/model> that an inference alternative serves
- Test: tests/simulation/respondent.test.mjs::a_run_with_one_route_is_refused
echo.simulation.respondent.choices-few#
- refused, exit 2; the request itself is refused
- planning the run: the answers are counted by choice, and fewer than two different choices leave nothing to count; observed: choices: {choices}
- Fix: write each answer a respondent may give as its own --choice <answer>, at least two
- Test: tests/simulation/respondent.test.mjs::a_run_with_one_choice_is_refused
echo.simulation.respondent.respondent-undescribed#
- refused, exit 2; the request itself is refused
- planning the run: nobody is described, so the answers would be the model's own and not a respondent's; observed: arguments: {given}
- Fix: state one respondent described by at least one of --age, --gender, --origin, --country, --language, --description, or --population <file>
- Test: tests/simulation/respondent.test.mjs::a_run_without_a_respondent_is_refused
echo.simulation.respondent.respondent-twice#
- refused, exit 2; the request itself is refused
- planning the run: a run asks one described respondent or a population, and the line names both; observed: described on the line: {attributes}; population: {file}
- Fix: keep the attribute flags or --population, not both; a respondent of the population states its attributes in the file
- Test: tests/simulation/respondent.test.mjs::a_respondent_beside_a_population_is_refused
echo.simulation.respondent.population-unreadable#
- refused, exit 2; the request itself is refused
- reading the population {file}: a population is a JSON file [{ "share": <above 0, at most 1>, "<attribute>": "<text>", ... }, ...] whose shares add up to 1, each respondent stating at least one attribute, and this one is not: {problem}; observed: file: {file}
- Fix: write the file as [{ "share": <above 0, at most 1>, "<attribute>": "<text>", ... }, ...] whose shares add up to 1
- Test: tests/simulation/respondent.test.mjs::a_population_of_another_shape_is_refused
echo.simulation.respondent.population-thin#
- refused, exit 2; the request itself is refused
- dividing the answers among the population {file}: each respondent is asked their share of --samples as a whole number of answers, and at this number a respondent would be asked none, so the count would stand for fewer people than the file describes; observed: {samples} answers among {respondents} respondents
- Fix: raise --samples until the smallest share is at least one answer, or leave the smallest shares out of the file
- Test: tests/simulation/respondent.test.mjs::a_population_some_of_whom_would_not_be_asked_is_refused
echo.simulation.respondent.attribute-unstated#
- refused, exit 2; the request itself is refused
- planning the run without {attribute}: a run without an attribute shows how far that attribute moves the answers, and nobody asked states {attribute}; observed: stated: {stated}
- Fix: name with --without one of the attributes the run states
- Test: tests/simulation/respondent.test.mjs::a_check_without_an_attribute_nobody_stated_is_refused
echo.simulation.respondent.favourable-unoffered#
- refused, exit 2; the request itself is refused
- planning the control: {favourable} is not one of the choices, so no answer could count as favourable; observed: choices: {choices}
- Fix: name with --favourable one of the --choice answers
- Test: tests/simulation/respondent.test.mjs::a_favourable_answer_nobody_offered_is_refused
echo.simulation.respondent.control-unscored#
- refused, exit 2; the request itself is refused
- planning the control: a control page must do worse than the page asked about, and worse is counted in favourable answers: --control-url and --favourable are written together; observed: control: {control}; favourable: {favourable}
- Fix: write --control-url <address> with at least one --favourable <answer>, or neither
- Test: tests/simulation/respondent.test.mjs::a_control_without_a_favourable_answer_is_refused
echo.simulation.respondent.real-unpaired#
- refused, exit 2; the request itself is refused
- planning the comparison with real answers: simulated answers near the real ones say nothing unless everyone's real answers stand further from them: --real and --real-everyone are written together; observed: real: {real}; everyone: {everyone}
- Fix: write --real <file>, the answers of the people described, with --real-everyone <file>, the answers of everyone asked, or neither
- Test: tests/simulation/respondent.test.mjs::real_answers_without_their_baseline_are_refused
echo.simulation.respondent.real-unreadable#
- refused, exit 2; the request itself is refused
- reading the real answers {file}: real answers are a JSON object giving a whole count for each choice and no other, with at least one answer counted, and this file is not: {problem}; observed: choices: {choices}
- Fix: write the file as { "<choice>": <count>, ... } with every --choice in it, as echo-cli surveys results counts a survey's answers
- Test: tests/simulation/respondent.test.mjs::real_answers_of_another_shape_are_refused
echo.simulation.respondent.budget-exceeded#
- refused, exit 1
- planning the run: the run asks more model calls than --budget-calls allows, and no call is made past a budget; observed: {calls} planned ({routes} x {samples} x {passes}), budget {budget}
- Fix: raise --budget-calls to {calls}, or lower --samples or drop a check
- Test: tests/simulation/respondent.test.mjs::a_run_past_its_budget_asks_nothing
echo.crm.identities#
Add the addresses campaign email goes out from, each with its daily cap and warm-up ramp, replace a plan, and pause or resume an identity.
Started by `/api/crm/identities`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.crm.identities.plan-not-whole#
- refused, exit 2; the request itself is refused
- {step} the warm-up plan of a sending identity: {field} is {meaning}, a whole number of at least {least}, and the request sent {value}; observed: {field} is {value}; nothing was written
- Fix: send {field} as a whole number of at least {least} (echo-cli email warmup plan --identity <id> --daily-cap <n> --start-cap <n> --increment <n> --start <ISO instant>)
- Test: tests/crm/identities.test.mjs::a_cap_that_is_not_a_whole_number_is_refused
echo.crm.identities.start-above-cap#
- refused, exit 2; the request itself is refused
- {step} the warm-up plan of a sending identity: the ramp starts at warmup_start_cap and grows to daily_cap, so it cannot start above the cap it ends at; observed: warmup_start_cap is {start}, daily_cap is {cap}; nothing was written
- Fix: send a warmup_start_cap of at most {cap}, or raise daily_cap
- Test: tests/crm/identities.test.mjs::a_ramp_starting_above_its_cap_is_refused
echo.crm.identities.start-unstated#
- refused, exit 2; the request itself is refused
- {step} the warm-up plan of a sending identity: warmup_started_at says when the ramp starts and has no default, and the request does not carry it; observed: the body names daily_cap {cap} and warmup_start_cap {start} and no warmup_started_at; nothing was written
- Fix: send warmup_started_at as an ISO instant (echo-cli email warmup plan --start <ISO instant>), or null for the full cap from the first day
- Test: tests/crm/identities.test.mjs::a_plan_without_its_start_is_refused
echo.crm.identities.start-malformed#
- refused, exit 2; the request itself is refused
- {step} the warm-up plan of a sending identity: warmup_started_at is when the ramp starts, an ISO 8601 instant or null, and {value} is neither; observed: warmup_started_at is {value}; nothing was written
- Fix: send warmup_started_at as an ISO instant such as 2026-01-31T09:00:00Z, or null for the full cap from the first day
- Test: tests/crm/identities.test.mjs::a_start_that_is_not_an_instant_is_refused
echo.crm.identities.identity-absent#
- not_found, exit 1
- {step} sending identity {identity}: no sending identity has the id {identity}; observed: crm_sending_identities holds no row with id {identity}; nothing was written
- Fix: name an identity echo-cli email warmup list lists
- Test: tests/crm/identities.test.mjs::an_identity_that_does_not_exist_is_not_found
echo.crm.identities.address-held#
- refused, exit 1
- adding the sending identity {address}: an address sends campaign email as one identity, and {address} already is identity {identity}; observed: crm_sending_identities holds {identity} for {address} (active: {active}, daily_cap {cap}); nothing was written
- Fix: change its plan instead: echo-cli email warmup plan --identity {identity} --daily-cap <n> --start-cap <n> --increment <n> --start <ISO instant>
- Test: tests/crm/identities.test.mjs::an_address_added_twice_is_refused
echo.crm.identities.identity-unchanged#
- refused, exit 1
- {step} sending identity {address} ({identity}): the identity is already {state}; observed: crm_sending_identities row {identity} has active {active}; nothing was written
- Fix: nothing needs doing; echo-cli email warmup list shows whether each identity is active
- Test: tests/crm/identities.test.mjs::pausing_a_paused_identity_is_refused
echo.crm.preview#
Compose the message a contact would get at a step or with a variant, with the usage read and the banned phrases it holds, and send it nowhere.
Started by `/api/crm/campaigns/[id]/preview`.
It also meets the causes of echo.http.access, echo.http.body, echo.crm.campaigns, echo.crm.contacts, echo.crm.variants, echo.crm.compose, echo.store.
echo.crm.preview.step-malformed#
- refused, exit 2; the request itself is refused
- previewing a message of campaign {campaign}: step names a sequence step by its whole number, or is absent for the first message, and the request sent {value}; observed: step is {value}; nothing was composed
- Fix: send step as a whole number (echo-cli email preview --campaign {campaign} --contact <contact-id> --step <n>), or leave it out
- Test: tests/crm/preview.test.mjs::a_step_that_is_not_a_whole_number_is_refused
echo.crm.preview.variant-malformed#
- refused, exit 2; the request itself is refused
- previewing a message of campaign {campaign}: variant_id names one of the campaign's variants by its id, or is absent, and the request sent {value}; observed: variant_id is {value}; nothing was composed
- Fix: send a variant id echo-cli email ab list --campaign {campaign} lists, or leave variant_id out
- Test: tests/crm/preview.test.mjs::a_variant_that_is_not_an_id_is_refused
echo.crm.preview.templates-two#
- refused, exit 2; the request itself is refused
- previewing a message of campaign {campaign}: step names a sequence step's template and variant_id a variant of the first message: two different templates, and a preview composes one; observed: step is {step}, variant_id is {variant}; nothing was composed
- Fix: send one of them: echo-cli email preview --campaign {campaign} --contact <contact-id> --step <n> or --variant <variant-id>
- Test: tests/crm/preview.test.mjs::a_step_and_a_variant_together_are_refused
echo.crm.preview.template-empty#
- not_found, exit 1
- previewing a message of campaign {campaign}: {from} of campaign {campaign} has no message template to compose; observed: the message template of {from} is empty; nothing was composed
- Fix: write the template of {from} on the campaign's page, or preview another step or variant
- Test: tests/crm/preview.test.mjs::a_step_without_a_template_is_not_found
echo.crm.variants#
Add and remove a campaign's A/B variants of its first message, and give each recipient one evenly by its id.
Started by `/api/crm/campaigns/[id]/variants`, `/api/cron/crm-campaign-worker`.
It also meets the causes of echo.http.access, echo.http.body, echo.crm.campaigns, echo.store.
echo.crm.variants.variant-named#
- refused, exit 1
- adding the variant {name} to campaign {campaign}: a campaign names each of its variants once, case aside, and it already has {held}; observed: variant {variant} of campaign {campaign} is named {held}; nothing was written
- Fix: give the variant another name, or remove {variant} first: echo-cli email ab remove --campaign {campaign} --variant {variant}
- Test: tests/crm/variants.test.mjs::a_variant_named_twice_is_refused
echo.crm.variants.variant-absent#
- not_found, exit 1
- {step} variant {variant}: no A/B variant {scope} has the id {variant}; observed: crm_campaign_variants holds no such row; nothing was written
- Fix: name a variant echo-cli email ab list --campaign <campaign-id> lists
- Test: tests/crm/variants.test.mjs::a_variant_that_does_not_exist_is_not_found
echo.crm.variants.variant-sent#
- refused, exit 1
- removing variant {name} ({variant}) of campaign {campaign}: the variant was already given to {count} recipients and their clicks and purchases are counted under it, so it stays; observed: {count} rows of crm_campaign_recipients hold variant {variant}; nothing was removed
- Fix: leave the variant in place; another variant is added with echo-cli email ab add --campaign {campaign} --name <text> --file <template.txt> --by <name>
- Test: tests/crm/variants.test.mjs::a_variant_already_sent_is_kept
echo.crm.variants.variant-gone#
- config, exit 1
- choosing the variant of recipient {recipient} of campaign {campaign}: the recipient holds variant {variant}, which the campaign no longer has, so its first message has no template; observed: crm_campaign_recipients row {recipient} holds variant_id {variant}; campaign {campaign} has the variants {held}; nothing was sent
- Fix: set variant_id of recipient {recipient} to one of {held}, or to null so the worker gives it one
- Test: tests/crm/variants.test.mjs::a_recipient_holding_a_removed_variant_is_named
echo.crm.variants.recipient-removed#
- infra_down, exit 69; trying again unchanged can help
- reading back the variant of recipient {recipient} of campaign {campaign}: another tick kept a variant on the recipient first, and the recipient was deleted before its variant was read back; observed: crm_campaign_recipients holds no row with id {recipient}; variant {variant} was not kept; nothing was sent
- Fix: nothing to send to; the next tick of the campaign worker sends to the recipients left
- Test: tests/crm/variants.test.mjs::a_recipient_removed_while_its_variant_is_kept_is_retryable
echo.crm.brand#
Name the product a campaign speaks for, so its messages answer to that product's banned phrases and a crafted draft to its approved messaging.
Started by `/api/crm/campaigns/[id]/brand`, `/api/cron/crm-campaign-worker`.
It also meets the causes of echo.http.access, echo.http.body, echo.crm.campaigns, echo.products.lookup, echo.store.
echo.crm.brand.brand-unset#
- not_found, exit 1
- clearing the product campaign {campaign} speaks for: campaign {campaign} names no product; observed: crm_campaign_brands holds no row for campaign {campaign}; nothing was removed
- Fix: nothing to clear; echo-cli email brand read --campaign {campaign} shows the product a campaign speaks for
- Test: tests/crm/brand.test.mjs::clearing_a_campaign_naming_no_product_is_not_found
echo.crm.brand.messaging-unapproved#
- not_found, exit 1
- crafting a message of campaign {campaign}: the campaign speaks for product {product}, and a crafted draft is written from its approved messaging house, of which it has none; observed: no messaging version of product {product} is approved; nothing was crafted or sent
- Fix: approve a version: echo-cli messaging approve --id <version-id> --by <name> (echo-cli messaging list --product {product} lists them), or clear the product: echo-cli email brand clear --campaign {campaign}
- Test: tests/crm/brand.test.mjs::a_crafted_draft_without_approved_messaging_is_refused
echo.crm.clicks#
Record a click on a tracked link of a campaign email for its recipient and step, and send the reader on to the link.
Started by `/api/public/clicks`.
It also meets the causes of echo.config, echo.store.
echo.crm.clicks.link-incomplete#
- refused, exit 2; the request itself is refused
- opening a tracked link of a campaign email: a tracked link carries r (the recipient), s (the step), u (the link) and t (Echo's signature), and this one lacks {missing}; observed: the address carries {present}; no click was recorded
- Fix: open the link whole from the email it came in; a mail client or a copy that cut the address shortened it
- Test: tests/crm/clicks.test.mjs::a_link_missing_a_part_is_refused
echo.crm.clicks.link-unsigned#
- refused, exit 2; the request itself is refused
- opening a tracked link of a campaign email: t is not the signature Echo makes for this recipient, step and link under ECHO_EMAIL_LINK_SECRET: the link was changed after it was sent, or signed under a secret the deployment no longer holds; observed: recipient {recipient}, step {step}, link {link}, a signature of {length} characters; no click was recorded
- Fix: open the link from the email it came in, unchanged; a link signed before ECHO_EMAIL_LINK_SECRET was replaced no longer opens
- Test: tests/crm/clicks.test.mjs::a_link_echo_did_not_sign_is_refused
echo.crm.clicks.step-unread#
- refused, exit 2; the request itself is refused
- opening a tracked link of a campaign email: s names the step the link was sent at, null for the first message or a whole number, and this link carries {value}; observed: recipient {recipient}, s is {value}; no click was recorded
- Fix: open the link from the email it came in, unchanged
- Test: tests/crm/clicks.test.mjs::a_link_naming_no_step_is_refused
echo.crm.clicks.recipient-gone#
- not_found, exit 1
- recording the click of recipient {recipient} on {link}: the campaign recipient this link was sent to no longer exists: it was removed from its campaign; observed: crm_campaign_recipients holds no row with id {recipient}; no click was recorded
- Fix: nothing to record; the link itself leads to {link}
- Test: tests/crm/clicks.test.mjs::a_link_of_a_removed_recipient_is_not_found
echo.crm.revenue#
Count a campaign's clicks and the purchases its clickers made within the window, summed per currency, per step and per variant.
Started by `/api/crm/campaigns/[id]/revenue`, `/api/crm/campaigns/[id]/variants/test`.
It also meets the causes of echo.http.access, echo.http.query, echo.crm.campaigns, echo.analytics.identity, echo.store.
echo.crm.revenue.window-unread#
- refused, exit 2; the request itself is refused
- counting the purchases the clicks of campaign {campaign} led to: window_days counts the days after a click within which a purchase counts, a whole number above zero, and the request sent {value}; observed: window_days is {value}; nothing was read
- Fix: send window_days as a whole number above zero: echo-cli email revenue --campaign {campaign} --window-days <n>
- Test: tests/crm/revenue.test.mjs::a_window_that_is_not_a_count_of_days_is_refused
echo.crm.revenue.click-orphaned#
- config, exit 1
- attributing the clicks of campaign {campaign}: click {click} names recipient {recipient}, which the campaign does not hold: the recipient was removed after the click was recorded; observed: crm_email_clicks row {click} has recipient_id {recipient}; crm_campaign_recipients holds {held} recipients of campaign {campaign} and not that one
- Fix: delete click {click} from crm_email_clicks, or restore recipient {recipient} to campaign {campaign}
- Test: tests/crm/revenue.test.mjs::a_click_of_a_removed_recipient_is_named
echo.crm.variant-test#
Compare each A/B variant's click and purchase rates over its recipients, the leader's intervals against every other, and a winner once all clear zero.
Started by `/api/crm/campaigns/[id]/variants/test`.
It also meets the causes of echo.http.access, echo.http.query, echo.crm.revenue, echo.store.
echo.crm.variant-test.sigmas-unread#
- refused, exit 2; the request itself is refused
- comparing the A/B variants of campaign {campaign}: sigmas is how many standard errors each interval spans, a number above zero, and the request sent {value}; observed: sigmas is {value}; nothing was read
- Fix: send sigmas above zero, such as 1.96: echo-cli email ab test --campaign {campaign} --window-days <n> --sigmas <n>
- Test: tests/crm/variant-test.test.mjs::sigmas_that_are_not_above_zero_are_refused
echo.crm.variant-test.variants-too-few#
- not_found, exit 1
- comparing the A/B variants of campaign {campaign}: a comparison needs at least two variants given to recipients, and the campaign has given {given}; observed: {count} variants of campaign {campaign} hold recipients; nothing was compared
- Fix: send the campaign until two variants reach recipients; echo-cli email ab list --campaign {campaign} counts each variant's recipients
- Test: tests/crm/variant-test.test.mjs::a_campaign_with_one_given_variant_is_not_compared
echo.crm.held-send#
Send the one campaign message the job held at its channel's autonomy budget, once approved: the same recipient at the same step of a campaign still active.
Started by `the approval of a held campaign send (/api/automation/approvals)`.
It also meets the causes of echo.crm.campaigns, echo.crm.variants, echo.crm.compose, echo.store.
echo.crm.held-send.campaign-inactive#
- refused, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: a held send runs only for an active campaign, and campaign {campaign} is {status}; observed: crm_campaigns row {campaign} has status {status}; nothing was sent
- Fix: resume the campaign on its page and approve the send again, or reject the approval request
- Test: tests/crm/held-send.test.mjs::a_held_send_of_a_paused_campaign_is_refused
echo.crm.held-send.recipient-absent#
- not_found, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: campaign {campaign} holds no recipient {recipient}: it was removed after the send was held; observed: crm_campaign_recipients holds no row {recipient} in campaign {campaign}; nothing was sent
- Fix: reject the approval request: there is no one to send it to
- Test: tests/crm/held-send.test.mjs::a_held_send_of_a_removed_recipient_is_not_found
echo.crm.held-send.recipient-moved#
- refused, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the send was held for step {held}, and the recipient is now {status} at step {current}: the job sent to it since, or its sequence stopped; observed: crm_campaign_recipients row {recipient} is {status} at step {current}; nothing was sent
- Fix: reject the approval request; the campaign worker sends the recipient's next step itself
- Test: tests/crm/held-send.test.mjs::a_held_send_the_recipient_moved_past_is_refused
echo.crm.held-send.send-deferred#
- rate_limit, exit 69; trying again unchanged can help
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the send waits on a limit that still holds: every sending identity at its cap, the recipient at its frequency cap, or another tick claiming it first; observed: {reason}; nothing was sent
- Fix: approve the send again once the limit it names frees: echo-cli email warmup list shows each identity's cap and sends today
- Test: tests/crm/held-send.test.mjs::a_held_send_at_a_cap_is_retryable
echo.crm.held-send.send-undelivered#
- infra_down, exit 69; trying again unchanged can help
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the {channel} channel did not deliver the message; observed: the channel answered: {said}; crm_campaign_recipients row {recipient} records it as failed
- Fix: approve the send again once the channel answers; the recipient row and the audit trail hold the same cause
- Test: tests/crm/held-send.test.mjs::a_held_send_the_channel_does_not_deliver_is_retryable
echo.crm.held-send.send-skipped#
- refused, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the contact may not be sent to: it asked to stop, its deal was rejected, its address is suppressed or it withdrew its consent to campaign emails; observed: {said}; crm_campaign_recipients row {recipient} is now skipped; nothing was sent
- Fix: nothing further is sent to this recipient; echo-cli lifecycle suppressions check --address <email> shows a suppression, and the contact's page its consent and deal status
- Test: tests/crm/held-send.test.mjs::a_held_send_to_a_contact_that_asked_to_stop_is_skipped
echo.crm.held-send.send-uncomposed#
- refused, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the message could not be composed for the recipient, so it was not sent; observed: {said}; crm_campaign_recipients row {recipient} records it as failed
- Fix: repair what the compose cause names (the template or the contact), then send the recipient again from the campaign page
- Test: tests/crm/held-send.test.mjs::a_held_send_whose_message_cannot_be_composed_fails
echo.crm.held-send.send-banned#
- refused, exit 1
- running the held send to recipient {recipient} of campaign {campaign} at step {held}: the composed message holds banned phrases of the product the campaign speaks for, and such a message is not sent; observed: {said}; crm_campaign_recipients row {recipient} records it as failed
- Fix: take the phrases out of the template (echo-cli email preview --campaign {campaign} --contact <contact-id> shows them), then send the recipient again
- Test: tests/crm/held-send.test.mjs::a_held_send_holding_banned_phrases_fails
echo.crm.scoring#
Declare what each stored signal adds to a lead's score, and score CRM contacts by them with every contribution named.
Started by `/api/crm/scores`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.crm.contacts, echo.store.
echo.crm.scoring.signal-unknown#
- refused, exit 2; the request itself is refused
- declaring the weight of a lead scoring signal: signal names one of the signals Echo reads ({signals}), and the request sent {value}; observed: signal is {value}; nothing was written
- Fix: send one of {signals}: echo-cli email score signals lists them with what each means
- Test: tests/crm/scoring.test.mjs::a_signal_echo_does_not_read_is_refused
echo.crm.scoring.weight-unread#
- refused, exit 2; the request itself is refused
- declaring the weight of signal {signal}: weight is what one unit of {signal} adds to a score, a finite number, and the request sent {value}; observed: weight is {value}; nothing was written
- Fix: send weight as a number: echo-cli email score weight --signal {signal} --weight <n> --by <who>
- Test: tests/crm/scoring.test.mjs::a_weight_that_is_not_a_number_is_refused
echo.crm.scoring.weight-absent#
- not_found, exit 1
- removing the weight of signal {signal}: no weight is declared for {signal}; observed: lead_score_weights holds no row for {signal}; nothing was removed
- Fix: echo-cli email score signals lists the declared weights
- Test: tests/crm/scoring.test.mjs::removing_an_undeclared_weight_is_not_found
echo.crm.scoring.weights-undeclared#
- refused, exit 2; the request itself is refused
- scoring CRM contacts: a score is the sum of the declared weights times their signals, and no weight is declared; observed: lead_score_weights holds no row; nothing was scored
- Fix: declare one first: echo-cli email score weight --signal <signal> --weight <n> --by <who>
- Test: tests/crm/scoring.test.mjs::scoring_without_a_weight_is_refused
echo.crm.replies#
Read the inbound replies the email sync classified since a number of days, with the classifier's intent and reason and the deal status it left.
Started by `/api/crm/replies`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.crm.replies.message-orphaned#
- config, exit 1
- reading the replies classified in the last {days} days: a classification names message {message}, which crm_messages does not hold: the message was deleted after it was classified; observed: crm_reply_classifications holds message {message} of conversation {conversation}; {held} of {count} classified messages are held
- Fix: delete the classification of message {message} from crm_reply_classifications, or restore the message
- Test: tests/crm/replies.test.mjs::a_classification_of_a_deleted_message_is_named
echo.crm.replies.contact-orphaned#
- config, exit 1
- reading the replies classified in the last {days} days: a classification names contact {contact}, which creator_contacts does not hold: the contact was deleted after its reply was classified; observed: crm_reply_classifications holds contact {contact} for message {message}
- Fix: delete the classifications of contact {contact} from crm_reply_classifications, or restore the contact
- Test: tests/crm/replies.test.mjs::a_classification_of_a_deleted_contact_is_named
echo.crm.compose#
Compose a campaign message for one contact: its usage blocks kept or dropped by what the contact did, its placeholders filled, or a draft crafted from the brief.
Started by `/api/cron/crm-campaign-worker`, `/api/crm/campaigns/[id]/preview`.
It also meets the causes of echo.model, echo.store.
echo.crm.compose.usage-unaddressed#
- refused, exit 1
- composing the message of campaign {campaign} for contact {contact}: the template holds usage blocks ({{#did …}} / {{#didnt …}}), which are decided by the events stored under the contact's email, and contact {contact} has no email address; observed: creator_contacts row {contact} has no email; nothing was sent
- Fix: record an email address on contact {contact}, or drop the usage blocks from the template
- Test: tests/crm/compose.test.mjs::usage_blocks_for_a_contact_without_an_email_are_refused
echo.crm.compose.placeholder-unfilled#
- refused, exit 1
- composing the message of campaign {campaign} for contact {contact}: the template names {placeholder}, and contact {contact} has no value for it on the {channel} channel; observed: the first placeholder without a value is {placeholder}; nothing was sent
- Fix: record the value on contact {contact}, or take {placeholder} out of the template
- Test: tests/crm/compose.test.mjs::a_placeholder_the_contact_has_no_value_for_is_refused
echo.crm.discovery#
Find the businesses of an area that publish an email in OpenStreetMap and add the new ones to the CRM contact pool, never to a campaign.
Started by `/api/cron/crm-discover-leads`.
It also meets the causes of echo.http.access, echo.http.query, echo.config, echo.direct.overpass, echo.store.
echo.crm.discovery.max-unread#
- refused, exit 2; the request itself is refused
- finding the leads of {query}: max is how many leads one query inserts at most, a whole number above zero, and it is {value}; observed: max is {value}; Overpass was not asked
- Fix: send max as a whole number above zero (?max=<n>), or leave it out for every lead the area has
- Test: tests/crm/discovery.test.mjs::a_max_that_is_not_a_count_is_refused
echo.crm.discovery.queries-shapeless#
- config, exit 1
- reading the configured discovery queries: system_settings crm_discovery_queries holds {"queries": [{"query": "<search>", "max"?: <positive integer>}, …]}, and it holds {held}; observed: its value is {value}; no query was run
- Fix: set system_settings crm_discovery_queries to {"queries": [{"query": "coffee roasters in Seattle", "max": 20}]}, or delete the row to run none
- Test: tests/crm/discovery.test.mjs::a_setting_of_another_shape_is_named
echo.crm.discovery.entry-shapeless#
- config, exit 1
- reading the configured discovery queries: each entry of crm_discovery_queries.queries is {"query": "<search>", "max"?: <positive integer>}, and entry {place} is not: {why}; observed: entry {place} is {value}; no query was run
- Fix: write entry {place} as {"query": "<category> in <area>"} with an optional whole max above zero
- Test: tests/crm/discovery.test.mjs::a_query_entry_of_another_shape_is_named
echo.crm.sync#
Record the replies Resend received and the DM inbox messages read_inbox runs read as inbound messages of their contacts' conversations, the email replies classified.
Started by `/api/crm/sync/email`, `/api/crm/sync/dm`.
It also meets the causes of echo.http.access, echo.integration, echo.model, echo.store.
echo.crm.sync.listing-shapeless#
- infra_down, exit 69; trying again unchanged can help
- listing the mail Resend received for Echo (resend.receiving.list): the listing answered without the data list of received emails its API answers; observed: the answer holds the keys {keys}; no reply was recorded
- Fix: sync again; an answer that keeps lacking its data list means the integration route in front of Resend changed: GET /api/diagnostics/integrations shows each failed call
- Test: tests/crm/sync.test.mjs::a_listing_without_its_emails_is_retryable
echo.crm.sync.reply-bodiless#
- refused, exit 1
- reading the text of received email {email} (resend.receiving.get): a reply is recorded with its text, and Resend holds neither a text nor an html part for this email; observed: the email answered the keys {keys}; it was not recorded
- Fix: open the email in Resend's dashboard: one without a body is recorded by hand on the contact's conversation, if at all
- Test: tests/crm/sync.test.mjs::a_received_email_without_a_body_is_named
echo.crm.craft#
Draft a campaign message's subject and body from its brief, the product's approved messaging and the contact's facts, then rewrite it in the operator's voice.
Started by `/api/cron/crm-campaign-worker`, `/api/crm/campaigns/[id]/preview`.
It also meets the causes of echo.model.
echo.crm.craft.prospect-factless#
- refused, exit 1
- crafting a {channel} message for contact {contact}: a crafted message is personalized only from the facts the contact holds (name, company, niche, bio, tags, social handles), and contact {contact} holds none of them; observed: the contact row names none of those fields; nothing was crafted or sent
- Fix: record a fact on contact {contact} (its name, company or bio), or give the campaign a template without the AI: marker
- Test: tests/crm/craft.test.mjs::a_contact_without_facts_is_not_crafted_for
echo.crm.humanize#
Rewrite a text in the operator's voice with the humanizer model, and refuse a rewrite the model declined, cut off at its output limit, or that changed a name, number or literal term.
Started by `/api/humanizer`, `/api/cron/crm-campaign-worker`, `/api/crm/campaigns/[id]/preview`.
It also meets the causes of echo.http.access, echo.model.
echo.crm.humanize.text-blank#
- refused, exit 2; the request itself is refused
- rewriting {purpose} in the operator's voice: a rewrite paraphrases the text it is given, and the text is empty or only whitespace; observed: the text holds {length} characters, none of them words; the model was not asked
- Fix: send the text to rewrite
- Test: tests/crm/humanize.test.mjs::a_blank_text_is_refused
echo.crm.humanize.terms-changed#
- infra_down, exit 69; trying again unchanged can help
- rewriting {length} characters of {purpose} in the operator's voice: the rewrite must keep every name, number, address and literal term of the source verbatim, and the preservation check found {count} it changed; observed: changed: {changed}; the rewrite was not used; {left}
- Fix: ask again: the humanizer model paraphrases anew each time; a text whose terms keep changing is sent in shorter parts
- Test: tests/crm/humanize.test.mjs::a_rewrite_that_changes_a_term_is_not_used
echo.crm.humanize.rewrite-declined#
- refused, exit 1
- rewriting {length} characters of {purpose} in the operator's voice: a rewrite is the humanizer model's paraphrase of the text, and the model declined to write one (stop reason {stop}), so its reply holds the reason it declined, not a rewrite; observed: it said: {said}; that reply was not used as the text; {left}
- Fix: change the text the model is asked to paraphrase (for a campaign, its brief or the step's template; POST /api/crm/campaigns/<id>/preview shows the message a contact would get), or name another model for the humanize profile in STADO_ECHO_HUMANIZE_MODEL in the deployment's environment
- Test: tests/crm/humanize.test.mjs::a_declined_rewrite_is_not_used
echo.crm.humanize.rewrite-truncated#
- refused, exit 1
- rewriting {length} characters of {purpose} in the operator's voice: a rewrite is used only whole, and the humanizer model stopped at its output limit (stop reason {stop}) after {tokens} tokens, so the paraphrase is cut off; observed: it wrote {written} characters for a source of {length}; the cut rewrite was not used; {left}
- Fix: send the text in shorter parts (for a campaign, a shorter brief), or name a model with a larger output limit for the humanize profile in STADO_ECHO_HUMANIZE_MODEL in the deployment's environment
- Test: tests/crm/humanize.test.mjs::a_truncated_rewrite_is_not_used
echo.crm.campaigns#
Find the CRM campaign a request names by its id, before anything is read or written for it.
Started by `/api/crm/campaigns/[id]/preview`, `/api/crm/campaigns/[id]/variants`, `/api/crm/campaigns/[id]/brand`, `/api/crm/campaigns/[id]/revenue`, `/api/crm/campaigns/[id]/variants/test`, `the approval of a held campaign send`.
It also meets the causes of echo.store.
echo.crm.campaigns.campaign-absent#
- not_found, exit 1
- {step} campaign {campaign}: no CRM campaign has the id {campaign}; observed: crm_campaigns holds no row with id {campaign}; nothing was read or written for it
- Fix: name a campaign echo-cli outreach lists
- Test: tests/crm/campaigns.test.mjs::a_campaign_that_does_not_exist_is_not_found
echo.crm.contacts#
Find the CRM contact a request names by its id, before anything is composed or scored for it.
Started by `/api/crm/campaigns/[id]/preview`, `/api/crm/scores`.
It also meets the causes of echo.store.
echo.crm.contacts.contact-absent#
- not_found, exit 1
- {step} contact {contact}: no CRM contact has the id {contact}; observed: creator_contacts holds no row with id {contact}; nothing was read or written for it
- Fix: name a contact echo-cli outreach lists
- Test: tests/crm/campaigns.test.mjs::a_contact_that_does_not_exist_is_not_found
echo.mmm.fit#
Build the weekly panel of each channel's spend and an outcome event, fit how much of the outcome each channel's spend explains with intervals, and store the fit.
Started by `/api/analytics/mmm`.
It also meets the causes of echo.http.access, echo.http.query, echo.mmm.campaigns, echo.store.
echo.mmm.fit.channel-inseparable#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: the fit tells channels apart by how their spend moves, and the spend of {channel} is the same every week or moves exactly with another channel's; observed: the panel of {count} channels cannot be solved; nothing was stored
- Fix: fit over more weeks, so the spend of {channel} varies on its own, or another currency
- Test: tests/analytics/mmm-fit.test.mjs::a_channel_whose_spend_never_moves_is_refused
echo.mmm.fit.sigmas-unread#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: sigmas is how many standard errors each interval spans, a number above zero, and the request sent {value}; observed: sigmas is {value}; nothing was fitted
- Fix: send --sigmas above zero, such as 1.96 (echo-cli mmm fit … --sigmas <n>)
- Test: tests/analytics/mmm-fit.test.mjs::sigmas_that_are_not_above_zero_are_refused
echo.mmm.fit.carryover-unread#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: carryover is the share of a week's spend effect carried into the next week, at least 0 and below 1, and the request sent {value}; observed: carryover is {value}; nothing was fitted
- Fix: send --carryover from 0 (none) up to but below 1, such as 0.5
- Test: tests/analytics/mmm-fit.test.mjs::a_carryover_of_one_or_more_is_refused
echo.mmm.fit.channels-none#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: no ad account reported spend in the panel's currency over its {weeks} weeks, and no cost was recorded in it, so the panel holds no channel to fit; observed: the panel holds {weeks} weeks and no channel; nothing was fitted
- Fix: fit in the currency the ad accounts report spend in (echo-cli paid-ads lists them), or over more weeks
- Test: tests/analytics/mmm-fit.test.mjs::a_panel_without_a_channel_is_refused
echo.mmm.fit.weeks-too-few#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: the model needs at least {needed} weeks (one per channel, one for the baseline and one to measure the error), and the panel has {weeks}; observed: {channels} channels over {weeks} weeks; nothing was fitted
- Fix: fit with --weeks of at least {needed}
- Test: tests/analytics/mmm-fit.test.mjs::a_panel_shorter_than_the_model_is_refused
echo.mmm.fit.outcome-flat#
- refused, exit 2; the request itself is refused
- fitting the marketing mix model on the {weeks}-week panel from {from} to {to}: the outcome is the same every week of the panel, so no spend can explain it; observed: every week holds {value}; nothing was fitted
- Fix: fit an outcome event that varies week to week, or over more weeks
- Test: tests/analytics/mmm-fit.test.mjs::an_outcome_that_never_moves_is_refused
echo.mmm.forecast#
Project a calendar month's spend per channel from its days so far, each projection with its interval.
Started by `/api/analytics/mmm/forecast`.
It also meets the causes of echo.http.access, echo.http.query, echo.mmm.campaigns, echo.store.
echo.mmm.forecast.month-unread#
- refused, exit 2; the request itself is refused
- forecasting a month of spend: month is the calendar month to forecast, written YYYY-MM, and the request sent {value}; observed: month is {value}; nothing was read
- Fix: send --month as YYYY-MM, such as 2026-11 (echo-cli mmm forecast --month <YYYY-MM> --currency <code>)
- Test: tests/analytics/mmm-forecast.test.mjs::a_month_not_written_as_a_month_is_refused
echo.mmm.forecast.interval-unread#
- refused, exit 2; the request itself is refused
- forecasting the {currency} spend of {month}: sigmas, when given, is how many standard errors each projection's interval spans, a number above zero, and the request sent {value}; observed: sigmas is {value}; nothing was read
- Fix: send --sigmas above zero, such as 1.96, or leave it out for projections without intervals
- Test: tests/analytics/mmm-forecast.test.mjs::interval_sigmas_that_are_not_above_zero_are_refused
echo.mmm.forecast.month-unstarted#
- refused, exit 2; the request itself is refused
- forecasting the {currency} spend of {month}: {month} has not had a whole day yet, so there is no spend to forecast from; observed: the month starts {start}; today starts {today}
- Fix: forecast {month} once its first day is over, or forecast a month already under way
- Test: tests/analytics/mmm-forecast.test.mjs::a_month_without_a_whole_day_is_refused
echo.mmm.forecast.spend-none#
- not_found, exit 1
- forecasting the {currency} spend of {month}: no ad account reported spend in {currency} during {month}; observed: ad_campaign_metrics holds {rows} days of {month} and none in {currency}
- Fix: forecast in the currency the ad accounts report spend in (echo-cli paid-ads lists them)
- Test: tests/analytics/mmm-forecast.test.mjs::a_month_without_spend_is_not_found
echo.mmm.library#
List the synced ad campaigns with the operator's tags and their metrics summed over the last days, and tag or untag a campaign.
Started by `/api/analytics/mmm/library`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.mmm.campaigns, echo.store.
echo.mmm.library.tag-held#
- refused, exit 1
- tagging ad campaign {campaign} {tag}: a campaign carries each tag once, and campaign {campaign} is already tagged {tag}; observed: tagged by {by} at {at}; nothing was written
- Fix: nothing needs doing; echo-cli mmm untag --campaign {campaign} --tag {tag} removes it
- Test: tests/analytics/mmm-library.test.mjs::a_tag_given_twice_is_refused
echo.mmm.library.tag-absent#
- not_found, exit 1
- removing the tag {tag} of ad campaign {campaign}: campaign {campaign} is not tagged {tag}; observed: ad_campaign_tags holds no row of campaign {campaign} and tag {tag}; nothing was removed
- Fix: echo-cli mmm library --days <n> lists each campaign with its tags
- Test: tests/analytics/mmm-library.test.mjs::removing_a_tag_a_campaign_lacks_is_not_found
echo.mmm.anomalies#
Watch a campaign's daily metric against the band of its recent days, raise an alert on a day outside it and pause the campaign when the watch says so.
Started by `/api/analytics/mmm/anomalies`, `/api/cron/ad-anomalies`.
It also meets the causes of echo.http.access, echo.http.body, echo.mmm.campaigns, echo.store.
echo.mmm.anomalies.metric-unknown#
- refused, exit 2; the request itself is refused
- {step} for ad campaign {campaign}: metric names one of the daily metrics Echo reads ({metrics}), and the request sent {value}; observed: metric is {value}; nothing was written
- Fix: send one of {metrics}
- Test: tests/analytics/mmm-anomalies.test.mjs::a_metric_echo_does_not_read_is_refused
echo.mmm.anomalies.history-too-short#
- refused, exit 2; the request itself is refused
- watching the {metric} of ad campaign {campaign}: history_days are the days before the checked day that make the band, a whole number above 1 since one day has no spread, and the request sent {value}; observed: history_days is {value}; nothing was written
- Fix: send --history-days of at least 2, such as 14
- Test: tests/analytics/mmm-anomalies.test.mjs::a_history_of_one_day_is_refused
echo.mmm.anomalies.band-sigmas-unread#
- refused, exit 2; the request itself is refused
- watching the {metric} of ad campaign {campaign}: sigmas is how many standard deviations either side of the mean the band spans, a number above zero, and the request sent {value}; observed: sigmas is {value}; nothing was written
- Fix: send --sigmas above zero, such as 3
- Test: tests/analytics/mmm-anomalies.test.mjs::band_sigmas_that_are_not_above_zero_are_refused
echo.mmm.anomalies.watch-held#
- refused, exit 1
- watching the {metric} of ad campaign {campaign}: a campaign has one watch per metric, and campaign {campaign} already has watch {watch} on {metric}; observed: watch {watch} was declared by {by}; nothing was written
- Fix: remove it first: echo-cli mmm anomalies unwatch --id {watch}
- Test: tests/analytics/mmm-anomalies.test.mjs::a_metric_watched_twice_is_refused
echo.mmm.anomalies.watch-absent#
- not_found, exit 1
- removing anomaly watch {watch}: no anomaly watch has the id {watch}; observed: ad_anomaly_watches holds no row with id {watch}; nothing was removed
- Fix: name a watch echo-cli mmm anomalies list lists
- Test: tests/analytics/mmm-anomalies.test.mjs::a_watch_that_does_not_exist_is_not_found
echo.mmm.budgets#
Pause or scale a campaign when its summed metric crosses a threshold, and split a weekly budget across channels by a fit's response curves and apply it.
Started by `/api/analytics/mmm/rules`, `/api/analytics/mmm/allocate`, `/api/analytics/mmm/allocate/applications`, `/api/cron/budget-rules`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.mmm.campaigns, echo.store.
echo.mmm.budgets.choice-unknown#
- refused, exit 2; the request itself is refused
- adding a budget rule for ad campaign {campaign}: {field} is one of {choices}, and the request sent {value}; observed: {field} is {value}; nothing was written
- Fix: send {field} as one of {choices} (echo-cli mmm rules add …)
- Test: tests/analytics/mmm-budgets.test.mjs::a_rule_choice_echo_does_not_take_is_refused
echo.mmm.budgets.rule-window-unread#
- refused, exit 2; the request itself is refused
- adding a budget rule for ad campaign {campaign}: window_days are the last whole days the metric is summed over, a whole number above zero, and the request sent {value}; observed: window_days is {value}; nothing was written
- Fix: send --window-days as a whole number above zero, such as 7
- Test: tests/analytics/mmm-budgets.test.mjs::a_rule_window_that_is_not_a_count_is_refused
echo.mmm.budgets.threshold-unread#
- refused, exit 2; the request itself is refused
- adding a budget rule for ad campaign {campaign}: threshold is the value the metric is compared with, a number, and the request sent {value}; observed: threshold is {value}; nothing was written
- Fix: send --threshold as a number
- Test: tests/analytics/mmm-budgets.test.mjs::a_threshold_that_is_not_a_number_is_refused
echo.mmm.budgets.scaling-unasked#
- refused, exit 2; the request itself is refused
- adding a budget rule for ad campaign {campaign}: only a scaling rule changes the budget, and a {action} rule was sent with {sent}; observed: action is {action}; nothing was written
- Fix: leave factor and budget_cap out of a {action} rule, or make it a scale rule
- Test: tests/analytics/mmm-budgets.test.mjs::a_pause_rule_with_a_factor_is_refused
echo.mmm.budgets.rule-absent#
- not_found, exit 1
- removing budget rule {rule}: no budget rule has the id {rule}; observed: ad_budget_rules holds no row with id {rule}; nothing was removed
- Fix: name a rule echo-cli mmm rules list lists
- Test: tests/analytics/mmm-budgets.test.mjs::a_rule_that_does_not_exist_is_not_found
echo.mmm.budgets.fit-absent#
- not_found, exit 1
- splitting a weekly budget by fit {fit}: no marketing mix fit has the id {fit}; observed: mmm_fits holds no row with id {fit}; nothing was split
- Fix: name a fit echo-cli mmm list lists
- Test: tests/analytics/mmm-budgets.test.mjs::a_fit_that_does_not_exist_is_not_found
echo.mmm.budgets.returns-none#
- refused, exit 2; the request itself is refused
- splitting a weekly budget of {total} by fit {fit}: a budget goes to the channels with a positive return, and fit {fit} gives none of its {count} channels one; observed: the coefficients of fit {fit}: {coefficients}; nothing was split
- Fix: refit on more weeks or another outcome: echo-cli mmm fit …
- Test: tests/analytics/mmm-budgets.test.mjs::a_fit_without_a_positive_return_is_refused
echo.mmm.budgets.nothing-applied#
- refused, exit 2; the request itself is refused
- applying the split of fit {fit} in {currency}: a split is applied to running campaigns with a daily budget in its currency, and no funded channel has one; observed: the channels {channels} would need one; no budget was changed
- Fix: start a campaign with a daily budget in {currency} on a funded channel, then apply again: echo-cli mmm apply --fit {fit} --weekly-total <n> --by <who>
- Test: tests/analytics/mmm-budgets.test.mjs::a_split_with_no_campaign_to_apply_to_is_refused
echo.mmm.budgets.change-refused#
- infra_down, exit 69; trying again unchanged can help
- making the approved {change} of {platform} campaign {campaign}: Stado's paid-ads integration did not make the change on the platform; observed: it answered: {said}; asked by {asker}; the campaign keeps its state on the platform
- Fix: approve the change again once the platform answers; GET /api/diagnostics/integrations shows the failed call
- Test: tests/analytics/mmm-budgets.test.mjs::an_approved_change_the_platform_refuses_is_named
echo.mmm.payback#
Read how the revenue of each monthly cohort of users the ad campaigns acquired pays back what acquiring them cost.
Started by `/api/analytics/mmm/payback`.
It also meets the causes of echo.http.access, echo.http.query, echo.mmm.campaigns, echo.store.
echo.mmm.payback.months-unread#
- refused, exit 2; the request itself is refused
- reading the payback of the {currency} cohorts: months is how many calendar months of cohorts to read, the current one included, a whole number above zero, and the request sent {value}; observed: months is {value}; nothing was read
- Fix: send --months as a whole number above zero, such as 6
- Test: tests/analytics/mmm-payback.test.mjs::months_that_are_not_a_count_are_refused
echo.mmm.payback.cohorts-none#
- not_found, exit 1
- reading the payback of the {currency} cohorts since {from}: no user was attributed to a synced ad campaign in {currency} since {from}, so there is no cohort to pay back; observed: {campaigns} campaigns report in {currency}; nothing was read
- Fix: read a longer window or the currency the ad accounts report in (echo-cli paid-ads lists them)
- Test: tests/analytics/mmm-payback.test.mjs::a_window_without_an_acquired_user_is_not_found
echo.mmm.campaigns#
Read the synced ad campaigns and their daily metrics that a fit, a forecast, a library, a watch, a rule or a payback computes on, refusing a day reported without its figure.
Started by `/api/analytics/mmm`, `/api/analytics/mmm/forecast`, `/api/analytics/mmm/library`, `/api/analytics/mmm/anomalies`, `/api/analytics/mmm/rules`, `/api/analytics/mmm/payback`.
It also meets the causes of echo.store.
echo.mmm.campaigns.campaign-unsynced#
- not_found, exit 1
- {step} ad campaign {campaign}: no synced ad campaign has the id {campaign}; observed: ad_campaigns holds no row with id {campaign}; nothing was written
- Fix: name a campaign echo-cli mmm library --days <n> lists, or sync its ad account first: POST /api/paid-ads/sync (the paid-ads-sync job runs it daily)
- Test: tests/analytics/mmm-campaigns.test.mjs::a_campaign_no_sync_holds_is_not_found
echo.mmm.campaigns.metric-orphaned#
- config, exit 1
- {step}: ad_campaign_metrics holds a day of campaign {campaign}, and ad_campaigns does not hold that campaign: it was deleted after its metrics were synced; observed: the metrics of campaign {campaign} on {date}; nothing was computed
- Fix: delete the metrics of campaign {campaign} from ad_campaign_metrics, or sync its ad account again so the campaign returns: POST /api/paid-ads/sync (the paid-ads-sync job runs it daily)
- Test: tests/analytics/mmm-campaigns.test.mjs::metrics_of_a_campaign_no_longer_synced_are_named
echo.mmm.campaigns.figure-unreported#
- refused, exit 2; the request itself is refused
- {step}: campaign {campaign} reported no {field} on {date}, so {what} cannot be measured, and a missing day is not counted as zero; observed: ad_campaign_metrics of campaign {campaign} on {date} holds {field} null; nothing was computed
- Fix: sync the ad account again so the platform reports that day (POST /api/paid-ads/sync (the paid-ads-sync job runs it daily)), or ask for a window that leaves {date} out
- Test: tests/analytics/mmm-campaigns.test.mjs::a_day_without_its_figure_is_refused
echo.mmm.campaigns.event-unvalued#
- refused, exit 2; the request itself is refused
- {step}: the revenue is read from the number each {event} event holds under {property}, and the event at {at} holds {held}; observed: event {event} at {at}, {property} is {held}; nothing was computed
- Fix: name the property every {event} event carries its amount under, or record the amount on the events that lack it
- Test: tests/analytics/mmm-campaigns.test.mjs::an_event_without_its_number_is_refused
echo.mmm.campaigns.ruled-campaign-gone#
- config, exit 1
- changing ad campaign {campaign} for the watch or rule that names it: a watch or a budget rule names campaign {campaign}, and ad_campaigns no longer holds it; observed: ad_campaigns holds no row with id {campaign}; nothing was changed
- Fix: remove the watch or rule of campaign {campaign} (echo-cli mmm anomalies list, echo-cli mmm rules list), or sync its ad account again
- Test: tests/analytics/mmm-campaigns.test.mjs::a_rule_of_a_campaign_no_longer_synced_is_named
echo.mmm.campaigns.account-gone#
- config, exit 1
- changing ad campaign {campaign} on its platform: campaign {campaign} names ad account {account}, which ad_accounts does not hold, so there is no account to change it through; observed: ad_accounts holds no row with id {account}; nothing was changed
- Fix: connect the ad account again (echo-cli paid-ads lists the accounts), or remove the watches and rules of campaign {campaign}
- Test: tests/analytics/mmm-campaigns.test.mjs::a_campaign_of_an_account_no_longer_held_is_named
echo.calendar#
Add, read and remove the events of a product's go-to-market calendar, and place its ad and CRM campaigns on it.
Started by `/api/analytics/calendar`, `/api/analytics/calendar/placements`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.calendar.event-days-reversed#
- refused, exit 2; the request itself is refused
- adding a calendar event to product {product}: an event ends on or after the day it starts, and ends_on {ends} is before starts_on {starts}; observed: starts_on is {starts} and ends_on is {ends}
- Fix: send ends_on on or after starts_on
- Test: tests/strategy/calendar.test.mjs::an_event_ending_before_it_starts_is_refused
echo.calendar.window-reversed#
- refused, exit 2; the request itself is refused
- reading the calendar of product {product}: the window runs from `from` to `to`, and to {to} is before from {from}; observed: from is {from} and to is {to}
- Fix: send to on or after from
- Test: tests/strategy/calendar.test.mjs::a_window_ending_before_it_starts_is_refused
echo.calendar.event-absent#
- not_found, exit 1
- removing the calendar event {event}: no calendar event has the id {event}; observed: gtm_calendar_events holds no row with id {event}
- Fix: name an event echo-cli calendar list --product <id> --from <day> --to <day> lists
- Test: tests/strategy/calendar.test.mjs::an_event_that_does_not_exist_is_not_found
echo.calendar.placement-days-reversed#
- refused, exit 2; the request itself is refused
- placing the {source} campaign {campaign} on the calendar: a placement ends on or after the day it starts, and ends_on {ends} is before starts_on {starts}; observed: starts_on is {starts} and ends_on is {ends}
- Fix: send ends_on on or after starts_on
- Test: tests/strategy/calendar.test.mjs::a_placement_ending_before_it_starts_is_refused
echo.calendar.campaign-absent#
- not_found, exit 1
- placing the {source} campaign {campaign} on the calendar: no {meaning} has the id {campaign}; observed: {table} holds no row with id {campaign}
- Fix: name a campaign {table} holds, as the {source} campaign list shows it
- Test: tests/strategy/calendar.test.mjs::a_campaign_that_does_not_exist_is_not_placed
echo.calendar.campaign-placed#
- refused, exit 1
- placing the {source} campaign {campaign} on the calendar: a campaign is placed once, and it is already placed as {placement}, {starts} to {ends}; observed: gtm_calendar_placements row {placement} places {source} campaign {campaign}
- Fix: remove that placement first: echo-cli calendar unplace {placement}
- Test: tests/strategy/calendar.test.mjs::a_campaign_placed_twice_is_refused
echo.calendar.placement-absent#
- not_found, exit 1
- removing the calendar placement {placement}: no calendar placement has the id {placement}; observed: gtm_calendar_placements holds no row with id {placement}
- Fix: name a placement echo-cli calendar list --product <id> --from <day> --to <day> lists
- Test: tests/strategy/calendar.test.mjs::a_placement_that_does_not_exist_is_not_found
echo.decisions#
Record the GTM decisions about a product with the records each rests on, and show one with those records as stored now.
Started by `/api/analytics/decisions`, `/api/analytics/decisions/[id]`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.decisions.link-malformed#
- refused, exit 2; the request itself is refused
- recording a decision about product {product}: every item of links is { kind, id }, and link {index} is not an object; observed: link {index} is {value}
- Fix: send link {index} as { "kind": "<kind>", "id": "<record id>" }
- Test: tests/strategy/decisions.test.mjs::a_link_that_is_not_an_object_is_refused
echo.decisions.link-kind-unknown#
- refused, exit 2; the request itself is refused
- recording a decision about product {product}: a decision rests on {kinds}, and link {index} has the kind {kind}; observed: link {index} has kind {kind}
- Fix: send link {index} with a kind among {kinds}
- Test: tests/strategy/decisions.test.mjs::a_link_of_an_unknown_kind_is_refused
echo.decisions.link-id-absent#
- refused, exit 2; the request itself is refused
- recording a decision about product {product}: every link names the record it points to, and link {index} ({kind}) names no id; observed: link {index} has no id, or an empty one
- Fix: send link {index} with the id of the {kind} it points to
- Test: tests/strategy/decisions.test.mjs::a_link_naming_no_record_is_refused
echo.decisions.link-record-absent#
- not_found, exit 1
- recording a decision about product {product}: the decision rests on {kind} {id}, which {table} does not hold; observed: {table} holds no row with id {id}
- Fix: link a {kind} that exists, or leave the link out
- Test: tests/strategy/decisions.test.mjs::a_link_to_a_record_that_does_not_exist_is_refused
echo.decisions.decision-absent#
- not_found, exit 1
- showing the decision {decision}: no decision has the id {decision}; observed: gtm_decisions holds no row with id {decision}
- Fix: name a decision echo-cli decisions list --product <id> lists
- Test: tests/strategy/decisions.test.mjs::a_decision_that_does_not_exist_is_not_found
echo.icp#
Create, edit and retire a product's ideal customer profiles, and match them to CRM contacts and analytics people, score and schedule them.
Started by `/api/analytics/icp`, `/api/analytics/icp/retire`, `/api/analytics/icp/contacts`, `/api/analytics/icp/score`, `/api/analytics/icp/score/schedules`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.icp.profile-held#
- refused, exit 1
- creating the profile {name} of product {product}: a product names each profile once, and it already has a profile named {name}; observed: icp_profiles holds version {version} of {name} for product {product}
- Fix: add a version to it: echo-cli icp edit --product {product} --name {name} ... --by <name>
- Test: tests/strategy/icp.test.mjs::a_profile_created_twice_is_refused
echo.icp.version-raced#
- refused, exit 1
- writing version {version} of the profile {name} of product {product}: another write reached version {held} of {name} while this one ran, and no version is overwritten; observed: the latest version of {name} is {held}
- Fix: read it (echo-cli icp show --product {product} --name {name}) and edit again
- Test: tests/strategy/icp.test.mjs::a_version_written_twice_at_once_is_refused
echo.icp.profile-absent#
- not_found, exit 1
- {step} the profile {name} of product {product}: product {product} has no profile named {name}; observed: icp_profiles holds no version of {name} for product {product}
- Fix: name a profile echo-cli icp list --product {product} lists
- Test: tests/strategy/icp.test.mjs::a_profile_that_does_not_exist_is_not_found
echo.icp.profile-retired#
- refused, exit 1
- {step} the profile {name} of product {product}: a retired profile is kept only as a record, and {name} was retired by {by} at {at}; observed: the latest version of {name} is retired
- Fix: create a new profile to work with: echo-cli icp create --product {product} --name <name> --persona <text> --by <name>
- Test: tests/strategy/icp.test.mjs::a_retired_profile_is_refused
echo.icp.retire-raced#
- refused, exit 1
- retiring the profile {name} of product {product}: another retire marked {name} retired while this one ran; observed: the latest version of {name} was no longer unretired when it was written
- Fix: read it with echo-cli icp show --product {product} --name {name}; it is retired
- Test: tests/strategy/icp.test.mjs::a_profile_retired_twice_at_once_is_refused
echo.icp.attributes-none#
- refused, exit 1
- {step} the profile {name} of product {product}: a profile is matched by its firmographic attributes, and {name} names none, so nobody can be matched to it; observed: the latest version of {name} has no firmographics
- Fix: add one: echo-cli icp edit --product {product} --name {name} --attribute <key>=<value> --by <name>
- Test: tests/strategy/icp.test.mjs::a_profile_without_attributes_is_not_matched
echo.icp.list-absent#
- not_found, exit 1
- filling the CRM list {list} with the contacts a profile matches: no CRM list has the id {list}; observed: creator_lists holds no row with id {list}
- Fix: name a list the CRM page of Echo shows
- Test: tests/strategy/icp.test.mjs::a_crm_list_that_does_not_exist_is_not_filled
echo.icp.events-none#
- not_found, exit 1
- scoring the profile {name} of product {product}: a score is read from the events of the source {app}, and it sent none since {since}; observed: no event of {app} occurred since {since}
- Fix: name a source that reports (echo-cli tracking quality show --days <days> names them), or a longer days
- Test: tests/strategy/icp.test.mjs::a_source_without_events_is_not_scored
echo.icp.retention-outside-window#
- refused, exit 2; the request itself is refused
- scoring the profile {name} of product {product}: a person counts retained by an event {retained} days after their first, and the window of {days} days holds no such event; observed: retained_after_days is {retained} and days is {days}
- Fix: send retained_after_days below days
- Test: tests/strategy/icp.test.mjs::a_retention_outside_the_window_is_refused
echo.icp.schedule-absent#
- not_found, exit 1
- removing the ICP score schedule {schedule}: no ICP score schedule has the id {schedule}; observed: icp_score_schedules holds no row with id {schedule}
- Fix: name a schedule echo-cli icp schedules lists
- Test: tests/strategy/icp.test.mjs::a_schedule_that_does_not_exist_is_not_found
echo.positioning#
Write a product's positioning canvas and its battlecards from its fact sheet and the competitor pages captured, and export a card as Markdown.
Started by `/api/analytics/positioning`, `/api/analytics/battlecards`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.model, echo.store.
echo.positioning.pages-none#
- refused, exit 2; the request itself is refused
- writing the battlecard of product {product} against {competitor}: every claim of a card quotes a competitor page, and competitor_urls names none; observed: competitor_urls is an empty list
- Fix: send competitor_urls naming at least one captured page of {competitor}
- Test: tests/strategy/positioning.test.mjs::a_card_quoting_no_page_is_refused
echo.positioning.capture-absent#
- not_found, exit 1
- {step}: a page is quoted from its latest readable capture, and {url} has none; observed: competitor_page_captures holds no row with text for {url}
- Fix: capture it first: echo-cli competitors capture --url {url} --by <name>
- Test: tests/strategy/positioning.test.mjs::a_page_never_captured_is_refused
echo.positioning.claim-uncited#
- refused, exit 1
- {step}: every {part} rests on facts of the fact sheet in force, and the route {route} wrote "{claim}" citing none of fact sheet {sheet}; observed: nothing was stored
- Fix: write it again; a route that keeps citing nothing is given a stronger model
- Test: tests/strategy/positioning.test.mjs::a_claim_citing_no_fact_is_refused
echo.positioning.fact-unknown#
- refused, exit 1
- {step}: a claim cites facts of the fact sheet in force by name, and the route {route} wrote "{claim}" citing {facts}, which fact sheet {sheet} does not hold; observed: nothing was stored
- Fix: write it again, or publish a sheet holding the facts when they are true: echo-cli geo facts publish --product <id> --file <facts.json> --by <name>
- Test: tests/strategy/positioning.test.mjs::a_claim_citing_a_fact_the_sheet_lacks_is_refused
echo.positioning.differentiators-none#
- refused, exit 1
- writing the positioning canvas of product {product}: a canvas positions the product by what sets it apart, and the route {route} wrote no differentiator; observed: nothing was stored
- Fix: write it again; a route that keeps writing none is given a stronger model
- Test: tests/strategy/positioning.test.mjs::a_canvas_without_differentiators_is_refused
echo.positioning.battlecard-absent#
- not_found, exit 1
- exporting the battlecard {card}: no battlecard has the id {card}; observed: battlecards holds no row with id {card}
- Fix: name a card version echo-cli positioning cards --product <id> lists
- Test: tests/strategy/positioning.test.mjs::a_card_that_does_not_exist_is_not_found
echo.voice#
Declare and remove a product's brand voice, and score a blog post against it before it is published.
Started by `/api/analytics/voice`, `/api/blog-admin/posts/[id]/publish`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.blog.lookup, echo.model, echo.store.
echo.voice.examples-none#
- refused, exit 2; the request itself is refused
- declaring the voice of product {product}: a voice is scored against passages written in it, and examples holds none; observed: examples is an empty list, or a list of blank texts
- Fix: send examples with at least one passage written in the voice
- Test: tests/strategy/voice.test.mjs::a_voice_without_examples_is_refused
echo.voice.voice-absent#
- not_found, exit 1
- {step}: product {product} declares no voice profile; observed: voice_profiles holds no row for product {product}
- Fix: declare one: echo-cli voice set --product {product} --file <voice.json> --threshold <0-1> --by <name>
- Test: tests/strategy/voice.test.mjs::a_product_without_a_voice_is_refused
echo.voice.voice-below#
- refused, exit 1
- publishing blog post {post}: its voice score {score} is below the threshold {threshold} product {product} declares, so it waits for a reviewer instead of going out; observed: scored: {reasons}; held as approval request {request}; nothing was published
- Fix: approve it (echo-cli approvals approve {request} --by <name>), or rewrite the post in the voice and publish again
- Test: tests/strategy/voice.test.mjs::a_post_below_its_voice_threshold_is_held
echo.glossary#
Ban and lift the phrases a product's texts may not use, check a text against them, and name the product a blog surface answers to.
Started by `/api/analytics/glossary`, `/api/analytics/glossary/check`, `/api/analytics/glossary/surfaces`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.blog.lookup, echo.store.
echo.glossary.phrase-banned#
- refused, exit 1
- banning "{phrase}" for product {product}: a product bans a phrase once, matched without regard to case, and it already bans "{held}" as {ban}; observed: brand_banned_phrases row {ban} bans "{held}" for product {product}
- Fix: keep the ban there is, or lift it first (echo-cli glossary lift --id {ban}) and ban the phrase again
- Test: tests/strategy/glossary.test.mjs::a_phrase_banned_twice_is_refused
echo.glossary.phrase-absent#
- not_found, exit 1
- lifting the ban {ban}: no banned phrase has the id {ban}; observed: brand_banned_phrases holds no row with id {ban}
- Fix: name a ban echo-cli glossary list --product <id> lists
- Test: tests/strategy/glossary.test.mjs::a_ban_that_does_not_exist_is_not_found
echo.glossary.text-field-malformed#
- refused, exit 2; the request itself is refused
- checking a text against the glossary of product {product}: every item of fields is { field, text }, field naming the part of the text and text its words, and fields[{index}] is not; observed: fields[{index}] is {value}
- Fix: send fields[{index}] as { "field": "body", "text": "<the words>" }
- Test: tests/strategy/glossary.test.mjs::a_text_field_of_another_shape_is_refused
echo.market-size#
Add and remove the assumptions of a product's market sizing model, read it beside the metrics that measure it, and keep each finished week's measurement.
Started by `/api/analytics/market-size`, `/api/analytics/market-size/weeks`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.market-size.value-not-positive#
- refused, exit 2; the request itself is refused
- adding the assumption {name} to product {product}: an assumption counts something there is, so its value is above zero, and it is {value}; observed: value is {value}
- Fix: send value as the positive number assumed
- Test: tests/strategy/market-size.test.mjs::an_assumption_of_no_value_is_refused
echo.market-size.metric-foreign#
- not_found, exit 1
- adding the assumption {name} to product {product}: an assumption is measured by a metric of its own product, and product {product} has no metric {metric}; observed: analytics_metrics holds no row with id {metric} for product {product}
- Fix: name a metric echo-cli tracking metrics list --product {product} lists, or leave metric_id out
- Test: tests/strategy/market-size.test.mjs::an_assumption_measured_by_a_metric_of_another_product_is_refused
echo.market-size.assumption-held#
- refused, exit 1
- adding the assumption {name} to product {product}: a product states each assumption once, named without regard to case, and it already assumes {held} as {assumption}; observed: market_size_assumptions row {assumption} names {held}
- Fix: remove it first (echo-cli market-size remove --id {assumption}) to state it again
- Test: tests/strategy/market-size.test.mjs::an_assumption_stated_twice_is_refused
echo.market-size.assumption-absent#
- not_found, exit 1
- removing the assumption {assumption}: no assumption has the id {assumption}; observed: market_size_assumptions holds no row with id {assumption}
- Fix: name an assumption echo-cli market-size show --product <id> --days <days> lists
- Test: tests/strategy/market-size.test.mjs::an_assumption_that_does_not_exist_is_not_found
echo.market-size.metric-gone#
- refused, exit 1
- {step}: assumption {assumption} is measured by metric {metric}, which the store no longer holds; observed: analytics_metrics holds no row with id {metric}
- Fix: remove the assumption (echo-cli market-size remove --id {assumption}) and add it again with a metric that exists, or with none
- Test: tests/strategy/market-size.test.mjs::an_assumption_whose_metric_was_removed_is_named
echo.market-size.week-unfinished#
- refused, exit 2; the request itself is refused
- keeping the sizing measurement of the week of {week}: a kept week is measured once it is over, so its measurement no longer moves, and the week of {week} ends at {end}; observed: the week ends at {end}, after now
- Fix: record a week that is over: echo-cli market-size record --week <YYYY-MM-DD> --by <name> naming a day of an earlier week
- Test: tests/strategy/market-size.test.mjs::a_week_not_over_is_not_kept
echo.messaging#
Write the next version of a product's messaging house as a draft, and approve one, retiring the version it replaces.
Started by `/api/analytics/messaging`, `/api/analytics/messaging/approve`, `echo-cli messaging`.
It also meets the causes of echo.http.access, echo.http.body, echo.automation.caller, echo.products.lookup, echo.store.
echo.messaging.pillars-missing#
- refused, exit 2; the request itself is refused
- drafting messaging for product {product}: the umbrella message rests on at least one pillar, so pillars is a list of one or more, and it is {value}; observed: pillars is {value}; no version was written
- Fix: send pillars as a list of {"title": "<name>", "message": "<what it says>", "proofs": ["<proof point>", …]}
- Test: tests/strategy/messaging.test.mjs::a_draft_without_pillars_is_refused
echo.messaging.pillar-shapeless#
- refused, exit 2; the request itself is refused
- drafting messaging for product {product}: each pillar is an object {"title": "<name>", "message": "<what it says>", "proofs": ["<proof point>", …]}, and pillars[{place}] is {value}; observed: pillars[{place}] is {value}; no version was written
- Fix: send pillars[{place}] as {"title": "<name>", "message": "<what it says>", "proofs": ["<proof point>", …]}
- Test: tests/strategy/messaging.test.mjs::a_pillar_that_is_not_an_object_is_named
echo.messaging.pillar-field-blank#
- refused, exit 2; the request itself is refused
- drafting messaging for product {product}: pillars[{place}].{field} is {meaning} in words, and it is {value}; observed: pillars[{place}].{field} is {value}; no version was written
- Fix: write pillars[{place}].{field} as text
- Test: tests/strategy/messaging.test.mjs::a_pillar_with_a_blank_field_is_named
echo.messaging.proofs-not-list#
- refused, exit 2; the request itself is refused
- drafting messaging for product {product}: pillars[{place}].proofs is the list of proof points behind the pillar ([] when none is stated yet), and it is {value}; observed: pillars[{place}].proofs is {value}; no version was written
- Fix: send pillars[{place}].proofs as a list of proof points in words, or []
- Test: tests/strategy/messaging.test.mjs::a_pillar_whose_proofs_are_not_a_list_is_named
echo.messaging.house-absent#
- not_found, exit 1
- {step} messaging version {house}: no messaging house version has the id {house}; observed: messaging_houses holds no row with id {house}; nothing was changed
- Fix: name a version echo-cli messaging list --product <id> lists
- Test: tests/strategy/messaging.test.mjs::a_version_that_does_not_exist_is_not_found
echo.messaging.house-retired#
- refused, exit 2; the request itself is refused
- approving version {version} of the messaging of product {product}: a retired version is never approved again, and version {version} was retired by {by} at {at}; observed: messaging_houses row {house} holds retired_at {at}; nothing was approved
- Fix: write its pillars as a new draft: echo-cli messaging draft --product {product} --file <house.json> --by <name>, then approve that one
- Test: tests/strategy/messaging.test.mjs::a_retired_version_is_not_approved
echo.messaging.house-approved#
- refused, exit 2; the request itself is refused
- approving version {version} of the messaging of product {product}: a version is approved once, and version {version} was approved by {by} at {at}; observed: messaging_houses row {house} holds approved_at {at}; nothing was changed
- Fix: nothing to approve: version {version} is the approved messaging of {product}
- Test: tests/strategy/messaging.test.mjs::an_approved_version_is_not_approved_again
echo.messaging.approval-rowless#
- infra_down, exit 69; trying again unchanged can help
- approving version {version} of the messaging of product {product}: the database function approve_messaging_house answers the version it approved, and it answered no row; observed: approve_messaging_house({house}) returned an empty list; whether the version was approved is not known
- Fix: read where the versions stand with echo-cli messaging list --product {product}, and approve again if version {version} is still a draft
- Test: tests/strategy/messaging.test.mjs::an_approval_that_answers_no_row_is_named
echo.messaging.tests#
Bind an adaptive experiment's arms to messaging versions, one version per arm, and read the verdict with each arm's version.
Started by `/api/analytics/messaging/tests`, `echo-cli messaging bind`, `echo-cli messaging test`.
It also meets the causes of echo.messaging, echo.experiments.verdict, echo.http.access, echo.http.body, echo.store.
echo.messaging.tests.experiment-unvaried#
- not_found, exit 1
- binding arm {arm} of experiment {experiment} to messaging version {house}: an arm is a variant of the experiment, and no adaptive experiment {experiment} has variants; observed: adaptive_variants holds no row of experiment {experiment}; nothing was bound
- Fix: name an experiment echo-cli experiments lists with its variants
- Test: tests/strategy/message-tests.test.mjs::an_experiment_without_variants_is_not_found
echo.messaging.tests.arm-unknown#
- refused, exit 2; the request itself is refused
- binding arm {arm} of experiment {experiment} to messaging version {house}: experiment {experiment} has no arm {arm}; its arms are {arms}; observed: nothing was bound
- Fix: name one of {arms}
- Test: tests/strategy/message-tests.test.mjs::an_arm_the_experiment_lacks_is_refused
echo.messaging.tests.arm-bound#
- refused, exit 2; the request itself is refused
- binding arm {arm} of experiment {experiment} to messaging version {house}: an arm carries one messaging version, and arm {arm} already carries {held}, bound by {by}; observed: experiment_message_variants holds {arm} → {held}; nothing was bound
- Fix: unbind it first: echo-cli messaging unbind --experiment {experiment} --arm {arm}
- Test: tests/strategy/message-tests.test.mjs::an_arm_bound_twice_is_refused
echo.messaging.tests.house-bound#
- refused, exit 2; the request itself is refused
- binding arm {arm} of experiment {experiment} to messaging version {house}: one version tests in one arm, and version {version} is already carried by arm {other}; observed: experiment_message_variants holds {other} → {house}; nothing was bound
- Fix: bind another version to {arm}, or unbind {other} first: echo-cli messaging unbind --experiment {experiment} --arm {other}
- Test: tests/strategy/message-tests.test.mjs::a_version_bound_to_two_arms_is_refused
echo.messaging.tests.arm-unbound#
- not_found, exit 1
- unbinding arm {arm} of experiment {experiment}: arm {arm} carries no messaging version; observed: experiment {experiment} binds {bound}; nothing was removed
- Fix: name a bound arm: echo-cli messaging bindings --experiment {experiment}
- Test: tests/strategy/message-tests.test.mjs::an_arm_without_a_binding_is_not_found
echo.messaging.tests.bindings-none#
- not_found, exit 1
- reading the message test of experiment {experiment}: a message test reads the messaging version each arm carries, and no arm of experiment {experiment} carries one; observed: experiment_message_variants holds no row of experiment {experiment}
- Fix: bind one: echo-cli messaging bind --experiment {experiment} --arm <variant-key> --version <version-id> --by <name>
- Test: tests/strategy/message-tests.test.mjs::a_test_without_bindings_is_not_found
echo.messaging.tests.bound-house-gone#
- not_found, exit 1
- reading the message test of experiment {experiment}: arm {arm} is bound to messaging version {house}, which messaging_houses no longer holds; observed: {read} of {bound} bound versions were read back; the test was not answered
- Fix: unbind the arm: echo-cli messaging unbind --experiment {experiment} --arm {arm}, and bind a version that exists
- Test: tests/strategy/message-tests.test.mjs::a_binding_whose_version_is_gone_is_named
echo.geo.prompts#
List, add, edit, retire and restore the questions of a product's GEO prompt panel.
Started by `/api/geo/prompts`, `/api/geo/prompts/[id]`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.geo.prompts.prompt-absent#
- not_found, exit 1
- {step} the GEO prompt {prompt}: no GEO prompt has the id {prompt}; observed: geo_prompts holds no row with id {prompt}
- Fix: name a prompt echo-cli geo prompts list --product <id> lists
- Test: tests/geo/prompts.test.mjs::a_prompt_that_does_not_exist_is_not_found
echo.geo.prompts.prompt-held#
- refused, exit 1
- {step} a GEO prompt of product {product}: a product asks each question once per locale, and it already asks these words in {locale} as GEO prompt {held}; observed: geo_prompts row {held} holds the same words for product {product} and locale {locale}
- Fix: edit or restore GEO prompt {held} instead of adding the words again
- Test: tests/geo/prompts.test.mjs::a_prompt_asked_twice_is_refused
echo.geo.prompts.edit-field-unknown#
- refused, exit 2; the request itself is refused
- editing the GEO prompt {prompt}: an edit changes {editable}, and the body names {unknown}; observed: the body names {unknown}
- Fix: send only {editable}
- Test: tests/geo/prompts.test.mjs::an_edit_of_a_field_a_prompt_does_not_hold_is_refused
echo.geo.prompts.prompt-retired#
- refused, exit 1
- retiring the GEO prompt {prompt}: GEO prompt {prompt} is already retired; observed: geo_prompts row {prompt} is not active
- Fix: leave it retired, or restore it: echo-cli geo prompts restore {prompt}
- Test: tests/geo/prompts.test.mjs::a_retired_prompt_is_not_retired_again
echo.geo.prompts.prompt-active#
- refused, exit 1
- restoring the GEO prompt {prompt}: only a retired prompt is restored, and GEO prompt {prompt} is active; observed: geo_prompts row {prompt} is active
- Fix: leave it as it is; it is asked already
- Test: tests/geo/prompts.test.mjs::an_active_prompt_is_not_restored
echo.geo.runs#
Ask a product's GEO prompt panel of every declared assistant route and keep each answer, read runs back, and keep the schedule the daily job runs them on.
Started by `/api/geo/runs`, `/api/geo/runs/[id]`, `/api/geo/runs/schedules`, `/api/cron/geo-runs`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.geo.prompts, echo.model, echo.store.
echo.geo.runs.routes-none#
- config, exit 1
- reading the assistant routes a GEO run asks: ECHO_GEO_ASSISTANT_ROUTES holds only commas and blanks, so it names no route; observed: ECHO_GEO_ASSISTANT_ROUTES is {value}
- Fix: set ECHO_GEO_ASSISTANT_ROUTES in the deployment's environment to the provider/model routes a run asks, comma separated
- Test: tests/geo/runs.test.mjs::a_route_setting_naming_no_route_is_refused
echo.geo.runs.panel-empty#
- refused, exit 1
- starting a GEO run of product {product}: a run asks the active prompts of the panel, and product {product} has none; observed: geo_prompts holds no active row for product {product}
- Fix: add a prompt (echo-cli geo prompts add --product {product} --prompt <text> --locale <code>) or restore one (echo-cli geo prompts restore <id>)
- Test: tests/geo/runs.test.mjs::a_product_without_an_active_prompt_is_not_run
echo.geo.runs.run-absent#
- not_found, exit 1
- reading the GEO run {run}: no GEO run has the id {run}; observed: geo_runs holds no row with id {run}
- Fix: name a run echo-cli geo runs list --product <id> lists
- Test: tests/geo/runs.test.mjs::a_run_that_does_not_exist_is_not_found
echo.geo.runs.schedule-absent#
- not_found, exit 1
- removing the GEO run schedule of product {product}: product {product} has no GEO run schedule; observed: geo_run_schedules holds no row for product {product}
- Fix: name a product echo-cli geo runs schedules lists
- Test: tests/geo/runs.test.mjs::a_product_without_a_schedule_is_not_unscheduled
echo.geo.facts#
Publish a product's fact sheet, list its sheets, serve the one in force and the llms.txt of a blog surface linked to it.
Started by `/api/geo/facts`, `/api/public/facts/[product]`, `/api/public/llms/[surface]`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.blog.lookup, echo.store.
echo.geo.facts.fact-field-unknown#
- refused, exit 2; the request itself is refused
- reading fact {index} of the sheet: a fact holds {fields}, and fact {index} also carries {unknown}; observed: fact {index} carries {unknown}
- Fix: send fact {index} with {fields} only
- Test: tests/geo/facts.test.mjs::a_fact_carrying_another_field_is_refused
echo.geo.facts.source-not-https#
- refused, exit 2; the request itself is refused
- reading the source of fact {index} ({fact}): a fact sheet exists to be checked, so every source is an HTTPS address a reader can open; observed: fact {index} cites {source}
- Fix: cite the https:// address the fact was read from
- Test: tests/geo/facts.test.mjs::a_fact_citing_no_https_source_is_refused
echo.geo.facts.fact-repeated#
- refused, exit 2; the request itself is refused
- publishing the fact sheet of product {product}: a sheet states each fact once, and it states {fact} more than once; observed: facts {indexes} are all named {fact}
- Fix: state {fact} once
- Test: tests/geo/facts.test.mjs::a_fact_stated_twice_is_refused
echo.geo.facts.sheet-absent#
- not_found, exit 1
- reading the fact sheet in force of product {product}: product {product} has published no fact sheet; observed: fact_sheets holds no row for product {product}
- Fix: publish one: echo-cli geo facts publish --product {product} --by <name> --file <facts.json>
- Test: tests/geo/facts.test.mjs::a_product_without_a_sheet_has_none_in_force
echo.geo.facts.surface-inactive#
- not_found, exit 1
- writing the llms.txt of blog surface {surface}: only an active blog surface serves llms.txt, and {surface} is not active; observed: blog_surfaces row {surface} has is_active false, or the public role may not read it
- Fix: name an active surface by the slug echo-cli blogs shows on its posts
- Test: tests/geo/facts.test.mjs::an_inactive_surface_serves_no_llms_txt
echo.geo.accuracy#
Judge a GEO run's answers against the fact sheet in force and for their tone, list the corrections they open and alert a named user when one opens.
Started by `/api/geo/runs/[id]/checks`, `/api/geo/runs/[id]/tones`, `/api/geo/corrections`, `/api/geo/corrections/alerts`, `/api/cron/geo-corrections`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.model, echo.store.
echo.geo.accuracy.run-unanswered#
- refused, exit 1
- {step} the answers of GEO run {run}: every assistant route refused GEO run {run}, so it holds no answer to {step}; observed: each answer row of run {run} holds a refusal and no answer
- Fix: start a run once the routes answer: echo-cli geo runs start --product {product}
- Test: tests/geo/accuracy.test.mjs::a_run_without_an_answer_is_not_judged
echo.geo.accuracy.verdict-unknown#
- infra_down, exit 69; trying again unchanged can help
- checking GEO answer {answer} against the fact sheet {sheet}: the judge {judge} gave a verdict that is none of {verdicts}; observed: the judge recorded the verdict {verdict}
- Fix: check the run again: echo-cli geo runs check {run}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/accuracy.test.mjs::a_verdict_outside_the_three_is_named
echo.geo.accuracy.verdict-fact-unknown#
- infra_down, exit 69; trying again unchanged can help
- checking GEO answer {answer} against the fact sheet {sheet}: the judge {judge} called the answer inaccurate citing a fact the sheet does not hold; observed: the judge cited {fact}; the sheet holds {facts}
- Fix: check the run again: echo-cli geo runs check {run}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/accuracy.test.mjs::a_verdict_citing_no_fact_of_the_sheet_is_named
echo.geo.accuracy.verdict-quote-absent#
- infra_down, exit 69; trying again unchanged can help
- checking GEO answer {answer} against the fact sheet {sheet}: the judge {judge} called the answer inaccurate quoting a sentence the answer does not hold; observed: the judge quoted {quote}
- Fix: check the run again: echo-cli geo runs check {run}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/accuracy.test.mjs::a_verdict_quoting_what_the_answer_never_said_is_named
echo.geo.accuracy.tone-unknown#
- infra_down, exit 69; trying again unchanged can help
- judging the tone of GEO answer {answer}: the judge {judge} gave a tone that is none of {tones}; observed: the judge recorded the tone {tone}
- Fix: judge the run again: echo-cli geo runs tone {run}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/accuracy.test.mjs::a_tone_outside_the_declared_ones_is_named
echo.geo.accuracy.tone-quote-absent#
- infra_down, exit 69; trying again unchanged can help
- judging the tone of GEO answer {answer}: the judge {judge} called the answer {tone} quoting a sentence the answer does not hold; observed: the judge quoted {quote}
- Fix: judge the run again: echo-cli geo runs tone {run}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/accuracy.test.mjs::a_tone_quoting_what_the_answer_never_said_is_named
echo.geo.accuracy.watch-absent#
- not_found, exit 1
- stopping the correction alerts of product {product}: product {product} names no user to alert when a correction opens; observed: geo_correction_watches holds no row for product {product}
- Fix: name a product echo-cli geo corrections watches lists
- Test: tests/geo/accuracy.test.mjs::a_product_without_an_alert_owner_is_not_unwatched
echo.geo.visibility#
Keep a product's GEO competitors and experiments, and read its ranks, standings, share of voice and the assistant models newly served.
Started by `/api/geo/competitors`, `/api/geo/competitors/[id]`, `/api/geo/experiments`, `/api/geo/experiments/[id]`, `/api/geo/runs/[id]/ranks`, `/api/geo/standings`, `/api/geo/share`, `/api/geo/routes`, `/api/geo/routes/models`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.geo.prompts, echo.geo.runs, echo.model, echo.store.
echo.geo.visibility.competitor-is-product#
- refused, exit 2; the request itself is refused
- adding a GEO competitor of product {product}: a competitor is another product, and {name} is the name of product {product} itself; observed: the name {name} matches the product, ignoring case
- Fix: name a competitor other than the product
- Test: tests/geo/visibility.test.mjs::the_product_is_not_its_own_competitor
echo.geo.visibility.competitor-held#
- refused, exit 1
- adding a GEO competitor of product {product}: a product lists each competitor once, and it lists {name} as competitor {held}; observed: geo_competitors row {held} holds {name}, ignoring case
- Fix: keep competitor {held}, or remove it first: echo-cli geo competitors remove {held}
- Test: tests/geo/visibility.test.mjs::a_competitor_listed_twice_is_refused
echo.geo.visibility.competitor-absent#
- not_found, exit 1
- removing the GEO competitor {competitor}: no GEO competitor has the id {competitor}; observed: geo_competitors holds no row with id {competitor}
- Fix: name a competitor echo-cli geo competitors list --product <id> lists
- Test: tests/geo/visibility.test.mjs::a_competitor_that_does_not_exist_is_not_found
echo.geo.visibility.page-not-https#
- refused, exit 2; the request itself is refused
- recording a GEO experiment of product {product}: an experiment names the changed page by the HTTPS address assistants read it at; observed: page is {page}
- Fix: send page as the https:// address of the changed page
- Test: tests/geo/visibility.test.mjs::an_experiment_on_a_page_without_https_is_refused
echo.geo.visibility.prompt-foreign#
- refused, exit 2; the request itself is refused
- recording a GEO experiment of product {product}: an experiment moves prompts of the product it measures, and product {product} asks no prompt {prompts}; observed: geo_prompts holds no row of product {product} with id {prompts}
- Fix: name prompts echo-cli geo prompts list --product {product} lists
- Test: tests/geo/visibility.test.mjs::an_experiment_on_another_products_prompt_is_refused
echo.geo.visibility.experiment-absent#
- not_found, exit 1
- reporting the GEO experiment {experiment}: no GEO experiment has the id {experiment}; observed: geo_experiments holds no row with id {experiment}
- Fix: name an experiment echo-cli geo experiments list --product <id> lists
- Test: tests/geo/visibility.test.mjs::an_experiment_that_does_not_exist_is_not_found
echo.geo.extraction#
Judge whether one blog post alone answers a GEO panel prompt, keep the verdict and apply the block proposed when it does not.
Started by `/api/geo/extraction`, `/api/geo/extraction/[id]/apply`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.blog.lookup, echo.geo.prompts, echo.model, echo.store.
echo.geo.extraction.verdict-unstated#
- infra_down, exit 69; trying again unchanged can help
- checking whether post {post} answers GEO prompt {prompt}: the judge {judge} did not say whether the post answers the prompt; observed: the judge recorded {said}
- Fix: check the post again: echo-cli geo extraction check --post {post} --prompt {prompt}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/extraction.test.mjs::a_verdict_without_answerable_is_named
echo.geo.extraction.answer-missing#
- infra_down, exit 69; trying again unchanged can help
- checking whether post {post} answers GEO prompt {prompt}: the judge {judge} called the post answerable without the answer it drew from it; observed: the judge recorded {said}
- Fix: check the post again: echo-cli geo extraction check --post {post} --prompt {prompt}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/extraction.test.mjs::an_answerable_verdict_without_its_answer_is_named
echo.geo.extraction.block-missing#
- infra_down, exit 69; trying again unchanged can help
- checking whether post {post} answers GEO prompt {prompt}: the judge {judge} called the post unanswerable without the block that would let it answer; observed: the judge recorded {said}
- Fix: check the post again: echo-cli geo extraction check --post {post} --prompt {prompt}; a judge that keeps doing so is replaced in ECHO_GEO_JUDGE_ROUTE
- Test: tests/geo/extraction.test.mjs::an_unanswerable_verdict_without_its_block_is_named
echo.geo.extraction.check-absent#
- not_found, exit 1
- applying the extraction check {check}: no extraction check has the id {check}; observed: geo_extraction_checks holds no row with id {check}
- Fix: name a check echo-cli geo extraction list --post <id> lists
- Test: tests/geo/extraction.test.mjs::a_check_that_does_not_exist_is_not_found
echo.geo.extraction.check-answerable#
- refused, exit 1
- applying the extraction check {check}: check {check} found the post answers the prompt, so it proposes no block to apply; observed: geo_extraction_checks row {check} is answerable
- Fix: leave the post as it is
- Test: tests/geo/extraction.test.mjs::an_answerable_check_has_nothing_to_apply
echo.geo.extraction.check-applied#
- refused, exit 1
- applying the extraction check {check}: a check is applied once, and check {check} was applied at {applied}; observed: geo_extraction_checks row {check} has applied_at {applied}
- Fix: leave it; the post holds its block since {applied}
- Test: tests/geo/extraction.test.mjs::a_check_applied_twice_is_refused
echo.geo.extraction.post-revised#
- refused, exit 1
- applying the extraction check {check} to post {post}: the check read revision {read} of the post, and the post is at revision {current} now; observed: blog_posts row {post} has revision_number {current}
- Fix: check the post again: echo-cli geo extraction check --post {post} --prompt {prompt}
- Test: tests/geo/extraction.test.mjs::a_check_of_an_earlier_revision_is_not_applied
echo.geo.extraction.landing-stale#
- infra_down, exit 69; trying again unchanged can help
- revalidating the landing of post {post} after applying check {check}: the post took the block as revision {revision}, and its landing did not take the revalidation; observed: {reason}
- Fix: revalidate the landing once it answers; the post already holds the block
- Test: tests/geo/extraction.test.mjs::a_landing_that_refuses_revalidation_is_named
echo.geo.sources#
List the domains a product's GEO answers cite, check each cited page for the product's name and queue replies to the Reddit threads they cite.
Started by `/api/geo/sources`, `/api/geo/sources/targets`, `/api/geo/sources/threads`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.geo.facts, echo.model, echo.store.
echo.geo.sources.account-absent#
- not_found, exit 1
- queueing replies of product {product} for the Reddit account {account}: Weles holds no social account with the id {account}; observed: Weles answered no account for {account}
- Fix: name an account echo-cli social-accounts lists
- Test: tests/geo/sources.test.mjs::an_account_weles_does_not_hold_is_not_found
echo.geo.sources.threads-none#
- refused, exit 1
- queueing replies of product {product} for the Reddit account {account}: replies are queued for the Reddit threads the answers cite, and no answer of product {product} cites one; observed: no answer of a run of product {product} links a reddit.com/r/<subreddit>/comments/ thread
- Fix: read what the answers cite instead: echo-cli geo sources list --product {product}
- Test: tests/geo/sources.test.mjs::a_product_whose_answers_cite_no_thread_queues_nothing
echo.geo.sources.reply-declined#
- refused, exit 1
- drafting a reply to {page}: the reply route {route} declined to draft a reply to the thread; observed: the route stopped with a refusal
- Fix: leave the thread unanswered, or declare another route in ECHO_GEO_REPLY_ROUTE and queue the replies again
- Test: tests/geo/sources.test.mjs::a_route_that_declines_the_reply_is_named
echo.geo.sources.reply-empty#
- infra_down, exit 69; trying again unchanged can help
- drafting a reply to {page}: the reply route {route} answered without any reply text; observed: the answer holds no text block, or only blanks
- Fix: queue the replies again: echo-cli geo sources threads --product {product} --account {account}
- Test: tests/geo/sources.test.mjs::an_empty_reply_is_named
echo.geo.crawlers#
Set which AI crawlers may read which sections of a blog surface, check the robots.txt it serves, declare crawlers with their published ranges and report what they requested.
Started by `/api/geo/crawlers`, `/api/geo/crawlers/[id]`, `/api/geo/crawlers/check`, `/api/public/robots/[surface]`, `/api/geo/bots`, `/api/geo/bots/[id]`, `/api/geo/bots/[id]/ranges`, `/api/geo/bots/report`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.blog.lookup, echo.direct.crawler-ranges, echo.web.public, echo.store.
echo.geo.crawlers.surface-inactive#
- refused, exit 1
- {step} the crawler rules of blog surface {surface}: only an active blog surface serves a robots.txt, and {surface} is not active; observed: blog_surfaces row {surface} has is_active false
- Fix: name an active surface by the slug echo-cli blogs shows on its posts
- Test: tests/geo/crawlers.test.mjs::an_inactive_surface_has_no_crawler_rules
echo.geo.crawlers.rule-held#
- refused, exit 1
- setting the rule of crawler {crawler} on {path} of blog surface {surface}: a surface holds one rule per crawler and path, and it holds rule {held} for {crawler} on {path}; observed: geo_crawler_rules row {held} names {crawler} on {path}
- Fix: remove rule {held} first: echo-cli geo crawlers remove {held}
- Test: tests/geo/crawlers.test.mjs::a_rule_set_twice_is_refused
echo.geo.crawlers.rule-absent#
- not_found, exit 1
- removing the crawler rule {rule}: no crawler rule has the id {rule}; observed: geo_crawler_rules holds no row with id {rule}
- Fix: name a rule echo-cli geo crawlers list --surface <slug> lists
- Test: tests/geo/crawlers.test.mjs::a_rule_that_does_not_exist_is_not_found
echo.geo.crawlers.range-malformed#
- refused, exit 2; the request itself is refused
- reading the IP ranges of crawler {token}: a range is one address and prefix, as the crawler's operator publishes it, and {range} is not one; observed: ip_ranges holds {range}
- Fix: send every range of ip_ranges as address/prefix, such as 66.249.64.0/19
- Test: tests/geo/crawlers.test.mjs::a_range_that_is_not_cidr_is_refused
echo.geo.crawlers.bot-held#
- refused, exit 1
- declaring the crawler {token}: one declaration exists per token, and {token} is declared as {held}; observed: crawl_bots row {held} holds {token}, ignoring case
- Fix: remove {held} first: echo-cli geo bots remove {held}
- Test: tests/geo/crawlers.test.mjs::a_crawler_declared_twice_is_refused
echo.geo.crawlers.bot-absent#
- not_found, exit 1
- {step} the declared crawler {bot}: no declared crawler has the id {bot}; observed: crawl_bots holds no row with id {bot}
- Fix: name a crawler echo-cli geo bots list shows
- Test: tests/geo/crawlers.test.mjs::a_crawler_that_does_not_exist_is_not_found
echo.geo.crawlers.source-none#
- refused, exit 1
- reading the IP ranges of crawler {token} again: {token} was declared without ranges_source, so there is no address to read its ranges from; observed: crawl_bots row {bot} has no ranges_source
- Fix: declare it again with its ranges and their address: echo-cli geo bots declare --token {token} --kind <kind> --ranges <cidr,cidr…> --ranges-source <url> --by <name>
- Test: tests/geo/crawlers.test.mjs::a_crawler_without_a_ranges_source_is_not_refreshed
echo.geo.crawlers.source-not-https#
- refused, exit 1
- reading the IP ranges of crawler {token} again: what a ranges_source answers is trusted as the crawler operator's only over HTTPS, and {source} is not an HTTPS address; observed: crawl_bots row {bot} has ranges_source {source}
- Fix: declare it again with the https:// address its operator publishes the ranges at
- Test: tests/geo/crawlers.test.mjs::a_ranges_source_without_https_is_not_read
echo.geo.crawlers.source-empty#
- refused, exit 1
- reading the IP ranges of crawler {token} again: {source} answered a page that holds no address/prefix range, so {token} keeps the {kept} it had; observed: the page of {source} holds no CIDR range
- Fix: declare it again with the address its operator publishes the ranges at now
- Test: tests/geo/crawlers.test.mjs::a_ranges_page_without_a_range_keeps_the_ranges
echo.geo.crawlers.bot-gone#
- not_found, exit 1
- storing the IP ranges read again for crawler {token}: crawler {bot} was removed while its ranges were read; observed: crawl_bots holds no row with id {bot} after the read
- Fix: declare the crawler again if it is still to be counted
- Test: tests/geo/crawlers.test.mjs::a_crawler_removed_during_its_refresh_is_named
echo.geo.crawlers.drain-silent#
- config, exit 1
- reporting what the declared crawlers requested on blog surface {surface}: the report reads the hits a log drain delivered, and no log drain has delivered to Echo; observed: log_drain_deliveries holds no row
- Fix: connect the hosting platform's log drain to /api/drains/logs with ECHO_LOG_DRAIN_SECRET as its signature secret
- Test: tests/geo/crawlers.test.mjs::a_report_before_any_drain_delivery_is_refused
echo.geo.traffic#
Count the visits from AI assistants per assistant and site, and the signups and revenue whose first or last outside touch was one.
Started by `/api/geo/referrals`, `/api/geo/conversions`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.store.
echo.geo.traffic.hosts-not-json#
- config, exit 1
- reading the referrer hosts the deployment declares as AI assistants: ECHO_AI_REFERRER_HOSTS_JSON is not JSON; observed: {reason}
- Fix: set ECHO_AI_REFERRER_HOSTS_JSON in the deployment's environment to a JSON object of referrer host to assistant name, such as {"chatgpt.com": "ChatGPT"}
- Test: tests/geo/traffic.test.mjs::a_host_setting_that_is_not_json_is_refused
echo.geo.traffic.hosts-not-object#
- config, exit 1
- reading the referrer hosts the deployment declares as AI assistants: ECHO_AI_REFERRER_HOSTS_JSON must be one object of referrer host to assistant name; observed: ECHO_AI_REFERRER_HOSTS_JSON holds {kind}
- Fix: set ECHO_AI_REFERRER_HOSTS_JSON in the deployment's environment to a JSON object of referrer host to assistant name, such as {"chatgpt.com": "ChatGPT"}
- Test: tests/geo/traffic.test.mjs::a_host_setting_that_is_not_an_object_is_refused
echo.geo.traffic.host-unnamed#
- config, exit 1
- reading the referrer hosts the deployment declares as AI assistants: every declared host names the assistant it counts for, and {host} names none; observed: ECHO_AI_REFERRER_HOSTS_JSON maps {host} to {value}
- Fix: set ECHO_AI_REFERRER_HOSTS_JSON in the deployment's environment to a JSON object of referrer host to assistant name, such as {"chatgpt.com": "ChatGPT"}
- Test: tests/geo/traffic.test.mjs::a_host_naming_no_assistant_is_refused
echo.geo.traffic.hosts-none#
- config, exit 1
- reading the referrer hosts the deployment declares as AI assistants: ECHO_AI_REFERRER_HOSTS_JSON is an empty object, so no visit can count as an assistant's; observed: ECHO_AI_REFERRER_HOSTS_JSON is {}
- Fix: set ECHO_AI_REFERRER_HOSTS_JSON in the deployment's environment to a JSON object of referrer host to assistant name, such as {"chatgpt.com": "ChatGPT"}
- Test: tests/geo/traffic.test.mjs::a_host_setting_declaring_no_host_is_refused
echo.seo.programmatic#
Declare a template of {{slot}} texts, render a dataset through it, hold pages too similar or too thin, and store the rest as draft posts.
Started by `/api/seo/programmatic`.
It also meets the causes of echo.http.access, echo.http.body, echo.blog.lookup, echo.model, echo.store.
echo.seo.programmatic.pattern-slot-unused#
- refused, exit 2; the request itself is refused
- declaring the programmatic template {name} of the blog surface {surface}: slot_patterns types the slots the template uses, and {slot} is not one of them; observed: slot_patterns names {slot}; the template uses {slots}
- Fix: name only {slots} in slot_patterns, or use {{{slot}}} in one of the template texts
- Test: tests/seo/programmatic.test.mjs::a_pattern_for_a_slot_the_template_does_not_use_is_refused
echo.seo.programmatic.pattern-blank#
- refused, exit 2; the request itself is refused
- declaring the programmatic template {name} of the blog surface {surface}: each slot slot_patterns names maps to the regular expression its values match, and slot_patterns.{slot} holds no text; observed: slot_patterns.{slot} is {value}
- Fix: send slot_patterns.{slot} as a regular expression, such as \d+ for a price, or leave the slot out
- Test: tests/seo/programmatic.test.mjs::a_pattern_that_is_not_text_is_refused
echo.seo.programmatic.pattern-invalid#
- refused, exit 2; the request itself is refused
- declaring the programmatic template {name} of the blog surface {surface}: slot_patterns.{slot} must compile as a JavaScript regular expression with the u flag, and {pattern} does not; observed: new RegExp({pattern}, "u") answers: {problem}
- Fix: correct slot_patterns.{slot} so it compiles, and send the template again
- Test: tests/seo/programmatic.test.mjs::a_pattern_that_does_not_compile_is_refused
echo.seo.programmatic.slug-unslotted#
- refused, exit 2; the request itself is refused
- declaring the programmatic template {name} of the blog surface {surface}: every page of a batch needs its own slug, and slug_template uses no {{slot}}, so every page would get the slug {slug}; observed: slug_template is {slug}
- Fix: put at least one slot in slug_template, such as {{city}}
- Test: tests/seo/programmatic.test.mjs::a_slug_without_a_slot_is_refused
echo.seo.programmatic.template-named#
- refused, exit 1
- declaring the programmatic template {name} of the blog surface {surface}: a surface names each of its templates once, and {surface} already has a template named {name}; observed: seo_programmatic_templates refused the row as a duplicate of ({surface}, {name}): {said}
- Fix: give the template another name, or use the one echo-cli seo programmatic templates lists
- Test: tests/seo/programmatic.test.mjs::a_template_named_twice_is_refused
echo.seo.programmatic.template-absent#
- not_found, exit 1
- finding the programmatic template {template}: no programmatic template has the id {template}; observed: seo_programmatic_templates holds no row with id {template}
- Fix: name a template echo-cli seo programmatic templates lists
- Test: tests/seo/programmatic.test.mjs::a_template_that_does_not_exist_is_not_found
echo.seo.programmatic.row-not-object#
- refused, exit 2; the request itself is refused
- rendering row {index} of the dataset through template {template}: each row of rows is an object giving one value per slot, and row {index} is {kind}; observed: rows[{index}] is {kind}: {value}
- Fix: send rows[{index}] as an object of {slots}
- Test: tests/seo/programmatic.test.mjs::a_row_that_is_not_an_object_is_refused
echo.seo.programmatic.row-slot-missing#
- refused, exit 2; the request itself is refused
- rendering row {index} of the dataset through template {template}: a row gives every slot the template uses, as text or as a number, and row {index} gives no {missing}; observed: rows[{index}] gives {given}; the template uses {slots}
- Fix: add {missing} to rows[{index}], each as non-blank text or a number
- Test: tests/seo/programmatic.test.mjs::a_row_missing_a_slot_is_refused
echo.seo.programmatic.row-slot-mismatched#
- refused, exit 2; the request itself is refused
- rendering row {index} of the dataset through template {template}: template {template} types the slot {slot} with the pattern {pattern}, and the value of row {index} does not match it whole; observed: rows[{index}].{slot} is {value}
- Fix: send rows[{index}].{slot} matching {pattern}, or declare the template with another pattern for {slot}
- Test: tests/seo/programmatic.test.mjs::a_slot_value_that_does_not_match_its_pattern_is_refused
echo.seo.programmatic.row-page-refused#
- refused, exit 2; the request itself is refused
- rendering row {index} of the dataset through template {template}: the page row {index} renders breaks the blog's rules for a post ({fields}); observed: the rendered page at slug {slug}: {issues}
- Fix: change the values of rows[{index}] (or the template texts) so the page keeps within those rules
- Test: tests/seo/programmatic.test.mjs::a_row_rendering_a_page_the_blog_refuses_is_refused
echo.seo.programmatic.rows-empty#
- refused, exit 2; the request itself is refused
- reading the dataset of a batch of template {template}: a batch renders one page per row, and rows holds none; observed: rows is an empty list
- Fix: send rows as a list of at least one object giving every slot of the template: {slots}
- Test: tests/seo/programmatic.test.mjs::a_batch_without_rows_is_refused
echo.seo.crawls#
Crawl a site's sitemap pages and the pages they link to, store the crawl, and read its broken links, orphans, images, canonicals, hreflang, structured data, redirect file and changes since an earlier crawl.
Started by `/api/seo/crawls`, `/api/seo/crawls/[id]`, `/api/cron/seo-crawls`.
It also meets the causes of echo.http.access, echo.http.query, echo.seo.site, echo.store.
echo.seo.crawls.crawl-absent#
- not_found, exit 1
- reading the stored crawl {crawl}: no crawl has the id {crawl}; observed: seo_crawls holds no row with id {crawl}
- Fix: name a crawl echo-cli seo crawl list lists, or run one with echo-cli seo crawl run --origin <https origin> --pages <n>
- Test: tests/seo/crawls.test.mjs::a_crawl_that_does_not_exist_is_not_found
echo.seo.crawls.crawls-of-other-sites#
- refused, exit 2; the request itself is refused
- comparing crawl {crawl} with the earlier crawl {against}: a comparison reads what changed on one site, and the two crawls are of different sites; observed: crawl {crawl} is of {origin}; crawl {against} is of {againstOrigin}
- Fix: name as against an earlier crawl of {origin}: echo-cli seo crawl list lists every crawl with its origin
- Test: tests/seo/crawls.test.mjs::crawls_of_two_sites_are_not_compared
echo.seo.crawls.legacy-types-not-images#
- refused, exit 2; the request itself is refused
- reading the legacy image types of the images report of crawl {crawl}: legacy_types lists image content types, and {strays} {verb} not one; observed: legacy_types is "{value}"
- Fix: send legacy_types as image content types separated by commas, such as image/gif,image/bmp, or leave it out
- Test: tests/seo/crawls.test.mjs::a_legacy_type_that_is_not_an_image_type_is_refused
echo.seo.links#
Propose internal links between a crawl's pages by how similar their titles and descriptions read, and accept or dismiss each proposal.
Started by `/api/seo/crawls/[id]/proposals`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.seo.crawls, echo.model, echo.store.
echo.seo.links.crawl-undescribed#
- not_found, exit 1
- proposing internal links between the pages of crawl {crawl}: links are proposed between pages by what their title and description say, and no page of the crawl answered 2xx with either; observed: crawl {crawl} holds {pages}, none answering 2xx with a title or description
- Fix: crawl the site again once its pages answer with a title or description: echo-cli seo crawl run --origin {origin} --pages <n>
- Test: tests/seo/links.test.mjs::a_crawl_with_no_described_page_is_refused
echo.seo.links.link-page-failing#
- infra_down, exit 69; trying again unchanged can help
- reading whether {from} already links to {to} before accepting link proposal {proposal}: the page the link would be added to answered a server error, so its links cannot be read; observed: {from} answered HTTP {status}
- Fix: accept the proposal again once {from} answers 2xx
- Test: tests/seo/links.test.mjs::a_page_failing_on_its_server_is_retryable
echo.seo.links.link-page-unanswered#
- refused, exit 1
- reading whether {from} already links to {to} before accepting link proposal {proposal}: the page the link would be added to does not answer 2xx (it is gone, redirects or refuses), so the link cannot be checked or added there; observed: {from} answered HTTP {status}{location}
- Fix: dismiss the proposal (echo-cli seo crawl dismiss --crawl {crawl} --proposal {proposal} --by <who>), or crawl again once the page answers
- Test: tests/seo/links.test.mjs::a_page_that_does_not_answer_is_refused
echo.seo.links.already-linked#
- refused, exit 1
- accepting link proposal {proposal} of crawl {crawl}: the page already links to the target, so there is no link left to add; observed: {from} links to {to} now
- Fix: dismiss the proposal instead: echo-cli seo crawl dismiss --crawl {crawl} --proposal {proposal} --by <who>
- Test: tests/seo/links.test.mjs::a_link_already_made_is_not_accepted
echo.seo.links.proposal-absent#
- not_found, exit 1
- deciding link proposal {proposal} of crawl {crawl}: crawl {crawl} has no link proposal with the id {proposal}; observed: seo_link_proposals holds no row with id {proposal} and crawl_id {crawl}
- Fix: name a proposal echo-cli seo crawl proposals --crawl {crawl} lists
- Test: tests/seo/links.test.mjs::a_proposal_that_does_not_exist_is_not_found
echo.seo.repairs#
Queue a crawl's findings as repairs weighted by the visits each page had, confirm fixed what a later crawl no longer finds, and dismiss one not worth making.
Started by `/api/seo/repairs`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.seo.crawls, echo.store.
echo.seo.repairs.repair-absent#
- not_found, exit 1
- dismissing the SEO repair {repair}: no repair has the id {repair}; observed: seo_repairs holds no row with id {repair}
- Fix: name a repair echo-cli seo repairs list --origin <https origin> lists
- Test: tests/seo/repairs.test.mjs::a_repair_that_does_not_exist_is_not_found
echo.seo.glossary#
Mark a blog post as the glossary entry of a term with its definition, related entries and product pages, list a surface's entries and remove one.
Started by `/api/seo/glossary`, `echo-cli seo glossary`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.blog.lookup, echo.store.
echo.seo.glossary.term-taken#
- refused, exit 1
- declaring post {post} the glossary entry for {term}: a surface defines each term once, and {surface} already defines {term} as post {holder}; observed: blog_glossary_entries row of post {holder} defines {term} on {surface}; nothing was stored
- Fix: remove the entry of post {holder} first (echo-cli seo glossary remove --post {holder}), or declare another term
- Test: tests/seo/glossary.test.mjs::a_term_defined_twice_is_refused
echo.seo.glossary.entry-absent#
- not_found, exit 1
- removing the glossary entry of post {post}: post {post} is not the glossary entry of any term; observed: blog_glossary_entries holds no row of post {post}; nothing was removed
- Fix: name a post echo-cli seo glossary list --surface <slug> lists
- Test: tests/seo/glossary.test.mjs::a_post_that_is_no_entry_is_not_found
echo.seo.glossary.entry-relied#
- refused, exit 1
- removing the glossary entry of post {post} for {term}: an entry other entries relate to stays, so no related link points at nothing, and {relying} relate to {term}; observed: blog_glossary_entries of {surface}: {relying} name {term} in related; nothing was removed
- Fix: take {term} out of the related terms of {relying} (echo-cli seo glossary add with the new --related), then remove it
- Test: tests/seo/glossary.test.mjs::an_entry_others_relate_to_is_kept
echo.seo.schema#
Declare, list and remove the properties each schema.org type must state, and check a stored crawl's JSON-LD against them.
Started by `/api/seo/schema`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.seo.crawls, echo.store.
echo.seo.schema.requirement-absent#
- not_found, exit 1
- removing the structured data requirement of {type}: no requirement is declared for the @type {type}; observed: seo_schema_requirements holds no row with type {type}
- Fix: name a type echo-cli seo schema list lists
- Test: tests/seo/schema.test.mjs::a_requirement_that_does_not_exist_is_not_found
echo.seo.sites#
Declare, list and remove the sites crawled on a schedule, and crawl each due site, comparing it with its previous crawl and raising an alert on regressions.
Started by `/api/seo/sites`, `/api/cron/seo-crawls`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.seo.crawls, echo.store.
echo.seo.sites.site-unaudited#
- not_found, exit 1
- stopping the scheduled audit of {origin}: {origin} is not audited on a schedule, so there is no audit to stop; observed: seo_sites holds no row with origin {origin}
- Fix: name an origin echo-cli seo sites list lists
- Test: tests/seo/sites.test.mjs::a_site_not_audited_is_not_found
echo.seo.deploy-check#
Check every URL a site's sitemaps list against its robots rules and its own answer, store the check, and name every page a preview would lose against production.
Started by `/api/seo/deploy-check`, `/api/seo/gate`.
It also meets the causes of echo.http.access, echo.http.query, echo.seo.site, echo.store.
echo.seo.security#
Read the certificate a site's origin presents and every sitemap page loading a resource over plain http.
Started by `/api/seo/security`.
It also meets the causes of echo.http.access, echo.http.query, echo.seo.site, echo.web.public.
echo.seo.security.host-unresolved#
- refused, exit 1
- reading the certificate {host} presents in the TLS handshake on port {port}: the host name does not resolve, so there is no server to read a certificate from; observed: the lookup of {host} answered {code}: {said}
- Fix: name a host that resolves (its DNS record may be missing or not yet published)
- Test: tests/seo/security.test.mjs::a_host_that_does_not_resolve_is_refused
echo.seo.security.certificate-untrusted#
- refused, exit 1
- reading the certificate {host} presents in the TLS handshake on port {port}: the certificate the host presents does not verify (expired, self-signed, for another name or from an untrusted issuer), so the handshake was refused; observed: the handshake with {host}:{port} answered {code}: {said}
- Fix: renew or replace the certificate {host} serves so it is valid for {host} and issued by a trusted authority
- Test: tests/seo/security.test.mjs::a_certificate_that_does_not_verify_is_refused
echo.seo.security.handshake-unreached#
- infra_down, exit 69; trying again unchanged can help
- reading the certificate {host} presents in the TLS handshake on port {port}: the host did not complete a TLS handshake (the connection was refused, reset or timed out); observed: the connection to {host}:{port} answered {code}: {said}
- Fix: check again once {host} accepts https connections on port {port}
- Test: tests/seo/security.test.mjs::a_host_that_does_not_answer_the_handshake_is_retryable
echo.seo.security.certificate-absent#
- refused, exit 1
- reading the certificate {host} presents in the TLS handshake on port {port}: the handshake completed without a certificate carrying its validity, so its expiry cannot be read; observed: {host}:{port} presented {presented}
- Fix: serve a certificate for {host} on port {port}
- Test: tests/seo/security.test.mjs::a_handshake_without_a_certificate_is_refused
echo.seo.certificates#
Declare, list and remove the hosts whose certificates are read daily, and raise an alert before one expires or a page loads plain-http resources.
Started by `/api/seo/certificates`, `/api/cron/certificates`.
It also meets the causes of echo.http.access, echo.http.body, echo.seo.security, echo.store.
echo.seo.certificates.host-missing#
- refused, exit 2; the request itself is refused
- reading the host of a certificate watch: a watch names the host whose certificate it reads, and the request sends none; observed: host is {value}
- Fix: send host as a host name such as example.com, or its https origin
- Test: tests/seo/certificates.test.mjs::a_watch_without_a_host_is_refused
echo.seo.certificates.host-malformed#
- refused, exit 2; the request itself is refused
- reading the host of a certificate watch: host must be a bare host name or an https origin, and {given} is neither (it carries a path, a port, a user or characters a host name does not hold); observed: host is "{given}"; read as https://{given} its host is {parsed}
- Fix: send host as a host name such as example.com, or an origin such as https://example.com
- Test: tests/seo/certificates.test.mjs::a_host_that_is_not_a_host_name_is_refused
echo.seo.certificates.watch-absent#
- not_found, exit 1
- stopping the certificate watch of {host}: no certificate watch names {host}; observed: certificate_watches holds no row with host {host}
- Fix: name a host echo-cli seo certificates list lists
- Test: tests/seo/certificates.test.mjs::a_watch_that_does_not_exist_is_not_found
echo.seo.indexnow#
Declare the IndexNow key a host serves after reading it there, and submit changed addresses to IndexNow with their host's key.
Started by `/api/seo/indexnow`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.web.public, echo.store.
echo.seo.indexnow.key-location-unanswered#
- refused, exit 2; the request itself is refused
- declaring the IndexNow key served at {location}: IndexNow reads the key from its location before it trusts a submission, and the location does not answer 2xx; observed: {location} answered HTTP {status}
- Fix: serve the key as text at {location} (a file named {key}.txt at the root of the host), then declare it again
- Test: tests/seo/indexnow.test.mjs::a_key_location_that_does_not_answer_is_refused
echo.seo.indexnow.key-not-served#
- refused, exit 2; the request itself is refused
- declaring the IndexNow key served at {location}: the key location must serve exactly the key, and it serves other text; observed: {location} answered HTTP {status} with {bytes} bytes starting "{served}"; the key is {length} characters long
- Fix: make {location} serve the key and nothing else, then declare it again
- Test: tests/seo/indexnow.test.mjs::a_key_location_serving_other_text_is_refused
echo.seo.indexnow.key-absent#
- not_found, exit 1
- removing the IndexNow key of {host}: {host} has no declared IndexNow key; observed: seo_indexnow_keys holds no row with host {host}
- Fix: name a host echo-cli seo indexnow list lists
- Test: tests/seo/indexnow.test.mjs::a_host_without_a_key_is_not_found
echo.seo.indexnow.urls-empty#
- refused, exit 2; the request itself is refused
- submitting changed addresses to IndexNow: a submission names the addresses that changed, and urls holds none; observed: urls is an empty list
- Fix: send urls as a list of absolute https addresses, such as ["https://example.com/pricing"]
- Test: tests/seo/indexnow.test.mjs::a_submission_without_addresses_is_refused
echo.seo.indexnow.url-not-absolute#
- refused, exit 2; the request itself is refused
- submitting changed addresses to IndexNow: IndexNow takes absolute addresses, and item {index} of urls is not one; observed: urls[{index}] is {value}
- Fix: send urls[{index}] as an absolute address with its scheme and host, such as https://example.com/pricing
- Test: tests/seo/indexnow.test.mjs::a_submission_naming_a_relative_address_is_refused
echo.seo.indexnow.hosts-unkeyed#
- not_found, exit 1
- submitting changed addresses to IndexNow: each host is submitted with its own key, and {hosts} {verb} no declared key, so nothing was submitted; observed: seo_indexnow_keys holds keys for {keyed}
- Fix: declare a key for each with echo-cli seo indexnow key --key <key> --key-location <https url> --by <who>
- Test: tests/seo/indexnow.test.mjs::a_submission_to_a_host_without_a_key_is_refused
echo.seo.updates#
Store every incident of Google's Search Status Dashboard and compare a site's search visits before an update began with those after it ended.
Started by `/api/seo/updates`.
It also meets the causes of echo.http.access, echo.http.query, echo.config, echo.store.
echo.seo.updates.feed-unreached#
- infra_down, exit 69; trying again unchanged can help
- reading Google's Search Status Dashboard incidents at {feed}: the request to the dashboard got no answer (the name did not resolve, the connection failed or timed out); observed: fetch {feed} failed: {said}
- Fix: sync again once status.search.google.com answers: echo-cli seo updates sync
- Test: tests/seo/updates.test.mjs::a_dashboard_that_does_not_answer_is_retryable
echo.seo.updates.feed-failing#
- infra_down, exit 69; trying again unchanged can help
- reading Google's Search Status Dashboard incidents at {feed}: the dashboard answered an error status instead of its incidents; observed: {feed} answered HTTP {status}: {body}
- Fix: sync again once {feed} answers 200: echo-cli seo updates sync
- Test: tests/seo/updates.test.mjs::a_dashboard_answering_an_error_is_retryable
echo.seo.updates.feed-not-json#
- infra_down, exit 69; trying again unchanged can help
- reading Google's Search Status Dashboard incidents at {feed}: the dashboard answered 200 with a body that does not parse as JSON, so no incident can be read from it; observed: {feed} answered {type}, {bytes} bytes; JSON.parse: {problem}
- Fix: sync again later; if the dashboard moved its feed, Echo must read the new address (src/lib/seo/updates.ts INCIDENTS_FEED)
- Test: tests/seo/updates.test.mjs::a_dashboard_answering_other_than_json_is_retryable
echo.seo.updates.feed-not-list#
- infra_down, exit 69; trying again unchanged can help
- reading Google's Search Status Dashboard incidents at {feed}: the dashboard answers its incidents as a JSON list, and this answer is {kind}; observed: {feed} answered {kind}: {value}
- Fix: sync again later; if the dashboard changed its feed, Echo must read the new shape (src/lib/seo/updates.ts)
- Test: tests/seo/updates.test.mjs::a_dashboard_answering_another_shape_is_retryable
echo.seo.updates.update-absent#
- not_found, exit 1
- reading the impact of search update {update} on {app}: no stored search update has the id {update}; observed: search_updates holds no row with id {update}
- Fix: name an update echo-cli seo updates list lists, or read the dashboard first with echo-cli seo updates sync
- Test: tests/seo/updates.test.mjs::an_update_that_is_not_stored_is_not_found
echo.seo.updates.update-rolling#
- refused, exit 2; the request itself is refused
- reading the impact of search update {update} on {app}: the impact compares the days before an update began with as many after it ended, and {name} has not finished rolling out, so it has no after window yet; observed: search update {update} began at {began} and has no ended_at
- Fix: read the impact once the dashboard reports the update ended (echo-cli seo updates sync), or name an update that has ended
- Test: tests/seo/updates.test.mjs::an_update_still_rolling_out_is_refused
echo.seo.updates.hosts-not-json#
- config, exit 1
- reading the search referrer hosts the deployment declares in ECHO_SEARCH_REFERRER_HOSTS_JSON: the setting must be JSON, and its {length} characters do not parse; observed: JSON.parse: {problem}
- Fix: set ECHO_SEARCH_REFERRER_HOSTS_JSON in the deployment's environment to an object of referrer host to engine name, such as {"www.google.com":"Google"}
- Test: tests/seo/updates.test.mjs::a_hosts_setting_that_is_not_json_is_named
echo.seo.updates.hosts-not-object#
- config, exit 1
- reading the search referrer hosts the deployment declares in ECHO_SEARCH_REFERRER_HOSTS_JSON: the setting must be one JSON object of referrer host to engine name, and it is {kind}; observed: ECHO_SEARCH_REFERRER_HOSTS_JSON holds {kind}
- Fix: set ECHO_SEARCH_REFERRER_HOSTS_JSON in the deployment's environment to an object of referrer host to engine name, such as {"www.google.com":"Google"}
- Test: tests/seo/updates.test.mjs::a_hosts_setting_that_is_not_an_object_is_named
echo.seo.updates.hosts-engine-blank#
- config, exit 1
- reading the search referrer hosts the deployment declares in ECHO_SEARCH_REFERRER_HOSTS_JSON: every host the setting names maps to the search engine it refers from, and {host} maps to no engine name; observed: ECHO_SEARCH_REFERRER_HOSTS_JSON["{host}"] is {value}
- Fix: give {host} the name of its engine in ECHO_SEARCH_REFERRER_HOSTS_JSON, or remove it
- Test: tests/seo/updates.test.mjs::a_host_naming_no_engine_is_named
echo.seo.updates.hosts-empty#
- config, exit 1
- reading the search referrer hosts the deployment declares in ECHO_SEARCH_REFERRER_HOSTS_JSON: the impact counts visits referred by the hosts the setting names, and it names none; observed: ECHO_SEARCH_REFERRER_HOSTS_JSON is {}
- Fix: set ECHO_SEARCH_REFERRER_HOSTS_JSON in the deployment's environment to an object of referrer host to engine name, such as {"www.google.com":"Google"}
- Test: tests/seo/updates.test.mjs::a_hosts_setting_naming_no_host_is_named
echo.seo.site#
Read a site's robots.txt and every URL the sitemaps it declares (and the ones named) list, following a sitemap index.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.http.query, echo.web.public.
echo.seo.site.robots-failing#
- infra_down, exit 69; trying again unchanged can help
- reading {origin}/robots.txt: robots.txt answered a server error, and RFC 9309 reads an unreachable robots.txt as disallowing everything, so no rule set can be assumed; observed: {origin}/robots.txt answered HTTP {status}
- Fix: check again once {origin}/robots.txt answers 2xx, or 4xx where the site has none
- Test: tests/seo/site.test.mjs::a_robots_file_failing_on_its_server_is_retryable
echo.seo.site.robots-redirected#
- refused, exit 1
- reading {origin}/robots.txt: robots.txt answered a redirect, and the check follows none, as a crawler may read the target under other rules; observed: {origin}/robots.txt answered HTTP {status} to {location}
- Fix: serve robots.txt at {origin}/robots.txt itself, or check the origin it redirects to
- Test: tests/seo/site.test.mjs::a_redirected_robots_file_is_refused
echo.seo.site.sitemaps-none#
- not_found, exit 1
- finding the sitemaps of {origin}: every URL checked comes from a sitemap, and robots.txt declares no Sitemap line and the request names none; observed: {origin}/robots.txt answered HTTP {status} with no Sitemap line; the request names no sitemap
- Fix: name one with sitemap=<https url> (echo-cli seo deploy-check --sitemap <https url>), or declare it in robots.txt
- Test: tests/seo/site.test.mjs::a_site_declaring_no_sitemap_is_refused
echo.funnels#
Declare, list and remove a product's funnels: the stored events a person passes through, in order.
Started by `/api/analytics/funnels`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.funnels.steps-too-few#
- refused, exit 2; the request itself is refused
- declaring the funnel {name} of product {product}: a funnel measures how people move from one event to the next, so it needs at least two steps, and steps names {count}; observed: steps is {value}
- Fix: send steps as at least two stored event names in the order a person takes them (echo-cli funnel add --step <event> --step <event> …)
- Test: tests/growth/funnels.test.mjs::a_funnel_of_one_step_is_refused
echo.funnels.step-repeated#
- refused, exit 2; the request itself is refused
- declaring the funnel {name} of product {product}: each step is a different event, and steps names {step} more than once; observed: steps is {value}
- Fix: name {step} once in steps
- Test: tests/growth/funnels.test.mjs::a_funnel_naming_a_step_twice_is_refused
echo.funnels.funnel-named#
- refused, exit 1
- declaring the funnel {name} of product {product}: a product names each of its funnels once, case aside, and it already has {held}; observed: funnel {funnel} of product {product} is named {held}
- Fix: give the funnel another name, or remove {funnel} first: echo-cli funnel remove --id {funnel}
- Test: tests/growth/funnels.test.mjs::a_funnel_named_twice_is_refused
echo.funnels.funnel-absent#
- not_found, exit 1
- {step} funnel {funnel}: no funnel has the id {funnel}; observed: funnels holds no row with id {funnel}
- Fix: name a funnel echo-cli funnel list --product <id> lists
- Test: tests/growth/funnels.test.mjs::a_funnel_that_does_not_exist_is_not_found
echo.funnels.dropoffs#
Compare each step's conversion of a funnel with the window before, ask a model for hypotheses on the steps that fell, queue one as a growth hypothesis, and run the search on a schedule.
Started by `/api/analytics/funnels/dropoffs`, `/api/analytics/funnels/schedules`, `/api/cron/funnel-dropoffs`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.funnels, echo.config, echo.model, echo.store.
echo.funnels.dropoffs.hypotheses-unlisted#
- infra_down, exit 69; trying again unchanged can help
- asking the route {route} for hypotheses on the fall from {from} to {to} in funnel {funnel}: the route called record_hypotheses without the list of hypotheses the tool asks for, so nothing can be stored; observed: record_hypotheses was called with {answer}
- Fix: run the drop-offs again; if the route keeps answering so, set ECHO_FUNNEL_HYPOTHESIS_ROUTE to a route whose model follows tool schemas
- Test: tests/growth/dropoffs.test.mjs::a_route_calling_the_tool_without_a_list_is_retryable
echo.funnels.dropoffs.hypotheses-uncited#
- infra_down, exit 69; trying again unchanged can help
- asking the route {route} for hypotheses on the fall from {from} to {to} in funnel {funnel}: every hypothesis must cite both conversion rates it explains ({previous} and {current}), and none of the {count} the route proposed cites both; observed: the route proposed {hypotheses}
- Fix: run the drop-offs again; if the route keeps answering so, set ECHO_FUNNEL_HYPOTHESIS_ROUTE to a route whose model follows the instruction
- Test: tests/growth/dropoffs.test.mjs::a_route_citing_neither_rate_is_retryable
echo.funnels.dropoffs.run-absent#
- not_found, exit 1
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: no drop-off run has the id {run}; observed: funnel_dropoff_runs holds no row with id {run}
- Fix: name a run echo-cli funnel runs --funnel <funnel-id> lists
- Test: tests/growth/dropoffs.test.mjs::a_run_that_does_not_exist_is_not_found
echo.funnels.dropoffs.step-absent#
- not_found, exit 1
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: run {run} has no step starting at {from}; observed: the steps of run {run} start at {steps}
- Fix: send from as one of {steps}
- Test: tests/growth/dropoffs.test.mjs::a_step_the_run_does_not_hold_is_not_found
echo.funnels.dropoffs.step-unfallen#
- refused, exit 2; the request itself is refused
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: hypotheses are proposed only for a step whose conversion fell, and {from} → {to} did not fall in run {run}; observed: the step {from} → {to} of run {run} holds no hypothesis
- Fix: queue a hypothesis of a step the run flagged: echo-cli funnel runs --funnel {funnel} names them
- Test: tests/growth/dropoffs.test.mjs::a_step_that_did_not_fall_is_refused
echo.funnels.dropoffs.place-beyond#
- refused, exit 2; the request itself is refused
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: place counts from one in the list the step proposed, and the step proposed {count}; observed: place is {place}
- Fix: send place from 1 to {count}
- Test: tests/growth/dropoffs.test.mjs::a_place_past_the_proposed_list_is_refused
echo.funnels.dropoffs.hypothesis-queued#
- refused, exit 1
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: a hypothesis of a run is queued once, and this one already is; observed: growth_hypotheses row {hypothesis} holds it for {from} → {to} of run {run}
- Fix: read the queued hypothesis {hypothesis} with echo-cli hypotheses list --product <id> instead of queuing it again
- Test: tests/growth/dropoffs.test.mjs::a_hypothesis_queued_twice_is_refused
echo.funnels.dropoffs.funnel-gone#
- not_found, exit 1
- queuing hypothesis {place} of the step from {from} in drop-off run {run}: a hypothesis is queued for the product of the run's funnel, and run {run} names funnel {funnel}, which was removed since; observed: funnels holds no row with id {funnel}
- Fix: queue the hypothesis by hand for its product: echo-cli hypotheses add --product <id> --statement <text> …
- Test: tests/growth/dropoffs.test.mjs::a_run_of_a_removed_funnel_is_refused
echo.funnels.dropoffs.schedule-absent#
- not_found, exit 1
- removing the drop-off schedule of funnel {funnel}: funnel {funnel} has no drop-off schedule; observed: funnel_dropoff_schedules holds no row with funnel_id {funnel}
- Fix: name a funnel echo-cli funnel schedules lists
- Test: tests/growth/dropoffs.test.mjs::a_schedule_that_does_not_exist_is_not_found
echo.reviews#
Declare a product's review programmes, ask each person who reached its success moment (and answered its survey satisfied) at most once per interval, follow the request's link and record where the review was posted.
Started by `/api/analytics/reviews`, `/api/analytics/reviews/run`, `/api/analytics/reviews/requests`, `/api/public/reviews/[id]/click`, `/api/cron/review-requests`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.config, echo.store.
echo.reviews.answers-empty#
- refused, exit 2; the request itself is refused
- declaring the satisfaction gate of the review programme {name} of product {product}: a gate asks only people whose answer to {survey} counts as satisfied, and satisfied_answers names no answer; observed: satisfied_answers is an empty list
- Fix: send satisfied_answers with at least one answer to {survey} that counts as satisfied
- Test: tests/growth/reviews.test.mjs::a_gate_naming_no_answer_is_refused
echo.reviews.survey-absent#
- not_found, exit 1
- declaring the satisfaction gate of the review programme {name} of product {product}: product {product} has no micro-survey named {survey}; observed: product_surveys holds {versions} for product {product}, none named {survey}
- Fix: name a survey echo-cli surveys list --product {product} lists
- Test: tests/growth/reviews.test.mjs::a_gate_naming_a_survey_the_product_lacks_is_refused
echo.reviews.answer-unoffered#
- refused, exit 2; the request itself is refused
- declaring the satisfaction gate of the review programme {name} of product {product}: every version of {survey} offers fixed choices, and {unknown} {verb} none of them; observed: {survey} offers {offered}
- Fix: send satisfied_answers as choices {survey} offers
- Test: tests/growth/reviews.test.mjs::a_gate_naming_an_answer_the_survey_does_not_offer_is_refused
echo.reviews.program-named#
- refused, exit 1
- declaring the review programme {name} of product {product}: a product names each review programme once, case aside, and it already has {held}; observed: review programme {program} of product {product} is named {held}
- Fix: give the programme another name, or remove {program} first: echo-cli reviews programs remove --id {program}
- Test: tests/growth/reviews.test.mjs::a_programme_named_twice_is_refused
echo.reviews.program-absent#
- not_found, exit 1
- {step} review programme {program}: no review programme has the id {program}; observed: review_programs holds no row with id {program}
- Fix: name a programme echo-cli reviews programs list --product <id> lists
- Test: tests/growth/reviews.test.mjs::a_programme_that_does_not_exist_is_not_found
echo.reviews.event-anonymous#
- refused, exit 1
- asking for a review from the success event {event} of programme {program}: a request names the person it asks, and the stored event carries neither a user id nor an anonymous id; observed: event {event} ({name} of {app} at {at}) has user_id and anonymous_id both null
- Fix: repair or remove the event row; the collectors that stored it must send an identifier with every event
- Test: tests/growth/reviews.test.mjs::an_event_naming_no_one_is_refused
echo.reviews.request-absent#
- not_found, exit 1
- {step} review request {request}: no review request has the id {request}; observed: review_requests holds no row with id {request}
- Fix: name a request echo-cli reviews requests --program <id> lists
- Test: tests/growth/reviews.test.mjs::a_request_that_does_not_exist_is_not_found
echo.lifecycle.rules#
Declare and run the rules that rescue a person whose activity fell, win back a person gone quiet, and offer an upgrade or the adjacent feature to a person near a plan limit.
Started by `/api/analytics/churn/risk`, `/api/analytics/churn/risk/run`, `/api/analytics/lifecycle/winback`, `/api/analytics/lifecycle/winback/run`, `/api/analytics/expansion`, `/api/cron/churn-risk`, `/api/cron/winback`, `/api/cron/expansion`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.lifecycle.triggers, echo.store.
echo.lifecycle.rules.rule-named#
- refused, exit 1
- declaring the {rule} {name} of product {product}: a product names each {rule} once, case aside, and it already has {held}; observed: {rule} {id} of product {product} is named {held}
- Fix: give the rule another name, or remove {id} first ({remove})
- Test: tests/growth/retention.test.mjs::a_rule_named_twice_is_refused
echo.lifecycle.rules.rule-absent#
- not_found, exit 1
- {step} {rule} {id}: no {rule} has the id {id}; observed: {table} holds no row with id {id}
- Fix: name a rule {list} lists
- Test: tests/growth/retention.test.mjs::a_rule_that_does_not_exist_is_not_found
echo.lifecycle.rules.inactivity-unstated#
- refused, exit 2; the request itself is refused
- declaring the win-back rule {name} of product {product}: a win-back rule finds the inactive either by a window or by a segment, and the request states neither; observed: the body states neither inactive_days nor segment_id
- Fix: send inactive_days (how long a person sent nothing) or segment_id (the segment whose members count as inactive)
- Test: tests/growth/retention.test.mjs::a_winback_rule_stating_no_inactivity_is_refused
echo.lifecycle.rules.inactivity-doubled#
- refused, exit 2; the request itself is refused
- declaring the win-back rule {name} of product {product}: a win-back rule finds the inactive either by a window or by a segment, and the request states both; observed: inactive_days is {days} and segment_id is {segment}
- Fix: send only one of inactive_days or segment_id
- Test: tests/growth/retention.test.mjs::a_winback_rule_stating_both_inactivities_is_refused
echo.lifecycle.rules.seen-not-longer#
- refused, exit 2; the request itself is refused
- declaring the win-back rule {name} of product {product}: a person is won back when seen within seen_days but not within inactive_days, so seen_days must be the longer window; observed: seen_days is {seen} and inactive_days is {inactive}
- Fix: send seen_days above {inactive}
- Test: tests/growth/retention.test.mjs::a_seen_window_not_longer_than_the_inactive_one_is_refused
echo.lifecycle.rules.segment-of-other-source#
- refused, exit 2; the request itself is refused
- declaring the win-back rule {name} of product {product}: a win-back rule's segment reads the rule's own source, and segment {segment} reads {segmentApp} of product {segmentProduct}; observed: the rule reads {app} of product {product}
- Fix: name a segment of {app}: echo-cli segments list --product {product}
- Test: tests/growth/retention.test.mjs::a_segment_of_another_source_is_refused
echo.lifecycle.rules.limits-unstated#
- refused, exit 2; the request itself is refused
- declaring the expansion rule {name} of product {product}: an expansion rule measures use against a plan limit, and the request states neither plan_limit nor plan_limits; observed: the body states neither plan_limit nor plan_limits
- Fix: send plan_limit (the uses every plan allows), or plan_limits with plan_billing and plan_app_id (each billed plan's uses)
- Test: tests/growth/retention.test.mjs::an_expansion_rule_stating_no_limit_is_refused
echo.lifecycle.rules.limits-doubled#
- refused, exit 2; the request itself is refused
- declaring the expansion rule {name} of product {product}: an expansion rule measures use against one kind of limit, and the request states both plan_limit and plan_limits; observed: plan_limit is {limit} and plan_limits is {limits}
- Fix: send only one of plan_limit or plan_limits
- Test: tests/growth/retention.test.mjs::an_expansion_rule_stating_both_limits_is_refused
echo.lifecycle.rules.plan-limits-empty#
- refused, exit 2; the request itself is refused
- declaring the expansion rule {name} of product {product}: plan_limits gives each billed plan its uses in the window, and it names no plan; observed: plan_limits is {}
- Fix: send plan_limits as an object of plan (RevenueCat product id or Stripe price id) to uses, such as {"pro_monthly": 100}
- Test: tests/growth/retention.test.mjs::plan_limits_naming_no_plan_is_refused
echo.lifecycle.rules.cross-sell-same#
- refused, exit 2; the request itself is refused
- declaring the expansion rule {name} of product {product}: a cross-sell offers the adjacent feature to people who use this one, and cross_sell_event is usage_event itself; observed: usage_event and cross_sell_event are both {event}
- Fix: send cross_sell_event as the adjacent feature's event, or leave it out for an upgrade offer
- Test: tests/growth/retention.test.mjs::a_cross_sell_of_the_same_feature_is_refused
echo.lifecycle.triggers#
Declare, list and remove a product's lifecycle triggers, and enrol each new person who sent a trigger's event once into its sequence.
Started by `/api/analytics/lifecycle/triggers`, `/api/analytics/lifecycle/run`, `/api/cron/lifecycle-triggers`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.lifecycle.triggers.exit-enrols#
- refused, exit 2; the request itself is refused
- declaring the lifecycle trigger {name} of product {product}: an enrolment ends on its exit event, and {event} is also the event that enrols, so every enrolment would end as it starts; observed: event_name and exit_event_name are both {event}
- Fix: send exit_event_name as another event (the one that means the person no longer needs the sequence), or leave it out
- Test: tests/growth/lifecycle.test.mjs::an_exit_on_the_enrolling_event_is_refused
echo.lifecycle.triggers.trigger-named#
- refused, exit 1
- declaring the lifecycle trigger {name} of product {product}: a product names each trigger once, case aside, and it already has {held}; observed: lifecycle trigger {trigger} of product {product} is named {held}
- Fix: give the trigger another name, or remove {trigger} first: echo-cli lifecycle triggers remove --id {trigger}
- Test: tests/growth/lifecycle.test.mjs::a_trigger_named_twice_is_refused
echo.lifecycle.triggers.trigger-absent#
- not_found, exit 1
- {step} lifecycle trigger {trigger}: no lifecycle trigger has the id {trigger}; observed: lifecycle_triggers holds no row with id {trigger}
- Fix: name a trigger echo-cli lifecycle triggers list --product <id> lists
- Test: tests/growth/lifecycle.test.mjs::a_trigger_that_does_not_exist_is_not_found
echo.lifecycle.triggers.trigger-of-other-product#
- refused, exit 2; the request itself is refused
- declaring the {rule} {name} of product {product}: a rule enrols into a sequence of its own product, and lifecycle trigger {trigger} belongs to product {owner}; observed: lifecycle_triggers row {trigger} has product_id {owner}
- Fix: name a trigger of product {product}: echo-cli lifecycle triggers list --product {product}
- Test: tests/growth/lifecycle.test.mjs::a_rule_enrolling_through_another_product_is_refused
echo.lifecycle.triggers.trigger-rescues#
- refused, exit 2; the request itself is refused
- removing lifecycle trigger {trigger}: churn risk rules enrol the people they flag through it, and removing it would leave them nowhere to rescue into; observed: churn_risk_rules names it as rescue_trigger_id in {rules}
- Fix: remove those rules first: echo-cli churn risk remove --id <rule-id>
- Test: tests/growth/lifecycle.test.mjs::a_trigger_a_risk_rule_rescues_into_is_kept
echo.lifecycle.triggers.trigger-wins-back#
- refused, exit 2; the request itself is refused
- removing lifecycle trigger {trigger}: win-back rules enrol the people they find through it, and removing it would leave them nowhere to enrol; observed: winback_rules names it as trigger_id in {rules}
- Fix: remove those rules first: echo-cli lifecycle winback remove --rule <rule-id>
- Test: tests/growth/lifecycle.test.mjs::a_trigger_a_winback_rule_uses_is_kept
echo.lifecycle.triggers.trigger-on-entry#
- refused, exit 2; the request itself is refused
- removing lifecycle trigger {trigger}: it fires when a person enters a segment, and removing it would leave those segments firing nothing; observed: segment_entry_triggers binds it to the segments {segments}
- Fix: unbind it first: echo-cli segments unentry --segment <segment-id> --trigger {trigger}
- Test: tests/growth/lifecycle.test.mjs::a_trigger_bound_to_a_segment_is_kept
echo.lifecycle.triggers.user-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the email of the signed-in user {user} to enrol them: Supabase's auth admin API answered an error other than not found, so whether the user has an email is unknown; observed: auth.admin.getUserById({user}) answered HTTP {status} {code}: {said}
- Fix: run the triggers again once the Supabase project answers its auth admin API
- Test: tests/growth/lifecycle.test.mjs::a_user_supabase_cannot_read_is_retryable
echo.lifecycle.triggers.event-unnamed#
- refused, exit 1
- enrolling the person of event {event} ({name} of {app} at {at}): an enrolment names the person it enrols, and the stored event carries neither a user id nor an anonymous id; observed: event {event} has user_id and anonymous_id both null
- Fix: repair or remove the event row; the collectors that stored it must send an identifier with every event
- Test: tests/growth/lifecycle.test.mjs::an_event_naming_no_one_is_not_enrolled
echo.lifecycle.triggers.enrolment-unrecorded#
- refused, exit 1
- enrolling {subject} through lifecycle trigger {trigger} for {rule}: the enrolment was written without its row coming back, and no enrolment of {subject} in that trigger is held either, so nothing links the rule to the sequence; observed: lifecycle_enrollments holds no row with trigger_id {trigger} and subject {subject} after the upsert
- Fix: run the rule again; if the enrolment stays missing, check what refuses writes to lifecycle_enrollments (a row-level policy or a trigger in the database)
- Test: tests/growth/lifecycle.test.mjs::an_enrolment_neither_made_nor_found_is_named
echo.launch.playbooks#
Create a product's launches, copying an earlier launch's tasks with their dates moved, add dated tasks and mark each done with the asset it produces.
Started by `/api/analytics/launches`, `/api/analytics/launches/tasks`.
It also meets the causes of echo.http.access, echo.automation.caller, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.launch.playbooks.launch-absent#
- not_found, exit 1
- {step} the launch {launch}: no launch has the id {launch}; observed: launches holds no row with id {launch}
- Fix: name a launch echo-cli launch list --product <id> lists
- Test: tests/launch/playbooks.test.mjs::a_launch_that_does_not_exist_is_not_found
echo.launch.playbooks.task-absent#
- not_found, exit 1
- marking the launch task {task} done: no launch task has the id {task}; observed: launch_tasks holds no row with id {task}
- Fix: name a task echo-cli launch list --product <id> lists
- Test: tests/launch/playbooks.test.mjs::a_task_that_does_not_exist_is_not_found
echo.launch.playbooks.task-done#
- refused, exit 1
- marking the launch task {task} done: a task is done once, and "{title}" was done by {by} at {at}; observed: launch_tasks row {task} holds done_at {at}
- Fix: leave it done; echo-cli launch list --product <id> shows who did it and with which asset
- Test: tests/launch/playbooks.test.mjs::a_task_done_twice_is_refused
echo.launch.playbooks.asset-required#
- refused, exit 2; the request itself is refused
- marking the launch task {task} done: task "{title}" produces {asset}, and it is done only with that asset named; observed: asset_ref is absent
- Fix: name the asset: echo-cli launch done --task {task} --asset-ref <text> --by <name>
- Test: tests/launch/playbooks.test.mjs::a_task_done_without_its_asset_is_refused
echo.launch.playbooks.asset-unasked#
- refused, exit 2; the request itself is refused
- marking the launch task {task} done: task "{title}" produces no asset, so none is attached to it; observed: asset_ref is {sent}
- Fix: mark it done without --asset-ref
- Test: tests/launch/playbooks.test.mjs::an_asset_for_a_task_that_names_none_is_refused
echo.launch.listings#
Record a product's marketplace and directory listings, read what each says from its page or from Wikidata, and compare it with the fact sheet in force.
Started by `/api/analytics/listings`, `/api/analytics/listings/page`.
It also meets the causes of echo.http.access, echo.automation.caller, echo.http.body, echo.http.query, echo.products.lookup, echo.geo.facts, echo.alternatives, echo.direct.wikidata, echo.store.
echo.launch.listings.listing-absent#
- not_found, exit 1
- {step} the listing {listing}: no listing has the id {listing}; observed: product_listings holds no row with id {listing}
- Fix: name a listing echo-cli listings list --product <id> lists
- Test: tests/launch/listings.test.mjs::a_listing_that_does_not_exist_is_not_found
echo.launch.listings.listing-held#
- refused, exit 1
- recording the listing at {url}: a listing page is recorded once, and {url} is listing {listing}; observed: product_listings row {listing} has the url {url}
- Fix: change what it says instead: echo-cli listings update --id {listing} --field "<fact>=<text>"... --by <name>
- Test: tests/launch/listings.test.mjs::a_listing_page_recorded_twice_is_refused
echo.launch.listings.mapping-unset#
- refused, exit 2; the request itself is refused
- reading the listing {listing} from its {source}: the first read maps each fact to {maps}, and the request sends no {field} while the listing keeps none; observed: {field} is absent and product_listings row {listing} keeps no mapping
- Fix: send {field} as {shape}
- Test: tests/launch/listings.test.mjs::a_first_read_without_a_mapping_is_refused
echo.launch.listings.listing-wikidata#
- refused, exit 1
- reading the listing {listing} from its page: listing {listing} is a Wikidata entity, which is read from the entity's data rather than its rendered page; observed: its url is {url}
- Fix: read it from the entity: echo-cli listings read --id {listing} --language <code> --by <name>
- Test: tests/launch/listings.test.mjs::a_wikidata_listing_read_as_a_page_is_refused
echo.launch.listings.listing-not-wikidata#
- refused, exit 1
- reading the listing {listing} from Wikidata: only a listing whose page is a Wikidata entity, such as https://www.wikidata.org/wiki/Q42, is read from Wikidata; observed: its url is {url}
- Fix: read it from its page: echo-cli listings page --id {listing} --by <name>
- Test: tests/launch/listings.test.mjs::a_listing_elsewhere_read_from_wikidata_is_refused
echo.launch.listings.page-silent#
- not_found, exit 1
- reading the listing {listing} from its page: {url} says nothing in any part the mapping names ({parts}), so there is nothing to record; observed: every mapped part of the rendered page is empty
- Fix: map the facts to parts the page fills: echo-cli listings page --id {listing} --part "<fact>=<part>"... --by <name>
- Test: tests/launch/listings.test.mjs::a_page_saying_nothing_in_its_parts_is_named
echo.launch.listings.entity-silent#
- not_found, exit 1
- reading the listing {listing} from Wikidata: Wikidata entity {entity} states none of {properties}, so there is nothing to record; observed: the entity holds no standing statement of {properties}
- Fix: map the facts to properties the entity states: echo-cli listings read --id {listing} --language <code> --property "<fact>=P<n>"... --by <name>
- Test: tests/launch/listings.test.mjs::an_entity_stating_none_of_the_properties_is_named
echo.launch.listings.label-absent#
- refused, exit 1
- reading the listing {listing} from Wikidata: an item value is shown by its label in the language asked, and Wikidata item {item} has no label in {language}; observed: the labels of {item} hold no {language}
- Fix: read the listing in a language its values are labelled in: echo-cli listings read --id {listing} --language <code> --by <name>
- Test: tests/launch/listings.test.mjs::an_item_without_a_label_in_the_language_is_named
echo.product.checklists#
Define and remove a product's activation checklists and read which of their steps a subject has done.
Started by `/api/analytics/checklists`, `/api/analytics/checklists/progress`, `/api/public/checklists/progress`, `/api/public/checklists/subject`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.analytics.identity, echo.store.
echo.product.checklists.checklist-named#
- refused, exit 1
- adding the checklist {name} to product {product}: a product names each checklist once, whatever the case, and it already has {held} as checklist {checklist}; observed: activation_checklists row {checklist} of product {product} is named {held}
- Fix: name the new checklist otherwise, or remove checklist {checklist} first: echo-cli activation checklists remove --id {checklist}
- Test: tests/product/checklists.test.mjs::a_checklist_name_a_product_uses_is_refused
echo.product.checklists.checklist-absent#
- not_found, exit 1
- {step} the checklist {checklist}: no activation checklist has the id {checklist}; observed: activation_checklists holds no row with id {checklist}
- Fix: name a checklist echo-cli activation checklists list --product <id> lists
- Test: tests/product/checklists.test.mjs::a_checklist_that_does_not_exist_is_not_found
echo.product.hypotheses#
Queue a product's growth hypotheses, link each once to the experiment that tests it, declare the metric that counts its reach and read the queue by ICE or RICE.
Started by `/api/analytics/hypotheses`.
It also meets the causes of echo.http.access, echo.automation.caller, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.product.hypotheses.hypothesis-absent#
- not_found, exit 1
- {step} the hypothesis {hypothesis}: no growth hypothesis has the id {hypothesis}; observed: growth_hypotheses holds no row with id {hypothesis}
- Fix: name a hypothesis echo-cli hypotheses list --product <id> lists
- Test: tests/product/hypotheses.test.mjs::a_hypothesis_that_does_not_exist_is_not_found
echo.product.hypotheses.hypothesis-linked#
- refused, exit 1
- linking the hypothesis {hypothesis} to the experiment {experiment}: a hypothesis is linked once to the experiment that tests it, and hypothesis {hypothesis} is tested by experiment {held} since {linked}; observed: growth_hypotheses row {hypothesis} holds experiment_id {held}
- Fix: queue a new hypothesis for experiment {experiment}: echo-cli hypotheses add --product <id> --statement <text> --impact <n> --confidence <n> --ease <n> --by <name>
- Test: tests/product/hypotheses.test.mjs::a_hypothesis_linked_twice_is_refused
echo.product.hypotheses.experiment-absent#
- not_found, exit 1
- linking the hypothesis {hypothesis} to the experiment {experiment}: no adaptive experiment has the id {experiment}; observed: adaptive_experiments holds no row with id {experiment}
- Fix: name an experiment echo-cli experiments lists
- Test: tests/product/hypotheses.test.mjs::an_experiment_that_does_not_exist_is_not_found
echo.product.hypotheses.reach-metric-absent#
- not_found, exit 1
- declaring the reach of the hypothesis {hypothesis}: reach is counted by a metric of the hypothesis's own product, and product {product} has no metric {metric}; observed: analytics_metrics holds no row with id {metric} of product {product}
- Fix: name a metric echo-cli tracking metrics list --product {product} lists
- Test: tests/product/hypotheses.test.mjs::a_reach_metric_of_another_product_is_not_found
echo.product.hypotheses.reach-metric-gone#
- not_found, exit 1
- counting the reach of the hypothesis {hypothesis} of product {product}: hypothesis {hypothesis} measures its reach with metric {metric}, which product {product} no longer holds; observed: analytics_metrics holds no row with id {metric}
- Fix: declare its reach with a metric the product holds: echo-cli hypotheses reach --id {hypothesis} --metric <metric-id> --days <days> --by <name>
- Test: tests/product/hypotheses.test.mjs::a_reach_whose_metric_was_removed_is_named
echo.product.roadmap#
Write a product's roadmap items, publish, withdraw or ship them, and count each signed-in user's vote for a published item once.
Started by `/api/analytics/roadmap`, `/api/public/roadmap/[product]`, `/api/public/roadmap/votes`.
It also meets the causes of echo.http.access, echo.automation.caller, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.product.roadmap.item-absent#
- not_found, exit 1
- {step} the roadmap item {item}: no roadmap item has the id {item}; observed: product_roadmap_items holds no row with id {item}
- Fix: name an item echo-cli roadmap votes --product <id> lists
- Test: tests/product/roadmap.test.mjs::a_roadmap_item_that_does_not_exist_is_not_found
echo.product.roadmap.item-unpublished#
- not_found, exit 1
- voting for the roadmap item {item}: a user votes only for an item the roadmap shows, and no published roadmap item has the id {item}; observed: product_roadmap_items holds no published row with id {item}
- Fix: vote for an item the product's public roadmap shows (GET /api/public/roadmap/<product>)
- Test: tests/product/roadmap.test.mjs::a_vote_for_an_unpublished_item_is_not_found
echo.product.roadmap.vote-cast#
- refused, exit 1
- voting for the roadmap item {item}: each user votes once per item, and you already voted for "{title}" at {at}; observed: roadmap_votes holds the vote of this user for item {item}
- Fix: leave the vote as it is; it is counted already
- Test: tests/product/roadmap.test.mjs::a_second_vote_by_the_same_user_is_refused
echo.product.surveys#
Publish a product's micro-survey versions, show the newest to the signed-in users it asks, store each user's one answer and count the answers.
Started by `/api/analytics/surveys`, `/api/public/surveys`.
It also meets the causes of echo.http.access, echo.automation.caller, echo.http.body, echo.http.query, echo.products.lookup, echo.usage-conditions, echo.store.
echo.product.surveys.choices-too-few#
- refused, exit 2; the request itself is refused
- publishing the survey {name}: a version offers no choices (null, a free answer) or at least two different ones, and choices offers {offered}; observed: choices is {choices}
- Fix: send choices as at least two different answers, or as null for a free answer
- Test: tests/product/surveys.test.mjs::a_survey_offering_one_choice_is_refused
echo.product.surveys.survey-name-absent#
- not_found, exit 1
- {step} the survey {name} of product {product}: product {product} has no survey named {name}; observed: product_surveys holds no version named {name} of product {product}
- Fix: name a survey echo-cli surveys list --product {product} lists
- Test: tests/product/surveys.test.mjs::a_survey_name_a_product_does_not_use_is_not_found
echo.product.surveys.version-absent#
- not_found, exit 1
- {step} the survey version {survey}: no survey version has the id {survey}; observed: product_surveys holds no row with id {survey}
- Fix: answer the version GET /api/public/surveys?product_id=<id>&name=<name> shows
- Test: tests/product/surveys.test.mjs::a_survey_version_that_does_not_exist_is_not_found
echo.product.surveys.answer-not-a-choice#
- refused, exit 2; the request itself is refused
- answering the survey version {survey}: version {survey} offers choices, and an answer is one of them: {choices}; observed: answer is {answer}
- Fix: send answer as one of {choices}
- Test: tests/product/surveys.test.mjs::an_answer_outside_the_choices_is_refused
echo.product.surveys.survey-answered#
- refused, exit 1
- answering the survey version {survey}: each user answers a version once, and you answered it at {at}; observed: product_survey_answers holds your answer to version {survey}
- Fix: leave the answer as it is; it is counted already
- Test: tests/product/surveys.test.mjs::a_second_answer_by_the_same_user_is_refused
echo.product.surveys.survey-not-asking#
- refused, exit 1
- answering the survey version {survey}: version {survey} asks only the users whose events meet its usage condition, and what you did does not meet it; observed: your stored events do not meet the usage condition of version {survey}
- Fix: answer only a version GET /api/public/surveys shows you; it answers not_asked: condition for this one
- Test: tests/product/surveys.test.mjs::an_answer_from_a_user_the_version_does_not_ask_is_refused
echo.pricing.wtp#
Create a product's willingness-to-pay survey, store each signed-in user's answer once and read the survey from the stored answers.
Started by `/api/analytics/wtp`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.pricing.wtp.answer-shape#
- refused, exit 2; the request itself is refused
- reading the answer to pricing survey {survey}: a {method} answer is {shape}, and this one is not; observed: {issues}
- Fix: send answers as {shape}
- Test: tests/pricing/wtp.test.mjs::an_answer_of_another_shape_is_refused
echo.pricing.wtp.label-undeclared#
- refused, exit 2; the request itself is refused
- reading the answer to pricing survey {survey}: answers.{field} is one of the purchase labels the survey declares: {labels}; observed: answers.{field} is {label}
- Fix: send answers.{field} as one of {labels}
- Test: tests/pricing/wtp.test.mjs::a_purchase_label_the_survey_does_not_declare_is_refused
echo.pricing.wtp.ladder-unanswered#
- refused, exit 2; the request itself is refused
- reading the answer to Gabor-Granger survey {survey}: an answer says buy or not at every price of the ladder, {ladder}, once each; observed: the answer names the prices {prices}
- Fix: send one { price, buy } for each of {ladder}
- Test: tests/pricing/wtp.test.mjs::an_answer_skipping_a_ladder_price_is_refused
echo.pricing.wtp.scale-foreign#
- refused, exit 2; the request itself is refused
- creating a pricing survey of product {product}: purchase_scale belongs to van_westendorp only: Newton-Miller-Smith asks purchase intent at the respondent's own cheap and expensive prices, and the survey is {method}; observed: the body sends purchase_scale with method {method}
- Fix: leave purchase_scale out, or send method van_westendorp
- Test: tests/pricing/wtp.test.mjs::a_purchase_scale_on_gabor_granger_is_refused
echo.pricing.wtp.scale-empty#
- refused, exit 2; the request itself is refused
- creating a pricing survey of product {product}: a purchase scale holds at least one label, each with the purchase probability it stands for; observed: purchase_scale is an empty object
- Fix: send purchase_scale as { "<label>": <probability from 0 through 1>, … }, or leave it out
- Test: tests/pricing/wtp.test.mjs::an_empty_purchase_scale_is_refused
echo.pricing.wtp.label-blank#
- refused, exit 2; the request itself is refused
- creating a pricing survey of product {product}: each label of a purchase scale is what a respondent answers, and purchase_scale names a blank one; observed: purchase_scale holds the label {label}
- Fix: name every label of purchase_scale with the words a respondent picks
- Test: tests/pricing/wtp.test.mjs::a_blank_purchase_label_is_refused
echo.pricing.wtp.ladder-short#
- refused, exit 2; the request itself is refused
- creating a Gabor-Granger survey of product {product}: a Gabor-Granger survey asks about at least two prices; observed: ladder holds {count}
- Fix: send ladder as two or more prices above 0
- Test: tests/pricing/wtp.test.mjs::a_ladder_of_one_price_is_refused
echo.pricing.wtp.ladder-repeated#
- refused, exit 2; the request itself is refused
- creating a Gabor-Granger survey of product {product}: each rung of a ladder is a different price, and it names {price} more than once; observed: ladder is {ladder}
- Fix: send each price of the ladder once
- Test: tests/pricing/wtp.test.mjs::a_ladder_naming_a_price_twice_is_refused
echo.pricing.wtp.ladder-foreign#
- refused, exit 2; the request itself is refused
- creating a Van Westendorp survey of product {product}: ladder belongs to gabor_granger only; van_westendorp respondents name their own prices; observed: the body sends ladder with method van_westendorp
- Fix: leave ladder out, or send method gabor_granger
- Test: tests/pricing/wtp.test.mjs::a_ladder_on_van_westendorp_is_refused
echo.pricing.wtp.ladder-lost#
- refused, exit 1
- reading Gabor-Granger survey {survey}: a Gabor-Granger survey keeps the ladder it was created with, and survey {survey} holds none; observed: wtp_surveys row {survey} has method gabor_granger and no ladder
- Fix: create the survey again with its ladder: echo-cli pricing wtp create --method gabor_granger --ladder <price,...> …
- Test: tests/pricing/wtp.test.mjs::a_gabor_granger_survey_without_its_ladder_is_named
echo.pricing.wtp.survey-absent#
- not_found, exit 1
- reading the pricing survey {survey}: no pricing survey has the id {survey}; observed: wtp_surveys holds no row with id {survey}
- Fix: name a survey echo-cli pricing wtp list --product <id> lists
- Test: tests/pricing/wtp.test.mjs::a_survey_that_does_not_exist_is_not_found
echo.pricing.wtp.answered#
- refused, exit 1
- storing your answer to pricing survey {survey}: a signed-in user answers a survey once, and you answered it at {answered}; observed: wtp_answers holds your answer to {survey} of {answered}
- Fix: keep the answer you gave
- Test: tests/pricing/wtp.test.mjs::a_second_answer_is_refused
echo.pricing.wtp.narrowed-twice#
- refused, exit 2; the request itself is refused
- reading pricing survey {survey}: segment and profile both narrow the answers read; a reading names the respondents' own segment or the ICP profile that describes them, not both; observed: the request names segment {segment} and profile {profile}
- Fix: send segment or profile, not both
- Test: tests/pricing/wtp.test.mjs::a_reading_by_segment_and_profile_is_refused
echo.pricing.wtp.too-few-answers#
- refused, exit 1
- reading pricing survey {survey} for {scope}: a {method} reading of this survey needs at least {minimum} answers, and {scope} has {held}; observed: wtp_answers holds {held} for {scope}
- Fix: read it once more respondents answered, or read all segments: echo-cli pricing wtp read --survey {survey}
- Test: tests/pricing/wtp.test.mjs::a_survey_below_its_minimum_is_not_read
echo.pricing.wtp.stored-label-undeclared#
- refused, exit 1
- reading the purchase intent of a pricing survey: a stored answer names a purchase label the survey's scale does not declare, so it cannot be calibrated; observed: the answer names {label}; the scale declares {labels}
- Fix: create the survey again with a scale declaring every label its respondents give
- Test: tests/pricing/wtp.test.mjs::a_stored_label_outside_the_scale_is_named
echo.pricing.wtp.method-unread#
- refused, exit 1
- reading pricing survey {survey}: survey {survey} stores the method {method}, and this Echo reads {methods}; observed: wtp_surveys row {survey} has method {method}
- Fix: run the Echo revision that wrote the survey, or create it again with one of {methods}
- Test: tests/pricing/wtp.test.mjs::a_survey_of_a_method_echo_does_not_read_is_named
echo.pricing.plans#
Start and stop a product's plan test, assign each signed-in user one arm once and read each arm's conversion and revenue.
Started by `/api/analytics/plans`, `/api/public/plans`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.pricing.plans.arms-short#
- refused, exit 2; the request itself is refused
- starting a plan test of product {product}: a plan test compares at least two arms; observed: arms holds {count}
- Fix: send arms as two or more { key, plans, weight }
- Test: tests/pricing/plans.test.mjs::a_test_of_one_arm_is_refused
echo.pricing.plans.arm-plans-empty#
- refused, exit 2; the request itself is refused
- starting a plan test of product {product}: every arm offers at least one plan, and arms.{index}.plans holds none; observed: arms.{index}.plans is an empty list
- Fix: send arms.{index}.plans as one or more { name, stripe_price_id }
- Test: tests/pricing/plans.test.mjs::an_arm_without_a_plan_is_refused
echo.pricing.plans.arm-repeated#
- refused, exit 2; the request itself is refused
- starting a plan test of product {product}: each arm has its own key, and arms names {key} more than once; observed: arms {indexes} are all keyed {key}
- Fix: key every arm differently
- Test: tests/pricing/plans.test.mjs::two_arms_of_one_key_are_refused
echo.pricing.plans.test-absent#
- not_found, exit 1
- {step} the plan test {test}: no plan test has the id {test}; observed: plan_tests holds no row with id {test}
- Fix: name a test echo-cli pricing plans list --product <id> lists
- Test: tests/pricing/plans.test.mjs::a_test_that_does_not_exist_is_not_found
echo.pricing.plans.test-stopped#
- refused, exit 1
- {step} the plan test {test}: plan test {test} stopped at {stopped}, and a stopped test assigns no one; observed: plan_tests row {test} has stopped_at {stopped}
- Fix: read its results instead: echo-cli pricing plans results --test {test}
- Test: tests/pricing/plans.test.mjs::a_stopped_test_is_refused
echo.pricing.plans.arm-lost#
- refused, exit 1
- showing {subject} the plans of plan test {test}: {subject} was assigned arm {arm}, which plan test {test} no longer holds; observed: plan_tests row {test} holds the arms {arms}
- Fix: start a new test for the arms to compare now; a running test keeps the arms it started with
- Test: tests/pricing/plans.test.mjs::an_assignment_to_an_arm_the_test_lost_is_named
echo.pricing.plans.payment-unread#
- refused, exit 1
- reading the results of plan test {test}: a Stripe payment event of {subject} holds revenue or a refund that is not a number; observed: the event at {at} holds revenue {revenue} and refund {refund}
- Fix: repair the event the Stripe webhook stored, then read the results again
- Test: tests/pricing/plans.test.mjs::a_payment_whose_amounts_are_not_numbers_is_named
echo.pricing.countries#
Set and remove the price a country is charged for a Stripe price, from a purchasing-power source, and choose the price a checkout charges.
Started by `/api/analytics/prices`, `/api/public/prices`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.store.
echo.pricing.countries.country-unstated#
- refused, exit 2; the request itself is refused
- choosing the price a checkout of {price} charges: the price depends on the visitor's country, and the request names none: no country parameter, and no x-vercel-ip-country header from Vercel's edge; observed: the request carries neither country nor x-vercel-ip-country
- Fix: send ?country=<ISO 3166-1 alpha-2 code>, or call through Vercel's edge
- Test: tests/pricing/countries.test.mjs::a_checkout_without_a_country_is_refused
echo.pricing.countries.base-price-unread#
- not_found, exit 1
- setting the {country} price of {price}: Stripe has no price {price} this account can read; observed: Stripe answered: {reason}
- Fix: name a price of the Stripe account Echo holds, as the Stripe dashboard lists it
- Test: tests/pricing/countries.test.mjs::a_price_stripe_does_not_hold_is_refused
echo.pricing.countries.price-refused#
- infra_down, exit 69; trying again unchanged can help
- creating the {country} price of {price} in Stripe: Stripe refused to create the price; observed: Stripe answered: {reason}
- Fix: set the country price again once Stripe takes it: echo-cli pricing countries set --price {price} --country {country} …
- Test: tests/pricing/countries.test.mjs::a_price_stripe_refuses_is_named
echo.pricing.countries.archive-refused#
- infra_down, exit 69; trying again unchanged can help
- archiving the Stripe price {stripe_price}: Stripe refused to archive the price the country price replaced or dropped; observed: Stripe answered: {reason}
- Fix: archive price {stripe_price} in the Stripe dashboard; the country price is already changed
- Test: tests/pricing/countries.test.mjs::an_archive_stripe_refuses_is_named
echo.pricing.countries.country-price-absent#
- not_found, exit 1
- removing the {country} price of {price}: {price} has no price for {country}; observed: country_prices holds no row for {price} and {country}
- Fix: name a country echo-cli pricing countries list --price {price} lists
- Test: tests/pricing/countries.test.mjs::a_country_without_a_price_is_not_removed
echo.promotion.promos#
Set a Stripe price's unit cost and margin floor, create a promo code in Stripe only when its discount keeps the floor, read how often it was redeemed and turn it off.
Started by `/api/analytics/promos`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.promotion.promos.floor-unreachable#
- refused, exit 2; the request itself is refused
- setting the margin floor of price {price}: a margin floor is a percent of the discounted price below 100, and floor_percent is {floor}; observed: floor_percent is {floor}
- Fix: send floor_percent below 100
- Test: tests/promotion/promos.test.mjs::a_floor_of_100_percent_or_more_is_refused
echo.promotion.promos.discount-unstated#
- refused, exit 2; the request itself is refused
- creating the promo code {code}: a code discounts by exactly one of percent_off (a percent of the price) and amount_off (minor units of its currency), and the body sends {sent}; observed: the body sends {sent}
- Fix: send percent_off or amount_off, not both
- Test: tests/promotion/promos.test.mjs::a_code_without_exactly_one_discount_is_refused
echo.promotion.promos.expiry-past#
- refused, exit 2; the request itself is refused
- creating the promo code {code}: a code expires in the future, and expires_at is {expires}; observed: expires_at is {expires}, at or before now
- Fix: send expires_at as an ISO time in the future, or leave it out
- Test: tests/promotion/promos.test.mjs::a_code_expiring_in_the_past_is_refused
echo.promotion.promos.price-unread#
- not_found, exit 1
- {step} price {price}: Stripe has no price {price} this account can read; observed: Stripe answered: {reason}
- Fix: name a price of the Stripe account Echo holds, as the Stripe dashboard lists it
- Test: tests/promotion/promos.test.mjs::a_price_stripe_does_not_hold_is_refused
echo.promotion.promos.floor-unset#
- refused, exit 1
- creating the promo code {code}: a code is created only once its price has a margin floor, and price {price} has none; observed: promo_margin_floors holds no row for {price}
- Fix: set its unit cost and floor first: echo-cli promos floor --price {price} …
- Test: tests/promotion/promos.test.mjs::a_code_of_a_price_without_a_floor_is_refused
echo.promotion.promos.code-taken#
- refused, exit 1
- creating the promo code {code}: customers type each code to redeem it, so a code is created once, and {code} exists as promo {held}; observed: promo_codes row {held} holds {code}
- Fix: name the new code differently
- Test: tests/promotion/promos.test.mjs::a_code_created_twice_is_refused
echo.promotion.promos.price-unfixed#
- refused, exit 1
- measuring the margin a code leaves on price {price}: a margin is measured on a fixed unit amount, and price {price} has none (it is metered or tiered); observed: Stripe price {price} has no unit_amount
- Fix: create the code on a price with a fixed amount
- Test: tests/promotion/promos.test.mjs::a_code_on_a_price_without_a_fixed_amount_is_refused
echo.promotion.promos.discount-whole#
- refused, exit 1
- measuring the margin a code leaves on price {price}: the discount leaves the price at {left} {currency}, which is no sale; observed: the discounted price is {left} {currency}; the margin floor is {floor}%
- Fix: send a smaller discount
- Test: tests/promotion/promos.test.mjs::a_discount_of_the_whole_price_is_refused
echo.promotion.promos.margin-below-floor#
- refused, exit 1
- measuring the margin a code leaves on price {price}: the code would leave a {margin} margin on price {price}, below its margin floor of {floor}%; observed: unit cost {cost}, discounted price {left} {currency}
- Fix: send a smaller discount, or lower the floor: echo-cli promos floor --price {price} …
- Test: tests/promotion/promos.test.mjs::a_code_below_the_margin_floor_is_refused
echo.promotion.promos.stripe-refused#
- infra_down, exit 69; trying again unchanged can help
- {step} for the promo code {code}: Stripe refused the call; observed: Stripe answered: {reason}
- Fix: create the code again once Stripe takes it; nothing was kept in Echo
- Test: tests/promotion/promos.test.mjs::a_coupon_stripe_refuses_is_named
echo.promotion.promos.promo-absent#
- not_found, exit 1
- turning off the promo code {promo}: no promo code has the id {promo}; observed: promo_codes holds no row with id {promo}
- Fix: name a code echo-cli promos list shows
- Test: tests/promotion/promos.test.mjs::a_code_that_does_not_exist_is_not_turned_off
echo.promotion.promos.promo-off#
- refused, exit 1
- turning off the promo code {code}: the code {code} is off already; observed: turned off by {by} at {at}
- Fix: leave it off; a new code is made with echo-cli promos create
- Test: tests/promotion/promos.test.mjs::a_code_turned_off_twice_is_refused
echo.promotion.promos.standing-unread#
- infra_down, exit 69; trying again unchanged can help
- reading from Stripe how often the promotion code {stripe} ({code}) was redeemed: Stripe refused or did not answer the read; observed: Stripe answered: {reason}
- Fix: ask again once Stripe answers
- Test: tests/promotion/promos.test.mjs::a_standing_stripe_does_not_answer_is_named
echo.promotion.promos.turn-off-refused#
- infra_down, exit 69; trying again unchanged can help
- turning off the Stripe promotion code {stripe} of {code}{holder}: Stripe refused or did not answer the call turning it off; observed: Stripe answered: {reason}
- Fix: turn the code off again once Stripe answers: echo-cli promos deactivate; codes turned off already stay off
- Test: tests/promotion/promos.test.mjs::a_code_stripe_keeps_on_is_named
echo.promotion.flags#
Declare a product's feature flags with their rollouts or experiment arms, and decide each flag once per subject.
Started by `/api/analytics/flags`, `/api/public/flags`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.promotion.flags.flag-absent#
- not_found, exit 1
- reading the flag {key} of product {product}: product {product} declares no flag {key}; observed: feature_flags holds no row for {product} and {key}
- Fix: declare it first: echo-cli flags set --product {product} --key {key} …
- Test: tests/promotion/flags.test.mjs::a_flag_never_declared_is_not_found
echo.promotion.flags.arms-without-experiment#
- refused, exit 2; the request itself is refused
- declaring the flag {key} of product {product}: on_arms names arms of an experiment, and the body names no experiment_id; observed: on_arms is {arms}; experiment_id is absent
- Fix: send experiment_id beside on_arms, or leave on_arms out
- Test: tests/promotion/flags.test.mjs::arms_without_their_experiment_are_refused
echo.promotion.flags.arms-none#
- refused, exit 2; the request itself is refused
- declaring the flag {key} of product {product}: a flag following experiment {experiment} is on in at least one of its arms, and on_arms names none; observed: on_arms is absent or empty
- Fix: send on_arms as the experiment's variant keys the flag is on in
- Test: tests/promotion/flags.test.mjs::an_experiment_flag_without_arms_is_refused
echo.promotion.flags.experiment-absent#
- not_found, exit 1
- declaring the flag {key} of product {product}: no adaptive experiment {experiment} has variants; observed: adaptive_variants holds no row of experiment {experiment}
- Fix: name an experiment echo-cli experiments lists
- Test: tests/promotion/flags.test.mjs::a_flag_following_an_experiment_that_does_not_exist_is_refused
echo.promotion.flags.arm-unknown#
- refused, exit 2; the request itself is refused
- declaring the flag {key} of product {product}: experiment {experiment} has no arm {unknown}; its arms are {arms}; observed: on_arms names {unknown}
- Fix: send on_arms as some of {arms}
- Test: tests/promotion/flags.test.mjs::an_arm_the_experiment_lacks_is_refused
echo.promotion.flags.subject-unassigned#
- refused, exit 1
- deciding the flag {key} for {subject}: flag {key} follows the arms of experiment {experiment}, and {subject} has no arm in it yet; observed: adaptive_assignments holds no row for {subject} in {experiment}
- Fix: assign the subject through /api/experiments/assign first, then read the flag
- Test: tests/promotion/flags.test.mjs::a_subject_without_an_arm_is_not_decided
echo.promotion.referrals#
Set a product's referral programme, give each user a code, record who was referred and qualify referrals that sent the programme's event.
Started by `/api/analytics/referrals`, `/api/public/referrals`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.analytics.identity, echo.store.
echo.promotion.referrals.programme-absent#
- not_found, exit 1
- {step} referrals of product {product}: product {product} runs no referral programme; observed: referral_programmes holds no row for {product}
- Fix: start one: echo-cli referrals set --product {product} --event <event-name> --reward <text> --by <name>
- Test: tests/promotion/referrals.test.mjs::a_product_without_a_programme_is_refused
echo.promotion.referrals.code-absent#
- not_found, exit 1
- recording a referral by the code {code}: no referral code {code} exists; observed: referral_codes holds no row with code {code}
- Fix: arrive with the code from the referrer's own link
- Test: tests/promotion/referrals.test.mjs::a_code_that_does_not_exist_is_not_found
echo.promotion.referrals.already-referred#
- refused, exit 1
- recording a referral by the code {code}: a user is referred to a product once, and you were referred to it at {recorded}; observed: referrals holds your referral of {recorded}
- Fix: keep the referral recorded first
- Test: tests/promotion/referrals.test.mjs::a_second_referral_is_refused
echo.promotion.referrals.self-referral#
- refused, exit 1
- recording a referral by the code {code}: the referral resolves to the referrer's own identity: both are known as {shared}; observed: the identity edges link you and the referrer through {shared}
- Fix: refer someone else; a person does not refer themselves
- Test: tests/promotion/referrals.test.mjs::a_referral_to_oneself_is_refused
echo.promotion.affiliates#
Set a web source's affiliate programme, add its affiliates, and read and settle what each earned.
Started by `/api/analytics/affiliates`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.store.
echo.promotion.affiliates.parameter-held#
- refused, exit 1
- setting the affiliate programme of {app}: {app}'s affiliates are attributed by {held}; their links would stop counting under {parameter}; observed: affiliate_programmes row {app} holds {held}, and affiliates holds rows of {app}
- Fix: keep the parameter {held}
- Test: tests/promotion/affiliates.test.mjs::a_parameter_changed_under_affiliates_is_refused
echo.promotion.affiliates.programme-absent#
- not_found, exit 1
- adding an affiliate of {app}: {app} has no affiliate programme; observed: affiliate_programmes holds no row for {app}
- Fix: set one: echo-cli affiliates programme --app {app} --parameter <name> --by <name>
- Test: tests/promotion/affiliates.test.mjs::an_affiliate_of_a_source_without_a_programme_is_refused
echo.promotion.affiliates.affiliate-held#
- refused, exit 1
- adding an affiliate of {app}: a code names one affiliate of a source, and {app} has affiliate {name} with code {code}, {held}; observed: affiliates row {held} holds {code}
- Fix: give the new affiliate another code
- Test: tests/promotion/affiliates.test.mjs::a_code_given_twice_is_refused
echo.promotion.affiliates.affiliate-absent#
- not_found, exit 1
- reading what affiliate {affiliate} earned: no affiliate has the id {affiliate}; observed: affiliates holds no row with id {affiliate}
- Fix: name an affiliate echo-cli affiliates list --app <source> shows
- Test: tests/promotion/affiliates.test.mjs::an_affiliate_that_does_not_exist_is_not_found
echo.promotion.affiliates.period-reversed#
- refused, exit 2; the request itself is refused
- reading what an affiliate earned from {start} to {end}: a period runs from period_start to the later period_end, and period_end does not come after period_start; observed: period_start {start}, period_end {end}
- Fix: send a period_end later than period_start
- Test: tests/promotion/affiliates.test.mjs::a_period_that_ends_before_it_starts_is_refused
echo.promotion.affiliates.period-settled#
- refused, exit 1
- settling affiliate {code} for {start} to {end}: a period overlapping one already settled would pay its revenue twice; observed: settlement {held} covers {held_start} to {held_end}
- Fix: settle a period starting at or after {held_end}, or ending at or before {held_start}
- Test: tests/promotion/affiliates.test.mjs::an_overlapping_settlement_is_refused
echo.analytics.schemas#
Declare, list and remove the events each analytics source sends and the properties each must carry.
Started by `/api/analytics/schemas`, `/api/analytics/schemas/[id]`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.store.
echo.analytics.schemas.property-repeated#
- refused, exit 2; the request itself is refused
- declaring the event {event} of the source {app}: each property an event must carry is named once, and {property} is named more than once; observed: required_properties names {property} more than once
- Fix: send required_properties naming {property} once
- Test: tests/analytics/schemas.test.mjs::a_property_named_twice_is_refused
echo.analytics.schemas.schema-declared#
- refused, exit 1
- declaring the event {event} of the source {app}: a source declares each event once, and {app} already declares {event}; observed: schema {schema} declares {event} for {app}
- Fix: remove schema {schema} (echo-cli tracking schemas remove {schema}) and declare the event again
- Test: tests/analytics/schemas.test.mjs::an_event_declared_twice_is_refused
echo.analytics.schemas.schema-absent#
- not_found, exit 1
- removing the event schema {schema}: no event schema has the id {schema}; observed: analytics_event_schemas holds no row with id {schema}
- Fix: name a schema echo-cli tracking schemas list lists
- Test: tests/analytics/schemas.test.mjs::a_schema_that_does_not_exist_is_not_found
echo.analytics.quality#
Hold the events each source sent in a window to its declared schemas, and name every source whose volume fell below its own history.
Started by `/api/analytics/quality`, `/api/analytics/quality/volume`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.band, echo.store.
echo.analytics.metrics#
Define and remove a product's metrics, value its metric tree over a window, and name every metric outside the band of its earlier windows.
Started by `/api/analytics/metrics`, `/api/analytics/metrics/[id]`, `/api/analytics/metrics/anomalies`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.analytics.band, echo.store.
echo.analytics.metrics.metric-named#
- refused, exit 1
- defining the metric {name} of product {product}: a product names each metric once, whatever its case, and product {product} already has {held}; observed: metric {metric} is named {held}
- Fix: define the metric under another name, or remove metric {metric} (echo-cli tracking metrics remove {metric}) first
- Test: tests/analytics/metrics.test.mjs::a_metric_named_twice_is_refused
echo.analytics.metrics.parent-absent#
- not_found, exit 1
- defining the metric {name} of product {product}: a metric feeds a parent of the same product, and product {product} has no metric {parent}; observed: parent_id is {parent}
- Fix: send parent_id as the id of a metric of the product: name a metric echo-cli tracking metrics list --product {product} lists
- Test: tests/analytics/metrics.test.mjs::a_parent_of_another_product_is_not_found
echo.analytics.metrics.north-star-held#
- refused, exit 1
- defining the metric {name} of product {product}: the one metric without a parent is the North Star, and product {product} already has {north}; observed: the body names no parent_id
- Fix: send parent_id naming the metric the new one feeds, such as {northId} ({north})
- Test: tests/analytics/metrics.test.mjs::a_second_north_star_is_refused
echo.analytics.metrics.value-property-unpaired#
- refused, exit 2; the request itself is refused
- defining the metric {name} of product {product}: value_property names the property a sum adds, so counts sum takes one and every other count takes none; observed: counts is {counts} and value_property is {property}
- Fix: send counts sum with value_property, or another count without it
- Test: tests/analytics/metrics.test.mjs::a_value_property_without_a_sum_is_refused
echo.analytics.metrics.metric-fed#
- refused, exit 1
- removing the metric {metric}: a metric that feeds no other may be removed, and {metric} is fed by others; observed: fed by {children}
- Fix: remove {children} first, then metric {metric}
- Test: tests/analytics/metrics.test.mjs::a_metric_other_metrics_feed_is_kept
echo.analytics.metrics.metric-counted#
- refused, exit 1
- removing the metric {metric}: a hypothesis measures its reach with metric {metric}, or a key result counts it, and either would stop being read once it is gone; observed: counted by {counters}
- Fix: declare those hypotheses' reach with another metric (echo-cli hypotheses reach --id <hypothesis-id> --metric <metric-id> --days <days> --by <name>) and remove those key results, then remove metric {metric}
- Test: tests/analytics/metrics.test.mjs::a_metric_a_hypothesis_or_key_result_counts_is_kept
echo.analytics.metrics.metric-absent#
- not_found, exit 1
- removing the metric {metric}: no metric has the id {metric}; observed: analytics_metrics holds no row with id {metric}
- Fix: name a metric echo-cli tracking metrics list --product <id> lists
- Test: tests/analytics/metrics.test.mjs::a_metric_that_does_not_exist_is_not_found
echo.analytics.metrics.north-star-absent#
- not_found, exit 1
- valuing the metric tree of product {product}: a tree grows from its North Star, the one metric without a parent, and product {product} has none; observed: product {product} has {count}
- Fix: define the North Star: echo-cli tracking metrics define --product {product} without --parent
- Test: tests/analytics/metrics.test.mjs::a_product_without_a_north_star_has_no_tree
echo.analytics.metrics.metrics-none#
- not_found, exit 1
- {step} the metrics of product {product}: product {product} defines no metric, so there is nothing to value; observed: analytics_metrics holds no row of product {product}
- Fix: define the metrics first: echo-cli tracking metrics define --product {product}
- Test: tests/analytics/metrics.test.mjs::a_product_without_metrics_is_named
echo.analytics.metric-alerts#
Watch a product's metrics on a schedule and raise a pending action for the user it names when one leaves its band.
Started by `/api/analytics/metrics/alerts`, `/api/cron/metric-alerts`.
It also meets the causes of echo.http.access, echo.http.body, echo.analytics.metrics, echo.store.
echo.analytics.metric-alerts.watch-held#
- refused, exit 1
- watching the metrics of product {product}: a product has one alert watch, and product {product} is watched already; observed: watch {watch}, declared by {by}
- Fix: remove watch {watch} (echo-cli tracking alerts unwatch {watch}) and declare the new one
- Test: tests/analytics/metric-alerts.test.mjs::a_second_watch_of_a_product_is_refused
echo.analytics.metric-alerts.watch-absent#
- not_found, exit 1
- removing the metric alert watch {watch}: no metric alert watch has the id {watch}; observed: metric_alert_watches holds no row with id {watch}
- Fix: name a watch echo-cli tracking alerts list lists
- Test: tests/analytics/metric-alerts.test.mjs::a_watch_that_does_not_exist_is_not_found
echo.analytics.metric-reports#
Write a product's metric table with a commentary citing only its numbers, and write and deliver it on a schedule by email or webhook.
Started by `/api/analytics/reports`, `/api/analytics/reports/schedules`, `/api/cron/metric-reports`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.analytics.metrics, echo.analytics.window, echo.products.lookup, echo.model, echo.http.webhook, echo.store.
echo.analytics.metric-reports.schedule-held#
- refused, exit 1
- scheduling the metric reports of product {product}: a product has one report schedule, and product {product} has one already; observed: schedule {schedule}, declared by {by}
- Fix: remove schedule {schedule} (echo-cli tracking schedules remove {schedule}) and set the new one
- Test: tests/analytics/metric-reports.test.mjs::a_second_schedule_of_a_product_is_refused
echo.analytics.metric-reports.schedule-absent#
- not_found, exit 1
- removing the report schedule {schedule}: no report schedule has the id {schedule}; observed: metric_report_schedules holds no row with id {schedule}
- Fix: name a schedule echo-cli tracking schedules list lists
- Test: tests/analytics/metric-reports.test.mjs::a_schedule_that_does_not_exist_is_not_found
echo.analytics.metric-reports.commentary-declined#
- refused, exit 1
- writing the commentary of the metric report of product {product}: the model behind {route} declined to write it; observed: the route answered with stop reason refusal
- Fix: set ECHO_REPORT_ROUTE to a route whose model writes the commentary, and write the report again
- Test: tests/analytics/metric-reports.test.mjs::a_declined_commentary_stores_no_report
echo.analytics.metric-reports.commentary-empty#
- infra_down, exit 69; trying again unchanged can help
- writing the commentary of the metric report of product {product}: the model behind {route} answered without any text; observed: the answer holds no text block, or only blank ones
- Fix: write the report again (echo-cli tracking reports write --product {product} --days <days>)
- Test: tests/analytics/metric-reports.test.mjs::an_empty_commentary_stores_no_report
echo.analytics.metric-reports.commentary-uncited#
- refused, exit 1
- writing the commentary of the metric report of product {product}: the commentary may cite only the numbers the report's table holds, and it cites others; observed: uncited: {numbers}
- Fix: write the report again; the commentary is written anew and held to the table the same way
- Test: tests/analytics/metric-reports.test.mjs::a_commentary_citing_other_numbers_stores_no_report
echo.analytics.metric-reports.recipient-suppressed#
- refused, exit 1
- emailing the metric report of product {product} to {recipient}: Echo sends nothing to an address on its suppression list; observed: {reason}
- Fix: name another recipient for the schedule, or lift the suppression (echo-cli lifecycle suppressions lift --address {recipient} --by <name>) if it was set in error
- Test: tests/analytics/metric-reports.test.mjs::a_suppressed_recipient_is_not_emailed
echo.analytics.okrs#
Create a product's objectives and key results, each key result counting one of its metrics over the objective's days.
Started by `/api/analytics/okrs`, `/api/analytics/okrs/key-results`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.products.lookup, echo.store.
echo.analytics.okrs.days-reversed#
- refused, exit 2; the request itself is refused
- creating the objective {title} of product {product}: an objective runs from starts_on through ends_on, so ends_on may not come before starts_on; observed: starts_on is {start} and ends_on is {end}
- Fix: send ends_on on or after starts_on
- Test: tests/analytics/okrs.test.mjs::an_objective_ending_before_it_starts_is_refused
echo.analytics.okrs.objective-absent#
- not_found, exit 1
- {step} the objective {objective}: no objective has the id {objective}; observed: okr_objectives holds no row with id {objective}
- Fix: name an objective echo-cli okr list --product <id> lists
- Test: tests/analytics/okrs.test.mjs::a_missing_objective_is_not_found
echo.analytics.okrs.key-result-absent#
- not_found, exit 1
- removing the key result {result}: no key result has the id {result}; observed: okr_key_results holds no row with id {result}
- Fix: name a key result echo-cli okr list --product <id> shows
- Test: tests/analytics/okrs.test.mjs::a_missing_key_result_is_not_found
echo.analytics.okrs.key-metric-absent#
- not_found, exit 1
- adding a key result to the objective {objective}: a key result counts a metric of the objective's product, and product {product} has no metric {metric}; observed: metric_id is {metric}
- Fix: name a metric echo-cli tracking metrics list --product {product} lists
- Test: tests/analytics/okrs.test.mjs::a_key_result_on_a_metric_of_another_product_is_not_found
echo.analytics.okrs.metric-never-collected#
- refused, exit 1
- adding a key result on the metric {name} to the objective {objective}: a key result on a metric whose event was never collected could never move; observed: no web or mobile event named {event} is stored
- Fix: send {event} from the product first (echo-cli tracking quality show --days <days> names what each source sends), or count another metric
- Test: tests/analytics/okrs.test.mjs::a_key_result_on_an_event_never_collected_is_refused
echo.analytics.okrs.key-metric-gone#
- not_found, exit 1
- counting the key result {result} of product {product}: a key result counts a metric of its product, and product {product} no longer holds metric {metric}; observed: analytics_metrics holds no row with id {metric}
- Fix: remove key result {result} (echo-cli okr remove-key {result}) and add one on a metric the product holds
- Test: tests/analytics/okrs.test.mjs::a_key_result_whose_metric_was_removed_is_named
echo.analytics.identity#
Resolve one person, and every event they sent, from a user, anonymous or RevenueCat id they are known by.
Started by `/api/analytics/identity`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.analytics.identity.subject-unseen#
- not_found, exit 1
- resolving the person known as {identifier}: no identity edge names {identifier}: it was never seen at a sign-in; observed: identity_edges holds no row naming {identifier} as a user or anonymous id
- Fix: name an identifier the product sent at a sign-in, or wait until the person signs in
- Test: tests/analytics/identity.test.mjs::an_identifier_never_seen_at_sign_in_is_not_found
echo.analytics.advocacy#
Start an advocacy campaign, approve the text it offers, opt members in and out with their tracked links, record their shares and read the visitors each brought.
Started by `/api/analytics/advocacy`, `echo-cli social advocacy`.
It also meets the causes of echo.http.access, echo.http.body, echo.store, echo.analytics.window.
echo.analytics.advocacy.address-not-https#
- refused, exit 2; the request itself is refused
- reading {field}, {meaning}: a link a member shares lands on, and a share is read from, an absolute https address; observed: {field} is {value}
- Fix: send {field} as an absolute https address such as https://example.com/page
- Test: tests/analytics/advocacy.test.mjs::an_address_that_is_not_https_is_refused
echo.analytics.advocacy.campaign-absent#
- not_found, exit 1
- {step}: no advocacy campaign has this id; observed: advocacy_campaigns holds no campaign {id}
- Fix: name a campaign `echo-cli social advocacy campaigns` lists (GET /api/analytics/advocacy)
- Test: tests/analytics/advocacy.test.mjs::a_campaign_that_does_not_exist_is_not_found
echo.analytics.advocacy.campaign-name-taken#
- refused, exit 1
- starting the advocacy campaign {name} for {app}: a campaign name is unique, and a campaign of this name is already held; observed: {reason}; nothing was stored
- Fix: name the campaign differently, or work on the one `echo-cli social advocacy campaigns` lists under {name}
- Test: tests/analytics/advocacy.test.mjs::a_campaign_name_already_held_is_refused
echo.analytics.advocacy.already-approved#
- refused, exit 1
- approving the text {name} ({id}) offers: a campaign's text is approved once; observed: approved by {by} at {at}{meanwhile}
- Fix: nothing to approve; start another campaign for another text
- Test: tests/analytics/advocacy.test.mjs::a_campaign_approved_twice_is_refused
echo.analytics.advocacy.self-approval#
- refused, exit 1
- approving the text {name} ({id}) offers: the text a campaign offers is approved by someone other than who started it; observed: {by} started it and asked to approve it; it stays unapproved
- Fix: ask someone else to approve it: echo-cli social advocacy approve --campaign {id} --by <who>
- Test: tests/analytics/advocacy.test.mjs::a_campaign_approved_by_who_started_it_is_refused
echo.analytics.advocacy.text-unapproved#
- refused, exit 1
- {step} of {name} ({id}): nobody joins a campaign or records a share of it until its offered text is approved; observed: the campaign was started by {by} and nobody approved it
- Fix: echo-cli social advocacy approve --campaign {id} --by <who> approves it, by someone other than {by}
- Test: tests/analytics/advocacy.test.mjs::a_campaign_whose_text_is_unapproved_is_refused
echo.analytics.advocacy.already-sharing#
- refused, exit 1
- opting {member} in to {name} ({id}): a member opts in to a campaign once, until they opt out; observed: {member} shares it through {url} since {since} (membership {membership})
- Fix: use the link they hold, or opt them out first: echo-cli social advocacy leave --member {membership}
- Test: tests/analytics/advocacy.test.mjs::a_member_who_already_shares_is_refused
echo.analytics.advocacy.membership-absent#
- not_found, exit 1
- {step}: no {state} advocacy membership has this id; observed: advocacy_members holds no {state} membership {id}
- Fix: name a membership `echo-cli social advocacy results --campaign <id> --days <n>` lists
- Test: tests/analytics/advocacy.test.mjs::a_membership_that_does_not_exist_is_not_found
echo.analytics.advocacy.member-opted-out#
- refused, exit 1
- recording a share by {member} of membership {id}: a share is recorded only while its member is opted in; observed: {member} opted out at {at}; nothing was recorded
- Fix: opt them in again (echo-cli social advocacy join --campaign {campaign} --member {member}), then record the share
- Test: tests/analytics/advocacy.test.mjs::a_share_by_a_member_who_opted_out_is_refused
echo.analytics.advocacy.membership-vanished#
- infra_down, exit 69; trying again unchanged can help
- reopening the membership {membership} of {member} in {name}: the membership was read and its update answered no row: it was removed or changed by another request meanwhile; observed: advocacy_members answered no row for {membership}
- Fix: opt the member in again; the next read sees the membership as it now stands
- Test: tests/analytics/advocacy.test.mjs::a_membership_removed_while_reopened_is_named
echo.analytics.utm#
Declare the values each UTM parameter may take for a source, remove one, build a tracked link only from declared values and read the stray values events carried.
Started by `/api/analytics/utm`, `/api/analytics/utm/link`, `echo-cli tracking utm`.
It also meets the causes of echo.http.access, echo.http.body, echo.store, echo.analytics.window.
echo.analytics.utm.field-blank#
- refused, exit 2; the request itself is refused
- declaring a UTM value: {field} is {meaning}, and the request sends it blank or not as text; observed: {field} is {value}; nothing was stored
- Fix: send {field} (echo-cli tracking utm add --app <app-id> --parameter <utm_name> --value <value> --meaning <text>)
- Test: tests/analytics/utm.test.mjs::a_blank_field_is_refused
echo.analytics.utm.parameter-unknown#
- refused, exit 2; the request itself is refused
- declaring a UTM value of {app}: a vocabulary declares only the UTM parameters the attribution collector reads; observed: parameter is {parameter}; the collector reads {parameters}
- Fix: send parameter as one of {parameters}
- Test: tests/analytics/utm.test.mjs::a_parameter_the_collector_does_not_read_is_refused
echo.analytics.utm.value-declared#
- refused, exit 1
- declaring {parameter}={value} for {app}: a source declares each value of a parameter once; observed: it is declared as {id}, meaning {meaning}
- Fix: nothing to declare; to change what it means remove it first (echo-cli tracking utm remove {id})
- Test: tests/analytics/utm.test.mjs::a_value_declared_twice_is_refused
echo.analytics.utm.value-absent#
- not_found, exit 1
- removing the UTM value {id}: no declared UTM value has this id; observed: utm_values holds no row {id}; nothing was removed
- Fix: name a value `echo-cli tracking utm list --app <app-id>` lists
- Test: tests/analytics/utm.test.mjs::a_value_that_does_not_exist_is_not_found
echo.analytics.utm.landing-not-https#
- refused, exit 2; the request itself is refused
- building a tracked link of {app}: a tracked link lands on an absolute https address; observed: the landing address is {landing}
- Fix: send the landing address as https://… (echo-cli tracking utm build --app {app} --url https://… <utm_parameter=value>)
- Test: tests/analytics/utm.test.mjs::a_landing_that_is_not_https_is_refused
echo.analytics.utm.no-parameters#
- refused, exit 2; the request itself is refused
- building a tracked link of {app} to {landing}: a tracked link carries at least one declared UTM value, and the request names none; observed: no utm_parameter=value was sent; the collector reads {parameters}
- Fix: name at least one of {parameters} with a value {app} declares
- Test: tests/analytics/utm.test.mjs::a_link_without_a_parameter_is_refused
echo.analytics.utm.value-undeclared#
- refused, exit 1
- building a tracked link of {app} to {landing}: a link is built only from values its source declares, so every visit through it is read against the vocabulary; observed: {app} does not declare {parameter}={value}; it declares {declared} for {parameter}
- Fix: declare it first: echo-cli tracking utm add --app {app} --parameter {parameter} --value {value} --meaning <text>
- Test: tests/analytics/utm.test.mjs::a_link_with_an_undeclared_value_is_refused
echo.analytics.attribution#
Credit the window's conversions to the channels of their touches by first touch, last touch, linear and markov, or one visitor's conversions with every touch.
Started by `/api/analytics/attribution`, `echo-cli tracking attribution show`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.store.
echo.analytics.attribution.subject-unseen#
- not_found, exit 1
- reading the attributed conversions of the visitor {subject} since {since}: subject names a visitor by a user id or an anonymous id, and no web event of the window belongs to {subject} or to an identifier linked to it; observed: web_analytics_events holds {events} events since {since}, none of the person {subject} names
- Fix: name a visitor of the window: echo-cli tracking identity show --id {subject} lists the events of every identifier linked to it, or read a longer window (days)
- Test: tests/analytics/attribution.test.mjs::a_subject_without_events_in_the_window_is_not_found
echo.analytics.cohorts#
Follow the visitors of one web or mobile source week by week from the week of their first event, split by the channel that acquired them.
Started by `/api/analytics/cohorts`, `echo-cli tracking cohorts show`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.store.
echo.analytics.heatmap#
Count a page's clicks per element and grid cell and the subjects reaching each scroll depth, per variant of a landing test when one is named.
Started by `/api/analytics/heatmap`, `echo-cli heatmap page`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.analytics.heatmap.test-unexposed#
- not_found, exit 1
- reading the click and scroll maps of {path} on {app} per variant of landing test {test}: a map per variant counts each subject under the variant their exposure gave them, and landing test {test} has shown no subject a variant; observed: landing_exposures holds no row of test {test}; {events} events of the page were read since {since}
- Fix: read the map without test_id, or once the test has shown its variants: echo-cli landing exposures --test {test} lists them
- Test: tests/analytics/heatmap.test.mjs::a_test_that_showed_no_variant_is_not_found
echo.analytics.ltv#
Read each subject's realised net revenue of one source over the history days, per currency, and its linear and decay forecasts over the horizon days.
Started by `/api/analytics/ltv`, `echo-cli analytics ltv`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.payments, echo.store.
echo.analytics.ltv.stripe-narrowed#
- refused, exit 2; the request itself is refused
- reading the lifetime value of the Stripe payments of {app} in {environment}: product_id and store narrow RevenueCat payments only, and Stripe payments are read for the whole web source; observed: the query sends source=stripe with {sent}
- Fix: leave product_id and store out for source=stripe, or read source=revenuecat
- Test: tests/analytics/revenue.test.mjs::a_stripe_read_narrowed_to_a_product_is_refused
echo.analytics.revenue-channels#
Credit one source's net revenue over the last days to acquisition channels, by the payer's ad platform or by a multi-touch model, per currency.
Started by `/api/analytics/attribution/revenue`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.analytics.payments, echo.store.
echo.analytics.unit-economics#
Read CAC, payback and LTV to CAC per channel and currency over the last days from stored ad spend, channel costs and attributed conversions.
Started by `/api/analytics/unit-economics`, `echo-cli analytics unit-economics`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.analytics.unit-economics.spend-campaign-absent#
- config, exit 1
- adding the ad spend of the last {days} days to its channel: a spend row is counted under the platform of its campaign, and ad_campaign_metrics holds spend of campaign {campaign} on {date}, which ad_campaigns does not hold; observed: ad_campaigns holds {campaigns} campaigns, none with id {campaign}
- Fix: sync the ad accounts again (POST /api/paid-ads/sync) so campaign {campaign} is stored, or delete its rows of ad_campaign_metrics
- Test: tests/analytics/unit-economics.test.mjs::spend_of_a_campaign_that_is_not_stored_is_named
echo.analytics.unit-economics.spend-account-absent#
- config, exit 1
- adding the ad spend of campaign {campaign} on {date} to its currency: spend is kept in the currency of its ad account, and campaign {campaign} names ad account {account}, which ad_accounts does not hold; observed: ad_accounts holds {accounts} accounts, none with id {account}
- Fix: sync the ad accounts again (POST /api/paid-ads/sync) so account {account} is stored
- Test: tests/analytics/unit-economics.test.mjs::spend_of_an_account_that_is_not_stored_is_named
echo.analytics.unit-economics.spend-currency-absent#
- config, exit 1
- adding the ad spend of campaign {campaign} on {date} to its currency: spend is kept in the currency of its ad account, and ad account {account} declares no currency; observed: ad_accounts row {account} holds currency null
- Fix: sync the ad accounts again (POST /api/paid-ads/sync) so the platform states the currency of account {account}, or set it on that row of ad_accounts
- Test: tests/analytics/unit-economics.test.mjs::spend_of_an_account_without_a_currency_is_named
echo.analytics.costs#
Record what a growth channel cost besides its ad spend over a period, list the costs recorded and remove one.
Started by `/api/analytics/costs`, `echo-cli analytics costs`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.store.
echo.analytics.costs.period-reversed#
- refused, exit 2; the request itself is refused
- recording a cost of the channel {channel}: a cost covers the days from period_start through period_end, and period_end {end} is before period_start {start}; observed: period_start is {start}, period_end is {end}; nothing was recorded
- Fix: send period_end on or after period_start, both as YYYY-MM-DD
- Test: tests/analytics/costs.test.mjs::a_period_that_ends_before_it_starts_is_refused
echo.analytics.costs.cost-absent#
- not_found, exit 1
- removing the channel cost {cost}: no recorded channel cost has the id {cost}; observed: channel_costs holds no row with id {cost}; nothing was removed
- Fix: name a cost echo-cli analytics costs list lists
- Test: tests/analytics/costs.test.mjs::a_cost_that_does_not_exist_is_not_found
echo.analytics.content-decay#
Name the published posts of a blog surface whose sessions in the latest window fell below a share of the window before.
Started by `/api/analytics/content/decay`, `echo-cli tracking content decay`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.blog.lookup, echo.store.
echo.analytics.content-returns#
Count, per published post of a blog surface, the visitors who first landed on it in the window, those who later signed up and the revenue they paid.
Started by `/api/analytics/content/returns`, `echo-cli tracking content returns`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.blog.lookup, echo.store.
echo.analytics.content-predict#
Predict a blog draft's sessions over its first days as the mean of what its surface's published posts drew in theirs, with the interval at the standard errors named.
Started by `/api/analytics/content/predict`, `echo-cli tracking content predict`.
It also meets the causes of echo.http.access, echo.http.query, echo.analytics.window, echo.blog.lookup, echo.store.
echo.analytics.content-predict.not-draft#
- refused, exit 2; the request itself is refused
- predicting the visits of post {post} over its first {days} days: only a draft is predicted, and post {post} is {status}; a published post's own visits are read, not predicted; observed: blog_posts row {post} has status {status}
- Fix: read its visits with echo-cli tracking content returns --surface {surface} --days {days} --signup-event <name>, or predict a draft of {surface}
- Test: tests/analytics/content-predict.test.mjs::a_post_that_is_not_a_draft_is_refused
echo.analytics.content-predict.surface-gone#
- not_found, exit 1
- predicting the visits of draft {post} from the published posts of its surface: draft {post} names the blog surface {surface}, and no blog surface has that slug any more; observed: blog_posts row {post} has surface_slug {surface}; blog_surfaces holds no row with slug {surface}
- Fix: move the draft to a surface echo-cli blogs shows, or restore the surface {surface}
- Test: tests/analytics/content-predict.test.mjs::a_draft_of_a_removed_surface_is_named
echo.analytics.content-predict.peers-none#
- not_found, exit 1
- predicting the visits of draft {post} over its first {days} days: a prediction rests on published posts of the same surface whose first {days} days have ended, and {surface} published none before {cutoff}; observed: blog_posts holds no post of {surface} with status published and published_at at or before {cutoff}
- Fix: predict a shorter window (days), or wait until a post of {surface} has been published for {days} days
- Test: tests/analytics/content-predict.test.mjs::a_surface_without_posts_old_enough_is_named
echo.analytics.content-refresh#
Draft a rewrite of a published post that lost visits, list the drafts, and apply or dismiss one.
Started by `/api/analytics/content/refreshes`, `echo-cli tracking content refresh`, `echo-cli tracking content refreshes`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.model, echo.store.
echo.analytics.content-refresh.days-invalid#
- refused, exit 2; the request itself is refused
- drafting a refresh of post {post}: days is the length of each of the two windows compared, a positive whole number of days; observed: days is {value}; nothing was drafted
- Fix: send days as a positive whole number (echo-cli tracking content refresh --days <n>)
- Test: tests/analytics/refresh.test.mjs::a_window_that_is_not_a_count_of_days_is_refused
echo.analytics.content-refresh.post-unpublished#
- refused, exit 1
- drafting a refresh of post {post}: only a published post loses visits, and this one is {status}; observed: nothing was drafted
- Fix: publish the post first, or refresh one of the decaying posts echo-cli tracking content decay lists
- Test: tests/analytics/refresh.test.mjs::a_refresh_of_an_unpublished_post_is_refused
echo.analytics.content-refresh.post-holding#
- refused, exit 1
- drafting a refresh of post {post}: a post is refreshed when it kept less than {keep} of its sessions, and this one kept at least that over the last {days} against the {days} before; observed: the decaying posts of {surface} are {decaying}; nothing was drafted
- Fix: refresh one of the posts named, or ask with a larger keep share
- Test: tests/analytics/refresh.test.mjs::a_refresh_of_a_post_that_kept_its_visits_is_refused
echo.analytics.content-refresh.draft-open#
- refused, exit 1
- drafting a refresh of post {post}: a post has one open refresh draft at a time, and draft {draft} is still open; observed: nothing was drafted
- Fix: apply or dismiss draft {draft} (echo-cli tracking content refreshes), then draft again
- Test: tests/analytics/refresh.test.mjs::a_second_open_draft_is_refused
echo.analytics.content-refresh.status-unknown#
- refused, exit 2; the request itself is refused
- listing the refresh drafts of {surface}: a draft is {statuses}, and the request names {status}; observed: nothing was listed
- Fix: name status as one of {statuses}, or leave it out
- Test: tests/analytics/refresh.test.mjs::a_draft_status_that_does_not_exist_is_refused
echo.analytics.content-refresh.draft-absent#
- not_found, exit 1
- {step} refresh draft {draft}: blog_refresh_drafts holds no draft with id {draft}; observed: nothing was changed
- Fix: name a draft echo-cli tracking content refreshes lists
- Test: tests/analytics/refresh.test.mjs::a_draft_that_does_not_exist_is_not_found
echo.analytics.content-refresh.draft-decided#
- refused, exit 1
- {step} refresh draft {draft}: a draft is decided once, and this one is {status}, decided by {by} at {at}; observed: nothing was changed
- Fix: draft the post again to refresh it once more
- Test: tests/analytics/refresh.test.mjs::a_draft_decided_twice_is_refused
echo.analytics.content-refresh.decided-meanwhile#
- refused, exit 1
- {step} refresh draft {draft}: another request decided the draft while this one ran; observed: the draft is no longer open; {left}
- Fix: read the draft again (echo-cli tracking content refreshes); it is decided already
- Test: tests/analytics/refresh.test.mjs::a_draft_decided_by_another_request_is_named
echo.analytics.content-refresh.revision-moved#
- refused, exit 1
- applying refresh draft {draft} to post {post}: a draft is applied to the revision it was written from, and the post moved on to revision {revision} since revision {from}; observed: the post was not changed
- Fix: dismiss draft {draft} and draft the post again from its current revision
- Test: tests/analytics/refresh.test.mjs::a_draft_of_an_older_revision_is_refused
echo.analytics.content-refresh.post-changed#
- refused, exit 1
- applying refresh draft {draft} to post {post}: the post was changed by another request while the draft was being applied (it was last updated at {updated}); observed: the post was not changed and the draft stays open
- Fix: apply the draft again; if the post moved to another revision, dismiss it and draft again
- Test: tests/analytics/refresh.test.mjs::a_post_changed_while_a_draft_is_applied_is_named
echo.analytics.server-events#
Record a web or mobile event a product's backend reports, once whichever of the browser or app and the backend sends it first.
Started by `/api/analytics/server/collect`, `echo-cli tracking events report`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.analytics.server-events.source-ambiguous#
- refused, exit 2; the request itself is refused
- recording a product backend's event: an event is reported for one source, a web site by site_id or a mobile app by app_id, and the body names {named}; observed: the body names {sent}; nothing was stored
- Fix: send exactly one of site_id (a web event) and app_id (a mobile event)
- Test: tests/analytics/server-events.test.mjs::an_event_naming_both_or_neither_source_is_refused
echo.analytics.server-events.site-undeclared#
- refused, exit 2; the request itself is refused
- recording event {event} of site {site}: an event is recorded for a declared web analytics site, and {site} is none of them; observed: the declared sites are {sites}; nothing was stored
- Fix: send site_id as one of {sites}, or add the site to WEB_ANALYTICS_SITES_JSON in the deployment's environment
- Test: tests/analytics/server-events.test.mjs::an_event_of_an_undeclared_site_is_refused
echo.analytics.server-events.app-undeclared#
- refused, exit 2; the request itself is refused
- recording event {event} of mobile app {app}: an event is recorded for a configured mobile analytics app with an analytics backend, and {app} is none of them; observed: the configured apps with a backend are {apps}; nothing was stored
- Fix: send app_id as one of {apps}, or declare {app} with its analytics backend in MOBILE_ANALYTICS_APPS_JSON in the deployment's environment
- Test: tests/analytics/server-events.test.mjs::an_event_of_an_undeclared_app_is_refused
echo.analytics.server-events.person-unnamed#
- refused, exit 2; the request itself is refused
- recording event {event} of {source}: an event belongs to a person, named by user_id or anonymous_id, and the body names neither; observed: the body names {sent}; nothing was stored
- Fix: send user_id for a signed-in person, or the anonymous_id the browser or app holds
- Test: tests/analytics/server-events.test.mjs::an_event_naming_no_person_is_refused
echo.analytics.source-keys#
Issue a key for one web analytics site or mobile analytics app, list the keys with who issued and revoked each, and revoke one.
Started by `/api/analytics/source-keys`, `echo-cli tracking keys`.
It also meets the causes of echo.http.access, echo.http.query, echo.http.body, echo.automation.caller, echo.store.
echo.analytics.source-keys.key-absent#
- not_found, exit 1
- revoking the source key {key}: no source key has the id {key}; observed: analytics_source_keys holds no row with id {key}; nothing was revoked
- Fix: name a key echo-cli tracking keys list lists
- Test: tests/analytics/source-keys.test.mjs::a_key_that_does_not_exist_is_not_found
echo.analytics.source-keys.key-revoked#
- refused, exit 2; the request itself is refused
- revoking the source key {key} of {source} ({label}): a key is revoked once, and key {key} was already revoked by {by} at {at}; observed: analytics_source_keys row {key} has revoked_by {by} and revoked_at {at}; it was left as it was
- Fix: nothing to revoke; issue a new key for {source} with echo-cli tracking keys issue --source {source} --label <text> --by <name> if the backend needs one
- Test: tests/analytics/source-keys.test.mjs::a_key_revoked_twice_is_refused
echo.analytics.source-keys.key-revoke-raced#
- refused, exit 2; the request itself is refused
- revoking the source key {key} of {source} ({label}): another request revoked key {key} between this one reading it unrevoked and marking it revoked; observed: the update matched no unrevoked row of id {key}; this request revoked nothing
- Fix: nothing to revoke: echo-cli tracking keys list --source {source} shows who revoked it and when
- Test: tests/analytics/source-keys.test.mjs::a_key_revoked_by_another_request_is_named
echo.analytics.mobile#
Report each mobile app MOBILE_ANALYTICS_APPS_JSON declares from its first-party events and, where Stado's integration reaches it, its Google Analytics property.
Started by `/api/analytics/mobile`.
It also meets the causes of echo.http.access, echo.integration, echo.store.
echo.analytics.mobile.apps-not-json#
- config, exit 1
- reading the mobile apps the deployment declares: MOBILE_ANALYTICS_APPS_JSON lists the apps as JSON, and its text does not parse; observed: MOBILE_ANALYTICS_APPS_JSON holds {length} characters; the parser stopped with: {reason}
- Fix: set MOBILE_ANALYTICS_APPS_JSON to a JSON list of apps, each with its id, platform and analytics backend
- Test: tests/analytics/mobile.test.mjs::apps_that_are_not_json_are_named
echo.analytics.mobile.apps-not-list#
- config, exit 1
- reading the mobile apps the deployment declares: MOBILE_ANALYTICS_APPS_JSON is a JSON list of apps, and it holds {kind}; observed: MOBILE_ANALYTICS_APPS_JSON parses as {kind}: {value}
- Fix: set MOBILE_ANALYTICS_APPS_JSON to a JSON list of apps, each with its id, platform and analytics backend
- Test: tests/analytics/mobile.test.mjs::apps_that_are_not_a_list_are_named
echo.analytics.mobile.headers-missing#
- infra_down, exit 69; trying again unchanged can help
- reading the Google Analytics report of {property} ({report}): a report names its metrics in metricHeaders, and this one carries none; observed: the report holds {rows} rows and no metricHeaders
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_report_without_metric_headers_is_named
echo.analytics.mobile.metric-absent#
- infra_down, exit 69; trying again unchanged can help
- reading the Google Analytics report of {property} ({report}): the report counts {wanted} under one of these names, and it carries none of them; observed: its metrics are {headers}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_report_without_the_metric_is_named
echo.analytics.mobile.metric-value-missing#
- infra_down, exit 69; trying again unchanged can help
- reading the Google Analytics report of {property} ({report}): every row states a value for each metric, and row {row} states none for {metric}; observed: row {row} has {count} metric values
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_row_without_a_metric_value_is_named
echo.analytics.mobile.metric-not-number#
- infra_down, exit 69; trying again unchanged can help
- reading the Google Analytics report of {property} ({report}): a metric is a number, and row {row} gives {metric} as something else; observed: {metric} is {value}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_metric_that_is_not_a_number_is_named
echo.analytics.mobile.dimension-missing#
- infra_down, exit 69; trying again unchanged can help
- reading the Google Analytics report of {property} ({report}): every row names its dimension, and row {row} names none; observed: row {row} dimensionValues: {value}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_row_without_its_dimension_is_named
echo.analytics.mobile.stream-field-missing#
- infra_down, exit 69; trying again unchanged can help
- listing the data streams of {property}: Google names every data stream's {field}, and stream {stream} of {property} names none; observed: the stream is {value}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_stream_without_its_field_is_named
echo.analytics.mobile.property-unnamed#
- infra_down, exit 69; trying again unchanged can help
- listing the properties of Google Analytics account {account}: Google names every property by its resource name, and property {index} of {account} has none; observed: the property summary is {value}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_property_without_its_name_is_named
echo.analytics.mobile.mapping-appless#
- infra_down, exit 69; trying again unchanged can help
- reading the Firebase analytics details of project {project}: Firebase names the app of every stream mapping, and mapping {index} of project {project} names none; observed: the mapping is {value}
- Fix: open the property in Google Analytics or Firebase and check that it reports this; the next report reads it again once Google answers whole
- Test: tests/analytics/mobile.test.mjs::a_firebase_mapping_without_its_app_is_named
echo.analytics.growth#
Assemble the growth report over a window from the stored snapshots, product events, paid ads metrics and their attribution, naming every value it cannot count.
Started by `/api/analytics/growth`.
It also meets the causes of echo.http.access, echo.http.query, echo.store.
echo.analytics.growth.metric-undated#
- refused, exit 1
- reading the paid ads metrics of campaign {campaign}: a paid ads metric counts for the day it states, and this one states none; observed: paid_ads_metrics row {row} of campaign {campaign} has date {value}
- Fix: sync the campaign again (POST /api/paid-ads/sync) so its metrics carry their day, or delete the row
- Test: tests/analytics/growth-report.test.mjs::a_paid_metric_without_a_date_is_named
echo.analytics.growth.allocation-unstated#
- refused, exit 1
- crediting campaign {campaign} with its {what} on {date}: an attribution allocation gives a campaign an amount or a share of the metric, and this one states neither its {what} nor its share; observed: the allocation is {value}
- Fix: state the allocation's {what} or its share in the metric's attribution, then read the report again
- Test: tests/analytics/growth-report.test.mjs::an_allocation_stating_neither_amount_nor_share_is_named
echo.analytics.growth.property-not-number#
- refused, exit 1
- counting event property {property}: the report counts {property} as a number, and an event states it as something else; observed: {property} is {value}
- Fix: send {property} as a number from the product that records the event; the report reads it once the stored events state numbers
- Test: tests/analytics/growth-report.test.mjs::an_event_property_that_is_not_a_number_is_named
echo.analytics.growth.snapshot-not-object#
- refused, exit 1
- reading the {where} of a stored product snapshot: the {where} is a section of named fields, and the snapshot holds {held} there; observed: the {where} is {value}
- Fix: take the snapshot again (its writer stores the whole document); the report reads the newest one
- Test: tests/analytics/growth-report.test.mjs::a_snapshot_section_that_is_not_an_object_is_named
echo.analytics.growth.snapshot-not-list#
- refused, exit 1
- reading the {where} of a stored product snapshot: the {where} is a list, and the snapshot holds {held} there; observed: the {where} is {value}
- Fix: take the snapshot again (its writer stores the whole document); the report reads the newest one
- Test: tests/analytics/growth-report.test.mjs::a_snapshot_list_that_is_not_a_list_is_named
echo.analytics.growth.snapshot-not-number#
- refused, exit 1
- reading the {where} of a stored product snapshot: the {where} counts {field} as a number, and the snapshot states something else; observed: {field} is {value}
- Fix: take the snapshot again (its writer stores the whole document); the report reads the newest one
- Test: tests/analytics/growth-report.test.mjs::a_snapshot_count_that_is_not_a_number_is_named
echo.analytics.growth.snapshot-field-missing#
- refused, exit 1
- reading the {where} of a stored product snapshot: every {where} states its {field}, and one states none; observed: the {where} is {value}
- Fix: take the snapshot again (its writer stores the whole document); the report reads the newest one
- Test: tests/analytics/growth-report.test.mjs::a_snapshot_row_without_its_key_is_named
echo.analytics.growth.setting-not-count#
- config, exit 1
- reading {setting}: {setting} is a whole number of {unit} above zero, and the deployment sets another value; observed: {setting} is {value}
- Fix: set {setting} to a whole number of {unit} above zero in the deployment's environment
- Test: tests/analytics/growth-report.test.mjs::a_growth_setting_that_is_not_a_count_is_named
echo.analytics.growth.send-status-unknown#
- refused, exit 1
- counting the conversion feedback of {platform}: a conversion is queued, pending, sent or error, and row {row} of ad_conversion_feedback_events holds another status; observed: send_status is {value}; known: {known}
- Fix: set send_status of row {row} to one of {known}; the next conversion feedback pass sends a queued or errored row again
- Test: tests/analytics/growth-report.test.mjs::a_conversion_of_an_unknown_status_is_named
echo.analytics.web#
Report each web site the deployment declares from its first-party events, or from its Umami website when it collects none.
Started by `/api/analytics/web`.
It also meets the causes of echo.http.access, echo.http.query, echo.store, echo.direct.umami.
echo.analytics.web.host-unparseable#
- config, exit 1
- matching web analytics site {site} with its Umami website: a site is matched by its host, and {value} is neither a host nor a URL; observed: {source} names {value}
- Fix: write the host in {source} as a domain such as example.com or a URL such as https://example.com
- Test: tests/analytics/web-report.test.mjs::a_site_host_that_is_not_one_is_named
echo.analytics.payments#
Read the payments of one RevenueCat app, or the Stripe payments the webhook recorded for one web source, in one environment over a window, each net of its refunds in its own currency.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.store.
echo.analytics.payments.payment-currency-absent#
- config, exit 1
- adding payment {payment} of {source} to the revenue of its currency: revenue is kept per currency and never converted, and payment {payment} names no currency, so its amount cannot be added to any; observed: {table} row {payment} holds {currency} as its currency; {read} payments of {app} in {environment} were read since {since}
- Fix: set the currency of that row of {table} ({column}), or delete the row if it was written by hand
- Test: tests/analytics/revenue.test.mjs::a_payment_without_a_currency_is_named
echo.analytics.band#
Read the band of mean ± sigmas standard deviations of the windows before the latest one, which a volume drop, a metric anomaly or a metric alert leaves.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.analytics.window.
echo.analytics.band.history-not-windows#
- refused, exit 2; the request itself is refused
- reading the band of the windows before the latest one: history counts the earlier windows whose mean and standard deviation give the band, so it must be a whole number above zero; observed: history is {value}
- Fix: send history as a whole number of 1 or more
- Test: tests/analytics/band.test.mjs::a_history_that_is_not_a_count_is_refused
echo.analytics.band.sigmas-not-positive#
- refused, exit 2; the request itself is refused
- reading the band of the windows before the latest one: sigmas is how many standard deviations the band spans on each side of the mean, so it must be a number above zero; observed: sigmas is {value}
- Fix: send sigmas as a number above zero, such as 2
- Test: tests/analytics/band.test.mjs::sigmas_that_are_not_positive_are_refused
echo.analytics.window#
Read the start of a window of days that ends now, for a report of the events, sends or payments in it.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.analytics.window.window-not-days#
- refused, exit 2; the request itself is refused
- reading the window of {name} that ends now: {name} counts the days of the window, so it must be a whole number above zero; observed: {name} is {value}
- Fix: send {name} as a whole number of 1 or more
- Test: tests/analytics/window.test.mjs::a_window_that_is_not_a_count_of_days_is_refused
echo.paid-ads.accounts#
List an admin's active ad accounts once reconciled, connect the accounts Stado holds a provider's credentials for, and deactivate one.
Started by `/api/paid-ads/accounts`, `/api/paid-ads/accounts/connect`, `/api/paid-ads/callback/meta`.
It also meets the causes of echo.http.access, echo.http.body, echo.integration, echo.store.
echo.paid-ads.accounts.account-unnamed#
- refused, exit 2; the request itself is refused
- deactivating an ad account: id names the account to deactivate, and the request states none; observed: id is {id}
- Fix: send id as an account id GET /api/paid-ads/accounts lists
- Test: tests/paid-ads/accounts.test.mjs::a_deactivation_without_an_id_is_refused
echo.paid-ads.accounts.account-absent#
- not_found, exit 1
- deactivating ad account {id}: no ad account of yours has this id (another admin's account is answered the same); observed: ad_accounts holds no account {id} of yours
- Fix: name an account GET /api/paid-ads/accounts lists
- Test: tests/paid-ads/accounts.test.mjs::a_deactivation_of_an_account_that_does_not_exist_is_not_found
echo.paid-ads.accounts.credentials-sent#
- refused, exit 2; the request itself is refused
- connecting {platform} ad accounts: a provider's credentials are held only in Stado, so a request carrying them is refused before anything is stored or sent; observed: the request carries {fields}
- Fix: leave the credentials out; store them in Stado (`stado credentials put`) and send only platform and the account's id
- Test: tests/paid-ads/accounts.test.mjs::a_connection_carrying_credentials_is_refused
echo.paid-ads.accounts.platform-unknown#
- refused, exit 2; the request itself is refused
- connecting ad accounts: platform names the provider whose accounts are connected, one of {platforms}, and the request names another; observed: platform is {platform}
- Fix: send platform as one of {platforms}
- Test: tests/paid-ads/accounts.test.mjs::a_connection_to_a_platform_echo_does_not_know_is_refused
echo.paid-ads.accounts.accounts-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the {platform} ad accounts Stado holds credentials for: the integration answered without the accounts list it answers for a connection; observed: {answer}
- Fix: connect again; GET /api/diagnostics/integrations shows what was answered
- Test: tests/paid-ads/accounts.test.mjs::an_accounts_answer_without_a_list_is_retryable
echo.paid-ads.accounts.none-available#
- not_found, exit 1
- connecting {which}: Stado holds credentials for no such {platform} account, or answered every account it holds without an id; observed: {named} accounts answered with an id, {unnamed} without one
- Fix: store the account's credentials in Stado (`stado credentials put`), or name an account id Stado holds
- Test: tests/paid-ads/accounts.test.mjs::a_connection_stado_holds_no_account_for_is_not_found
echo.paid-ads.accounts.meta-account-unread#
- infra_down, exit 69; trying again unchanged can help
- reading a Meta ad account the login answered: the account is not the shape Meta answers an ad account in, so its id, name and currency cannot be read; observed: {reason}
- Fix: log in to Meta again from the settings tab; GET /api/diagnostics/integrations shows what was answered
- Test: tests/paid-ads/accounts.test.mjs::a_meta_account_that_cannot_be_read_is_named
echo.paid-ads.accounts.login-code-absent#
- refused, exit 2; the request itself is refused
- finishing the Meta login: Meta sends the login back with the one-time code that connects the accounts, and this request carries none (it was opened directly, or Meta dropped it); observed: the query holds no code and no error
- Fix: start the Meta login again from the paid ads settings tab
- Test: tests/paid-ads/accounts.test.mjs::a_meta_callback_without_a_code_is_refused
echo.paid-ads.campaigns#
Create a campaign on an admin's Meta or Apple Ads account, paused unless asked to run, with tracking parameters from its link source's UTM vocabulary, then record it and reconcile the admin's paid ads.
Started by `/api/paid-ads/campaigns`.
It also meets the causes of echo.http.access, echo.http.body, echo.paid-ads.change, echo.integration, echo.store.
echo.paid-ads.campaigns.field-unstated#
- refused, exit 2; the request itself is refused
- creating the campaign {name}: a campaign is created with {field}, {meaning}, and the request states none; observed: {field} is not stated
- Fix: send {field}: {meaning}
- Test: tests/paid-ads/campaigns.test.mjs::a_campaign_without_an_objective_is_refused
echo.paid-ads.campaigns.account-absent#
- not_found, exit 1
- creating the campaign {name} on ad account {account}: no ad account of yours has this id (another admin's account is answered the same); observed: ad_accounts holds no account {account} of yours
- Fix: name an account GET /api/paid-ads/accounts lists
- Test: tests/paid-ads/campaigns.test.mjs::a_campaign_on_an_account_that_does_not_exist_is_not_found
echo.paid-ads.campaigns.connector-unknown#
- refused, exit 1
- creating the campaign {name} on ad account {account}: Echo creates campaigns on {connectors}, and this account is a {platform} account; observed: ad_accounts states platform {platform} for account {account}
- Fix: name a Meta or Apple Ads account GET /api/paid-ads/accounts lists
- Test: tests/paid-ads/campaigns.test.mjs::a_campaign_on_a_billing_account_is_refused
echo.paid-ads.campaigns.utm-undeclared#
- refused, exit 1
- deriving the tracking parameters of campaign {name} from {source}'s UTM vocabulary: a campaign's links carry only the UTM values its link source declares, so its visits are traced back to it, and {source} does not declare {undeclared}; observed: {source} declares no {undeclared}
- Fix: declare each with `echo-cli tracking utm add --app {source}`, then create the campaign again
- Test: tests/paid-ads/campaigns.test.mjs::a_campaign_whose_utm_values_the_source_does_not_declare_is_refused
echo.paid-ads.campaigns.created-without-id#
- infra_down, exit 69; trying again unchanged can help
- reading the {platform} campaign {name} the platform created: the platform answered the creation without the campaign_id or id of what it created, so Echo cannot record or change it; observed: {answer}
- Fix: find the campaign in {platform}'s console, then reconcile (POST /api/paid-ads/sync) so Echo records it
- Test: tests/paid-ads/campaigns.test.mjs::a_creation_answered_without_an_id_is_named
echo.paid-ads.entities#
List, change and create the ad groups, ads and target terms of an admin's campaign on its platform, then reconcile the admin's paid ads.
Started by `/api/paid-ads/campaigns/[id]/entities`.
It also meets the causes of echo.http.access, echo.http.body, echo.paid-ads.change, echo.integration, echo.store.
echo.paid-ads.entities.entity-type-unknown#
- refused, exit 2; the request itself is refused
- {doing} an ad entity of campaign {campaign}: entity_type names what is {doing}, one of {types}, and the request names another; observed: entity_type is {type}
- Fix: send entity_type as one of {types}
- Test: tests/paid-ads/entities.test.mjs::an_entity_type_the_route_does_not_take_is_refused
echo.paid-ads.entities.entity-id-unstated#
- refused, exit 2; the request itself is refused
- changing a {type} of campaign {campaign}: entity_id names the entity to change, and the request states none; observed: entity_id is {id}
- Fix: send entity_id as the id GET /api/paid-ads/campaigns/{campaign}/entities lists
- Test: tests/paid-ads/entities.test.mjs::a_change_without_an_entity_id_is_refused
echo.paid-ads.entities.keyword-on-meta#
- refused, exit 1
- creating a keyword in Meta campaign {campaign}: keywords (target terms) are an Apple Ads entity; a Meta campaign targets through its ad sets; observed: campaign {campaign} runs on meta
- Fix: create an ad_group (a Meta ad set) with its targeting instead
- Test: tests/paid-ads/entities.test.mjs::a_keyword_in_a_meta_campaign_is_refused
echo.paid-ads.entities.creation-field-unstated#
- refused, exit 2; the request itself is refused
- creating a {platform} {type} in campaign {campaign}: {platform} creates a {type} only with {field}, {meaning}, and the request states none; observed: {field} is not stated
- Fix: send {field}: {meaning}
- Test: tests/paid-ads/entities.test.mjs::an_entity_without_what_its_platform_needs_is_refused
echo.paid-ads.entities.json-field-invalid#
- refused, exit 2; the request itself is refused
- reading {field} of a {platform} {type}: {field} is a JSON object, given as an object or as JSON text, and {problem}; observed: {field} is {value}
- Fix: send {field} as a JSON object
- Test: tests/paid-ads/entities.test.mjs::a_targeting_that_is_not_a_json_object_is_refused
echo.paid-ads.entities.entities-unread#
- infra_down, exit 69; trying again unchanged can help
- listing the {kind} entities of {platform} campaign {campaign}: the integration answered without the entities list it answers for a campaign; observed: {answer}
- Fix: list them again; GET /api/diagnostics/integrations shows what the platform answered
- Test: tests/paid-ads/entities.test.mjs::an_entities_answer_without_a_list_is_retryable
echo.paid-ads.metrics#
Report an admin's paid ads over a window: totals, per-campaign rows, daily spend and revenue, revenue attributed to campaigns and per-platform figures.
Started by `/api/paid-ads/metrics`.
It also meets the causes of echo.http.access, echo.http.query, echo.paid-ads.reconcile, echo.store.
echo.paid-ads.metrics.days-invalid#
- refused, exit 2; the request itself is refused
- reading the paid-ads report window: days is how many days back the report covers, a positive whole number, or all; observed: days is {days}
- Fix: send days as a positive whole number (7, 30) or as all
- Test: tests/paid-ads/metrics.test.mjs::a_window_that_is_not_a_whole_number_of_days_is_refused
echo.paid-ads.metrics.stored-figure-invalid#
- infra_down, exit 69; trying again unchanged can help
- reading {column} of the stored metrics of campaign {campaign} on {date}: {problem}, so no total over it can be computed; observed: {column} is {value}
- Fix: sync the account again (POST /api/paid-ads/sync) so the day is copied again from its platform
- Test: tests/paid-ads/metrics.test.mjs::a_stored_figure_that_is_not_a_number_is_named
echo.paid-ads.reconcile#
Copy each connected ad account's campaigns and daily metrics since its last sync from Stado, then record the sync, reporting each account's outcome.
Started by `/api/paid-ads/sync`, `/api/cron/paid-ads-sync`.
It also meets the causes of echo.integration, echo.store.
echo.paid-ads.reconcile.sync-start-unknown#
- config, exit 1
- choosing the first day to copy for ad account {account}: a sync covers the days since the last one, or since the account was connected, and the account records neither as a time; observed: metadata.last_auto_sync_at is {last} and created_at is {created}
- Fix: reconnect the account (POST /api/paid-ads/accounts/connect) so its connection time is recorded
- Test: tests/paid-ads/reconcile.test.mjs::an_account_without_a_connection_time_is_named
echo.paid-ads.reconcile.platform-unsynced#
- config, exit 1
- copying the metrics of ad account {account}: Echo copies metrics from {platforms}, and this account is a {platform} account; observed: the account names connector {platform}
- Fix: deactivate the account (DELETE /api/paid-ads/accounts) or reconnect it under one of {platforms}
- Test: tests/paid-ads/reconcile.test.mjs::an_account_on_a_platform_echo_does_not_sync_is_named
echo.paid-ads.reconcile.account-id-unstated#
- config, exit 1
- copying the metrics of ad account row {row}: the platform is asked for an account's report by the account's own id, and the row records none; observed: ad_accounts row {row} holds account_id {id}
- Fix: reconnect the account (POST /api/paid-ads/accounts/connect) so its id is recorded
- Test: tests/paid-ads/reconcile.test.mjs::an_account_row_without_its_platform_id_is_named
echo.paid-ads.reconcile.report-malformed#
- infra_down, exit 69; trying again unchanged can help
- reading the {platform} report of account {account} from {from} to {to}: the report is not the shape Echo stores: {problem}; observed: {shown}
- Fix: sync again; GET /api/diagnostics/integrations shows what the platform answered
- Test: tests/paid-ads/reconcile.test.mjs::a_report_without_a_metrics_list_is_named
echo.paid-ads.reconcile.metric-value-invalid#
- infra_down, exit 69; trying again unchanged can help
- reading {field} of a {platform} report row of account {account}: a measured figure is a finite number or absent, and the report states something else; observed: {field} is {value} in {row}
- Fix: sync again; GET /api/diagnostics/integrations shows what the platform answered
- Test: tests/paid-ads/reconcile.test.mjs::a_report_row_with_a_figure_that_is_not_a_number_is_named
echo.paid-ads.change#
Read the status, action and money a paid-ads change asks for, in the ad account's currency, and the admin's own campaign and active account it names.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.paid-ads.change.status-unknown#
- refused, exit 2; the request itself is refused
- reading the status the request asks for: a campaign or entity runs (ACTIVE or ENABLED) or is paused (PAUSED), and the request names another; observed: status is {status}
- Fix: send status as ACTIVE, ENABLED or PAUSED, or action as pause or resume
- Test: tests/paid-ads/change.test.mjs::a_status_the_platforms_do_not_take_is_refused
echo.paid-ads.change.action-unknown#
- refused, exit 2; the request itself is refused
- reading the action the request asks for: a change pauses or resumes, and the request names another action; observed: action is {action}
- Fix: send action as pause or resume
- Test: tests/paid-ads/change.test.mjs::an_action_other_than_pause_or_resume_is_refused
echo.paid-ads.change.amount-invalid#
- refused, exit 2; the request itself is refused
- reading {field}, an amount of money the request states: an amount is a positive number, and {field} is not one; observed: {field} is {value}
- Fix: send {field} as a positive number in the ad account's currency, or leave it out
- Test: tests/paid-ads/change.test.mjs::a_budget_that_is_not_a_positive_number_is_refused
echo.paid-ads.change.nothing-asked#
- refused, exit 2; the request itself is refused
- changing the {what} {target}: the request asks for no change: it states none of {fields}; observed: the request states none of {fields}
- Fix: send at least one of {fields}
- Test: tests/paid-ads/change.test.mjs::a_change_asking_for_nothing_is_refused
echo.paid-ads.change.currency-unstated#
- refused, exit 1
- sending a budget or bid for ad account {account}: a budget or bid is an amount in the ad account's own currency, and the account states none, so no amount can be sent in a currency nobody chose; observed: ad_accounts holds no currency for account {account}
- Fix: reconnect the account (POST /api/paid-ads/accounts/connect) so Stado records its currency, then send the change again
- Test: tests/paid-ads/change.test.mjs::a_budget_for_an_account_without_a_currency_is_refused
echo.paid-ads.change.campaign-absent#
- not_found, exit 1
- finding campaign {campaign}: no campaign of yours has this id (another admin's campaign is answered the same, so its existence is not disclosed); observed: ad_campaigns holds no campaign {campaign} on an ad account of yours
- Fix: name a campaign GET /api/paid-ads/metrics lists for you
- Test: tests/paid-ads/change.test.mjs::a_campaign_that_does_not_exist_is_not_found
echo.paid-ads.change.platform-immutable#
- refused, exit 1
- changing campaign {campaign}: Echo changes campaigns only on {platforms}, and this campaign runs on {platform}; observed: ad_campaigns states platform {platform} for campaign {campaign}
- Fix: change it in {platform}'s own console
- Test: tests/paid-ads/change.test.mjs::a_campaign_on_a_platform_echo_does_not_change_is_refused
echo.paid-ads.change.account-inactive#
- refused, exit 1
- changing paid ads on ad account {account}: the account was deactivated, and Echo sends no change for a deactivated account; observed: ad_accounts states is_active false for account {account}
- Fix: reconnect the account (POST /api/paid-ads/accounts/connect), then send the change again
- Test: tests/paid-ads/change.test.mjs::a_change_on_a_deactivated_account_is_refused
echo.paid-ads.feedback#
Queue the conversion an analytics event earns for the ad platform its click came from, and upload every queued one to that platform's one active account.
Started by `/api/cron/ad-conversion-feedback`.
It also meets the causes of echo.integration, echo.store.
echo.paid-ads.feedback.amount-not-number#
- refused, exit 1
- reading what {event} earned or refunded: an amount the event states is a number, and {field} holds something else; observed: {field} is {value}
- Fix: send {field} as a number in the event's currency, or leave it out
- Test: tests/paid-ads/feedback.test.mjs::an_amount_that_is_not_a_number_is_refused
echo.paid-ads.feedback.platform-unsupported#
- refused, exit 1
- sending conversion {conversion} to {platform}: Echo uploads conversions to {supported} only, and the click came from {platform}; observed: ad_conversion_feedback_events row {conversion} names ad_platform {platform}
- Fix: leave the row as error; conversions of {platform} are not uploaded until Echo supports it
- Test: tests/paid-ads/feedback.test.mjs::a_conversion_for_an_unsupported_platform_is_named
echo.paid-ads.feedback.account-none#
- config, exit 1
- sending conversion {conversion} to {platform}: a conversion is uploaded to the one active {platform} ad account, and none is connected; observed: ad_accounts holds no active row of platform {platform}
- Fix: connect the {platform} ad account (POST /api/paid-ads/accounts/connect); the next pass sends the conversion
- Test: tests/paid-ads/feedback.test.mjs::a_conversion_without_an_account_is_named
echo.paid-ads.feedback.accounts-several#
- config, exit 1
- sending conversion {conversion} to {platform}: a conversion is uploaded to the one active {platform} ad account, and {count} are active while the conversion does not say which it belongs to; observed: active {platform} accounts: {accounts}
- Fix: deactivate every {platform} account but the one conversions belong to; the next pass sends the conversion
- Test: tests/paid-ads/feedback.test.mjs::a_conversion_with_several_accounts_is_named
echo.paid-ads.feedback.status-unwritten#
- infra_down, exit 69; trying again unchanged can help
- recording conversion {conversion} as sent to {platform}: {platform} took the conversion, and ad_conversion_feedback_events refused its sent status, so the row stays unsent and the pass stopped; the next pass sends it again under the same event_id, which {platform} deduplicates within 48 hours; observed: {platform} answered {answer}; event_id {key}; the store said {store}; {left} queued conversions were left for the next pass
- Fix: repair the store write the observed failure names, then run GET /api/cron/ad-conversion-feedback within 48 hours, while {platform} still deduplicates event_id {key}
- Test: tests/paid-ads/feedback.test.mjs::a_sent_conversion_whose_status_is_not_written_is_named
echo.analytics.collect#
Store the analytics event a declared web site, mobile app or product backend sends, with its attribution and identity.
Started by `/api/analytics/web/collect`, `/api/analytics/mobile/collect`, `/api/analytics/server/collect`.
It also meets the causes of echo.http.body, echo.store.
echo.analytics.collect.sites-malformed#
- config, exit 1
- reading the analytics sites this deployment collects for: {setting} is not in the form Echo reads: {problem}; observed: {setting} as this deployment has it
- Fix: correct {setting} in the deployment's settings as README.md (Operational model, Configuration) describes, then deploy again so the server reads it
- Test: tests/analytics/collect.test.mjs::a_malformed_sites_setting_names_the_setting_and_what_is_wrong
echo.analytics.collect.site-undeclared#
- refused, exit 1
- recording an event of web site {site}: no site this deployment declares has {site} as its id, alias or host, so an event from it is not stored; observed: the beacon named site {site}
- Fix: send the id of a declared site, or add {site} to the aliases or hosts of its site in WEB_ANALYTICS_SITES_JSON
- Test: tests/analytics/collect.test.mjs::an_event_of_an_undeclared_site_is_refused
echo.analytics.collect.app-undeclared#
- refused, exit 1
- recording an event of mobile app {app}: no mobile app this deployment declares with a collector answers to {app}, so an event from it is not stored; observed: the beacon named app {app}
- Fix: send the app id the mobile analytics settings declare, or declare {app} there with its collector URL and an analytics backend
- Test: tests/analytics/collect.test.mjs::an_event_of_an_undeclared_app_is_refused
echo.analytics.collect.platform-mismatch#
- refused, exit 2; the request itself is refused
- recording an event of mobile app {app}: the beacon says it comes from {platform}, and app {app} is declared for {declared}; observed: platform {platform} in the beacon, {declared} in the app settings
- Fix: send platform {declared} for app {app}, or leave platform out
- Test: tests/analytics/collect.test.mjs::a_beacon_from_another_platform_is_refused
echo.analytics.collect.source-key-unprefixed#
- auth, exit 1
- recording a product backend's event of {source} with a source key: a backend reports with Echo's internal bearer or with a source key, and the bearer it sent is neither: every source key starts with {prefix}; observed: a bearer of {length} characters that does not start with {prefix}; nothing was stored
- Fix: issue a key for {source} with echo-cli tracking keys issue --source {source} --label <text> --by <name> and give it to the backend
- Test: tests/analytics/collect.test.mjs::a_bearer_that_is_no_source_key_is_refused
echo.analytics.collect.source-key-unissued#
- auth, exit 1
- recording a product backend's event of {source} with a source key: Echo keeps the SHA-256 of every key it issued, and the key the backend sent matches none of them; observed: a source key of {length} characters whose SHA-256 analytics_source_keys does not hold; nothing was stored
- Fix: issue a key for {source} with echo-cli tracking keys issue --source {source} --label <text> --by <name> and give it to the backend in place of this one
- Test: tests/analytics/collect.test.mjs::a_source_key_echo_never_issued_is_refused
echo.analytics.collect.source-key-revoked#
- auth, exit 1
- recording a product backend's event of {source} with a source key: source key {key} ({label}) was revoked by {by} at {at}, and a revoked key stays revoked; observed: analytics_source_keys row {key} of {issued} has revoked_at {at}; nothing was stored
- Fix: issue a new key for {source} with echo-cli tracking keys issue --source {source} --label <text> --by <name> and give it to the backend
- Test: tests/analytics/collect.test.mjs::a_revoked_source_key_is_refused
echo.analytics.collect.source-key-foreign#
- auth, exit 1
- recording a product backend's event of {source} with a source key: a source key reports for the one source it was issued for, and key {key} ({label}) was issued for {issued}; observed: the event names {source}; analytics_source_keys row {key} has source_id {issued}; nothing was stored
- Fix: report the events of {source} with a key issued for it (echo-cli tracking keys list --source {source} lists them), or report this event for {issued}
- Test: tests/analytics/collect.test.mjs::a_source_key_of_another_source_is_refused
echo.drains#
Verify and store the email events Resend and the log batches Vercel deliver to Echo.
Started by `/api/drains/email`, `/api/drains/logs`.
It also meets the causes of echo.store.
echo.drains.secret-unset#
- config, exit 1
- checking the signature of a {provider} delivery to {route}: {setting} {problem}, so no delivery can be verified and none is taken in; observed: {setting} as this deployment has it
- Fix: set {setting} to the signing secret {provider} shows for the endpoint that sends to {route}, then deploy again so the server reads it
- Test: tests/drains/deliveries.test.mjs::a_delivery_without_the_secret_set_names_the_setting
echo.drains.signature-absent#
- auth, exit 1
- checking the signature of a {provider} delivery to {route}: {provider} signs every delivery with {headers}, and this request carries none of them, so it is not taken as {provider}'s; observed: the request has no {headers}
- Fix: point only the {provider} endpoint at {route}; a sender without the signing secret cannot deliver there
- Test: tests/drains/deliveries.test.mjs::an_unsigned_delivery_is_refused
echo.drains.signature-mismatch#
- auth, exit 1
- checking the signature of a {provider} delivery to {route}: {headers} does not match the body signed with {setting}: {provider}'s secret for the endpoint and Echo's differ; observed: a signature that is not the one {setting} gives for this body
- Fix: copy the signing secret {provider} shows for the endpoint into {setting} and deploy again; after rotating it in {provider}, update {setting} the same way
- Test: tests/drains/deliveries.test.mjs::a_delivery_signed_with_another_secret_is_refused
echo.drains.delivery-malformed#
- refused, exit 2; the request itself is refused
- reading a signed {provider} delivery to {route}: the delivery is not {expects}; observed: {reason}
- Fix: nothing is stored for it; check that the {provider} endpoint sending to {route} is the kind {expects} comes from, and that {provider}'s format has not changed
- Test: tests/drains/deliveries.test.mjs::a_signed_delivery_that_is_not_the_documented_format_is_refused
echo.growth.eligibility#
Check whether a signed-in user may redeem a promo code or start a trial, and store why they cancelled their subscription.
Started by `/api/public/promos`, `/api/public/trials`, `/api/public/cancellations/answers`, `/api/analytics/promos/checks`, `/api/analytics/trials`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.store.
echo.growth.eligibility.promo-blocked#
- refused, exit 1
- checking whether user {user} may redeem the code {code}: the code {code} is meant once per customer, and an account linked to user {user} already used it; observed: {reason}
- Fix: check out without the code, or with a code meant for everyone
- Test: tests/growth/eligibility.test.mjs::a_code_meant_once_is_refused_to_a_linked_account
echo.growth.eligibility.code-unknown#
- not_found, exit 1
- checking whether user {user} may redeem the code {code}: no promo code {code} was created through Echo; observed: promo_codes holds no row with code {code}
- Fix: send a code echo-cli promos list shows, as customers type it
- Test: tests/growth/eligibility.test.mjs::a_code_echo_never_created_is_not_found
echo.growth.eligibility.code-off#
- refused, exit 1
- checking whether user {user} may redeem the code {code}: the code {code} was turned off, so nobody may redeem it; observed: turned off by {by} at {at}
- Fix: check out without the code, or create a new one: echo-cli promos create
- Test: tests/growth/eligibility.test.mjs::a_code_turned_off_is_refused
echo.growth.eligibility.personal-unissued#
- infra_down, exit 69; trying again unchanged can help
- issuing user {user} a personal promotion code of {code} for Stripe customer {customer}: Stripe refused or did not answer the call that creates the personal promotion code; observed: Stripe answered: {reason}
- Fix: check that the code's coupon and the customer exist in Stripe, then ask again; nothing was kept in Echo
- Test: tests/growth/eligibility.test.mjs::a_personal_code_stripe_refuses_is_named
echo.growth.eligibility.second-code-left-on#
- infra_down, exit 69; trying again unchanged can help
- turning off the second personal promotion code {second} of {code} issued to user {user} at the same moment as {kept}: two checks issued user {user} a code at once; Echo keeps {kept}, and Stripe refused or did not answer the call turning {second} off; observed: Stripe answered: {reason}
- Fix: turn {second} off in the Stripe dashboard (Products, Coupons, Promotion codes); user {user} redeems {kept}
- Test: tests/growth/eligibility.test.mjs::a_second_personal_code_stripe_keeps_on_is_named
echo.growth.eligibility.trial-taken#
- refused, exit 1
- checking whether user {user} may start a free trial: a free trial is given once per person, and an account linked to user {user} already started one; observed: {reason}
- Fix: subscribe without a trial
- Test: tests/growth/eligibility.test.mjs::a_second_trial_of_a_linked_account_is_refused
echo.growth.eligibility.not-the-subscriber#
- refused, exit 1
- storing why subscription {subscription} was cancelled: the cancellation names another subscriber, and only they can say why it was cancelled; observed: {reason}
- Fix: sign in as the subscriber whose subscription was cancelled and answer again
- Test: tests/growth/eligibility.test.mjs::another_subscribers_cancellation_is_refused
echo.growth.eligibility.not-cancelled#
- not_found, exit 1
- storing why {billing} subscription {subscription} was cancelled: a survey answers a cancellation, and Echo holds no cancellation of {billing} subscription {subscription}; observed: {table} holds no cancellation event of subscription {subscription}
- Fix: answer after the subscription is cancelled, naming it as its RevenueCat original transaction id or Stripe subscription id
- Test: tests/growth/eligibility.test.mjs::a_subscription_never_cancelled_is_not_found
echo.growth.eligibility.already-answered#
- refused, exit 1
- storing why subscription {subscription} was cancelled: a cancellation is answered once, and this one was answered already; observed: answered at {at}
- Fix: leave the answer given; a later cancellation of the subscription takes a new one
- Test: tests/growth/eligibility.test.mjs::a_cancellation_answered_twice_is_refused
echo.content.interactive#
Publish and remove interactive pieces, and let a visitor complete one, storing the answers, the computed results and the lead.
Started by `/api/analytics/interactive`, `/api/public/interactive/[slug]`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.store.
echo.content.interactive.options-few#
- refused, exit 2; the request itself is refused
- publishing the interactive piece {slug}: a choice question offers at least two options, and questions[{index}] offers {count}; observed: questions[{index}].options holds {count}
- Fix: send questions[{index}].options with two choices or more, or kind "number" for a number question
- Test: tests/content/interactive.test.mjs::a_choice_with_one_option_is_refused
echo.content.interactive.key-repeated#
- refused, exit 2; the request itself is refused
- publishing the interactive piece {slug}: a completion stores each answer and result under its own key, and {key} is used {where}; observed: {key} names more than one question or result
- Fix: give each question and each result a key of its own
- Test: tests/content/interactive.test.mjs::a_key_used_twice_is_refused
echo.content.interactive.term-unknown#
- refused, exit 2; the request itself is refused
- publishing the interactive piece {slug}: a result multiplies the answers of number questions, and {field} names {key}, which is not a number question of the piece; observed: {field} names {key}
- Fix: name a number question of the piece in {field}
- Test: tests/content/interactive.test.mjs::a_result_on_an_unknown_question_is_refused
echo.content.interactive.list-absent#
- not_found, exit 1
- publishing the interactive piece {slug}: a visitor who leaves an email joins a CRM list, and no CRM list has the id {list}; observed: creator_lists holds no row with id {list}
- Fix: name a list the CRM page of Echo shows
- Test: tests/content/interactive.test.mjs::a_piece_joining_an_unknown_list_is_refused
echo.content.interactive.slug-taken#
- refused, exit 1
- publishing the interactive piece {slug}: one piece is published at an address, and {slug} is already piece {piece} of {app}; observed: interactive_pieces row {piece} has the slug {slug}
- Fix: publish at another slug, or remove piece {piece} first (echo-cli content interactive remove --piece {piece})
- Test: tests/content/interactive.test.mjs::a_slug_published_twice_is_refused
echo.content.interactive.piece-absent#
- not_found, exit 1
- {step}: no interactive piece is {where}; observed: interactive_pieces holds no row {where}
- Fix: name a piece echo-cli content interactive list --app <source> shows
- Test: tests/content/interactive.test.mjs::a_piece_that_does_not_exist_is_not_found
echo.content.interactive.answer-refused#
- refused, exit 2; the request itself is refused
- completing the interactive piece {slug}: question {question} takes {expects}, and the answer is not one; observed: answers.{question} is {value}
- Fix: answer {question} with {expects}
- Test: tests/content/interactive.test.mjs::an_answer_the_question_does_not_take_is_refused
echo.content.threads#
Declare which social accounts a blog surface's published posts are drafted as threads for, and draft a post's thread for each.
Started by `/api/analytics/thread-drafts`, `echo-cli content threads`.
It also meets the causes of echo.http.access, echo.http.body, echo.blog.lookup, echo.social.accounts, echo.store.
echo.content.threads.part-limit-invalid#
- refused, exit 2; the request itself is refused
- declaring the thread target of blog surface {surface} for social account {account}: part_limit is the most characters one part may hold on the account's platform, a whole number of at least 1, and {limit} is not; observed: part_limit {limit}; no target was written
- Fix: send part_limit as the platform's limit, such as 280 for X: echo-cli content threads target --surface {surface} --account {account} --part-limit <n> --by <who>
- Test: tests/content/threads.test.mjs::a_part_limit_that_is_not_a_count_is_refused
echo.content.threads.target-held#
- refused, exit 1
- declaring the thread target of blog surface {surface} for social account {account}: a surface drafts threads for an account once, and target {held} already does, with parts of at most {heldLimit} characters; observed: thread_draft_targets row {held} names {surface} and {account}; it was left as it was
- Fix: remove it first (echo-cli content threads untarget --id {held}), then declare the target again
- Test: tests/content/threads.test.mjs::a_target_declared_twice_is_refused
echo.content.threads.target-absent#
- not_found, exit 1
- removing the thread target {target}: no thread target has the id {target}; observed: thread_draft_targets holds no row with id {target}; nothing was removed
- Fix: name a target echo-cli content threads targets lists
- Test: tests/content/threads.test.mjs::a_target_that_does_not_exist_is_not_found
echo.content.threads.release-entry-gone#
- not_found, exit 1
- drafting the thread of blog post {post}: the post's release notes were drafted from changelog entry {entry}, and that entry no longer exists, so the thread cannot name the release; observed: release_drafts names entry {entry} for post {post}; changelog_entries holds no row {entry}; no thread was drafted
- Fix: read the product's changelog again (echo-cli changelog sync --product <id>) so the entry exists, or remove the release_drafts row of post {post}
- Test: tests/content/threads.test.mjs::a_post_whose_changelog_entry_is_gone_is_named
echo.content.threads.post-unpublished#
- refused, exit 1
- drafting the thread of blog post {post}: a thread ends with the post's address, which only a published post has, and this one is {status}; observed: blog_posts row {post} has status {status}; no thread was drafted
- Fix: publish the post first; publishing drafts its threads for the surface's targets by itself
- Test: tests/content/threads.test.mjs::a_thread_of_an_unpublished_post_is_refused
echo.content.threads.target-account-gone#
- not_found, exit 1
- drafting the thread of blog post {post} for target {target}: the target names social account {account}, and no social account has that id any more; observed: social_accounts holds no row {account}; the other targets were drafted, this one was not
- Fix: remove the target (echo-cli content threads untarget --id {target}) and declare one for an account that exists
- Test: tests/content/threads.test.mjs::a_target_whose_account_was_removed_is_named
echo.content.ghostwrite#
Learn a founder's style from their account's published posts, write drafts on a topic in it, and queue a draft only once the founder approves it.
Started by `/api/analytics/ghostwrite`, `echo-cli social ghostwrite`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.model, echo.content.checks, echo.social.accounts, echo.store.
echo.content.ghostwrite.posts-invalid#
- refused, exit 2; the request itself is refused
- writing the style profile of {founder} from social account {account}: posts is how many of the newest published posts show the style, a whole number above zero, and {posts} is not; observed: posts {posts}; no profile was written
- Fix: send posts as a count, such as 20: echo-cli social ghostwrite profile --account {account} --founder {founder} --posts <n> --by <who>
- Test: tests/content/ghostwrite.test.mjs::a_post_count_that_is_not_a_count_is_refused
echo.content.ghostwrite.posts-none#
- refused, exit 1
- writing the style profile of {founder} from social account {account}: a style is learned from the account's published posts with text, and it has none; observed: content_posts holds no published post with a caption for account {account}; no profile was written
- Fix: publish posts with text through the account first, or name the founder's account that has them (echo-cli social-accounts)
- Test: tests/content/ghostwrite.test.mjs::an_account_without_published_text_is_refused
echo.content.ghostwrite.style-empty#
- infra_down, exit 69; trying again unchanged can help
- writing {what} through the route {route}: the route answered its tool call with an empty {field}, so there is nothing to store; observed: {field} {value}; nothing was stored
- Fix: ask again; a route that keeps answering empty is replaced in ECHO_GHOSTWRITE_ROUTE
- Test: tests/content/ghostwrite.test.mjs::a_route_that_writes_nothing_is_named
echo.content.ghostwrite.profile-absent#
- not_found, exit 1
- {step}: no style profile has the id {profile}; observed: ghostwrite_profiles holds no row with id {profile}; nothing was written
- Fix: name a profile echo-cli social ghostwrite profiles lists
- Test: tests/content/ghostwrite.test.mjs::a_profile_that_does_not_exist_is_not_found
echo.content.ghostwrite.decision-unknown#
- refused, exit 2; the request itself is refused
- deciding on the ghostwritten draft {draft}: a draft is approved or rejected, and {decision} is neither; observed: decision {decision}; the draft was left {status}
- Fix: run echo-cli social ghostwrite approve --id {draft} --by <founder>, or reject
- Test: tests/content/ghostwrite.test.mjs::a_decision_that_is_neither_is_refused
echo.content.ghostwrite.draft-absent#
- not_found, exit 1
- deciding on the ghostwritten draft {draft}: no ghostwritten draft has the id {draft}; observed: ghostwrite_drafts holds no row with id {draft}; nothing was decided
- Fix: name a draft echo-cli social ghostwrite drafts --profile <id> lists
- Test: tests/content/ghostwrite.test.mjs::a_draft_that_does_not_exist_is_not_found
echo.content.ghostwrite.draft-decided#
- refused, exit 1
- deciding {decision} on the ghostwritten draft {draft}: a draft is decided once, and it was {status} by {decidedBy} at {decidedAt}; observed: ghostwrite_drafts row {draft} is {status}; it was left as it was
- Fix: write a new draft on the topic instead: echo-cli social ghostwrite draft --profile {profile} --topic <t> --by <who>
- Test: tests/content/ghostwrite.test.mjs::a_draft_decided_twice_is_refused
echo.content.ghostwrite.decider-not-founder#
- refused, exit 1
- deciding {decision} on the ghostwritten draft {draft}: only the founder a style profile names decides on drafts in their style, and {decidedBy} is not {founder}; observed: profile {profile} names founder {founder}; the draft was left pending
- Fix: have {founder} decide: echo-cli social ghostwrite {decision} --id {draft} --by {founder}
- Test: tests/content/ghostwrite.test.mjs::a_decision_by_someone_else_is_refused
echo.content.ghostwrite.draft-raced#
- refused, exit 1
- recording {decision} on the ghostwritten draft {draft}: another request decided the draft between this one reading it pending and writing its decision; observed: ghostwrite_drafts row {draft} was no longer pending when written; this request queued {queued}
- Fix: read the draft's decision (echo-cli social ghostwrite drafts --profile <id>); a post this request queued is removed with echo-cli content queue remove --id {queued}
- Test: tests/content/ghostwrite.test.mjs::a_draft_decided_by_two_requests_at_once_is_refused
echo.content.repurpose#
Rewrite a published blog post in each format asked, drafted into the content queue or as a newsletter to a CRM list.
Started by `/api/analytics/repurpose`, `echo-cli content repurpose`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.model, echo.blog.lookup, echo.content.checks, echo.social.accounts, echo.store.
echo.content.repurpose.formats-none#
- refused, exit 2; the request itself is refused
- repurposing blog post {post}: formats names what the post is drafted as, and the request names none; observed: formats {formats}; nothing was drafted
- Fix: send formats as a list of {known}: echo-cli content repurpose run --post {post} --account <id> --formats thread --by <who>
- Test: tests/content/repurpose.test.mjs::a_request_naming_no_format_is_refused
echo.content.repurpose.format-unknown#
- refused, exit 2; the request itself is refused
- repurposing blog post {post}: Echo drafts {known}, and {unknown} is none of them; observed: formats {formats}; nothing was drafted
- Fix: send only formats among {known}
- Test: tests/content/repurpose.test.mjs::a_format_echo_does_not_draft_is_refused
echo.content.repurpose.post-unpublished#
- refused, exit 1
- repurposing blog post {post}: only a published post is repurposed, so its drafts can link to its address, and this one is {status}; observed: blog_posts row {post} has status {status}; nothing was drafted
- Fix: publish the post first, then repurpose it
- Test: tests/content/repurpose.test.mjs::an_unpublished_post_is_refused
echo.content.repurpose.rewrite-empty#
- infra_down, exit 69; trying again unchanged can help
- rewriting blog post {post} as a {format} through the route {route}: the route answered its tool call with an empty text, so there is no {format} to draft; observed: text {text}; the other formats were drafted, this one was not
- Fix: repurpose the post again with {format} among its formats; a route that keeps answering empty is replaced in ECHO_REPURPOSE_ROUTE
- Test: tests/content/repurpose.test.mjs::an_empty_rewrite_is_named
echo.content.evergreen#
Set how often an account's evergreen posts repeat, mark published posts evergreen by hand or by measured engagement, and requeue the due ones.
Started by `/api/analytics/evergreen`, `/api/cron/evergreen-requeue`, `echo-cli content evergreen`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.queue.lookup, echo.content.checks, echo.store.
echo.content.evergreen.interval-invalid#
- refused, exit 2; the request itself is refused
- setting the evergreen interval of social account {account}: interval_days is how many days pass before an evergreen post goes out again, a whole number of at least 1 sent as a JSON number, and {days} is not; observed: interval_days {days}; the interval was left {held}
- Fix: run echo-cli content evergreen interval --account {account} --days <days> --by <who>
- Test: tests/content/evergreen.test.mjs::an_interval_that_is_not_a_count_of_days_is_refused
echo.content.evergreen.never-published#
- refused, exit 1
- marking post {post} evergreen: an evergreen post is published again, so it must have gone out once, and post {post} is {status} and was never published; observed: content_posts row {post} has status {status} and no published_at; nothing was marked
- Fix: publish the post first, or mark one echo-cli content queue list --status published lists
- Test: tests/content/evergreen.test.mjs::a_post_never_published_is_refused
echo.content.evergreen.already-marked#
- refused, exit 1
- marking post {post} evergreen: a post is on the evergreen queue once, and {by} marked it at {at}; observed: evergreen_posts holds post {post}; the mark was left as it was
- Fix: nothing to do; take it off with echo-cli content evergreen unmark --post {post} first to mark it again
- Test: tests/content/evergreen.test.mjs::a_post_marked_twice_is_refused
echo.content.evergreen.not-marked#
- not_found, exit 1
- taking post {post} off the evergreen queue: post {post} is not on the evergreen queue; observed: evergreen_posts holds no row for post {post}; nothing was removed
- Fix: name a post echo-cli content evergreen list shows under posts
- Test: tests/content/evergreen.test.mjs::a_post_not_on_the_queue_is_not_found
echo.content.evergreen.interval-unset#
- not_found, exit 1
- requeueing the evergreen posts of social account {account}: how often a post may repeat is the operator's to say, and account {account} has no interval set; observed: evergreen_intervals holds no row for {account}; nothing was requeued
- Fix: set it: echo-cli content evergreen interval --account {account} --days <days> --by <who>
- Test: tests/content/evergreen.test.mjs::an_account_without_an_interval_is_refused
echo.content.evergreen.none-measured#
- refused, exit 1
- choosing the {top} best evergreen posts of social account {account} over {days} days: posts are chosen by the engagement rate their scrapes recorded, and no published post of the account in the window was measured; observed: {published} published posts in the window, none with a scrape; nothing was marked
- Fix: widen the window (--days), wait for the account's scrape to measure its posts, or mark posts by hand with echo-cli content evergreen mark --post <id> --by <who>
- Test: tests/content/evergreen.test.mjs::an_account_without_measured_posts_is_refused
echo.content.queue.publish#
Publish a queued post through each social account named, keeping per account the run Weles started or the refusal that kept it.
Started by `/api/analytics/publications`, `echo-cli content queue publish`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.queue.lookup, echo.content.checks, echo.store.
echo.content.queue.publish.accounts-none#
- refused, exit 2; the request itself is refused
- publishing queued post {post}: account_ids names the social accounts the post goes out through, a list or comma-separated ids, and {given}; observed: account_ids {value}; nothing was published
- Fix: run echo-cli content queue publish --id {post} --accounts <id,...> --by <who>, naming accounts echo-cli social-accounts lists
- Test: tests/content/publish.test.mjs::a_publication_naming_no_account_is_refused
echo.content.plan#
Plan pieces for a day in the blog, social, video or email channel, read the plan between two days, remove an item, and draft an item into its channel once.
Started by `/api/analytics/content-plan`, `echo-cli content plan`.
It also meets the causes of echo.http.access, echo.http.body, echo.products.lookup, echo.social.accounts, echo.store.
echo.content.plan.day-invalid#
- refused, exit 2; the request itself is refused
- reading {field}, {meaning}: a day of the plan is written YYYY-MM-DD and names a day of the calendar, and {given} is not one; observed: {field} {given}; nothing was read or written
- Fix: send {field} as a calendar day such as 2026-03-01
- Test: tests/content/plan.test.mjs::a_day_that_is_not_a_calendar_day_is_refused
echo.content.plan.range-reversed#
- refused, exit 2; the request itself is refused
- reading the content plan from {from} to {to}: the plan is read from its first day to its last, and {to} is before {from}; observed: from {from}, to {to}; nothing was read
- Fix: run echo-cli content plan list --from {to} --to {from}
- Test: tests/content/plan.test.mjs::a_plan_read_backwards_is_refused
echo.content.plan.item-absent#
- not_found, exit 1
- {step} the plan item {item}: no plan item has the id {item}; observed: content_plan_items holds no row with id {item}; nothing was changed
- Fix: name an item echo-cli content plan list --from <day> --to <day> lists
- Test: tests/content/plan.test.mjs::an_item_that_does_not_exist_is_not_found
echo.content.plan.item-drafted#
- refused, exit 1
- drafting the plan item {item}: an item is drafted into its channel once, and it was drafted as {draft} at {at}; observed: content_plan_items row {item} names draft {draft}; no second draft was made
- Fix: work on draft {draft} in the {channel} channel, or plan a new item
- Test: tests/content/plan.test.mjs::an_item_drafted_twice_is_refused
echo.content.plan.item-raced#
- refused, exit 1
- recording the draft of the plan item {item}: another request drafted the item between this one reading it undrafted and recording its draft; observed: this request made draft {draft} in the {channel} channel, which the item does not name
- Fix: keep one of the two drafts: the item names the other request's (echo-cli content plan list), and draft {draft} is removed in its channel
- Test: tests/content/plan.test.mjs::an_item_drafted_by_two_requests_at_once_is_refused
echo.content.ugc#
Open and close a request for customer video reviews and testimonials, take a customer's media and consent through its public form, and review each submission once.
Started by `/api/analytics/ugc`, `/api/public/ugc`, `/share/[request]`, `echo-cli ugc`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.products.lookup, echo.store.
echo.content.ugc.request-absent#
- not_found, exit 1
- {step} the request for customer submissions {request}: no request for customer submissions has the id {request}; observed: ugc_requests holds no row with id {request}; nothing was changed
- Fix: name a request echo-cli ugc collect lists, or open the link the request was shared with again
- Test: tests/content/ugc.test.mjs::a_request_that_does_not_exist_is_not_found
echo.content.ugc.request-closed#
- refused, exit 1
- {step} the request for customer submissions {request}: a closed request takes nothing more, and {closedBy} closed it at {closedAt}; observed: ugc_requests row {request} has closed_at {closedAt}; nothing was stored
- Fix: open a new request for the product (echo-cli ugc ask --product <id> --prompt <t> --consent <t> --by <who>) and share its link
- Test: tests/content/ugc.test.mjs::a_closed_request_takes_nothing
echo.content.ugc.request-raced#
- refused, exit 1
- closing the request for customer submissions {request}: another request closed it between this one reading it open and writing the close; observed: ugc_requests row {request} was no longer open when written
- Fix: nothing to do: the request is closed; echo-cli ugc collect --request {request} shows who closed it
- Test: tests/content/ugc.test.mjs::a_request_closed_by_two_requests_at_once_is_refused
echo.content.ugc.form-unreadable#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: a submission is sent as a multipart form of name, email, consent and media, and the body could not be read as one; observed: Content-Type {type}: {reason}; nothing was stored
- Fix: send the form from the request's page, or as multipart/form-data with the fields name, email, consent and media
- Test: tests/content/ugc.test.mjs::a_body_that_is_not_a_form_is_refused
echo.content.ugc.email-invalid#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: email is where the submitter is reached, an address of the form name@domain.tld, and {email} is not one; observed: email {email}; nothing was stored
- Fix: send the form again with the submitter's email address
- Test: tests/content/ugc.test.mjs::an_email_that_is_not_an_address_is_refused
echo.content.ugc.consent-missing#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: a submission is kept only with the submitter's agreement to the request's consent text, and the form's consent is {consent}, not true; observed: consent {consent}; the consent text is "{text}"; nothing was stored
- Fix: send the form again with consent true once the submitter agrees to the consent text
- Test: tests/content/ugc.test.mjs::a_submission_without_consent_is_refused
echo.content.ugc.media-missing#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: a submission carries one image or video file in the form field media, and the form carries {found}; observed: media {found}; nothing was stored
- Fix: send the form again with the image or video file in media
- Test: tests/content/ugc.test.mjs::a_submission_without_media_is_refused
echo.content.ugc.media-kind#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: a submission's media is an image or a video, and the file {name} is {type}; observed: media {name} of {bytes} bytes, type {type}; nothing was stored
- Fix: send an image (image/*) or a video (video/*) file
- Test: tests/content/ugc.test.mjs::media_that_is_not_an_image_or_video_is_refused
echo.content.ugc.media-too-large#
- refused, exit 2; the request itself is refused
- taking a submission for request {request}: this deployment takes files of at most {limit} bytes (ECHO_UGC_MAX_BYTES), and {name} is {bytes}; observed: media {name} of {bytes} bytes, {over} bytes over; nothing was stored
- Fix: send a smaller file: shorten or compress the video, or raise ECHO_UGC_MAX_BYTES in the deployment's environment
- Test: tests/content/ugc.test.mjs::media_larger_than_the_limit_is_refused
echo.content.ugc.submission-absent#
- not_found, exit 1
- reviewing the customer submission {submission}: no customer submission has the id {submission}; observed: ugc_submissions holds no row with id {submission}; nothing was reviewed
- Fix: name a submission echo-cli ugc collect lists
- Test: tests/content/ugc.test.mjs::a_submission_that_does_not_exist_is_not_found
echo.content.ugc.submission-reviewed#
- refused, exit 1
- reviewing the customer submission {submission}: a submission is reviewed once, and it was {decision} by {by} at {at}; observed: ugc_submissions row {submission} has reviewed_at {at}; the review was left as it was
- Fix: nothing to do: echo-cli ugc collect --request <id> shows the review
- Test: tests/content/ugc.test.mjs::a_submission_reviewed_twice_is_refused
echo.content.ugc.decision-unstated#
- refused, exit 2; the request itself is refused
- reviewing a customer submission: a review names the submission in approve or in reject, one of the two, and the request {sent}; observed: the request states {fields}; nothing was reviewed
- Fix: run echo-cli ugc approve --id <id> --by <who>, or echo-cli ugc reject --id <id> --note <t> --by <who>
- Test: tests/content/ugc.test.mjs::a_review_naming_neither_or_both_decisions_is_refused
echo.content.review#
Require or waive approval before a blog surface's or a social account's posts go out, and record each request, approval or rejection of what would go out.
Started by `/api/analytics/reviews-content`, `/api/analytics/reviews-social`, `echo-cli content review`, `echo-cli content social-review`.
It also meets the causes of echo.http.access, echo.http.body, echo.blog.lookup, echo.content.queue.lookup, echo.social.accounts, echo.store.
echo.content.review.policy-absent#
- not_found, exit 1
- waiving review on {subject}: {subject} does not require review, so there is no requirement to waive; observed: {table} holds no row for {key}; nothing was changed
- Fix: name one echo-cli content {command} policies lists
- Test: tests/content/review.test.mjs::a_waiver_of_what_requires_no_review_is_not_found
echo.content.review.verb-unknown#
- refused, exit 2; the request itself is refused
- recording a review of {subject}: a review requests, approves or rejects, and {verb} is none of them; observed: verb {verb}; the transitions are {verbs}; nothing was recorded
- Fix: run echo-cli content {command} request|approve|reject --post <id> --by <who>
- Test: tests/content/review.test.mjs::a_verb_that_is_not_a_transition_is_refused
echo.content.review.note-missing#
- refused, exit 2; the request itself is refused
- rejecting {subject}: a rejection says what has to change before the post can be approved, and the request sends no note; observed: note {note}; nothing was recorded
- Fix: run echo-cli content {command} reject --post {post} --by <who> --note <what has to change>
- Test: tests/content/review.test.mjs::a_rejection_without_a_note_is_refused
echo.content.review.already-in-state#
- refused, exit 1
- recording {state} on {subject}: what would go out is already {state} by {actor} at {at}, so recording it again changes nothing; observed: the latest review of {subject} is {state}; nothing was recorded
- Fix: change the post first (a new revision or new content needs its own review), or read its reviews with echo-cli content {command} history --post {post}
- Test: tests/content/review.test.mjs::a_transition_already_made_is_refused
echo.content.rights#
Record, revoke and erase the rights to the assets Echo publishes, and check a post's assets against them.
Started by `/api/analytics/asset-rights`, `echo-cli content rights`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.content.rights.kind-unknown#
- refused, exit 2; the request itself is refused
- recording a right to {asset}: the register records {kinds}, and {kind} is none of them; observed: kind {kind}; nothing was recorded
- Fix: send kind as one of {kinds}
- Test: tests/content/rights.test.mjs::a_kind_the_register_does_not_record_is_refused
echo.content.rights.end-unstated#
- refused, exit 2; the request itself is refused
- recording the {kind} of {asset}: a right states when it ends, as expires_at, or that it does not end, as perpetual true, and the request {stated}; observed: expires_at {expires}, perpetual {perpetual}; nothing was recorded
- Fix: send exactly one: echo-cli content rights record ... (--expires-at <t> | --perpetual true)
- Test: tests/content/rights.test.mjs::a_right_with_no_end_or_two_ends_is_refused
echo.content.rights.expiry-invalid#
- refused, exit 2; the request itself is refused
- recording the {kind} of {asset}: expires_at is when the right ends, an ISO date or time, and {expires} is not one; observed: expires_at {expires}; nothing was recorded
- Fix: send expires_at as a date such as 2027-01-31 or a time such as 2027-01-31T00:00:00Z
- Test: tests/content/rights.test.mjs::an_expiry_that_is_not_a_date_is_refused
echo.content.rights.right-absent#
- not_found, exit 1
- {step} the asset right {record}: no asset right has the id {record}; observed: asset_rights holds no row with id {record}; nothing was changed
- Fix: name one echo-cli content rights list lists
- Test: tests/content/rights.test.mjs::a_right_that_does_not_exist_is_not_found
echo.content.rights.right-revoked#
- refused, exit 1
- revoking the asset right {record}: asset rights are revoked once, and {by} revoked this one at {at}; observed: asset_rights row {record} has revoked_at {at}; it was left as it was
- Fix: nothing to do; asset rights recorded in error are erased instead (echo-cli content rights list shows its state)
- Test: tests/content/rights.test.mjs::a_right_revoked_twice_is_refused
echo.content.consent#
Record, revoke and erase consents to tag a handle, and declare which people a queued post's media shows.
Started by `/api/analytics/tagging-consents`, `/api/analytics/people-shown`, `echo-cli content consent`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.queue.lookup, echo.store.
echo.content.consent.consent-in-force#
- refused, exit 1
- recording the tagging consent of @{handle} on {platform}: a handle holds one consent in force at a time, and consent {held} given by {person} has been in force since {at}; observed: tagging_consents row {held} names @{handle} on {platform} and is not revoked; nothing was recorded
- Fix: nothing to do while it is in force; to record new evidence, revoke it first (echo-cli content consent revoke --id {held} --by <who>)
- Test: tests/content/consent.test.mjs::a_handle_with_consent_in_force_is_refused
echo.content.consent.consent-absent#
- not_found, exit 1
- {step} the tagging consent {record}: no tagging consent has the id {record}; observed: tagging_consents holds no row with id {record}; nothing was changed
- Fix: name one echo-cli content consent list lists
- Test: tests/content/consent.test.mjs::a_consent_that_does_not_exist_is_not_found
echo.content.consent.consent-revoked#
- refused, exit 1
- revoking the tagging consent {record}: tagging consents are revoked once, and {by} revoked this one at {at}; observed: tagging_consents row {record} has revoked_at {at}; it was left as it was
- Fix: nothing to do; tagging consents recorded in error are erased instead (echo-cli content consent list shows its state)
- Test: tests/content/consent.test.mjs::a_consent_revoked_twice_is_refused
echo.content.consent.handles-none#
- refused, exit 2; the request itself is refused
- declaring who queued post {post} shows: handles names the people the post's media shows on its platform, a list or comma-separated handles, and {given}; observed: handles {value}; the declaration was left as it was
- Fix: send the handles shown (echo-cli content consent shown --post {post} --handles <h,...> --by <who>), or take one off with echo-cli content consent unshow --post {post} --handle <h>
- Test: tests/content/consent.test.mjs::a_declaration_naming_nobody_is_refused
echo.content.consent.shown-absent#
- not_found, exit 1
- taking @{handle} off the people queued post {post} shows: post {post} does not declare @{handle} shown; observed: post_people_shown holds no row for post {post} and @{handle}; it declares {declared}
- Fix: name a handle echo-cli content consent people --post {post} lists
- Test: tests/content/consent.test.mjs::a_handle_the_post_does_not_declare_is_not_found
echo.content.case-studies#
Record and revoke a customer's consent to case studies, mark a blog post as a customer's case study and draft one from their usage.
Started by `/api/analytics/case-studies`, `echo-cli content case-study`.
It also meets the causes of echo.http.access, echo.http.body, echo.blog.lookup, echo.config, echo.model, echo.store.
echo.content.case-studies.consent-in-force#
- refused, exit 1
- recording the case-study consent of {customer}: a customer holds one consent in force at a time, and consent {held}, given by {grantedBy}, has been in force since {at}; observed: case_study_consents row {held} names {customer} and is not revoked; nothing was recorded
- Fix: nothing to do while it is in force; to record new evidence, revoke it first: echo-cli content case-study revoke --customer "{customer}" --by <name>
- Test: tests/content/case-studies.test.mjs::a_customer_with_consent_in_force_is_refused
echo.content.case-studies.consent-none#
- not_found, exit 1
- revoking the case-study consent of {customer}: {customer} has no consent in force to revoke; observed: case_study_consents holds {held} for {customer}, none of them in force; nothing was revoked
- Fix: name the customer exactly as echo-cli content case-study list shows them
- Test: tests/content/case-studies.test.mjs::a_customer_without_consent_in_force_is_not_found
echo.content.case-studies.draft-unconsented#
- refused, exit 1
- drafting a case study of {customer}: nothing about a customer is drafted without their consent in force, and {customer} has none; observed: case_study_consents holds no consent in force for {customer}; nothing was drafted
- Fix: record it first: echo-cli content case-study consent --customer "{customer}" --granted-by <person> --evidence <text> --by <name>
- Test: tests/content/case-studies.test.mjs::a_draft_of_a_customer_without_consent_is_refused
echo.content.case-studies.usage-none#
- refused, exit 1
- drafting a case study of {customer} from the usage of {subject} over {days} days: a case study cites only what the customer did, and {subject} sent no event in the window; observed: no web, mobile or RevenueCat event of {subject} or the identifiers linked to it since {since}; nothing was drafted
- Fix: widen the window (--days), or name the subject the customer's events carry (echo-cli tracking identity show --id <id> lists them)
- Test: tests/content/case-studies.test.mjs::a_subject_without_usage_is_refused
echo.content.case-studies.draft-incomplete#
- infra_down, exit 69; trying again unchanged can help
- drafting a case study of {customer} through the route {route}: the route's record_case_study call lacks {missing}, which every draft post carries; observed: {field} {value}; nothing was stored
- Fix: ask again; a route that keeps leaving it out is replaced in ECHO_CASE_STUDY_ROUTE
- Test: tests/content/case-studies.test.mjs::a_route_that_leaves_a_field_out_is_named
echo.content.case-studies.numbers-uncited#
- infra_down, exit 69; trying again unchanged can help
- drafting a case study of {customer} through the route {route}: a case study cites only the numbers of the customer's usage, and the route wrote {strays}, which the usage does not hold; observed: the usage holds {held}; nothing was stored
- Fix: ask again; a route that keeps inventing numbers is replaced in ECHO_CASE_STUDY_ROUTE
- Test: tests/content/case-studies.test.mjs::a_draft_citing_numbers_the_usage_lacks_is_refused
echo.content.caption-render#
Render a video with timed captions in the style, size and position the request states, recording the job and streaming its progress.
Started by `/api/captions`, `echo-cli content brand render`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.brand-kits, echo.store.
echo.content.caption-render.words-missing#
- refused, exit 2; the request itself is refused
- reading the words of a caption render: a caption shows custom_text, or else the prompt the video was generated from, and the request sends neither as non-blank text; observed: custom_text {custom}, prompt {prompt}; no job was recorded
- Fix: send custom_text with the words to show (echo-cli content brand render --words <w>), or prompt (--prompt <w>)
- Test: tests/content/captions.test.mjs::a_render_without_words_is_refused
echo.content.caption-render.renderer-absent#
- config, exit 1
- rendering a captioned video of {video}: the captioned video is rendered by Remotion on this server, which needs the browser and ffmpeg binaries a Vercel function does not carry; observed: VERCEL is {vercel}; nothing was measured, rendered or recorded
- Fix: render from a server or a checkout that runs `npm run dev` (echo-cli content brand render against it), not from the Vercel deployment
- Test: tests/content/captions.test.mjs::a_render_on_vercel_is_refused_before_it_starts
echo.content.caption-render.source-unreadable#
- infra_down, exit 69; trying again unchanged can help
- measuring the source video {video}: Remotion could not open the video to read its frame rate, size and length: the address does not answer, answers something that is not a video, or refuses this server; observed: {reason}; no job was recorded
- Fix: open {video} in a browser; send the address of a video file that answers publicly (an Echo object address once uploaded)
- Test: tests/content/captions.test.mjs::a_source_that_cannot_be_opened_is_named
echo.content.caption-render.source-unmeasured#
- refused, exit 2; the request itself is refused
- measuring the source video {video}: the captioned video keeps the source's frame rate, size and length and times the words against it, and the file reports none usable; observed: fps {fps}, {width}x{height}, {duration} s; no job was recorded
- Fix: re-encode the video so it states its frame rate, size and length (`ffprobe {video}` shows what it states), upload it and render again
- Test: tests/content/captions.test.mjs::a_source_without_a_frame_rate_is_refused
echo.content.caption-render.comment-not-png#
- infra_down, exit 69; trying again unchanged can help
- rendering the TikTok comment card of {author} through tokcomment.com: the comment card is the PNG tokcomment.com exports, and the page exported another kind of file; observed: {file} ({bytes} bytes) opens with {head}
- Fix: render again; a page that keeps exporting another file changed its export, which `echo-cli content brand render` without --comment avoids
- Test: tests/content/captions.test.mjs::a_comment_export_that_is_not_a_png_is_named
echo.content.caption-render.render-failed#
- infra_down, exit 69; trying again unchanged can help
- rendering the captioned video of {video} ({frames} frames at {fps} fps, {width}x{height}) at the {phase} step: Remotion stopped the render: the composition failed to bundle, a frame could not load the source video, the encoder failed or the headless browser it drives crashed; observed: {reason}; nothing was uploaded
- Fix: render again; one that keeps failing at the same step is read in the server log under [caption-render] with the frame Remotion names
- Test: tests/content/captions.test.mjs::a_render_remotion_stops_is_named
echo.content.needher-captions#
Write a NeedHer caption shoot's frames with the writer model, keep them in the caption manifest, and publish each shoot to the NeedHer ingest within its autonomy budget.
Started by `/api/cron/needher-captions-loop`, `/api/cron/needher-captions-publish`, `the publish_caption_shoot approval`.
It also meets the causes of echo.model, echo.store, echo.content.image-render, echo.content.ingest.
echo.content.needher-captions.status-unknown#
- config, exit 1
- reading the caption manifest {manifest}: a frame of the manifest is enqueued, generated, ok or fail, and row {index} ({output}) names another status, so where it stands is not known; observed: row {index} has status {status}; {rows} rows were read and none was changed
- Fix: set the row's status to one of {statuses} in {manifest} (stado storage get, then stado storage put), or remove the row its producer wrote wrongly
- Test: tests/content/needher-captions.test.mjs::a_manifest_row_of_an_unknown_status_is_named
echo.content.needher-captions.shoot-gone#
- not_found, exit 1
- publishing shoot {series}, which a reviewer approved: the manifest holds no generated frame of the shoot: it was published or failed after its publication was queued; observed: the shoot's frames in {manifest}: {held}; nothing was sent
- Fix: nothing to publish; reject the approval request, or set the frames back to generated to publish them again
- Test: tests/content/needher-captions.test.mjs::an_approved_shoot_no_longer_generated_is_not_found
echo.content.needher-captions.writer-no-array#
- infra_down, exit 69; trying again unchanged can help
- writing the {frames} frames of a {aesthetic} shoot of {influencer} in theme {theme}: the writer model answers the shoot as one JSON array of frames, and its answer holds no [ … ] span; observed: the answer ({length} characters) opens with {answer}; the shoot was skipped
- Fix: run the loop again; a writer that keeps answering in prose is routed to another model behind the general profile
- Test: tests/content/needher-captions.test.mjs::a_writer_answer_without_an_array_is_named
echo.content.needher-captions.writer-not-json#
- infra_down, exit 69; trying again unchanged can help
- writing the {frames} frames of a {aesthetic} shoot of {influencer} in theme {theme}: the [ … ] span of the writer's answer does not parse as JSON; observed: {problem} in the span that opens with {answer}; the shoot was skipped
- Fix: run the loop again; a writer that keeps writing broken JSON is routed to another model behind the general profile
- Test: tests/content/needher-captions.test.mjs::a_writer_answer_that_is_not_json_is_named
echo.content.needher-captions.writer-no-frames#
- infra_down, exit 69; trying again unchanged can help
- writing the {frames} frames of a {aesthetic} shoot of {influencer} in theme {theme}: the writer's JSON is {kind}, and a shoot is a list of at least one frame; observed: the answer opens with {answer}; the shoot was skipped
- Fix: run the loop again; a writer that keeps answering no frames is routed to another model behind the general profile
- Test: tests/content/needher-captions.test.mjs::a_writer_answer_without_frames_is_named
echo.content.ingest#
Hand a run's generated rows to the content-ingest alternative Stado hands echo-web (NeedHer's ingest), which groups them by series into posts.
Started by `/api/cron/needher-lifestyle-loop`, `/api/cron/needher-captions-publish`, `the publish_caption_shoot approval`.
It also meets the causes of echo.alternatives, echo.config.
echo.content.ingest.ingest-unreachable#
- infra_down, exit 69; trying again unchanged can help
- sending {rows} rows of the {run} run to the {alternative} content ingest at {ingest}: the request got no answer: the address Stado handed out does not resolve, refuses the connection or dropped it; observed: {reason}; nothing was published
- Fix: publish again once the ingest answers; `stado capabilities resolve content-ingest --consumer echo-web` on the Stado host shows the address it hands out
- Test: tests/content/ingest.test.mjs::an_ingest_that_does_not_answer_is_retryable
echo.content.ingest.key-refused#
- auth, exit 1
- sending {rows} rows of the {run} run to the {alternative} content ingest at {ingest}: the ingest refused the worker key Echo presented in x-needher-worker-key: NEEDHER_CONTENT_INGEST_KEY is not the key it holds for Echo; observed: HTTP {status}: {answer}; nothing was published
- Fix: set NEEDHER_CONTENT_INGEST_KEY to the worker key NeedHer's ingest holds in the deployment's environment (.env.local in a checkout), deploy again and publish again
- Test: tests/content/ingest.test.mjs::a_key_the_ingest_does_not_hold_is_named
echo.content.ingest.rows-refused#
- refused, exit 2; the request itself is refused
- sending {rows} rows of the {run} run to the {alternative} content ingest at {ingest}: the ingest refused the rows themselves (HTTP {status}): a field it requires is absent or a value is not one it takes; observed: {answer}; nothing was published
- Fix: correct the rows the answer names in the run's manifest and publish again
- Test: tests/content/ingest.test.mjs::rows_the_ingest_refuses_are_named
echo.content.ingest.ingest-failed#
- infra_down, exit 69; trying again unchanged can help
- sending {rows} rows of the {run} run to the {alternative} content ingest at {ingest}: the ingest took the rows and failed to store them (HTTP {status}); observed: {answer}
- Fix: publish again; an ingest that keeps failing is read in NeedHer's own log
- Test: tests/content/ingest.test.mjs::an_ingest_that_fails_is_retryable
echo.content.ingest.answer-unread#
- infra_down, exit 69; trying again unchanged can help
- sending {rows} rows of the {run} run to the {alternative} content ingest at {ingest}: the ingest answered a success that is not the JSON {rows, posts} it answers: the address Stado handed out names another service, or the ingest runs another revision; observed: HTTP {status}: {answer}
- Fix: check `capabilities.content-ingest.url` on the Stado host (`stado capabilities resolve content-ingest --consumer echo-web`) names NeedHer's ingest; the rows may have been stored, so read the site's feed before publishing again
- Test: tests/content/ingest.test.mjs::an_answer_that_is_not_the_ingest_shape_is_named
echo.content.brand-kits#
Declare, replace and remove a product's brand kit (font family and highlight colour), and take it for a captioned render naming the product.
Started by `/api/analytics/brand-kits`, `/api/captions`, `echo-cli content brand`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.content.brand-kits.product-unknown#
- not_found, exit 1
- declaring the brand kit of product {product} ({font}, {color}) for {by}: a kit belongs to a product Echo holds, and the products table holds no product with id {product}; observed: products holds no row {product}; no kit was written
- Fix: name a product echo-cli products lists, or add the product first
- Test: tests/content/brand.test.mjs::a_kit_for_a_product_that_does_not_exist_is_not_found
echo.content.brand-kits.kit-absent#
- not_found, exit 1
- {step} the brand kit of product {product}: product {product} has no brand kit, so there is no font and highlight colour of its brand; observed: brand_kits holds no row for {product} ({kits} kits are declared: {declared}); {left}
- Fix: declare one with echo-cli content brand set --product {product} --font <family> --highlight <css colour> --by <who>, or name a product echo-cli content brand list shows
- Test: tests/content/brand.test.mjs::a_product_without_a_kit_is_not_found
echo.content.brand-kits.style-doubled#
- refused, exit 2; the request itself is refused
- taking the render style of a caption render for product {product}: with product_id the brand kit decides the font and the colour, and the request also sends {fields}; observed: {given}; nothing was rendered
- Fix: send product_id alone to render in the brand, or leave product_id out and send your own font_family and highlight_color
- Test: tests/content/brand.test.mjs::a_render_naming_a_product_and_its_own_style_is_refused
echo.content.asset-import#
Import a social post's media by its address and record it as an external asset.
Started by `/api/assets/quick-add`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.content.asset-import.import-unowned#
- config, exit 1
- importing the media of {address} ({host}) for {owner}: fetching a post from a social network is no Wisent product's: ~/ARCHITECTURE.md names no owner, Weles drives browsers only for sign-ins and workflows, and Echo fetches no social network itself; observed: nothing was fetched and no external_assets row was written
- Fix: save the media yourself and add it as an external asset (the library's Add external asset, POST /api/assets/external with the file), or add {address} there as an address kept as it is; the import works once a product owning social-post fetching is named in ~/ARCHITECTURE.md and offered through Stado's alternatives
- Test: tests/content/assets.test.mjs::an_import_of_a_social_post_is_refused_until_a_product_owns_it
echo.content.asset-library#
List the asset library, add an external asset as a file or an address, remove an asset and remix one.
Started by `/api/assets`, `/api/assets/external`, `/api/assets/[id]`, `/api/assets/[id]/remix`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.storage, echo.store.
echo.content.asset-library.form-unreadable#
- refused, exit 2; the request itself is refused
- reading the form of a new external asset: an external asset is sent as multipart/form-data (or url-encoded) fields, and the body does not parse as a form; observed: Content-Type {type}: {reason}; nothing was stored
- Fix: send the fields source, type and url or file as multipart/form-data, as the library's Add external asset dialog does
- Test: tests/content/asset-library.test.mjs::a_new_asset_that_is_not_a_form_is_refused
echo.content.asset-library.file-name-unplain#
- refused, exit 2; the request itself is refused
- storing the uploaded file {name} as an external asset: the file is stored under its own name, which must be one plain name: no / or \, and not . or ..; observed: the file is named {name}; nothing was stored
- Fix: rename the file to a plain name and upload it again
- Test: tests/content/asset-library.test.mjs::a_file_whose_name_is_a_path_is_refused
echo.content.asset-library.asset-sourceless#
- refused, exit 2; the request itself is refused
- adding an external {type} asset from {source}: an external asset is either a file uploaded with the form or an address kept as it is, and the form sends neither file nor url; observed: the form sends {sent}; nothing was stored
- Fix: send file with the asset itself, or url with its http or https address
- Test: tests/content/asset-library.test.mjs::a_new_asset_without_a_file_or_address_is_refused
echo.content.asset-library.asset-absent#
- not_found, exit 1
- {step} the {source} asset {asset}: {table} holds no asset with id {asset}: it was removed, or the id is of another source; observed: nothing was changed
- Fix: name an asset the library lists (GET /api/assets) with the source it lists it under
- Test: tests/content/asset-library.test.mjs::an_asset_that_does_not_exist_is_not_found
echo.content.explainer#
Plan an explainer's scenes, synthesize and time its voiceover, draw and animate each scene, and render the composition.
Started by `/api/generate/explainer`.
It also meets the causes of echo.http.access, echo.model, echo.web.public, echo.content.film, echo.content.media-tools, echo.store.
echo.content.explainer.scenes-miscounted#
- infra_down, exit 69; trying again unchanged can help
- planning {asked} scenes of an explainer on {topic}: the {planner} answered {answered} scenes, and a plan is used only with the count the request asked for; observed: the scenes it gave are titled {titles}; nothing was synthesized or drawn
- Fix: ask again; a planner that keeps miscounting is routed to another model behind the deep profile
- Test: tests/content/explainer.test.mjs::a_plan_of_another_scene_count_is_named
echo.content.explainer.voiceover-wordless#
- infra_down, exit 69; trying again unchanged can help
- synthesizing the voiceover of {scenes} scenes with voice {voice}: the speech route answered audio whose character alignment holds no spoken word, so no scene can be timed; observed: {characters} aligned characters for the text {text}; the audio was stored at {audio} and nothing else was made
- Fix: ask again, or choose another voice; a route that keeps answering empty alignments is checked in the ElevenLabs route STADO_ECHO_ELEVENLABS_MODEL names
- Test: tests/content/explainer.test.mjs::a_voiceover_without_words_is_named
echo.content.explainer.transcript-short#
- infra_down, exit 69; trying again unchanged can help
- timing scene {scene} of {scenes} in the voiceover: a scene is timed from the transcript word its text starts at, and the transcript ({words} words) ends before scene {scene} ({text}) begins; observed: the earlier scenes used {used} words; nothing was drawn
- Fix: ask again: the speech route left words out; scenes whose text is spelled as it is spoken (numbers as words) time cleanly
- Test: tests/content/explainer.test.mjs::a_transcript_ending_before_a_scene_is_named
echo.content.explainer.voiceover-overlong#
- refused, exit 1
- fitting the voiceover of scene {scene} ({title}) into its clip: the scene's voiceover runs {spoken} s, longer than its {clip} s clip, so it would be cut off in the render; observed: its text is {text}; the voiceover was made at {audio}, and no frame or clip was paid for
- Fix: shorten the scene's voiceover text or lengthen its clip, and ask again
- Test: tests/content/explainer.test.mjs::a_voiceover_longer_than_its_clip_is_refused
echo.content.characters#
Expand a character's appearance idea into the face and body image generation takes, generate their life, and render their day from their weekly routine.
Started by `/api/influencers/enrich-appearance`, `/api/influencers/generate-images`, `/api/characters/[id]/generate-day`, `/api/characters/[id]/generate-life`, `/api/cron/simulate-characters`.
It also meets the causes of echo.http.access, echo.http.body, echo.content.character-records, echo.model, echo.content.image-render, echo.store.
echo.content.characters.age-minor#
- refused, exit 1
- describing the appearance of a character from the idea {idea}: the idea states an age of {age}, and a character is at least {majority} (18 U.S.C. § 2256(1)); a minor is never rewritten into an adult and drawn; observed: the stated age is "{stated}"; nothing was asked of the model
- Fix: describe a character of {majority} or older
- Test: tests/content/characters.test.mjs::an_idea_stating_a_minors_age_is_refused
echo.content.characters.routine-time-malformed#
- config, exit 1
- reading the {day} of a character's weekly routine: every weekly_routine entry starts at a time written HH:MM, and the entry {activity} starts at {time}; observed: the entry is {entry}; no activity was derived from the routine
- Fix: write the entry's time as HH:MM (such as 07:30) in the character's weekly routine on its page
- Test: tests/content/characters.test.mjs::a_routine_entry_without_an_hh_mm_time_is_named
echo.content.characters.mood-unset#
- config, exit 1
- rendering the {day} of character {character}: each image of the day is rendered in the mood the character's state records, and its character_states row holds no current_mood; observed: current_mood is {mood}; no batch was recorded and nothing was rendered
- Fix: set the character's mood on its page (PATCH /api/characters/{character}/state with current_mood), then render the day again
- Test: tests/content/characters.test.mjs::a_character_without_a_mood_is_named
echo.content.characters.routine-absent#
- config, exit 1
- rendering the {day} of character {character}: a day is rendered from the character's weekly routine, and the character has none; observed: characters.weekly_routine of {character} is {routine}; no batch was recorded and nothing was rendered
- Fix: generate the character's life (POST /api/characters/{character}/generate-life), which writes its weekly routine, or write the routine on its page
- Test: tests/content/characters.test.mjs::a_character_without_a_routine_is_named
echo.content.characters.day-empty#
- config, exit 1
- rendering the {day} of character {character}: one image is rendered per entry of the day in the weekly routine, and the routine holds no entry on {day}; observed: the routine's days and their entries: {days}; no batch was recorded and nothing was rendered
- Fix: choose a day the routine fills, or add entries to {day} in the character's weekly routine
- Test: tests/content/characters.test.mjs::a_day_without_routine_entries_is_named
echo.content.characters.visuals-unseeded#
- config, exit 1
- rendering the {day} of character {character}: each image draws a composition, a lighting preset, a cinematography style and a colour profile, and {empty} holds no row to draw from; observed: rows held: {held}; no batch was recorded and nothing was rendered
- Fix: seed {empty} in Echo's Supabase project (the migrations of wisent-ai/wisent-supabase-echo insert them), then render the day again
- Test: tests/content/characters.test.mjs::a_day_without_seeded_visuals_is_named
echo.content.passion-render#
Render a character's passion images with its style pipeline and pose LoRAs, and judge each render against its pose.
Started by `/api/passion/generate`, `/api/passion/poses/improve`, `/api/generate/style-image`, `/api/generate/style-series`.
It also meets the causes of echo.http.access, echo.model, echo.content.generation.models, echo.web.public, echo.store.
echo.content.passion-render.lora-absent#
- not_found, exit 1
- loading the style pipeline of character LoRA {lora}: a passion image is drawn with a character LoRA Echo holds, and generation_loras holds no LoRA with id {lora}; observed: generation_loras holds no row {lora}; nothing was rendered
- Fix: name a LoRA the LoRAs screen lists
- Test: tests/content/passion.test.mjs::a_character_lora_that_does_not_exist_is_not_found
echo.content.passion-render.lora-genderless#
- config, exit 1
- choosing the style variants of character LoRA {lora} ({trigger}): aesthetics, makeup and hairstyles are kept per gender, and the LoRA states none, so none can be chosen for it; observed: generation_loras row {lora} has gender {gender} and outfit style {style}; nothing was rendered
- Fix: set the LoRA's gender on the LoRAs screen
- Test: tests/content/passion.test.mjs::a_styled_lora_without_a_gender_is_named
echo.content.passion-render.style-absent#
- config, exit 1
- loading the outfit style {style} of character LoRA {lora}: the LoRA names outfit style {style}, and outfit_styles holds no style with that id: it was removed after the LoRA named it; observed: outfit_styles holds no row {style}; nothing was rendered
- Fix: choose an existing outfit style for the LoRA on the LoRAs screen, or clear it
- Test: tests/content/passion.test.mjs::a_lora_naming_a_removed_style_is_named
echo.content.passion-render.variants-undescribed#
- config, exit 1
- reading the {table} of outfit style {name} ({style}) for gender {gender}: the style declares the tags {tags}, and none of them is described for gender {gender}, so its images would lose that part of the look; observed: {table} holds no row of style {style}, gender {gender} and those tags; nothing was rendered
- Fix: add the {table} rows of those tags for gender {gender}, or take the tags off the style
- Test: tests/content/passion.test.mjs::style_tags_without_descriptions_are_named
echo.content.passion-render.picked-lora-unheld#
- config, exit 1
- reading the strength of the pose LoRA {lora} the picker chose: a pose LoRA renders at the strength its generation_loras row records, and the picker chose {lora} from the pose map, which generation_loras does not hold; observed: generation_loras holds no row with filename {lora}; nothing was rendered with it
- Fix: add {lora} to the LoRAs with its default_strength, or take it out of LORA_TO_POSE_MAP
- Test: tests/content/passion.test.mjs::a_picked_lora_echo_does_not_hold_is_named
echo.content.passion-render.render-unread#
- infra_down, exit 69; trying again unchanged can help
- reading back the render {address} to judge it: this deployment answered {status} for its own render; observed: the answer says: {detail}; the render was not judged
- Fix: open {address} yourself; a render this site cannot serve was not stored, so render it again
- Test: tests/content/passion.test.mjs::a_render_the_site_cannot_serve_is_named
echo.content.passion-library#
Browse CivitAI, review the references taken from it, split them into scenes, and keep and render the pose library.
Started by `/api/civitai/trending`, `/api/civitai/loras`, `/api/civitai/references`, `/api/civitai/references/approve`, `/api/civitai/references/update`, `/api/civitai/references/locate`, `/api/civitai/references/classify`, `/api/civitai/references/reclassify`, `/api/civitai/references/scenes`, `/api/civitai/poses`, `/api/civitai/poses/[id]`, `/api/civitai/poses/[id]/improve`, `/api/civitai/poses/[id]/regenerate`, `/api/civitai/rejections`, `/api/civitai/rejections/[id]`, `/api/civitai/rejections/manual`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.content.passion-classification, echo.model, echo.content.media-tools, echo.content.image-render, echo.storage, echo.store.
echo.content.passion-library.reference-absent#
- not_found, exit 1
- {step} reference {reference}: civitai_references holds no reference with id {reference}: it was deleted, or the id is of another table; observed: {left}
- Fix: name a reference the references screen lists (GET /api/civitai/references)
- Test: tests/content/civitai.test.mjs::a_reference_that_does_not_exist_is_not_found
echo.content.passion-library.pose-absent#
- not_found, exit 1
- {step} pose {pose}: passion_poses holds no pose with id {pose}; observed: {left}
- Fix: name a pose the pose library lists (GET /api/civitai/poses)
- Test: tests/content/civitai.test.mjs::a_pose_that_does_not_exist_is_not_found
echo.content.passion-library.setting-absent#
- not_found, exit 1
- reading the render settings of pose {pose}: the request names {what} {id}, and {table} holds no row with that id; observed: nothing was rendered
- Fix: choose {what} the render dialog lists, or create it first
- Test: tests/content/civitai.test.mjs::a_render_naming_a_missing_setting_is_not_found
echo.content.passion-library.lora-incomplete#
- config, exit 1
- reading the LoRA of character {character} to render pose {pose}: a pose is rendered with the character's LoRA, which needs its filename, trigger word and default strength recorded, and the character's generation_loras row lacks some; observed: the LoRA row is {lora}; nothing was rendered
- Fix: record the LoRA's filename, trigger word and default strength on the LoRAs screen, or choose another character
- Test: tests/content/civitai.test.mjs::a_character_without_a_complete_lora_is_named
echo.content.passion-library.choice-unoffered#
- refused, exit 2; the request itself is refused
- reading the {field} of the render of pose {pose}: {field} chooses among the {owner}'s own, and the request sends one it does not offer; observed: {field} is {value}; offered: {offered}
- Fix: send {field} as one of {offered}, or leave it out
- Test: tests/content/civitai.test.mjs::a_render_choosing_an_unoffered_caption_is_refused
echo.content.passion-library.equivalent-mismatch#
- refused, exit 1
- rendering pose {pose} as the equivalent of reference {reference}: an equivalent shows the reference's own pose, and the reference suggests another one; observed: reference {reference} suggests pose {suggested}; nothing was rendered
- Fix: render pose {suggested} for this reference, or correct the reference's suggested pose first
- Test: tests/content/civitai.test.mjs::an_equivalent_of_another_pose_is_refused
echo.content.passion-library.references-unnamed#
- refused, exit 2; the request itself is refused
- classifying references: the references classified are the ones ids names, or every one of the LoRA lora_id names, and the body names neither; observed: the body names {sent}
- Fix: send ids as a list of reference ids, or lora_id
- Test: tests/content/civitai.test.mjs::a_classification_naming_no_references_is_refused
echo.content.passion-library.references-none#
- not_found, exit 1
- classifying the references of {named}: no reference matches what the request names; observed: civitai_references holds none; nothing was classified
- Fix: name references the references screen lists, or import the LoRA's references first
- Test: tests/content/civitai.test.mjs::a_classification_matching_no_references_is_not_found
echo.content.passion-library.match-unlisted#
- infra_down, exit 69; trying again unchanged can help
- naming the pose classification matched for reference {reference}: a classification matches one of the library's poses, and it matched {pose}, which the library does not hold; observed: the library holds {count} poses; what the classifier saved on the reference is left as it is
- Fix: classify the reference again with force: true; a classifier that keeps inventing poses is routed to another model behind the classifier profile
- Test: tests/content/civitai.test.mjs::a_classification_matching_an_unlisted_pose_is_named
echo.content.passion-library.thumbnail-unanswered#
- refused, exit 1
- reading the thumbnail {thumbnail} of reference {reference} to reclassify it: the thumbnail answered {status} instead of an image: it expired, was removed, or refuses this server; observed: {detail}; nothing was asked of the model
- Fix: open {thumbnail} in a browser; give the reference a thumbnail_url that answers an image, then reclassify it
- Test: tests/content/civitai.test.mjs::a_thumbnail_answering_a_failure_is_named
echo.content.passion-library.thumbnail-not-image#
- refused, exit 1
- reading the thumbnail {thumbnail} of reference {reference} to reclassify it: the vision model reads JPEG, PNG, GIF and WebP, and the thumbnail is served as {type}; observed: Content-Type {header}; nothing was asked of the model
- Fix: give the reference a thumbnail_url that serves the image itself, then reclassify it
- Test: tests/content/civitai.test.mjs::a_thumbnail_that_is_not_an_image_is_named
echo.content.passion-library.suggestion-incomplete#
- refused, exit 1
- approving reference {reference} as the new pose {pose}: a new pose is created from the reviewer's suggestion, and it states no {field}: {why}; observed: the suggested pose is {suggested}; nothing was created or approved
- Fix: set the suggestion's {field} on the references screen (PATCH /api/civitai/references/update), then approve again
- Test: tests/content/civitai.test.mjs::a_suggestion_without_a_stage_name_or_caption_is_refused
echo.content.passion-library.split-sourceless#
- refused, exit 1
- splitting reference {reference} into scenes: a reference is split from its video_url, or else the source_url it was taken from, and it has neither; observed: video_url {video}, source_url {source}; nothing was split
- Fix: give the reference its video_url, or delete it
- Test: tests/content/civitai.test.mjs::a_reference_without_a_video_cannot_be_split
echo.content.passion-library.clip-unwritten#
- infra_down, exit 69; trying again unchanged can help
- cutting scene {scene} ({start}s to {end}s) of {video}: ffmpeg ended without a failure and wrote no clip where it was asked to; observed: no file at {path}; the scenes before it were saved
- Fix: split the reference again; ffmpeg that keeps writing nothing is run by hand with the same arguments to see why
- Test: tests/content/civitai.test.mjs::a_scene_cut_that_writes_nothing_is_named
echo.content.passion-library.rejection-absent#
- not_found, exit 1
- recording the verdict {verdict} on rejection {rejection}: passion_eval_rejections holds no rejection with id {rejection}; observed: nothing was saved
- Fix: name a rejection the rejections screen lists (GET /api/civitai/rejections)
- Test: tests/content/civitai.test.mjs::a_verdict_on_a_missing_rejection_is_not_found
echo.content.passion-library.flag-imageless#
- refused, exit 2; the request itself is refused
- recording a render flagged from {source}: a flag names the image by output_url, or sends its bytes as image_b64, and the body sends neither; observed: the body names {sent}; nothing was archived or recorded
- Fix: send output_url with the render's address, or image_b64 with its bytes and source_output_url
- Test: tests/content/civitai.test.mjs::a_flag_without_an_image_is_refused
echo.content.passion-library.flag-keyless#
- refused, exit 2; the request itself is refused
- recording a render flagged from {source}: a flag is recognised again by the address the render came from, and an image sent as image_b64 names none in source_output_url; observed: image_b64 holds {bytes} characters; nothing was archived or recorded
- Fix: send source_output_url with the address the render came from beside image_b64
- Test: tests/content/civitai.test.mjs::a_flag_of_bytes_without_their_address_is_refused
echo.content.passion-library.flag-empty#
- refused, exit 2; the request itself is refused
- recording the render {url} flagged from {source}: the flagged image is archived from the bytes image_b64 carries, and it decodes to none; observed: image_b64 is {length} characters of text that decode to 0 bytes; nothing was archived or recorded
- Fix: send the image's bytes as base64 (a data: URL is accepted)
- Test: tests/content/civitai.test.mjs::a_flag_of_no_bytes_is_refused
echo.content.passion-library.flagged-not-image#
- refused, exit 2; the request itself is refused
- recording the flagged render {url}: a flagged render is archived as the image it is, and its bytes are no image format sharp reads; observed: {bytes} bytes: {reason}; nothing was archived or recorded
- Fix: flag the render by its image address (output_url), not the page it is shown on
- Test: tests/content/civitai.test.mjs::a_flagged_render_that_is_not_an_image_is_refused
echo.content.passion-library.civitai-unreachable#
- infra_down, exit 69; trying again unchanged can help
- reading {path} of CivitAI's public catalogue: civitai.com did not answer: the name did not resolve, the connection failed or was cut; observed: {reason}
- Fix: open https://civitai.com/api/v1/{path} in a browser, and ask again once it answers
- Test: tests/content/civitai.test.mjs::civitai_that_does_not_answer_is_named
echo.content.passion-library.civitai-refused#
- infra_down, exit 69; trying again unchanged can help
- reading {url} of CivitAI's public catalogue: CivitAI answered a failure status instead of the catalogue page; observed: HTTP {status}: {body}
- Fix: ask again; a status that persists is CivitAI's, read on https://status.civitai.com
- Test: tests/content/civitai.test.mjs::civitai_answering_a_failure_is_named
echo.content.passion-library.civitai-not-json#
- infra_down, exit 69; trying again unchanged can help
- reading {url} of CivitAI's public catalogue: CivitAI answered with a success status and a body that is not JSON: a maintenance or challenge page; observed: content type {type}, {bytes} bytes: {text}
- Fix: open {url} in a browser; ask again once it answers JSON
- Test: tests/content/civitai.test.mjs::civitai_answering_a_page_is_named
echo.content.pose-matrix#
Read the pose × LoRA matrix of a run, its body-horror overlay and the pose videos, from the experiment tree and Echo's objects.
Started by `/api/pose-lora-matrix`, `/api/pose-lora-matrix/body-horror`, `/api/pose-videos`.
It also meets the causes of echo.http.access, echo.http.query, echo.storage, echo.store.
echo.content.pose-matrix.experiment-unreadable#
- config, exit 1
- reading the {what} {file} of the pose matrix: the file exists and cannot be read by this server ({code}); observed: {reason}; the matrix was not answered, rather than answered with holes
- Fix: give the account running Echo read permission on {file} (`ls -l {file}` shows its mode and owner)
- Test: tests/content/pose-matrix.test.mjs::an_experiment_file_that_cannot_be_read_is_named
echo.content.pose-matrix.experiment-not-json#
- config, exit 1
- reading the {what} {file} of the pose matrix: the file is read as JSON, and its text does not parse; observed: {bytes} bytes reading {text}: {reason}
- Fix: write {file} again with the experiment step that produces it, or remove it so the pose is left out
- Test: tests/content/pose-matrix.test.mjs::an_experiment_file_that_is_not_json_is_named
echo.content.pose-matrix.rank-unknown#
- config, exit 1
- reading the ranked recipes of pose {pose}: the matrix has ranks {ranks}, and {where} names rank {rank}; observed: the matrix was not answered
- Fix: rank the pose's recipes {ranks} in {where}
- Test: tests/content/pose-matrix.test.mjs::a_winner_at_a_rank_the_matrix_lacks_is_named
echo.content.character-records#
Create, read, change and remove a character and its state, relationships, linked accounts, life events, posting schedules and visual profile.
Started by `/api/characters`, `/api/characters/[id]`, `/api/characters/[id]/state`, `/api/characters/[id]/relationships`, `/api/characters/[id]/accounts`, `/api/characters/[id]/events`, `/api/characters/[id]/posting-schedule`, `/api/characters/[id]/visual-profile`, `/api/characters/[id]/lora-compare`.
It also meets the causes of echo.http.access, echo.http.body, echo.model, echo.store.
echo.content.character-records.character-absent#
- not_found, exit 1
- {step} character {character}: no character has id {character}; observed: characters holds no row {character}; {left}
- Fix: name a character the characters screen lists (GET /api/characters)
- Test: tests/content/character-records.test.mjs::a_character_that_does_not_exist_is_not_found
echo.content.character-records.state-absent#
- not_found, exit 1
- {step} the state of character {character}: character {character} has no character_states row: it was created before states were kept, or its state was removed; observed: character_states holds no row for {character}; {left}
- Fix: a character created through POST /api/characters gets its state row; give this one its character_states row (character_id {character}) in the project's SQL editor, or create the character again
- Test: tests/content/character-records.test.mjs::a_character_without_a_state_is_not_found
echo.content.character-records.relationship-absent#
- not_found, exit 1
- {step} relationship {relationship} of character {character}: character {character} has no relationship with id {relationship}: it belongs to another character or was deleted; observed: character_relationships holds no row {relationship} of {character}; nothing was changed
- Fix: name a relationship GET /api/characters/{character}/relationships lists
- Test: tests/content/character-records.test.mjs::a_relationship_the_character_lacks_is_not_found
echo.content.character-records.relationship-held#
- refused, exit 1
- relating character {character} to {related} as {type}: two characters are related once, and they already are; observed: character_relationships holds the pair ({constraint}); nothing was written
- Fix: change the relationship that exists (PATCH /api/characters/{character}/relationships/<id>) instead of creating it again
- Test: tests/content/character-records.test.mjs::a_relationship_created_twice_is_refused
echo.content.character-records.account-linked#
- refused, exit 1
- linking social account {account} to character {character}: an account is linked to a character once, and this one already is; observed: character_social_accounts holds the pair; nothing was written
- Fix: nothing to do; unlink it first (DELETE /api/characters/{character}/accounts?social_account_id={account}) to link it again
- Test: tests/content/character-records.test.mjs::an_account_linked_twice_is_refused
echo.content.character-records.account-unlinked#
- not_found, exit 1
- unlinking social account {account} from character {character}: account {account} is not linked to character {character}; observed: character_social_accounts holds no such pair ({linked} accounts are linked: {accounts}); nothing was removed
- Fix: name an account the character's page lists as linked
- Test: tests/content/character-records.test.mjs::an_account_not_linked_is_not_found
echo.content.character-records.handle-taken#
- refused, exit 1
- {step} character {character}: a handle names one character, and {handle} already names another; observed: characters holds a row with handle {handle} ({constraint}); nothing was written
- Fix: choose another handle
- Test: tests/content/character-records.test.mjs::a_handle_already_taken_is_refused
echo.content.character-records.lora-unheld#
- config, exit 1
- {step} character {character}: the character names LoRA {lora}, and generation_loras holds no LoRA with that id: it was removed after the character named it; observed: generation_loras holds no row {lora}; {left}
- Fix: choose an existing LoRA for the character on its page, or clear it
- Test: tests/content/character-records.test.mjs::a_character_naming_a_removed_lora_is_named
echo.content.passion-classification#
Read a passion reference's image or video, detect its scenes, and classify it against the pose library with the vision model, saving the suggestion.
Started by `/api/civitai/references/classify`, `/api/civitai/references/reclassify`, `/api/civitai/references/scenes`.
It also meets the causes of echo.http.access, echo.config, echo.model, echo.web.public, echo.content.media-tools, echo.store.
echo.content.passion-classification.vision-declined#
- refused, exit 1
- classifying a reference at the {stage} step: the vision model or its provider declined the question (a refusal, or the provider rejecting the request as sent), and it is not asked again around the provider's policy; observed: it said: {answer}
- Fix: classify the reference by hand on the references screen, or skip it
- Test: tests/content/classification.test.mjs::a_reference_the_vision_model_declines_is_named
echo.content.passion-classification.source-answer-failed#
- refused, exit 1
- reading the image {source} to classify it: the source answered {status} instead of an image; observed: the answer says: {detail}; the next source of the reference was tried
- Fix: refresh the reference's source (it expired or was removed), or remove the reference
- Test: tests/content/classification.test.mjs::a_source_answering_a_failure_is_unusable
echo.content.passion-classification.source-not-image#
- refused, exit 1
- reading the image {source} to classify it: the vision model reads JPEG, PNG, GIF and WebP, and the source's bytes are none of them: it is a video, a page or a damaged file; observed: {reason}; the next source of the reference was tried
- Fix: mark the reference as a video if it is one, or replace its source with the image itself
- Test: tests/content/classification.test.mjs::a_source_that_is_not_an_image_is_unusable
echo.content.passion-classification.source-none#
- not_found, exit 1
- classifying reference {reference}: a reference is classified from its source, video, thumbnail or generated image, and it names none as an http address; observed: source_url {source}, video_url {video}, thumbnail_url {thumbnail}, generated_url {generated}; nothing was asked of the model
- Fix: give the reference a source_url that answers its image or video, or remove it
- Test: tests/content/classification.test.mjs::a_reference_without_a_source_is_named
echo.content.passion-classification.sources-unusable#
- not_found, exit 1
- classifying reference {reference}: every source the reference names was tried, and none answered an image the vision model reads; observed: {tried}; nothing was saved on the reference
- Fix: give the reference a source_url, thumbnail_url or generated_url that answers an image, or remove it
- Test: tests/content/classification.test.mjs::a_reference_without_a_usable_source_is_named
echo.content.passion-classification.pose-ambiguous#
- infra_down, exit 69; trying again unchanged can help
- reading the classification of {stage}: a classification states exactly one of a library pose it matches and a new pose it proposes, and the model {stated}; observed: existing_pose_id {existing}, new_pose {proposed}; nothing was saved
- Fix: classify the reference again; a model that keeps answering both or neither is routed to another model behind the classifier profile
- Test: tests/content/classification.test.mjs::a_classification_stating_both_or_neither_pose_is_named
echo.content.passion-classification.answer-unusable#
- infra_down, exit 69; trying again unchanged can help
- asking the vision model at the {stage} step: the step reads a non-empty description, and the model answered an empty one; observed: it answered {answer}; nothing was saved
- Fix: classify the reference again; a model that keeps answering empty is routed to another model behind the classifier profile
- Test: tests/content/classification.test.mjs::an_empty_description_is_named
echo.content.passion-classification.scenes-out-of-range#
- infra_down, exit 69; trying again unchanged can help
- grouping the {frames} frames of {video} into scenes: the model grouped frames {start} to {end}, which are not frames of the {frames} it was shown; observed: the groups it gave: {groups}; the ffmpeg detector was not asked in its place
- Fix: detect the scenes again; a model that keeps misnumbering frames is routed to another model behind the classifier profile
- Test: tests/content/classification.test.mjs::scenes_grouping_frames_not_shown_are_named
echo.content.passion-classification.lora-unknown#
- infra_down, exit 69; trying again unchanged can help
- saving the new pose {pose} the model proposed for reference {reference}: the model chose the LoRA {lora} without a strength, and generation_loras holds no LoRA of that filename to take its strength from; observed: generation_loras holds no row with filename {lora}; nothing was saved
- Fix: classify the reference again, or add {lora} to the LoRAs with its default_strength
- Test: tests/content/classification.test.mjs::a_proposed_lora_echo_does_not_hold_is_named
echo.content.passion-classification.stages-none#
- config, exit 1
- reading the passion stages: every passion pose and batch image names a stage of public.passion_stages, and the table holds none; observed: passion_stages answered no row; nothing was classified
- Fix: apply the migration that seeds public.passion_stages (supabase/migrations) to the project
- Test: tests/content/classification.test.mjs::an_empty_stage_table_is_named
echo.content.passion-classification.setting-invalid#
- config, exit 1
- reading the classifier setting {name}: {name} is a positive {kind}number of {unit}, the operator's decision of {what}, and it holds {value}; observed: {name} is {value}; nothing was classified
- Fix: set {name} to a positive {kind}number of {unit} in the deployment's environment (.env.local in a checkout)
- Test: tests/content/classification.test.mjs::a_classifier_setting_that_is_not_a_positive_number_is_named
echo.content.scenario-seed#
Seed the lifestyle and passion scenarios, presets and settings from the growth-tactics checkout GROWTH_TACTICS_PATH names.
Started by `/api/lifestyle/seed`, `/api/passion/seed`.
It also meets the causes of echo.http.access, echo.config, echo.store.
echo.content.scenario-seed.file-absent#
- config, exit 1
- reading the scenario file {file} of the growth-tactics checkout: no file stands at that path: GROWTH_TACTICS_PATH ({base}) names another folder than the checkout, or the checkout is of a revision without {relative}; observed: {reason}; nothing was seeded
- Fix: point GROWTH_TACTICS_PATH at the growth-tactics checkout, or update the checkout so it holds {relative}
- Test: tests/content/seed.test.mjs::a_scenario_file_that_is_absent_is_named
echo.content.scenario-seed.file-unreadable#
- config, exit 1
- reading the scenario file {file} of the growth-tactics checkout: the path exists and cannot be read as a file: it is a directory, or the server's user may not read it; observed: {reason}; nothing was seeded
- Fix: make {file} a file the server's user can read
- Test: tests/content/seed.test.mjs::a_scenario_file_that_cannot_be_read_is_named
echo.content.scenario-seed.file-not-json#
- config, exit 1
- reading the scenario file {file} of the growth-tactics checkout: a scenario file is JSON, and this one does not parse; observed: {problem}; it opens with {opening}; nothing was seeded
- Fix: repair {file} in the growth-tactics checkout (git -C {base} status shows a local change), or update the checkout
- Test: tests/content/seed.test.mjs::a_scenario_file_that_is_not_json_is_named
echo.content.lora-training#
Stage a LoRA training's images, captions and OneTrainer config, book a machine for it, and read its phase until it ends.
Started by `/api/generate/loras/[id]`, `/api/cron/lora-training-watchdog`, `/api/cron/lora-post-training`.
It also meets the causes of echo.web.public, echo.store.
echo.content.lora-training.phase-unknown#
- config, exit 1
- reading the phase of training job {job}: the trainer writes one of pending, starting, installing, downloading_data, training[:step/total], uploading, COMPLETED or FAILED[: reason] to its status object, and it wrote something else; observed: {status} holds {raw}; the job was left as it was
- Fix: read the training's log with stado job watch <the machine_job_id training_jobs row {job} records> for what the trainer did; a trainer of another revision is rebuilt from the OneTrainer launch script
- Test: tests/content/training.test.mjs::a_status_naming_no_phase_is_named
echo.content.lora-training.machine-unrecorded#
- config, exit 1
- awaiting the end of training job {job}: a training's end is read from the Stado machine job it was booked on, and the job's config records no machine_job_id; observed: training_jobs row {job} config {config}; nothing was awaited
- Fix: relaunch the job from the LoRAs screen, which books a machine and records its id
- Test: tests/content/training.test.mjs::a_job_without_its_machine_is_named
echo.content.lora-training.inputs-unstaged#
- not_found, exit 1
- relaunching training job {job} on a {gpu} machine: a relaunch trains on the inputs staged when the job was first launched, and no object is stored under the job's prefix; observed: {prefix} holds no object; no machine was booked
- Fix: launch the job anew with its training images, which stages them again
- Test: tests/content/training.test.mjs::a_relaunch_without_staged_inputs_is_not_found
echo.content.lora-training.preset-concepts#
- config, exit 1
- filling the OneTrainer preset {preset} for training job {job}: one training trains one concept, so the preset declares exactly one in its concepts list, and it declares {declared}; observed: concepts is {concepts}; nothing was staged
- Fix: point ZIMAGE_BASE_PRESET in src/lib/content/generation/tools/lora-training/onetrainer/machine.ts at a preset declaring one concept
- Test: tests/content/training.test.mjs::a_preset_without_one_concept_is_named
echo.content.scripts#
Adapt a viral format and write a hook-led video script in a product's approved messaging, draw and choose thumbnails of a queued video, and have them ranked in Preferences.
Started by `/api/analytics/video-scripts`, `/api/analytics/format-adaptations`, `/api/analytics/thumbnails`, `/api/analytics/thumbnails/rank`, `echo-cli content scripts`, `echo-cli content adapt`, `echo-cli content thumbnails`, `echo-cli content rank`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.model, echo.content.checks, echo.content.queue.lookup, echo.store.
echo.content.scripts.format-absent#
- not_found, exit 1
- adapting viral format {format} to product {product}: no viral format has id {format}; observed: tiktok_formats holds no row {format}; nothing was asked of the route or queued
- Fix: name a format echo-cli content adapt list shows
- Test: tests/content/scripts.test.mjs::a_format_that_does_not_exist_is_not_found
echo.content.scripts.format-unclassified#
- refused, exit 1
- adapting viral format {format} ({name}) to product {product}: a format is adapted from its classification, and the classifier has not classified this one yet; observed: tiktok_formats row {format} has no ai_difficulty; nothing was queued
- Fix: wait for /api/cron/classify-formats to classify it, or adapt a classified format (echo-cli content adapt list)
- Test: tests/content/scripts.test.mjs::an_unclassified_format_is_refused
echo.content.scripts.messaging-unapproved#
- refused, exit 1
- {step} for product {product}: what the product says is its approved messaging, and no version of it is approved; observed: messaging_houses holds no approved, unretired version of {product}; nothing was asked of the route
- Fix: approve a version: echo-cli messaging list --product {product}, then echo-cli messaging approve --id <version-id> --by <who>
- Test: tests/content/scripts.test.mjs::a_product_without_approved_messaging_is_refused
echo.content.scripts.account-absent#
- not_found, exit 1
- queueing the adaptation of format {format} for social account {account}: no social account has id {account}; observed: social_accounts holds no row {account}; nothing was asked of the route or queued
- Fix: name an account the accounts screen lists
- Test: tests/content/scripts.test.mjs::an_account_that_does_not_exist_is_not_found
echo.content.scripts.hooks-unmeasured#
- refused, exit 1
- choosing the hook of a script on {topic} for product {product}: a hook is chosen by its measured rate of interactions per view, and no hook of the posts published {window} was measured; observed: {hooks} hooks were found in the window, none with views; nothing was written
- Fix: widen the window (--days) or drop the platform, or wait for the scrapes to measure the window's posts
- Test: tests/content/scripts.test.mjs::a_window_without_measured_hooks_is_refused
echo.content.scripts.script-absent#
- not_found, exit 1
- removing video script {script}: no video script has id {script}; observed: video_scripts holds no row {script}; nothing was removed
- Fix: name a script echo-cli content scripts list shows
- Test: tests/content/scripts.test.mjs::a_script_that_does_not_exist_is_not_found
echo.content.scripts.variant-absent#
- not_found, exit 1
- choosing thumbnail variant {variant}: no thumbnail variant has id {variant}; observed: thumbnail_variants holds no row {variant}; the post's thumbnail was left as it was
- Fix: name a variant echo-cli content thumbnails list --post <id> shows
- Test: tests/content/scripts.test.mjs::a_variant_that_does_not_exist_is_not_found
echo.content.scripts.job-absent#
- not_found, exit 1
- sending thumbnail job {job} to Preferences arena {arena}: no thumbnail job has id {job}: it drew no variant; observed: thumbnail_variants holds no row of job {job}; nothing was sent
- Fix: name a job echo-cli content thumbnails list --post <id> shows under job_id
- Test: tests/content/scripts.test.mjs::a_thumbnail_job_that_does_not_exist_is_not_found
echo.content.scripts.job-sent#
- refused, exit 1
- sending thumbnail job {job} to Preferences arena {arena}: a job is sent once, and {by} sent it as submission {submission} at {at}; observed: preference_submissions holds job {job} (arena {heldArena}, category {category}); nothing was sent again
- Fix: read its ranking: echo-cli content rank read --job {job}
- Test: tests/content/scripts.test.mjs::a_job_sent_twice_is_refused
echo.content.scripts.job-unsent#
- not_found, exit 1
- reading the Preferences ranking of thumbnail job {job}: a job is ranked once it was sent to Preferences, and job {job} was not sent; observed: preference_submissions holds no row of job {job}; nothing was asked of Preferences
- Fix: send it: echo-cli content rank send --job {job} --arena <arena> --category <category> --by <who>
- Test: tests/content/scripts.test.mjs::a_ranking_of_an_unsent_job_is_not_found
echo.content.podcast#
Chapter a podcast episode from its timed transcript with the route ECHO_PODCAST_ROUTE declares, keep it with its show notes, list and remove episodes.
Started by `/api/analytics/podcast-episodes`, `echo-cli content podcast`.
It also meets the causes of echo.http.access, echo.http.body, echo.config, echo.model, echo.store.
echo.content.podcast.stamp-invalid#
- refused, exit 2; the request itself is refused
- reading the cue timestamps of the transcript of {title}: a cue timestamp is HH:MM:SS.mmm (hours optional, a comma or dot before the milliseconds) within one day, and {stamp} is not; observed: the cue line is {line}; nothing was asked of the route and nothing was kept
- Fix: correct the timestamp in the transcript (WebVTT or SubRip) and add the episode again
- Test: tests/content/podcast.test.mjs::a_cue_timestamp_that_is_not_one_is_refused
echo.content.podcast.cues-none#
- refused, exit 2; the request itself is refused
- reading the transcript of {title}: an episode is chaptered at its cue timestamps, and the transcript holds no timed cue (a line "HH:MM:SS.mmm --> HH:MM:SS.mmm" followed by its words); observed: the transcript ({lines} lines) opens with {opening}; nothing was asked of the route
- Fix: send the episode's timed transcript as WebVTT or SubRip, not its plain text
- Test: tests/content/podcast.test.mjs::a_transcript_without_cues_is_refused
echo.content.podcast.chapters-none#
- infra_down, exit 69; trying again unchanged can help
- chaptering the episode {title} with {route}: the route answered no chapter; observed: chapters is {chapters}; nothing was kept
- Fix: add the episode again; a route that keeps answering no chapter is pointed at a stronger model in ECHO_PODCAST_ROUTE
- Test: tests/content/podcast.test.mjs::an_answer_without_chapters_is_named
echo.content.podcast.chapter-off-cue#
- infra_down, exit 69; trying again unchanged can help
- chaptering the episode {title} with {route}: a chapter starts at one of the transcript's own cue timestamps, and the route answered the chapter {chapter} starting at {starts}, which is none; observed: the transcript's first cues start at {cues}; nothing was kept
- Fix: add the episode again; a route that keeps inventing timestamps is pointed at a stronger model in ECHO_PODCAST_ROUTE
- Test: tests/content/podcast.test.mjs::a_chapter_off_the_cues_is_named
echo.content.podcast.chapter-past-end#
- infra_down, exit 69; trying again unchanged can help
- chaptering the episode {title} with {route}: the chapter {chapter} starts at {starts}, after the episode ends at {ends}; observed: the last cue ends at {ends}; nothing was kept
- Fix: add the episode again; the transcript's cues decide the episode's length, so a transcript cut short is sent whole
- Test: tests/content/podcast.test.mjs::a_chapter_after_the_end_is_named
echo.content.podcast.chapters-unordered#
- infra_down, exit 69; trying again unchanged can help
- chaptering the episode {title} with {route}: chapters run in the order of the episode, and the route put {chapter} ({starts}) after {previous} ({previousStarts}); observed: the chapters it answered: {chapters}; nothing was kept
- Fix: add the episode again; a route that keeps misordering is pointed at a stronger model in ECHO_PODCAST_ROUTE
- Test: tests/content/podcast.test.mjs::chapters_out_of_order_are_named
echo.content.podcast.notes-uncited#
- infra_down, exit 69; trying again unchanged can help
- chaptering the episode {title} with {route}: show notes name every chapter by its title, and the notes the route wrote do not name {uncited}; observed: the notes open with {notes}; nothing was kept
- Fix: add the episode again; a route that keeps leaving chapters out is pointed at a stronger model in ECHO_PODCAST_ROUTE
- Test: tests/content/podcast.test.mjs::notes_that_leave_a_chapter_out_are_named
echo.content.podcast.episode-absent#
- not_found, exit 1
- removing podcast episode {episode}: no podcast episode has id {episode}; observed: podcast_episodes holds no row {episode} ({held} episodes are held); nothing was removed
- Fix: name an episode echo-cli content podcast list shows
- Test: tests/content/podcast.test.mjs::an_episode_that_does_not_exist_is_not_found
echo.content.research#
Find a paper's LaTeX source, check it with Pangram, plan and draw its next figure, and recommend and record the venues it goes to.
Started by `/api/research/catalog`, `/api/research/pangram-check`, `/api/research/figure-plan`, `/api/research/figure-image`, `/api/research/publication-recommendations`, `/api/research/publication-targets`, `/api/research/publication-venues`, `/api/research/publication-venue-context`.
It also meets the causes of echo.http.access, echo.http.body, echo.http.query, echo.integration, echo.model, echo.weles.requests, echo.store.
echo.content.research.tex-url-foreign#
- refused, exit 2; the request itself is refused
- reading the LaTeX source of paper {paper} from {url}: a texUrl is read only from {repository}, over https on {hosts}, and this address is not one; observed: protocol {protocol}, host {host}, path {path}; nothing was fetched
- Fix: send the https address of the paper's .tex in {repository} (its raw.githubusercontent.com address), or send the text itself as tex
- Test: tests/content/research.test.mjs::a_tex_url_outside_the_research_repository_is_refused
echo.content.research.tex-unreachable#
- infra_down, exit 69; trying again unchanged can help
- reading the LaTeX source of paper {paper} from {url}: the address answered nothing: the name did not resolve, the connection failed or was cut; observed: {reason}; nothing was checked or planned
- Fix: open {url} in a browser; send the request again once it answers
- Test: tests/content/research.test.mjs::a_tex_url_that_does_not_answer_is_named
echo.content.research.tex-absent#
- not_found, exit 1
- reading the LaTeX source of paper {paper} from {url}: the repository holds no file at that address (GitHub answers 404 for a private repository too); observed: HTTP {status}; nothing was checked or planned
- Fix: copy the address of the .tex from the repository on github.com (Raw), or leave texUrl out so the integration reads it
- Test: tests/content/research.test.mjs::a_tex_url_that_names_no_file_is_not_found
echo.content.research.tex-unanswered#
- infra_down, exit 69; trying again unchanged can help
- reading the LaTeX source of paper {paper} from {url}: GitHub answered the address with a failure status instead of the file; observed: HTTP {status}: {body}; nothing was checked or planned
- Fix: send the request again; a status that persists is read on https://www.githubstatus.com
- Test: tests/content/research.test.mjs::a_tex_url_answering_a_failure_is_named
echo.content.research.local-unreadable#
- config, exit 1
- reading paper {paper} from the local research checkout at {path}: the path exists and cannot be read by this server ({code}); observed: {reason}; the research repository was not consulted
- Fix: give the account running Echo read permission on {path} (`ls -ld {path}` shows its mode and owner), or move it out of {root}
- Test: tests/content/research.test.mjs::a_local_paper_that_cannot_be_read_is_named
echo.content.research.text-none#
- refused, exit 1
- preparing paper {paper} ("{title}") for a Pangram check: Pangram checks the paper's text, and no LaTeX source was found ({looked}) and the request sends no abstract; observed: the source search ended at {source}; no run was dispatched
- Fix: send the paper's text as tex, its address as texUrl, or at least its abstract
- Test: tests/content/research.test.mjs::a_paper_without_text_is_refused
echo.content.research.text-unchunked#
- refused, exit 1
- preparing paper {paper} ("{title}") for a Pangram check: Pangram reads chunks of the paper's body, and the text found leaves no chunk once the LaTeX is stripped; observed: {words} words, {chars} characters from {source}; no run was dispatched
- Fix: send the paper's full LaTeX source as tex or texUrl; a source that is only a preamble or \input lines has no body to check
- Test: tests/content/research.test.mjs::a_paper_too_short_to_chunk_is_refused
echo.content.research.wait-misapplied#
- refused, exit 2; the request itself is refused
- reading the Pangram runs: wait=terminal is the only wait there is, and it holds the answer until the runs named by jobIds end; a paper's runs are read without waiting; observed: wait is {wait}, paperSlug is {paper}
- Fix: send wait=terminal with jobIds and without paperSlug, or leave wait out
- Test: tests/content/research.test.mjs::a_wait_on_a_paper_is_refused
echo.content.research.runs-unnamed#
- refused, exit 2; the request itself is refused
- reading the Pangram runs: the runs read are the ones jobIds (or ids) name, or every run of the paper paperSlug names, and the query names neither; observed: the query is {query}
- Fix: send jobIds=<id,id> with the ids POST /api/research/pangram-check answered, or paperSlug=<slug>
- Test: tests/content/research.test.mjs::a_read_naming_no_runs_is_refused
echo.content.research.svg-absent#
- infra_down, exit 69; trying again unchanged can help
- drawing figure {figure} of paper {paper} with the deep model: the figure is the one complete <svg> document the model writes, and its answer holds none; observed: stop reason {stop}, {blocks}; {length} characters of text: {text}
- Fix: ask again; a model that keeps answering without SVG is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_drawing_without_svg_is_named
echo.content.research.section-unknown#
- infra_down, exit 69; trying again unchanged can help
- placing the next figure of paper {paper}: the model must place the figure in a section of the paper, and it named one the source does not have; observed: it named "{section}"; the sections are {sections}
- Fix: plan again; a model that keeps inventing sections is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_figure_placed_in_an_unknown_section_is_named
echo.content.research.line-unending#
- infra_down, exit 69; trying again unchanged can help
- placing the next figure of paper {paper}: the figure follows a paragraph, named by its last line, and the line the model named ends no paragraph of the section; observed: line {line} in "{section}"; its paragraphs end at {ends}
- Fix: plan again; a model that keeps naming other lines is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_figure_after_a_line_that_ends_no_paragraph_is_named
echo.content.research.line-sourceless#
- infra_down, exit 69; trying again unchanged can help
- placing the next figure of paper {paper}: no LaTeX source was given, so there are no lines to place a figure after, and the model named line {line}; observed: the plan was asked from the title and abstract only
- Fix: plan again, or send the paper's source (tex or texUrl) so a line can be named
- Test: tests/content/research.test.mjs::a_line_named_without_a_source_is_named
echo.content.research.asset-unlisted#
- infra_down, exit 69; trying again unchanged can help
- placing the next figure of paper {paper}: the model may choose one of the figure assets listed to it, and it chose one that was not listed; observed: it chose "{asset}"; the assets are {assets}
- Fix: plan again; a model that keeps inventing assets is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_figure_asset_that_is_not_listed_is_named
echo.content.research.venue-unlisted#
- infra_down, exit 69; trying again unchanged can help
- recommending venues for paper {paper}: the model chooses only among the listed venues, and its choice {position} names one that is not listed; observed: it chose {venue}; the venues are {venues}
- Fix: ask again; a model that keeps inventing venues is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_venue_that_is_not_listed_is_named
echo.content.research.venue-repeated#
- infra_down, exit 69; trying again unchanged can help
- recommending venues for paper {paper}: each venue is recommended once, best first, and the model chose some more than once; observed: its choices in order: {chosen}
- Fix: ask again; a model that keeps repeating venues is routed to another by Stado's model catalogue
- Test: tests/content/research.test.mjs::a_venue_chosen_twice_is_named
echo.content.generation.models#
Render an image or a video on a generation model Echo declares, with the LoRAs, sizes and references its declaration and the request state.
Started by `/api/generate`, `/api/passion`, `/api/cron/needher-captions-loop`, `/api/loras`.
It also meets the causes of echo.http.body, echo.web.public, echo.store.
echo.content.generation.models.model-unknown#
- refused, exit 2; the request itself is refused
- choosing the generation model {model} for {purpose}: a render runs on a model Echo declares, and {model} is none of them; observed: the declared models are {models}; nothing was rendered
- Fix: name one of {models}
- Test: tests/content/generation.test.mjs::a_model_echo_does_not_declare_is_refused
echo.content.generation.models.setting-undeclared#
- config, exit 1
- building the {render} render of model {model}: the model's declaration states no {setting}, which a {render} render loads; observed: the declaration of {model} lacks {setting}; nothing was sent to the renderer
- Fix: declare {setting} for {model} in GENERATION_MODELS in src/lib/content/generation/config/styles.ts, or render on another model
- Test: tests/content/generation.test.mjs::a_model_declared_without_its_encoders_is_named
echo.content.generation.models.resolution-undeclared#
- config, exit 1
- reading the size of a render on model {model}: the request names no width and height, so the model's default resolution {resolution} decides it, and RESOLUTIONS defines no resolution by that name; observed: RESOLUTIONS defines {known}; nothing was rendered
- Fix: name one of {known} as the default resolution of {model} in GENERATION_MODELS in src/lib/content/generation/config/styles.ts, or send width and height
- Test: tests/content/generation.test.mjs::a_default_resolution_resolutions_lack_is_named
echo.content.generation.models.lora-strength-unset#
- config, exit 1
- reading the strength LoRA {lora} renders at: a LoRA renders at the default_strength its generation_loras row records, and this row records none, so no strength anybody chose is known; observed: generation_loras row {lora} has default_strength {value}; nothing was rendered with it
- Fix: set default_strength on the LoRA's generation_loras row (the LoRAs screen of the dashboard), or render without it
- Test: tests/content/generation.test.mjs::a_lora_without_a_strength_is_named
echo.content.generation.models.controlnet-image-missing#
- refused, exit 2; the request itself is refused
- building the ControlNet pass of a render on model {model}: ControlNet poses the render after an image, and the request asks for ControlNet without naming one; observed: controlnetImageFilename is absent; nothing was rendered, since the image would come out unposed
- Fix: send the pose image with the request, or ask without ControlNet
- Test: tests/content/generation.test.mjs::controlnet_without_its_image_is_refused
echo.content.generation.models.reference-missing#
- refused, exit 2; the request itself is refused
- rendering {what} with the {backend} backend: the {backend} backend draws the person after a reference image, and the request names none; observed: {field} is absent; nothing was rendered
- Fix: send {field} with the address of the reference image, or choose a backend that needs none
- Test: tests/content/generation.test.mjs::a_reference_backend_without_its_image_is_refused
echo.content.generation.models.reference-type-missing#
- refused, exit 2; the request itself is refused
- storing the reference image of {what}: the reference is stored and read back by its media type, and the request names {type}, which is not an image type; observed: imageMimeType {type}, {bytes} bytes of base64; nothing was stored or rendered
- Fix: send imageMimeType as the image's type, such as image/png or image/jpeg
- Test: tests/content/generation.test.mjs::a_reference_without_its_image_type_is_refused
echo.content.generation.models.template-unknown#
- refused, exit 2; the request itself is refused
- writing a Sora video prompt for product {product} after the V4 template {template}: a targeted prompt follows one of the V4 templates by its title, and none is titled {template}; observed: {count} V4 templates are held, such as {titles}; nothing was asked of the model
- Fix: name a template by the exact title the format list shows, or ask for a prompt without a template
- Test: tests/content/generation.test.mjs::a_template_title_the_v4_templates_lack_is_refused
echo.content.generation.models.presets-not-json#
- config, exit 1
- reading the image presets this browser saved under {key}: the presets are kept as JSON in the browser's local storage, and what is kept there does not parse; observed: {problem}; it opens with {opening}; the presets were left as they are
- Fix: remove the {key} entry from this site's local storage (the browser's site data) and save the presets again
- Test: tests/content/generation.test.mjs::presets_that_are_not_json_are_named
echo.content.generation.models.presets-not-list#
- config, exit 1
- reading the image presets this browser saved under {key}: the presets are kept as one JSON list, and what is kept there is {kind}; observed: it opens with {opening}; the presets were left as they are
- Fix: remove the {key} entry from this site's local storage (the browser's site data) and save the presets again
- Test: tests/content/generation.test.mjs::presets_that_are_not_a_list_are_named
echo.content.image-render#
Render a ComfyUI graph or run a photo edit plan on the image-render alternative Stado hands echo-web (Obraz), answer the picture inline and store it, or read whether it is ready.
Started by `/api/civitai/instance`, `/api/civitai/poses/[id]/regenerate`, `/api/civitai/poses/[id]/improve`, `/api/passion/generate`, `/api/lifestyle/generate`, `/api/cron/needher-captions-loop`, `/api/cron/needher-lifestyle-loop`.
It also meets the causes of echo.alternatives, echo.config, echo.store.
echo.content.image-render.obraz-unreachable#
- infra_down, exit 69; trying again unchanged can help
- sending {what} to {alternative} at {origin}{path} for {purpose}: the request got no answer: the route Stado handed out does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: render again once Obraz answers; `stado capabilities resolve image-render --consumer echo-web` on the Stado host shows the route it hands out and whether Obraz answered it
- Test: tests/content/image-render.test.mjs::an_obraz_that_does_not_answer_is_retryable
echo.content.image-render.secret-refused#
- auth, exit 1
- sending {what} to {alternative} at {origin}{path} for {purpose}: Obraz refused the secret Echo presented in x-obraz-secret: OBRAZ_SECRET is not the secret Obraz issued echo-web; observed: HTTP {status}: {answer}
- Fix: set OBRAZ_SECRET to the secret Obraz's service holds for echo-web in the deployment's environment (.env.local in a checkout), then deploy again
- Test: tests/content/image-render.test.mjs::a_secret_obraz_does_not_hold_is_named
echo.content.image-render.request-refused#
- refused, exit 2; the request itself is refused
- sending {what} to {alternative} at {origin}{path} for {purpose}: Obraz refused the {what} itself (HTTP {status}): a node, a model file or a step it does not run, or a request larger than it takes; observed: {answer}
- Fix: change what the {what} names (the node, model or step the answer names) and render again
- Test: tests/content/image-render.test.mjs::a_graph_obraz_refuses_is_named
echo.content.image-render.render-failed#
- infra_down, exit 69; trying again unchanged can help
- sending {what} to {alternative} at {origin}{path} for {purpose}: Obraz took the {what} and could not finish it (HTTP {status}, success {success}): its ComfyUI renderer failed or is not reachable from it; observed: {answer}
- Fix: render again; a render that keeps failing is read in Obraz's own log on its host, and GET /api/civitai/instance says whether Obraz is ready
- Test: tests/content/image-render.test.mjs::a_render_obraz_fails_is_retryable
echo.content.image-render.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- sending {what} to {alternative} at {origin}{path} for {purpose}: what answered is not the JSON Obraz answers: the route Stado handed out names another service, or a proxy in front of Obraz answered; observed: HTTP {status}, {length} characters: {answer}
- Fix: correct Obraz's route in Stado's service directory (`stado service directory endpoint obraz` on the Stado host shows the address it hands out), then render again
- Test: tests/content/image-render.test.mjs::an_answer_that_is_not_json_is_named
echo.content.image-render.image-absent#
- infra_down, exit 69; trying again unchanged can help
- sending {what} to {alternative} at {origin}{path} for {purpose}: Obraz answered a finished {what} without the picture it answers inline ({missing}); observed: {answer}
- Fix: render again; an answer that keeps lacking the picture means Obraz runs a release that does not deliver inline, and is updated on its host
- Test: tests/content/image-render.test.mjs::a_finished_render_without_its_picture_is_named
echo.content.image-render.not-ready#
- infra_down, exit 69; trying again unchanged can help
- reading the readiness of {alternative} at {origin}/readyz: Obraz answered that it cannot render now: its ComfyUI renderer is not reachable from it or is still starting; observed: HTTP {status}: {answer}
- Fix: start or repair the ComfyUI renderer Obraz names (`renderer` in the answer) on its host, then read the status again
- Test: tests/content/image-render.test.mjs::an_obraz_that_is_not_ready_is_named
echo.content.film#
Start a video render on a pipeline Film serves and read the job until the renderer that owns it ends it.
Started by `/api/generate`, `/api/explainer`, `/api/nano-banana`.
It also meets the causes of echo.alternatives, echo.config.
echo.content.film.pipeline-missing#
- refused, exit 2; the request itself is refused
- starting a {mode} video render through Film: Film renders on the pipeline the request names and chooses none itself, and the request names none; observed: pipeline is absent; nothing was sent to Film
- Fix: name the pipeline: one of {pipelines}
- Test: tests/content/film.test.mjs::a_render_without_a_pipeline_is_refused
echo.content.film.pipeline-unserved#
- refused, exit 2; the request itself is refused
- starting a {mode} video render through Film: Film has no renderer for the {pipeline} pipeline; observed: pipeline {pipeline}; nothing was sent to Film
- Fix: render scail on the wavespeed pipeline, or name one of {pipelines}
- Test: tests/content/film.test.mjs::a_pipeline_film_does_not_serve_is_refused
echo.content.film.film-unreachable#
- infra_down, exit 69; trying again unchanged can help
- {step} through Film at {origin}: the request got no answer: the route Stado handed out for video-render does not resolve, refuses the connection or dropped it; observed: {reason}; {left}
- Fix: check that Film answers at {origin} (stado capabilities resolve video-render --consumer echo-web names the route) and ask again
- Test: tests/content/film.test.mjs::a_film_that_does_not_answer_is_retryable
echo.content.film.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- {step} through Film at {origin}: Film answers every job as JSON, and this answer does not parse: the route handed out for video-render names another service, or a proxy answered in its place; observed: {status}, {problem}; the answer opens with {answer}; {left}
- Fix: point the service directory route film at Film's origin (stado capabilities resolve video-render --consumer echo-web shows the route) and ask again
- Test: tests/content/film.test.mjs::an_answer_that_is_not_json_is_named
echo.content.film.answer-jobless#
- refused, exit 1
- {step} through Film at {origin}: Film answered without a job (a job_id and a status): it refused the request ({status}); observed: Film said: {reason}; {left}
- Fix: change what Film names (a field the pipeline needs, the secret FILM_SECRET) and ask again
- Test: tests/content/film.test.mjs::a_refusal_without_a_job_is_named
echo.content.film.render-failed#
- infra_down, exit 69; trying again unchanged can help
- rendering job {job} on the {pipeline} pipeline: the renderer that owns the job reported that it failed: {reason}; observed: job {job} is failed; no video was made
- Fix: start the render again; a renderer that keeps failing the same request is asked with other inputs or on another pipeline
- Test: tests/content/film.test.mjs::a_failed_render_is_named
echo.content.film.job-unnamed#
- refused, exit 2; the request itself is refused
- reading a Film job: a job is read by the job_id Film answered when it started, and the request names none; observed: job id {job}; nothing was asked of Film
- Fix: send the job_id the render answered when it started
- Test: tests/content/film.test.mjs::a_read_without_a_job_id_is_refused
echo.content.film.url-missing#
- infra_down, exit 69; trying again unchanged can help
- reading the video of job {job} on the {pipeline} pipeline: Film held the read until the render ended, and answered status {status} without the video's url; observed: the job answer {answer}
- Fix: start the render again; a completed job without a url is a fault of Film's renderer for {pipeline}, seen in Film's log under job {job}
- Test: tests/content/film.test.mjs::a_job_without_its_video_is_named
echo.content.media-tools#
Read a video's stream, duration, scene cuts and frames with ffprobe and ffmpeg.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.content.media-tools.program-unrun#
- config, exit 1
- {step} of {video}: {program} could not be started: it is not installed where the deployment expects it, or is not executable; observed: {reason}; {left}
- Fix: install the ffmpeg and ffprobe src/lib/content/passion/classification/ffmpeg-bin.ts names on the host that runs Echo (or set the path it reads) and ask again
- Test: tests/content/media-tools.test.mjs::a_program_that_cannot_start_is_named
echo.content.media-tools.video-unreadable#
- refused, exit 1
- {step} of {video}: {program} could not read the video: its address answers no video (expired, private, or not a media file) or the file is damaged; observed: {program} exited {status}: {words}; {left}
- Fix: open {video} yourself; name an address that serves the video file itself
- Test: tests/content/media-tools.test.mjs::a_video_ffprobe_cannot_read_is_named
echo.content.media-tools.probe-unread#
- infra_down, exit 69; trying again unchanged can help
- {step} of {video}: ffprobe answered with {what}, so the video's {wanted} is not known; observed: ffprobe printed {answer}; {left}
- Fix: run ffprobe on {video} yourself; a video without a video stream (audio only) or without a duration is not one Echo can use
- Test: tests/content/media-tools.test.mjs::a_probe_answer_without_the_stream_is_named
echo.content.media-tools.frame-unwritten#
- refused, exit 1
- writing the frame at {at}s of {video}: ffmpeg exited without writing a frame: the video ends before {at}s ({duration}); observed: no file at {path}; {left}
- Fix: ask for a time inside the video
- Test: tests/content/media-tools.test.mjs::a_frame_past_the_end_is_named
echo.content.media-tools.frames-unasked#
- config, exit 1
- reading the frames of the scene {start}s to {end}s of {video}: a scene is classified from at least one of its frames, and {count} frames were asked of it; observed: the frame count the classifier passed is {count}; nothing was extracted
- Fix: set the scene frame count the passion classifier reads (its constant definitions) to one or more
- Test: tests/content/media-tools.test.mjs::a_scene_asked_for_no_frames_is_named
echo.content.media-tools.frames-blank#
- refused, exit 1
- describing the pose of the first frame that shows a subject among {count} frames: the vision model answered every frame as black or blank, so there is no pose to describe; observed: frames {frames} were each answered BLACK_FRAME; nothing was classified
- Fix: classify another scene or reference, or extract more frames of this one; a scene that is a fade or a title card has no subject
- Test: tests/content/media-tools.test.mjs::a_scene_of_blank_frames_is_named
echo.content.checks#
Check that a post may go out (tags, people shown, asset rights, review, case-study consent, brand, community rate) and that a draft holds no banned phrase.
Started by `/api/content-queue`, `/api/analytics`, `/api/blog-admin`, `echo-cli content`.
It also meets the causes of echo.http.body, echo.content.queue.lookup, echo.blog.lookup, echo.store.
echo.content.checks.tagging-unconsented#
- refused, exit 1
- clearing a post on {platform}, which tags people, to go out: a post tags only handles whose tagging consent is in force, and {count} of the handles it tags have none; observed: tagged without consent in force: {handles}
- Fix: record each consent with echo-cli content consent record --platform {platform} --handle <handle> --person <who> --evidence <what> --by <who>, or take {handles} out of the caption
- Test: tests/content/checks.test.mjs::a_post_tagging_without_consent_is_refused
echo.content.checks.people-unsaved#
- refused, exit 1
- clearing a post on {platform} whose media shows people to go out: the people a post shows are declared on the queued post, and this one is not queued yet while its media shows {people}; observed: the media shows {people}; the post declares none, as it has no id
- Fix: queue it as a draft, declare who they are with echo-cli content consent shown --post <id> --handles <h,...> --by <who>, then schedule it
- Test: tests/content/checks.test.mjs::an_unqueued_post_showing_people_is_refused
echo.content.checks.people-undeclared#
- refused, exit 1
- clearing post {post} on {platform}, whose media shows people, to go out: a post declares everyone its media shows, and post {post} shows {people} while it declares {declared}; observed: the media shows {people}; declared: {declared}
- Fix: declare who they are with echo-cli content consent shown --post {post} --handles <h,...> --by <who>, or use media without them
- Test: tests/content/checks.test.mjs::a_post_showing_undeclared_people_is_refused
echo.content.checks.people-unconsented#
- refused, exit 1
- clearing post {post} on {platform}, whose media shows people, to go out: a person shown is declared with tagging consent in force, and {count} of the declared handles have none; observed: shown without consent in force: {handles}
- Fix: record each consent with echo-cli content consent record --platform {platform} --handle <handle> --person <who> --evidence <what> --by <who>, or use media without them
- Test: tests/content/checks.test.mjs::a_post_showing_people_without_consent_is_refused
echo.content.checks.people-uncounted#
- refused, exit 1
- counting the people the media of {post} shows: a post goes out only once the people its media shows are counted, and the vision model could read none of its {count} media; observed: {reasons}
- Fix: attach an image or a thumbnail the vision model reads, then send the post again
- Test: tests/content/checks.test.mjs::a_post_whose_media_nobody_could_count_is_refused
echo.content.checks.rights-lapsed#
- refused, exit 1
- clearing a post to go out with its media: a post uses only assets with a recorded right in force, and every right of {count} of its assets has lapsed; observed: {lapsed}
- Fix: record a right in force for each asset named (echo-cli content rights record --asset <url> --kind <kind> --holder <who> --reference <ref> --expires-at <t> --by <who>), or replace the asset
- Test: tests/content/checks.test.mjs::a_post_whose_asset_rights_lapsed_is_refused
echo.content.checks.review-pending#
- refused, exit 1
- clearing post {post} of {surface}, a surface that requires review, to go out: a post of {surface} goes out only once the revision that would go out is approved, and revision {revision} is {state}; observed: post {post} revision {revision} is {state}
- Fix: approve it with echo-cli content review approve --post {post} --by <who>, then send the post again
- Test: tests/content/checks.test.mjs::an_unapproved_revision_is_refused
echo.content.checks.case-study-unconsented#
- refused, exit 1
- publishing post {post}, a case study of {customer}: a case study is published only while its customer's consent is in force, and {customer} has none; observed: case_studies holds post {post} as a case study of {customer}, and no consent of {customer} is in force
- Fix: record the consent with echo-cli content case-study consent --customer "{customer}" --granted-by <person> --evidence <text> --by <name>, then publish again
- Test: tests/content/checks.test.mjs::a_case_study_without_consent_is_refused
echo.content.checks.brand-unassigned#
- refused, exit 1
- dispatching {action} for the brand {wanted} through social account {account}: an action for a brand goes out only through an account that speaks for that brand, and account {account} speaks for no brand; observed: account_brands holds no row for account {account}; nothing was dispatched
- Fix: assign it with echo-cli accounts brands set --account {account} --brand {wanted} --by <who>, or act through an account of {wanted}
- Test: tests/content/checks.test.mjs::an_action_through_an_account_of_no_brand_is_refused
echo.content.checks.brand-mismatch#
- refused, exit 1
- dispatching {action} for the brand {wanted} through social account {account}: an action for a brand goes out only through an account that speaks for that brand, and account {account} speaks for {held}; observed: account_brands row of account {account}: product {held}, assigned by {by} at {at}; nothing was dispatched
- Fix: act through an account of {wanted} (echo-cli accounts brands list --brand {wanted}), or move this one with echo-cli accounts brands set --account {account} --brand {wanted} --by <who>
- Test: tests/content/checks.test.mjs::an_action_through_another_brands_account_is_refused
echo.content.checks.community-rate#
- refused, exit 1
- dispatching {action} in {community} on {platform}: {community} allows {max} of {actions} per {window} days under its declared rules, and {counted} were sent since {since}; observed: {counted} counted actions in action_logs since {since}; {action} was not dispatched; the refusal {recorded}
- Fix: wait until the oldest counted action leaves the {window}-day window, or act in another community; echo-cli social communities refusals --days {window} lists what was refused
- Test: tests/content/checks.test.mjs::an_action_past_a_communitys_rate_is_refused
echo.content.checks.banned-phrases#
- refused, exit 1
- keeping a draft: a draft uses none of the phrases the brand's glossary bans, and it uses {count}; observed: {violations}
- Fix: rewrite each phrase named, using the replacement the glossary gives where it gives one, and send the draft again
- Test: tests/content/checks.test.mjs::a_draft_with_banned_phrases_is_refused
echo.employee-lifecycle#
Record an employee's onboarding or offboarding run with the people router's plan, read a run and its events, and cancel one.
Started by `/api/employee-lifecycle/onboard`, `/api/employee-lifecycle/offboard`, `/api/employee-lifecycle/runs/[runId]`, `/api/employee-lifecycle/runs/[runId]/events`, `/api/employee-lifecycle/runs/[runId]/cancel`.
It also meets the causes of echo.http.access, echo.http.body, echo.store.
echo.employee-lifecycle.plan-malformed#
- config, exit 1
- recording the {workflow} plan the people router answered: every plan item is an object stating its type, task_id and stage, and item {position} is not; observed: item {position}: {issue}
- Fix: deploy a people router whose plan states type, task_id and stage for every action, then send the request again
- Test: tests/employee-lifecycle/runs.test.mjs::a_plan_item_without_its_type_is_named
echo.employee-lifecycle.not-cancellable#
- refused, exit 1
- cancelling lifecycle run {run}: only a queued or running run can be cancelled, and this one is neither, or no run has that id; observed: no queued or running row of employee_lifecycle_runs has id {run}
- Fix: read the run with GET /api/employee-lifecycle/runs/{run} to see where it stands
- Test: tests/employee-lifecycle/runs.test.mjs::a_finished_run_is_not_cancelled
echo.automation.caller#
Name who acts on an automation control: the signed-in admin, or the name an internal caller sends.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.http.access.
echo.automation.caller.caller-unnamed#
- refused, exit 2; the request itself is refused
- naming who acts on the request: an internal caller has no signed-in user, so it names who is acting in {field}, and the body names none; observed: {field} is absent or empty, and no session is signed in
- Fix: send {field} with the name of the person or job acting, or call the route signed in as an admin
- Test: tests/automation/approvals.test.mjs::an_internal_caller_that_names_nobody_is_refused
echo.http.client#
Load one of Echo's routes from a dashboard screen and read its JSON, a refusal keeping the route's own sentence and fix.
Started by `the dashboard screens that read Echo routes through fetchJson or fetchList`.
It uses no other functionality.
echo.http.client.no-response#
- infra_down, exit 69; trying again unchanged can help
- loading {route}: the request got no response: the browser is offline, the deployment is down or the connection was dropped; observed: {reason}
- Fix: load the screen again once the network and the deployment answer
- Test: tests/http/client.test.mjs::a_route_that_does_not_answer_is_retryable
echo.http.client.route-refused#
- refused, exit 1
- loading {route}: the route refused the request the screen sent; observed: HTTP {status}: {detail}
- Fix: follow the fix the route gives: {remedy}
- Test: tests/http/client.test.mjs::a_route_that_refuses_the_request_is_named
echo.http.client.route-denied#
- auth, exit 1
- loading {route}: the route did not admit the signed-in account; observed: HTTP {status}: {detail}
- Fix: sign in again as an admin: {remedy}
- Test: tests/http/client.test.mjs::a_route_that_denies_the_account_is_named
echo.http.client.route-absent#
- not_found, exit 1
- loading {route}: the route answers that what the screen asked for is not there; observed: HTTP {status}: {detail}
- Fix: open the screen from a list that shows what exists: {remedy}
- Test: tests/http/client.test.mjs::a_route_answering_not_found_is_named
echo.http.client.route-throttled#
- rate_limit, exit 69; trying again unchanged can help
- loading {route}: the route refused the request for its pace; observed: HTTP {status}: {detail}
- Fix: load the screen again after a pause: {remedy}
- Test: tests/http/client.test.mjs::a_throttled_route_is_retryable
echo.http.client.route-failed#
- infra_down, exit 69; trying again unchanged can help
- loading {route}: the route could not complete the request: a service it depends on failed; observed: HTTP {status}: {detail}
- Fix: load the screen again once the deployment answers: {remedy}
- Test: tests/http/client.test.mjs::a_route_that_fails_on_its_side_is_retryable
echo.http.client.not-json#
- config, exit 1
- loading {route}: the route answered a success whose body is not JSON: the screen and the deployment are of different revisions, or a proxy answered in its place; observed: HTTP {status}: {reason}
- Fix: reload the page, so the screen and the deployment it calls are of one revision
- Test: tests/http/client.test.mjs::a_success_that_is_not_json_is_named
echo.http.client.list-missing#
- config, exit 1
- loading {route}: the screen reads the list {key} from the answer, and the route answered without it; observed: the answer holds {keys}
- Fix: reload the page, so the screen and the deployment it calls are of one revision
- Test: tests/http/client.test.mjs::an_answer_without_its_list_is_named
echo.http.client.stream-missing#
- config, exit 1
- reading the event stream of {route}: the screen reads the answer as a text/event-stream, and the route answered without a body to read; observed: HTTP {status} with no body
- Fix: reload the page, so the screen and the deployment it calls are of one revision
- Test: tests/http/client.test.mjs::an_answer_without_a_stream_is_named
echo.http.query#
Read the parameters of a request's query string, each refused by name when it is required and absent or present and malformed.
Started by `/api/aesthetics/images/[id]`, `/api/analytics/attribution`, `/api/analytics/growth`, `/api/analytics/mobile`, `/api/analytics/web`, `/api/assets`, `/api/automation/approvals`, `/api/automation/audit`, `/api/automation/budgets`, `/api/characters`, `/api/characters/[id]/events`, `/api/civitai/loras`, `/api/civitai/poses`, `/api/civitai/references`, `/api/civitai/rejections`, `/api/civitai/trending`, `/api/content-queue`, `/api/crm/contacts`, `/api/cron/ad-conversion-feedback`, `/api/dashboard/personas`, `/api/dashboard/product`, `/api/diagnostics`, `/api/diagnostics/integrations`, `/api/ideas`, `/api/instagram-routine/summary`, `/api/jobs`, `/api/lifestyle/batches`, `/api/paid-ads/metrics`, `/api/passion/batches`, `/api/passion/scenarios`, `/api/performance`, `/api/platform-trends`, `/api/post-analytics`, `/api/reddit-routine/summary`, `/api/research/pangram-check`, `/api/research/publication-venue-context`, `/api/research/publication-venues`, `/api/stado-object`, `/api/trends`, `/api/upload`, `/api/warehouse/exports`, `/api/warehouse/runs`, `/api/worker/media/video`, `/assets`, `/civitai`.
It uses no other functionality.
echo.http.query.parameter-required#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} is required, and the request sends none or an empty one; observed: {name} is absent or empty
- Fix: send {name}=<{expects}> in the query string
- Test: tests/http/query.test.mjs::a_required_parameter_that_is_absent_is_named
echo.http.query.not-whole-number#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be a whole number; observed: {name} is "{value}"
- Fix: send {name} as a whole number written in digits, such as 10
- Test: tests/http/query.test.mjs::a_parameter_that_is_not_a_whole_number_is_named
echo.http.query.below-minimum#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be at least {min}; observed: {name} is {value}
- Fix: send {name} of {min} or more
- Test: tests/http/query.test.mjs::a_parameter_below_its_minimum_is_named
echo.http.query.above-maximum#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be at most {max}; observed: {name} is {value}
- Fix: send {name} of {max} or less
- Test: tests/http/query.test.mjs::a_parameter_above_its_maximum_is_named
echo.http.query.not-above-zero#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} counts days, items or steps, and must be above zero; observed: {name} is {value}
- Fix: send {name} of 1 or more, or leave it out for the route to read every row
- Test: tests/http/query.test.mjs::a_count_of_zero_is_named
echo.http.query.not-a-choice#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be one of {choices}; observed: {name} is "{value}"
- Fix: send {name} as one of {choices}
- Test: tests/http/query.test.mjs::a_value_outside_the_choices_is_named
echo.http.query.not-boolean#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be true or false; observed: {name} is "{value}": {reason}
- Fix: send {name}=true or {name}=false
- Test: tests/http/query.test.mjs::a_flag_that_is_not_true_or_false_is_named
echo.http.query.not-an-instant#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be an ISO 8601 instant; observed: {name} is "{value}"
- Fix: send {name} as an instant in the form YYYY-MM-DDTHH:MM:SSZ
- Test: tests/http/query.test.mjs::a_window_that_is_not_an_instant_is_named
echo.http.query.not-formed#
- refused, exit 2; the request itself is refused
- reading the query parameter {name}: {name} must be {expects}; observed: {name} is "{value}"
- Fix: send {name} as {expects}
- Test: tests/http/query.test.mjs::a_parameter_of_another_form_is_named
echo.http.query.none-named#
- refused, exit 2; the request itself is refused
- reading the query string: the route reads {reads}, and the request names none of {names}; observed: the query sends {sent}
- Fix: send one of {names}
- Test: tests/http/query.test.mjs::a_query_naming_none_of_its_choices_is_refused
echo.http.query.parameters-unpaired#
- refused, exit 2; the request itself is refused
- reading the query string: {name} and {second} are sent together or not at all: {why}; observed: the query sends {sent} alone
- Fix: send both {name} and {second}, or neither
- Test: tests/http/query.test.mjs::parameters_sent_without_their_pair_are_refused
echo.products.lookup#
Find the content product a request names before keeping a record that belongs to it, and create, change and remove products.
Started by `/api/products`, `/api/products/[id]`.
It also meets the causes of echo.store.
echo.products.lookup.product-absent#
- not_found, exit 1
- finding the product {product}: no content product has the id {product}; observed: products holds no row with id {product}
- Fix: name a product echo-cli products lists
- Test: tests/store/products.test.mjs::a_product_that_does_not_exist_is_not_found
echo.products.lookup.edit-columns-foreign#
- refused, exit 2; the request itself is refused
- changing product {product}: a product edit changes {editable}, and the body states {foreign} besides; observed: the body states {stated}; nothing was changed
- Fix: send only {editable}; the other columns are kept by the product itself
- Test: tests/store/products.test.mjs::a_product_edit_stating_another_column_is_refused
echo.usage-conditions#
Read the usage a product hint or micro-survey asks for: the events a subject must or must not have sent, how often, over which days and with which property.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.http.body.
echo.usage-conditions.part-without-event#
- refused, exit 2; the request itself is refused
- reading the usage condition of the {owner}: {part} is read on when_did, which the {owner} does not state; observed: {part} is {value} and when_did is absent
- Fix: send when_did, the event {part} applies to, or leave {part} out
- Test: tests/landing/conditions.test.mjs::a_count_or_property_without_its_event_is_refused
echo.usage-conditions.condition-none#
- refused, exit 2; the request itself is refused
- reading the usage condition of the {owner}: a {owner} is shown only to subjects whose usage calls for it, and it states neither when_did nor unless_did; observed: when_did and unless_did are absent
- Fix: send when_did, unless_did or both
- Test: tests/landing/conditions.test.mjs::a_hint_without_a_condition_is_refused
echo.blog.lookup#
Find the blog post or the blog surface a request names, and the product a surface answers to.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.store.
echo.blog.lookup.post-absent#
- not_found, exit 1
- finding the blog post {post}: no blog post has the id {post}; observed: blog_posts holds no row with id {post}
- Fix: name a post echo-cli blogs lists
- Test: tests/blog/lookup.test.mjs::a_post_that_does_not_exist_is_not_found
echo.blog.lookup.surface-absent#
- not_found, exit 1
- finding the blog surface {surface}: no blog surface has the slug {surface}; observed: blog_surfaces holds no row with slug {surface}
- Fix: name a surface by the slug echo-cli blogs shows on its posts
- Test: tests/blog/lookup.test.mjs::a_surface_that_does_not_exist_is_not_found
echo.blog.lookup.surface-unlinked#
- refused, exit 1
- finding the product the blog surface {surface} answers to: blog surface {surface} names no product, so {needs}; observed: blog_surfaces row {surface} has no product_id
- Fix: name its product: echo-cli glossary surface --surface {surface} --product <id>
- Test: tests/blog/lookup.test.mjs::a_surface_naming_no_product_is_refused
echo.content.queue.lookup#
Find the post of the content queue a request names before acting on it.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.store.
echo.content.queue.lookup.queued-post-absent#
- not_found, exit 1
- finding the queued post {post}: no post of the content queue has the id {post}; observed: content_posts holds no row with id {post}; nothing was changed
- Fix: name a post echo-cli content queue list lists
- Test: tests/content/queue.test.mjs::a_queued_post_that_does_not_exist_is_not_found
echo.privacy.subjects#
Read the user id, anonymous id or email address that name the person an erasure or an export is about.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.http.body.
echo.privacy.subjects.subject-unnamed#
- refused, exit 2; the request itself is refused
- naming the person to {purpose}: a person is found by a user id, an anonymous id or an email address, and the body names none of them; observed: the body names {sent}; nothing was read or changed
- Fix: send user_id, anonymous_id or email (or several) of the person to {purpose}
- Test: tests/privacy/subjects.test.mjs::a_request_naming_no_person_is_refused
echo.email.dns#
Read the records of a name from DNS, a name or record that does not exist being an answer and any other failure the read that could not be made.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.email.dns.dns-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the {kind} records of {name} from DNS: the resolver failed with {code}, which is neither the name nor the record being absent, so DNS gave no answer to read; observed: resolvers {servers} answered: {reason}
- Fix: read again once the resolvers answer; dig {kind} {name} shows what DNS says from this host
- Test: tests/email/dns.test.mjs::a_name_dns_cannot_answer_is_retryable
echo.http.body#
Read a request's JSON body and its fields, each refused by name when the body is not one JSON object or a field is required and absent or present and of another kind.
Started by `every /api route reading its JSON body through Body`.
It uses no other functionality.
echo.http.body.not-text#
- refused, exit 2; the request itself is refused
- reading the request body: the body must be UTF-8 JSON text, and its bytes do not decode as UTF-8; observed: {reason}
- Fix: send the body as UTF-8 JSON with Content-Type: application/json
- Test: tests/http/body.test.mjs::a_body_that_is_not_utf8_is_refused
echo.http.body.not-json#
- refused, exit 2; the request itself is refused
- reading the request body: the body must be JSON, and it does not parse; observed: {reason}
- Fix: send the body as one JSON object, such as {shape}
- Test: tests/http/body.test.mjs::a_body_that_is_not_json_is_refused
echo.http.body.not-object#
- refused, exit 2; the request itself is refused
- reading the request body: the body must be one JSON object, and it is {kind}; observed: the body is {kind}
- Fix: send the body as one JSON object, such as {shape}
- Test: tests/http/body.test.mjs::a_body_that_is_not_an_object_is_refused
echo.http.body.field-required#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} is required, and the body sends none or an empty one; observed: {name} is absent, null or empty
- Fix: send {name} in the body: {expects}
- Test: tests/http/body.test.mjs::a_required_field_that_is_absent_is_named
echo.http.body.field-kind#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} must be {expects}; observed: {name} is {kind}: {value}
- Fix: send {name} as {expects}
- Test: tests/http/body.test.mjs::a_field_of_another_kind_is_named
echo.http.body.field-below-minimum#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} must be at least {min}; observed: {name} is {value}
- Fix: send {name} of {min} or more
- Test: tests/http/body.test.mjs::a_field_below_its_minimum_is_named
echo.http.body.field-above-maximum#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} must be at most {max}; observed: {name} is {value}
- Fix: send {name} of {max} or less
- Test: tests/http/body.test.mjs::a_field_above_its_maximum_is_named
echo.http.body.field-not-above-zero#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} counts or measures something there is, and must be above zero; observed: {name} is {value}
- Fix: send {name} as a number above zero
- Test: tests/http/body.test.mjs::a_field_of_zero_or_less_is_named
echo.http.body.field-not-a-choice#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} must be one of {choices}; observed: {name} is {value}
- Fix: send {name} as one of {choices}
- Test: tests/http/body.test.mjs::a_field_outside_its_choices_is_named
echo.http.body.field-malformed#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: {name} must be {expects}, and the text it holds is not one; observed: {name} is {value}
- Fix: send {name} as {expects}
- Test: tests/http/body.test.mjs::a_field_whose_text_is_malformed_is_named
echo.http.body.item-kind#
- refused, exit 2; the request itself is refused
- reading the field {name} of the request body: every item of {name} must be {expects}; observed: item {index} of {name} is {kind}: {value}
- Fix: send {name} as a list whose every item is {expects}
- Test: tests/http/body.test.mjs::a_list_item_of_another_kind_is_named
echo.http.body.nothing-stated#
- refused, exit 2; the request itself is refused
- reading the request body: the request changes the fields it names, and it names none of {names}; observed: the body names {sent}
- Fix: send at least one of {names} in the body
- Test: tests/http/body.test.mjs::a_change_naming_no_field_is_refused
echo.http.body.fields-unpaired#
- refused, exit 2; the request itself is refused
- reading the request body: {name} and {second} are stated together or not at all; observed: the body states {sent} alone
- Fix: send both {name} and {second}, or neither
- Test: tests/http/body.test.mjs::fields_stated_without_their_pair_are_refused
echo.http.access#
Admit a route's caller: a signed-in admin with a confirmed email, a bearer token the project issued, or Echo's own jobs holding CRON_SECRET.
Started by `every /api route admitting an admin (refuseUnlessAdmin, adminUser), a signed-in product user (productUser) or only Echo's own jobs (refuseUnlessInternal)`.
It also meets the causes of echo.store.
echo.http.access.signed-out#
- auth, exit 1
- admitting the caller to {purpose}: the route answers a signed-in admin or Echo's own jobs, and the request carries neither a session, a bearer token nor the internal secret; observed: {reason}
- Fix: sign in to the dashboard as an admin, or send x-cron-secret: <CRON_SECRET>, or Authorization: Bearer <CRON_SECRET>
- Test: tests/http/access.test.mjs::a_request_without_a_session_is_refused
echo.http.access.credential-rejected#
- auth, exit 1
- admitting the caller to {purpose}: the {credential} the request carries is not one the project accepts: it expired, was revoked or belongs to another project; observed: {reason}
- Fix: sign in to the dashboard again, or send a bearer token the project issued
- Test: tests/http/access.test.mjs::a_bearer_token_the_project_rejects_is_refused
echo.http.access.lookup-unreachable#
- infra_down, exit 69; trying again unchanged can help
- admitting the caller to {purpose}: the Supabase project's sign-in service did not answer, so whether the caller may use the route is not known; observed: {reason}
- Fix: send the request again once the project NEXT_PUBLIC_SUPABASE_URL names answers
- Test: tests/http/access.test.mjs::a_sign_in_service_that_does_not_answer_is_retryable
echo.http.access.email-unproven#
- refused, exit 1
- admitting the caller to {purpose}: the route is granted only to an account with a confirmed email: {account}; observed: account {user}
- Fix: confirm the email of the account from the message the project sent, or sign in with an account whose email is confirmed
- Test: tests/http/access.test.mjs::an_account_without_a_confirmed_email_is_refused
echo.http.access.not-admin#
- refused, exit 1
- admitting {email} to {purpose}: the route answers admins only, and admin_users holds no row for {email}; observed: {email} is signed in and not listed in admin_users
- Fix: sign in as an admin, or ask an admin to add {email} to admin_users
- Test: tests/http/access.test.mjs::a_signed_in_user_who_is_not_an_admin_is_refused
echo.http.access.internal-unset#
- config, exit 1
- admitting Echo's own job to {purpose}: the route answers only callers holding CRON_SECRET, and the deployment sets none, so no caller can be admitted; observed: CRON_SECRET is unset
- Fix: set CRON_SECRET in the deployment's environment (.env.local in a checkout) and give the same value to the jobs that call the route
- Test: tests/http/access.test.mjs::a_deployment_without_an_internal_secret_refuses_by_name
echo.http.access.internal-required#
- auth, exit 1
- admitting Echo's own job to {purpose}: the route answers only Echo's own jobs, and the request carries no secret matching CRON_SECRET; observed: {presented}
- Fix: send x-cron-secret: <CRON_SECRET>, or Authorization: Bearer <CRON_SECRET>
- Test: tests/http/access.test.mjs::a_request_without_the_internal_secret_is_refused
echo.http.access.user-signed-out#
- auth, exit 1
- reading who wants to {purpose}: the route answers a user signed in to the product's Supabase project, and the request carries no session the project accepts; observed: {reason}
- Fix: sign in to the product, then send the request again with its session
- Test: tests/http/access.test.mjs::a_product_user_signed_out_is_refused
echo.http.access.user-email-absent#
- refused, exit 1
- reading the email of the user who wants to {purpose}: the request is answered by email, and the signed-in account has no email address; observed: account {user} has no email
- Fix: add an email address to the account, or sign in with one that has it
- Test: tests/http/access.test.mjs::a_product_user_without_an_email_is_refused
echo.http.webhook#
Read an https:// webhook recipient and post a report to it as one JSON body, without following a redirect.
Started by `/api/market/report/deliveries`, `/api/analytics/reports/schedules`, `/api/cron/market-report`, `/api/cron/metric-reports`.
It also meets the causes of echo.web.public.
echo.http.webhook.plain-http#
- refused, exit 2; the request itself is refused
- reading the recipient {value}: a webhook must be an https:// address, since the report travels to it, and this one is plain http; observed: the recipient starts with http:
- Fix: name the webhook by its https:// address, or name an email address instead
- Test: tests/http/webhook.test.mjs::a_plain_http_webhook_is_refused
echo.http.webhook.address-malformed#
- refused, exit 2; the request itself is refused
- reading the recipient {value}: the recipient starts as an https:// webhook address, and the rest does not parse as a URL; observed: the recipient is {value}
- Fix: name the webhook by the whole https:// address the chat channel's settings show
- Test: tests/http/webhook.test.mjs::a_webhook_that_is_not_a_url_is_refused
echo.http.webhook.unreachable#
- infra_down, exit 69; trying again unchanged can help
- posting the report to the webhook {host}: the webhook got no answer, or its address is not a public one Echo posts to: the host does not resolve, refuses the connection or resolves to a private network; observed: {reason}
- Fix: check that the webhook address still exists in the channel it belongs to, and send the report again
- Test: tests/http/webhook.test.mjs::a_webhook_that_does_not_answer_is_retryable
echo.http.webhook.webhook-gone#
- not_found, exit 1
- posting the report to the webhook {host}: the webhook answers that it does not exist: its channel or integration was removed; observed: HTTP {status}: {detail}
- Fix: name the webhook the channel holds now, in place of this recipient
- Test: tests/http/webhook.test.mjs::a_webhook_that_is_gone_is_named
echo.http.webhook.webhook-denied#
- auth, exit 1
- posting the report to the webhook {host}: the webhook refused the post: its address no longer carries a credential the channel accepts; observed: HTTP {status}: {detail}
- Fix: make a new webhook for the channel and name it in place of this recipient
- Test: tests/http/webhook.test.mjs::a_webhook_that_denies_the_post_is_named
echo.http.webhook.webhook-throttled#
- rate_limit, exit 69; trying again unchanged can help
- posting the report to the webhook {host}: the webhook refused the post for its pace; observed: HTTP {status}: {detail}
- Fix: send the report again after a pause
- Test: tests/http/webhook.test.mjs::a_throttled_webhook_is_retryable
echo.http.webhook.webhook-refused#
- refused, exit 1
- posting the report to the webhook {host}: the webhook refused the body it was posted: the channel takes another form of message; observed: HTTP {status}: {detail}
- Fix: name a webhook that accepts a JSON body with a text field, such as a Slack incoming webhook
- Test: tests/http/webhook.test.mjs::a_webhook_that_refuses_the_body_is_named
echo.http.webhook.webhook-failed#
- infra_down, exit 69; trying again unchanged can help
- posting the report to the webhook {host}: the webhook failed on its side; observed: HTTP {status}: {detail}
- Fix: send the report again once the channel answers
- Test: tests/http/webhook.test.mjs::a_webhook_that_fails_on_its_side_is_retryable
echo.http.webhook.webhook-redirected#
- config, exit 1
- posting the report to the webhook {host}: the webhook answered with a redirect, and Echo never follows one, since the report would go where the address does not say; observed: HTTP {status}: {detail}
- Fix: name the address the redirect points to as the recipient
- Test: tests/http/webhook.test.mjs::a_webhook_that_redirects_is_named
echo.integration#
Call one operation of Stado's integration API with the operator's provider credentials, and log every call that fails.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.store.
echo.integration.token-unset#
- config, exit 1
- calling Stado {domain} integration {action}: Echo calls Stado's integration API with ECHO_STADO_INTEGRATION_TOKEN, and the deployment sets none; observed: ECHO_STADO_INTEGRATION_TOKEN is unset or empty
- Fix: set ECHO_STADO_INTEGRATION_TOKEN to the token Stado issued for Echo, in the deployment's environment (.env.local in a checkout)
- Test: tests/integration/stado.test.mjs::a_deployment_without_an_integration_token_is_named
echo.integration.token-malformed#
- config, exit 1
- calling Stado {domain} integration {action}: ECHO_STADO_INTEGRATION_TOKEN is sent as a bearer token, and it holds whitespace or control characters a header cannot carry; observed: the token holds {length} characters, some of them whitespace or control characters; the value is not shown because it is a secret
- Fix: set ECHO_STADO_INTEGRATION_TOKEN to the token alone, without spaces or line breaks, in the deployment's environment (.env.local in a checkout)
- Test: tests/integration/stado.test.mjs::an_integration_token_with_whitespace_is_named
echo.integration.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling Stado {domain} integration {action}: Stado's integration API got the request to no answer: its host does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: call again once the Stado integration API STADO_INTEGRATION_API_URL names answers
- Test: tests/integration/stado.test.mjs::an_integration_api_that_does_not_answer_is_retryable
echo.integration.token-rejected#
- config, exit 1
- calling Stado {domain} integration {action}: Stado refused the token Echo presented, or the provider refused the credentials Stado holds for the operator; observed: HTTP {status}: {body}
- Fix: set ECHO_STADO_INTEGRATION_TOKEN to the token Stado issued for Echo in the deployment's environment (.env.local in a checkout), and reconnect the provider's credentials in Stado
- Test: tests/integration/stado.test.mjs::a_token_stado_refuses_is_named
echo.integration.action-unknown#
- config, exit 1
- calling Stado {domain} integration {action}: the Stado integration API this deployment calls does not offer {domain} {action}; observed: HTTP {status}: {body}
- Fix: point STADO_INTEGRATION_API_URL at a Stado that offers the operation, or update that Stado
- Test: tests/integration/stado.test.mjs::an_operation_stado_does_not_offer_is_named
echo.integration.request-refused#
- refused, exit 1
- calling Stado {domain} integration {action}: the provider refused what Echo sent: a value it does not take, or an operation it does not allow on that account; observed: HTTP {status}: {body}
- Fix: change the request the body names, then call again; GET /api/diagnostics/integrations shows what was sent
- Test: tests/integration/stado.test.mjs::a_request_the_provider_refuses_is_named
echo.integration.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling Stado {domain} integration {action}: the provider refused the call for its pace; observed: HTTP {status}: {body}
- Fix: call again after a pause
- Test: tests/integration/stado.test.mjs::a_throttled_provider_is_retryable
echo.integration.provider-failed#
- infra_down, exit 69; trying again unchanged can help
- calling Stado {domain} integration {action}: Stado or the provider behind it failed on its side; observed: HTTP {status}: {body}
- Fix: call again once the provider answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/integration/stado.test.mjs::a_provider_that_fails_on_its_side_is_retryable
echo.integration.answer-malformed#
- infra_down, exit 69; trying again unchanged can help
- calling Stado {domain} integration {action}: Stado answered a success that is not the { ok: true, result } envelope Echo reads; observed: HTTP {status}: {reason}
- Fix: call again; an answer that stays malformed means the Stado STADO_INTEGRATION_API_URL names runs another revision than Echo expects
- Test: tests/integration/stado.test.mjs::an_answer_without_a_result_is_named
echo.model#
Ask one of Echo's model profiles, or a route an operator declared, through Stado's inference alternatives, and read its answer, tool call, embedding, decision, catalogue or media.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.alternatives, echo.store.
echo.model.route-malformed#
- config, exit 1
- reading the model route {setting}: a route names its provider and model as provider/model, and {setting} does not; observed: {setting} is "{route}"
- Fix: set {setting} to a canonical route such as anthropic/claude-sonnet-4 in the deployment's environment (.env.local in a checkout)
- Test: tests/model/router.test.mjs::a_route_that_is_not_provider_and_model_is_named
echo.model.answer-malformed#
- infra_down, exit 69; trying again unchanged can help
- asking {route} through Stado's inference alternatives ({operation}): the alternative answered a success that lacks what every answer of this operation carries: {missing}; observed: answer {answer}
- Fix: ask again; an answer that stays malformed means the alternative runs another revision than Echo expects
- Test: tests/model/router.test.mjs::an_answer_without_its_choices_is_named
echo.model.tool-declined#
- refused, exit 1
- asking {who} for an answer by {tool}: the model declined to answer; observed: it said: {said}
- Fix: change what is asked so the model can answer it, or route the profile to another model
- Test: tests/model/router.test.mjs::a_model_that_declines_is_named
echo.model.tool-not-called#
- infra_down, exit 69; trying again unchanged can help
- asking {who} for an answer by {tool}: the model answered without one call of the tool the answer is read from; observed: {content}
- Fix: ask again; a model that keeps answering in text is routed to one that calls tools
- Test: tests/model/router.test.mjs::a_model_that_answers_in_text_is_named
echo.model.tool-arguments-refused#
- infra_down, exit 69; trying again unchanged can help
- reading the answer {who} gave by {tool}: the model called the tool with arguments its schema refuses; observed: {issues}: {input}
- Fix: ask again; a model that keeps breaking the schema is routed to a stronger one
- Test: tests/model/router.test.mjs::a_tool_call_the_schema_refuses_is_named
echo.model.image-unsupported#
- refused, exit 1
- sending an image to the vision route: the vision route reads JPEG, PNG, GIF and WebP images, and these bytes are none of them; observed: the bytes open with {head}
- Fix: convert the image to JPEG, PNG or WebP and send it again
- Test: tests/model/router.test.mjs::an_image_of_another_format_is_refused
echo.model.input-empty#
- refused, exit 1
- asking the embedding route for {count} vectors: an embedding is made of text, and the input holds no text or a blank one; observed: {blank} of {count} inputs are blank
- Fix: embed only the texts that hold words
- Test: tests/model/router.test.mjs::an_embedding_of_nothing_is_refused
echo.model.message-unsendable#
- refused, exit 1
- writing the conversation for the model router: every block of a message is text, an image, a tool call with its input or a tool result, and one {role} block is not; observed: {block}
- Fix: start a new conversation; the stored one holds a block an earlier Echo wrote that the router cannot forward
- Test: tests/model/router.test.mjs::a_message_block_the_router_cannot_forward_is_named
echo.model.answer-textless#
- infra_down, exit 69; trying again unchanged can help
- asking the {profile} model profile for {what}: the answer is read from the model's text, and it answered none (stop reason {stop}); observed: the answer held the blocks {blocks}; {left}
- Fix: ask again; a profile whose model keeps answering without text (a stop reason of max_tokens means the request asked for too much) is routed to another model in Stado's inference order
- Test: tests/model/router.test.mjs::an_answer_without_text_is_named
echo.model.answer-declined#
- refused, exit 1
- asking the {profile} model profile for {what}: the model declined to answer (stop reason refusal), so there is nothing to use; observed: it said: {said}; {left}
- Fix: change what is asked (the input it read is named above) so the model can answer it, or route the profile to another model
- Test: tests/model/router.test.mjs::a_model_that_declines_a_text_request_is_named
echo.alternatives#
Resolve a family (browser-automation, image-render, content-ingest) or have it answer one request (every inference request by its operation, model-catalog) through Stado's web API, authenticated by echo-web's own grant.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.config, echo.store.
echo.alternatives.stado-unreachable#
- infra_down, exit 69; trying again unchanged can help
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: the request got no answer: STADO_API_URL does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once Stado answers at STADO_API_URL; `stado service status` on the Stado host says whether its web API runs
- Test: tests/alternatives/stado.test.mjs::a_stado_that_does_not_answer_is_retryable
echo.alternatives.stado-answer-unread#
- config, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: what answered is not the resolution or refusal Stado's web API answers: STADO_API_URL names another service, or a Stado release that serves no /api/capabilities routes; observed: HTTP {status}: {answer}
- Fix: set STADO_API_URL to the Stado whose web API serves POST /api/capabilities/resolve and /call, in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it; a Stado that answers 404 there runs a release without them and is updated on its host first
- Test: tests/alternatives/stado.test.mjs::an_address_that_is_not_stado_is_named
echo.alternatives.grant-refused#
- auth, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: Stado holds no grant for the bearer Echo presented: echo-web is not a declared capability consumer there, or ECHO_STADO_CAPABILITY_API_TOKEN is not the token its item holds; observed: {functionality}.{refusal}: {message}
- Fix: on the Stado host declare echo-web (`stado config set capability_api.consumers.echo-web.item echo-web-capability-api` and `stado config set capability_api.consumers.echo-web.families '["inference","model-catalog","browser-automation","image-render","content-ingest"]'`) and store its bearer (`stado credentials put echo-web-capability-api`), then set ECHO_STADO_CAPABILITY_API_TOKEN to that bearer in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/alternatives/stado.test.mjs::a_bearer_stado_does_not_grant_is_named
echo.alternatives.family-ungranted#
- config, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: echo-web's grant on the Stado host does not name the {family} family; observed: {functionality}.{refusal}: {message}
- Fix: on the Stado host add {family} to echo-web's families (`stado config set capability_api.consumers.echo-web.families '[...]'`, keeping the ones it names)
- Test: tests/alternatives/stado.test.mjs::a_family_the_grant_does_not_name_is_named
echo.alternatives.family-unknown#
- config, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: the Stado at {origin} runs a release that does not declare the {family} family; observed: {functionality}.{refusal}: {message}
- Fix: install on the host STADO_API_URL names the Stado release whose `stado capabilities resolve --help` lists {family} (`stado release local install` there), then ask again
- Test: tests/alternatives/stado.test.mjs::a_family_the_installed_stado_does_not_declare_is_named
echo.alternatives.none-answers#
- infra_down, exit 69; trying again unchanged can help
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: no alternative in the order Stado selects answers it; observed: {functionality}.{refusal}: {message}
- Fix: fix what each alternative's cause names; `stado capabilities resolve {family} --consumer echo-web` on the Stado host shows the order and each cause, and GET /api/diagnostics/integrations each failed call
- Test: tests/alternatives/stado.test.mjs::a_family_no_alternative_answers_is_retryable
echo.alternatives.request-refused#
- refused, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: the alternative refused the request itself (its content, its size or a tool it was offered), so no other alternative is asked the same request; observed: {functionality}.{refusal}: {message}
- Fix: change what is asked (a shorter prompt, another image) and ask again
- Test: tests/alternatives/stado.test.mjs::a_request_the_alternative_refuses_is_named
echo.alternatives.operation-uncarried#
- config, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: the Stado at {origin} does not carry this request of the {family} family: it runs a release from before its `call` sent requests other than chat; observed: {functionality}.{refusal}: {message}
- Fix: install on the host STADO_API_URL names the Stado release whose `stado capabilities call --help` lists --operation (`stado release local install` there), then ask again
- Test: tests/alternatives/stado.test.mjs::an_operation_stado_does_not_carry_is_named
echo.alternatives.stado-refused#
- config, exit 1
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: Stado refused the request for a cause it declares, and asking again does not change it; observed: {functionality}.{refusal}: {message}
- Fix: {remedy}
- Test: tests/alternatives/stado.test.mjs::a_refusal_echo_does_not_read_as_its_own_cause_is_named
echo.alternatives.stado-failed#
- infra_down, exit 69; trying again unchanged can help
- {verb} the {family} family ({sent}) through Stado at {origin} for {purpose}: Stado could not answer now for a cause it declares retryable (its credential store, its record or a proof it could not make); observed: {functionality}.{refusal}: {message}
- Fix: {remedy}; then ask again
- Test: tests/alternatives/stado.test.mjs::a_stado_that_cannot_read_its_grants_is_retryable
echo.alternatives.alternative-unrouted#
- config, exit 1
- reaching the {alternative} alternative of the {family} family for {purpose}: Stado handed out {alternative}, and Echo holds a client only for {routed}; observed: Stado resolved {family} for echo-web to {alternative} at {route}
- Fix: on the Stado host select an order whose first answering alternative is one of {routed} (`stado capabilities select {family} --order <alternatives>`), or have {alternative} proven again with `stado capabilities resolve {family} --consumer echo-web --failed {alternative}`
- Test: tests/alternatives/stado.test.mjs::an_alternative_echo_holds_no_client_for_is_named
echo.alternatives.route-unusable#
- config, exit 1
- reaching the {alternative} alternative of the {family} family for {purpose}: the route Stado handed out is not an HTTPS origin Echo can send a request to; observed: Stado resolved {family} for echo-web to {alternative} at {route}
- Fix: correct {alternative}'s route in Stado's service directory (`stado service directory endpoint {alternative}` on the Stado host shows the address it hands out), then ask again
- Test: tests/alternatives/stado.test.mjs::a_route_that_is_not_an_origin_is_named
echo.weles.requests#
Build the account upserts, account updates and runs Echo sends Weles, refusing a credential outside Skarbiec and a run scheduled for later.
Started by `/api/accounts`, `/api/accounts/[id]`, `/api/accounts/[id]/actions`, `/api/characters`, `/api/characters/[id]`.
It also meets the causes of echo.weles.
echo.weles.requests.field-not-object#
- refused, exit 2; the request itself is refused
- building the {operation} for Weles: {field} is an object of fields when sent, and the request sends another value; observed: {field} is {value}
- Fix: send {field} as a JSON object, or leave it out
- Test: tests/weles/requests.test.mjs::a_metadata_that_is_not_an_object_is_refused
echo.weles.requests.secret-sent#
- refused, exit 2; the request itself is refused
- building the {operation} for Weles: an account's credentials are written to Skarbiec through Weles (its password as the upsert's password), never as tokens or inside the account's metadata, which every account read returns; observed: the request carries {found}
- Fix: leave {found} out; send the account's password only as the upsert's password
- Test: tests/weles/requests.test.mjs::an_account_write_carrying_a_token_is_refused
echo.weles.requests.password-blank#
- refused, exit 2; the request itself is refused
- building the account upsert for Weles: a password, when sent, is the non-empty text Weles writes to Skarbiec; observed: password is {value}
- Fix: send password as the account's password, or leave it out
- Test: tests/weles/requests.test.mjs::an_upsert_with_a_blank_password_is_refused
echo.weles.requests.password-in-update#
- refused, exit 2; the request itself is refused
- building the account update of {account} for Weles: a password is set only by upserting the account with it, which Weles writes to Skarbiec; an update never carries one; observed: the update carries password
- Fix: upsert the account with its password (POST /api/accounts) instead
- Test: tests/weles/requests.test.mjs::an_update_carrying_a_password_is_refused
echo.weles.requests.run-scheduled#
- refused, exit 1
- starting {action} on Weles: Weles runs actions only now (POST /run), and this one is scheduled for {at}; starting it now would act on the account early; observed: scheduled_at is {at}
- Fix: leave it scheduled; the scheduled-actions cron starts it when its time comes
- Test: tests/weles/requests.test.mjs::a_run_scheduled_for_later_is_refused
echo.weles#
Call Weles' API for Echo's accounts, runs and their results, runtime settings, service records, its release and rendered pages, logging each failed call.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.alternatives, echo.store.
echo.weles.unreachable#
- infra_down, exit 69; trying again unchanged can help
- asking Weles at {origin} for {path}: the request got no answer: the route Stado resolved for Weles does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: `stado capabilities resolve browser-automation --consumer echo-web --failed weles` on the Stado host proves Weles again; ask again once it answers
- Test: tests/weles/call.test.mjs::a_weles_that_does_not_answer_is_retryable
echo.weles.answer-unread#
- infra_down, exit 69; trying again unchanged can help
- asking Weles at {origin} for {path}: Weles answers {expected}, and this answer is not one, so what it did cannot be read; observed: HTTP {status}: {answer}
- Fix: ask again; GET /api/diagnostics/integrations shows the whole answer, and a route in front of Weles answering for it is named there
- Test: tests/weles/call.test.mjs::an_answer_that_is_not_json_is_named
echo.weles.bearer-refused#
- config, exit 1
- asking Weles at {origin} for {path}: Weles refused the bearer Echo presented: ECHO_WELES_API_TOKEN is not the token Weles issued for Echo; observed: HTTP {status} {code}: {said}
- Fix: set ECHO_WELES_API_TOKEN to the token Weles issued for Echo in the deployment's environment, then deploy again
- Test: tests/weles/call.test.mjs::a_bearer_weles_refuses_is_named
echo.weles.record-absent#
- not_found, exit 1
- asking Weles at {origin} for {path}: Weles holds no record or run of the id asked; observed: HTTP {status} {code}: {said}
- Fix: name a record GET /api/accounts lists, or a run Echo started
- Test: tests/weles/call.test.mjs::a_record_weles_does_not_hold_is_not_found
echo.weles.throttled#
- infra_down, exit 69; trying again unchanged can help
- asking Weles at {origin} for {path}: Weles refused the call for its pace; observed: HTTP {status} {code}: {said}
- Fix: ask again after a pause
- Test: tests/weles/call.test.mjs::a_throttled_call_is_retryable
echo.weles.request-refused#
- refused, exit 1
- asking Weles at {origin} for {path}: Weles refused what Echo sent, for the reason its code names; observed: HTTP {status} {code}: {said}
- Fix: change what the refusal names, then ask again; GET /api/diagnostics/integrations shows the fields sent
- Test: tests/weles/call.test.mjs::a_request_weles_refuses_is_named
echo.weles.failed#
- infra_down, exit 69; trying again unchanged can help
- asking Weles at {origin} for {path}: Weles failed on its side; observed: HTTP {status} {code}: {said}
- Fix: ask again once Weles answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/weles/call.test.mjs::a_weles_that_fails_on_its_side_is_retryable
echo.weles.account-unlinked#
- not_found, exit 1
- finding the Weles record of Echo account {account}: {why}; observed: social_accounts {observed}
- Fix: name an account GET /api/accounts lists; an account Weles holds is linked the first time it is listed
- Test: tests/weles/call.test.mjs::an_account_linked_to_no_weles_record_is_not_found
echo.weles.setting-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the Weles runtime setting {key}: {problem}; observed: {answer}
- Fix: set it again (POST /api/workers for workers_enabled); GET /api/diagnostics/integrations shows what Weles answered
- Test: tests/weles/call.test.mjs::a_setting_weles_answers_without_its_entry_is_named
echo.weles.release-unread#
- infra_down, exit 69; trying again unchanged can help
- reading the release Weles runs: Weles' /worker/version answers its release identity as an object, and this answer holds another value; observed: {answer}
- Fix: ask again once Weles is redeployed; GET /api/diagnostics/integrations shows what it answered
- Test: tests/weles/call.test.mjs::a_release_answer_without_an_identity_object_is_named
echo.direct.umami#
Sign in to an Umami account Echo holds, list its websites and their stats, and create a website.
Started by `/api/analytics/umami`, `/api/analytics/umami/attach`.
It also meets the causes of echo.config, echo.store.
echo.direct.umami.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling Umami's API ({operation}): Umami's API got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once Umami's API answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/umami.test.mjs::a_umami_that_does_not_answer_is_named
echo.direct.umami.credentials-rejected#
- config, exit 1
- calling Umami's API ({operation}): Umami's API refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: set the account's login in service_credentials or UMAMI_CREDENTIALS_JSON to the one Umami accepts, then sign in again
- Test: tests/direct/umami.test.mjs::a_credential_umami_refuses_is_named
echo.direct.umami.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling Umami's API ({operation}): Umami's API refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/umami.test.mjs::a_umami_that_throttles_is_named
echo.direct.umami.failed#
- infra_down, exit 69; trying again unchanged can help
- calling Umami's API ({operation}): Umami's API failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once Umami's API answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/umami.test.mjs::a_umami_that_fails_on_its_side_is_named
echo.direct.umami.request-refused#
- refused, exit 1
- calling Umami's API ({operation}): Umami's API refused the request as sent; observed: HTTP {status}: {body}
- Fix: read Umami's answer in the observation: a plan's website limit is answered as a refusal, so remove a website or raise the plan
- Test: tests/direct/umami.test.mjs::a_request_umami_refuses_is_named
echo.direct.umami.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- calling Umami's API ({operation}): Umami's API answered a success whose body is not the JSON its API answers; observed: {reason}: {body}
- Fix: ask again; an answer that stays malformed means Umami's API changed its API or something in front of it answers instead
- Test: tests/direct/umami.test.mjs::an_answer_of_umami_that_is_not_json_is_named
echo.direct.umami.credentials-not-json#
- config, exit 1
- reading the Umami accounts Echo signs in with: UMAMI_CREDENTIALS_JSON lists the accounts as JSON, and its text does not parse; observed: UMAMI_CREDENTIALS_JSON holds {length} characters; the parser stopped with: {reason}
- Fix: set UMAMI_CREDENTIALS_JSON to a JSON list of {"email": "…", "password": "…"} objects
- Test: tests/direct/umami.test.mjs::credentials_that_are_not_json_are_named
echo.direct.umami.credentials-not-list#
- config, exit 1
- reading the Umami accounts Echo signs in with: UMAMI_CREDENTIALS_JSON is a list of accounts, and it holds {kind}; observed: UMAMI_CREDENTIALS_JSON parses as {kind}
- Fix: set UMAMI_CREDENTIALS_JSON to a JSON list of {"email": "…", "password": "…"} objects
- Test: tests/direct/umami.test.mjs::credentials_that_are_not_a_list_are_named
echo.direct.umami.credential-incomplete#
- config, exit 1
- reading the Umami accounts Echo signs in with: every account of UMAMI_CREDENTIALS_JSON states an email and a password, and account {index} lacks {missing}; observed: account {index} states the fields {fields}
- Fix: give account {index} of UMAMI_CREDENTIALS_JSON both email and password (or loginEmail and loginPassword)
- Test: tests/direct/umami.test.mjs::an_account_without_a_password_is_named_without_its_values
echo.direct.umami.accounts-none#
- config, exit 1
- reading the Umami accounts Echo signs in with: Echo signs in to Umami with an account service_credentials or the environment declares, and neither declares one; observed: service_credentials holds {stored} Umami rows; UMAMI_EMAIL is {email}; UMAMI_CREDENTIALS_JSON is {listed}
- Fix: add an Umami account to service_credentials, or set UMAMI_EMAIL and UMAMI_PASSWORD, or UMAMI_CREDENTIALS_JSON
- Test: tests/direct/umami.test.mjs::no_declared_account_is_named
echo.direct.umami.websites-shapeless#
- infra_down, exit 69; trying again unchanged can help
- listing the websites of Umami account {account}: Umami answers the websites list as a list or as { data: [...] }, and it answered neither; observed: the answer is {kind}: {value}
- Fix: check the Umami release at {dashboard}: its /api/websites must answer the list; retry once it does
- Test: tests/direct/umami.test.mjs::a_websites_answer_of_another_shape_is_named
echo.direct.umami.host-unparseable#
- refused, exit 2; the request itself is refused
- reading the host of {value}: a website is named by its URL or its domain, and {value} is neither; observed: {value} does not parse as a URL, nor as https://{value}
- Fix: name the website as a domain such as example.com or a URL such as https://example.com
- Test: tests/direct/umami.test.mjs::a_domain_that_is_not_one_is_refused
echo.direct.umami.measurement-invalid#
- infra_down, exit 69; trying again unchanged can help
- reading {field} of Umami website {website}: Umami states each measurement as a count of zero or more, and {field} is not one; observed: {field} is {value}
- Fix: check the Umami release behind the account: /api/websites/{website}/stats and /metrics must answer counts; retry once they do
- Test: tests/direct/umami.test.mjs::a_stat_that_is_not_a_count_is_named
echo.direct.umami.metrics-shapeless#
- infra_down, exit 69; trying again unchanged can help
- reading the {type} metrics of Umami website {website}: Umami answers metrics as a list of rows or as { data: [...] }, and it answered neither; observed: the answer is {kind}: {value}
- Fix: check the Umami release behind the account: /api/websites/{website}/metrics must answer rows; retry once it does
- Test: tests/direct/umami.test.mjs::a_metrics_answer_of_another_shape_is_named
echo.direct.umami.metric-unnamed#
- infra_down, exit 69; trying again unchanged can help
- reading the {type} metrics of Umami website {website}: every metric row names what it counts in x (or name), and row {index} names nothing; observed: row {index} is {value}
- Fix: check the Umami release behind the account; retry once its metrics rows name what they count
- Test: tests/direct/umami.test.mjs::a_metric_row_without_a_name_is_named
echo.direct.umami.domain-missing#
- refused, exit 2; the request itself is refused
- attaching a website to Umami: a website is attached by its domain, and none was sent; observed: domain is {value}
- Fix: send the domain to attach, such as example.com
- Test: tests/direct/umami.test.mjs::attaching_without_a_domain_is_refused
echo.direct.umami.attach-refused#
- refused, exit 1
- attaching {domain} to Umami: no Umami account Echo holds took the website: each one refused it or failed; observed: tried {count} accounts: {attempts}
- Fix: free a website slot in one of the accounts (a plan limits how many it holds), or add an account with room, then attach again
- Test: tests/direct/umami.test.mjs::a_domain_no_account_takes_is_named
echo.direct.wikidata#
Read a listing's entity data from Wikidata.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.config, echo.store.
echo.direct.wikidata.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling Wikidata ({operation}): Wikidata got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once Wikidata answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/wikidata.test.mjs::a_wikidata_that_does_not_answer_is_named
echo.direct.wikidata.credentials-rejected#
- config, exit 1
- calling Wikidata ({operation}): Wikidata refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: Wikidata needs no credential; set ECHO_USER_AGENT to a User-Agent naming Echo and a contact, as Wikimedia's policy asks
- Test: tests/direct/wikidata.test.mjs::a_credential_wikidata_refuses_is_named
echo.direct.wikidata.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling Wikidata ({operation}): Wikidata refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/wikidata.test.mjs::a_wikidata_that_throttles_is_named
echo.direct.wikidata.failed#
- infra_down, exit 69; trying again unchanged can help
- calling Wikidata ({operation}): Wikidata failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once Wikidata answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/wikidata.test.mjs::a_wikidata_that_fails_on_its_side_is_named
echo.direct.wikidata.request-refused#
- refused, exit 1
- calling Wikidata ({operation}): Wikidata refused the request as sent; observed: HTTP {status}: {body}
- Fix: check that the listing names an entity Wikidata holds (https://www.wikidata.org/wiki/Q<id>)
- Test: tests/direct/wikidata.test.mjs::a_request_wikidata_refuses_is_named
echo.direct.wikidata.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- calling Wikidata ({operation}): Wikidata answered a success whose body is not the JSON its API answers; observed: {reason}: {body}
- Fix: ask again; an answer that stays malformed means Wikidata changed its API or something in front of it answers instead
- Test: tests/direct/wikidata.test.mjs::an_answer_of_wikidata_that_is_not_json_is_named
echo.direct.wikidata.entity-absent#
- infra_down, exit 69; trying again unchanged can help
- reading the entity {id} from Wikidata (Special:EntityData): Wikidata answered a success whose entities hold no entity with an id; observed: {answer}
- Fix: check that https://www.wikidata.org/wiki/{id} is an entity, not a redirect or a deleted page, and read the listing again
- Test: tests/direct/wikidata.test.mjs::an_answer_without_its_entity_is_named
echo.direct.revalidation#
Ask a landing site to rebuild a surface's pages after a post is published.
Started by `/api/blog-admin/posts`, `/api/blog-admin/posts/[id]`, `/api/blog-admin/posts/[id]/archive`, `/api/blog-admin/posts/[id]/revisions/[revisionId]/restore`.
It also meets the causes of echo.config, echo.store.
echo.direct.revalidation.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling the landing's revalidation hook ({operation}): the landing's revalidation hook got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once the landing's revalidation hook answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/revalidation.test.mjs::a_revalidation_that_does_not_answer_is_named
echo.direct.revalidation.credentials-rejected#
- config, exit 1
- calling the landing's revalidation hook ({operation}): the landing's revalidation hook refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: set LAS_REVALIDATION_SECRET to the secret the landing site verifies, then deploy again
- Test: tests/direct/revalidation.test.mjs::a_credential_revalidation_refuses_is_named
echo.direct.revalidation.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling the landing's revalidation hook ({operation}): the landing's revalidation hook refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/revalidation.test.mjs::a_revalidation_that_throttles_is_named
echo.direct.revalidation.failed#
- infra_down, exit 69; trying again unchanged can help
- calling the landing's revalidation hook ({operation}): the landing's revalidation hook failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once the landing's revalidation hook answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/revalidation.test.mjs::a_revalidation_that_fails_on_its_side_is_named
echo.direct.revalidation.request-refused#
- refused, exit 1
- calling the landing's revalidation hook ({operation}): the landing's revalidation hook refused the request as sent; observed: HTTP {status}: {body}
- Fix: check that the surface and slug name pages the landing site builds
- Test: tests/direct/revalidation.test.mjs::a_request_revalidation_refuses_is_named
echo.direct.preferences#
Send a thumbnail job's variants to a Preferences arena and read their ranking.
Started by `/api/analytics/thumbnails/rank`.
It also meets the causes of echo.config, echo.store.
echo.direct.preferences.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling Preferences' operator API ({operation}): Preferences' operator API got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once Preferences' operator API answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/preferences.test.mjs::a_preferences_that_does_not_answer_is_named
echo.direct.preferences.credentials-rejected#
- config, exit 1
- calling Preferences' operator API ({operation}): Preferences' operator API refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: set PREFERENCES_OPERATOR_TOKEN to the operator token Preferences issued for Echo, then deploy again
- Test: tests/direct/preferences.test.mjs::a_credential_preferences_refuses_is_named
echo.direct.preferences.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling Preferences' operator API ({operation}): Preferences' operator API refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/preferences.test.mjs::a_preferences_that_throttles_is_named
echo.direct.preferences.failed#
- infra_down, exit 69; trying again unchanged can help
- calling Preferences' operator API ({operation}): Preferences' operator API failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once Preferences' operator API answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/preferences.test.mjs::a_preferences_that_fails_on_its_side_is_named
echo.direct.preferences.request-refused#
- refused, exit 1
- calling Preferences' operator API ({operation}): Preferences' operator API refused the request as sent; observed: HTTP {status}: {body}
- Fix: read Preferences' answer in the observation: the arena or category named, or a submission it already holds
- Test: tests/direct/preferences.test.mjs::a_request_preferences_refuses_is_named
echo.direct.preferences.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- calling Preferences' operator API ({operation}): Preferences' operator API answered a success whose body is not the JSON its API answers; observed: {reason}: {body}
- Fix: ask again; an answer that stays malformed means Preferences' operator API changed its API or something in front of it answers instead
- Test: tests/direct/preferences.test.mjs::an_answer_of_preferences_that_is_not_json_is_named
echo.direct.crawler-ranges#
Read a declared crawler's IP ranges again from the page its operator publishes them at.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.config, echo.store.
echo.direct.crawler-ranges.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling the page a crawler's operator publishes its IP ranges at ({operation}): the page a crawler's operator publishes its IP ranges at got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once the page a crawler's operator publishes its IP ranges at answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/crawler-ranges.test.mjs::a_crawler_ranges_that_does_not_answer_is_named
echo.direct.crawler-ranges.credentials-rejected#
- config, exit 1
- calling the page a crawler's operator publishes its IP ranges at ({operation}): the page a crawler's operator publishes its IP ranges at refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: the ranges page is public; declare the crawler again with the ranges_source its operator documents
- Test: tests/direct/crawler-ranges.test.mjs::a_credential_crawler_ranges_refuses_is_named
echo.direct.crawler-ranges.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling the page a crawler's operator publishes its IP ranges at ({operation}): the page a crawler's operator publishes its IP ranges at refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/crawler-ranges.test.mjs::a_crawler_ranges_that_throttles_is_named
echo.direct.crawler-ranges.failed#
- infra_down, exit 69; trying again unchanged can help
- calling the page a crawler's operator publishes its IP ranges at ({operation}): the page a crawler's operator publishes its IP ranges at failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once the page a crawler's operator publishes its IP ranges at answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/crawler-ranges.test.mjs::a_crawler_ranges_that_fails_on_its_side_is_named
echo.direct.crawler-ranges.request-refused#
- refused, exit 1
- calling the page a crawler's operator publishes its IP ranges at ({operation}): the page a crawler's operator publishes its IP ranges at refused the request as sent; observed: HTTP {status}: {body}
- Fix: declare the crawler again with the ranges_source its operator documents now
- Test: tests/direct/crawler-ranges.test.mjs::a_request_crawler_ranges_refuses_is_named
echo.direct.overpass#
Find the businesses of an area that publish a contact email in OpenStreetMap, as CRM lead discovery does.
Started by `/api/cron/crm-discover-leads`.
It also meets the causes of echo.config, echo.store.
echo.direct.overpass.unreachable#
- infra_down, exit 69; trying again unchanged can help
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) got the request to no answer: its address does not resolve, refuses the connection or dropped it; observed: {reason}
- Fix: ask again once OpenStreetMap's Overpass API (overpass-api.de) answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/overpass.test.mjs::a_overpass_that_does_not_answer_is_named
echo.direct.overpass.credentials-rejected#
- config, exit 1
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) refused the credential Echo presented; observed: HTTP {status}: {body}
- Fix: Overpass needs no credential; set ECHO_USER_AGENT to a User-Agent naming Echo and a contact, as its usage policy asks
- Test: tests/direct/overpass.test.mjs::a_credential_overpass_refuses_is_named
echo.direct.overpass.throttled#
- rate_limit, exit 69; trying again unchanged can help
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) refused the call for its pace; observed: HTTP {status}: {body}
- Fix: ask again after a pause
- Test: tests/direct/overpass.test.mjs::a_overpass_that_throttles_is_named
echo.direct.overpass.failed#
- infra_down, exit 69; trying again unchanged can help
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) failed on its side; observed: HTTP {status}: {body}
- Fix: ask again once OpenStreetMap's Overpass API (overpass-api.de) answers; GET /api/diagnostics/integrations shows each failed call
- Test: tests/direct/overpass.test.mjs::a_overpass_that_fails_on_its_side_is_named
echo.direct.overpass.request-refused#
- refused, exit 1
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) refused the request as sent; observed: HTTP {status}: {body}
- Fix: read Overpass's answer in the observation: it names the part of the query it could not parse; the area is the query after ' in '
- Test: tests/direct/overpass.test.mjs::a_request_overpass_refuses_is_named
echo.direct.overpass.answer-not-json#
- infra_down, exit 69; trying again unchanged can help
- calling OpenStreetMap's Overpass API (overpass-api.de) ({operation}): OpenStreetMap's Overpass API (overpass-api.de) answered a success whose body is not the JSON its API answers; observed: {reason}: {body}
- Fix: ask again; an answer that stays malformed means OpenStreetMap's Overpass API (overpass-api.de) changed its API or something in front of it answers instead
- Test: tests/direct/overpass.test.mjs::an_answer_of_overpass_that_is_not_json_is_named
echo.direct.overpass.query-unfinished#
- infra_down, exit 69; trying again unchanged can help
- asking Overpass for the businesses of {area} that publish an email: Overpass stopped the query before it finished, so the elements it answered are only part of the area; observed: its remark: {remark}; no lead of {area} was inserted
- Fix: run the discovery again later, or name a smaller area in the query (echo-cli outreach lists the contacts already found)
- Test: tests/direct/overpass.test.mjs::a_query_overpass_did_not_finish_is_retryable
echo.direct.overpass.elements-missing#
- infra_down, exit 69; trying again unchanged can help
- asking Overpass for the businesses of {area} that publish an email: Overpass answered JSON without the elements list its API answers; observed: the answer holds the keys {keys}; no lead of {area} was inserted
- Fix: run the discovery again; an answer that keeps lacking elements means something in front of overpass-api.de answers instead
- Test: tests/direct/overpass.test.mjs::an_answer_without_elements_is_retryable
echo.web.public#
Fetch a public https address without credentials, connecting only to addresses IANA declares globally reachable and following redirects only to checked addresses.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.web.public.not-a-url#
- refused, exit 1
- checking {address} before Echo fetches it: Echo fetches an absolute URL, and {address} does not parse as one; observed: {reason}
- Fix: name the page by its https address without credentials or a port, such as https://example.com/page
- Test: tests/web/public.test.mjs::an_address_that_is_not_a_url_is_refused
echo.web.public.not-https#
- refused, exit 1
- checking {address} before Echo fetches it: Echo fetches only https addresses, and {address} uses {scheme}; observed: the scheme is {scheme}
- Fix: name the page by its https address without credentials or a port, such as https://example.com/page
- Test: tests/web/public.test.mjs::an_address_that_is_not_https_is_refused
echo.web.public.credentials-named#
- refused, exit 1
- checking {address} before Echo fetches it: Echo reads only what is public, and {address} carries a user name or password; observed: the address holds credentials before its host
- Fix: name the page by its https address without credentials or a port, such as https://example.com/page
- Test: tests/web/public.test.mjs::an_address_carrying_credentials_is_refused
echo.web.public.port-named#
- refused, exit 1
- checking {address} before Echo fetches it: Echo fetches only the default https port, and {address} names port {port}; observed: the address names port {port}
- Fix: name the page by its https address without credentials or a port, such as https://example.com/page
- Test: tests/web/public.test.mjs::an_address_naming_a_port_is_refused
echo.web.public.host-absent#
- refused, exit 1
- checking {address} before Echo fetches it: an address Echo fetches names a host, and {address} names none; observed: the host of {address} is empty
- Fix: name the page by its https address without credentials or a port, such as https://example.com/page
- Test: tests/web/public.test.mjs::an_address_without_a_host_is_refused
echo.web.public.host-unresolved#
- refused, exit 1
- checking {address} before Echo fetches it: the host {host} resolves to no address{family}, so there is nothing to connect to; observed: {reason}
- Fix: check the host name for a typing error, or name a site that resolves
- Test: tests/web/public.test.mjs::a_host_that_resolves_to_nothing_is_refused
echo.web.public.resolver-failed#
- infra_down, exit 69; trying again unchanged can help
- checking {address} before Echo fetches it: the name server Echo asks could not answer for {host}; observed: {reason}
- Fix: try again once the name server answers
- Test: tests/web/public.test.mjs::a_name_server_that_fails_is_retryable
echo.web.public.address-not-public#
- refused, exit 1
- checking {address} before Echo fetches it: Echo connects only to addresses IANA declares globally reachable, and {ip} is in {prefix} ({block}); observed: {host} resolves to {ip}
- Fix: name a public site; a private, loopback or reserved address is never fetched
- Test: tests/web/public.test.mjs::an_address_that_is_not_public_is_refused
echo.web.public.registry-unreadable#
- infra_down, exit 69; trying again unchanged can help
- reading the IANA {family} special-purpose address registry at {registry}: which addresses are public is read from IANA's registry, and it could not be read, so no address is admitted; observed: {reason}
- Fix: try again once IANA answers {registry}
- Test: tests/web/public.test.mjs::an_unreadable_registry_admits_no_address
echo.web.public.registry-malformed#
- infra_down, exit 69; trying again unchanged can help
- reading the IANA {family} special-purpose address registry at {registry}: the registry answered, and not in the form Echo reads (an XML record list of address prefixes), so no address is admitted; observed: {problem}
- Fix: try again later; if IANA changed the registry's form, the reader in src/lib/web/public-address.ts follows it
- Test: tests/web/public.test.mjs::a_malformed_registry_admits_no_address
echo.web.public.connection-failed#
- infra_down, exit 69; trying again unchanged can help
- fetching {address}: the site did not answer: the connection was refused, timed out, reset or its TLS handshake failed; observed: {reason}
- Fix: try again once the site answers
- Test: tests/web/public.test.mjs::a_site_that_does_not_answer_is_retryable
echo.web.public.redirect-unlocated#
- refused, exit 1
- following the redirects of {address}: {current} answered {status}, a redirect, without a Location to follow; observed: after {redirects} redirects, the answer names no Location
- Fix: name the page the redirect means to reach, or ask the site to send its Location
- Test: tests/web/public.test.mjs::a_redirect_without_a_location_is_refused
echo.web.public.redirects-exceeded#
- refused, exit 1
- following the redirects of {address}: a fetch follows at most {limit} redirects, as the Fetch Standard allows, and {address} redirects further; observed: the chain was still redirecting at {current}
- Fix: name the page at the end of the chain, or ask the site to remove the loop
- Test: tests/web/public.test.mjs::a_redirect_chain_past_the_limit_is_refused
echo.web.public.page-answer-failed#
- refused, exit 1
- reading the page {address}: the page answered with a failure, or a redirect, which is not followed to an address that was not checked; observed: {detail}
- Fix: name the page's final address, one that answers 2xx
- Test: tests/web/public.test.mjs::a_page_answering_a_failure_is_named
echo.web.public.page-textless#
- refused, exit 1
- reading the page {address}: the page holds no visible text once its scripts, styles and tags are removed, so there is nothing to read; observed: the visible text of {address} is empty
- Fix: name a page whose text is in its HTML rather than drawn by a script
- Test: tests/web/public.test.mjs::a_page_without_visible_text_is_named
echo.web.public.file-answer-failed#
- infra_down, exit 69; trying again unchanged can help
- reading {address} as {purpose}: the address answered {status} instead of the file: it moved, expired, or its host refuses Echo; observed: the answer says: {detail}; {left}
- Fix: open {address} yourself; name an address that answers the file with 2xx, or ask again once its host answers
- Test: tests/web/public.test.mjs::a_file_answering_a_failure_is_named
echo.web.public.file-kind-other#
- refused, exit 1
- reading {address} as {purpose}: {purpose} is {expected}, and the address serves {served}; observed: Content-Type {served}, {bytes} bytes; {left}
- Fix: name the address of the file itself (not a page that shows it), served as {expected}
- Test: tests/web/public.test.mjs::a_file_of_another_kind_is_named
echo.web.public.file-not-json#
- refused, exit 1
- reading {address} as {purpose}: {purpose} is a JSON document, and what the address answered does not parse as JSON; observed: {problem}; the answer opens with {answer}; {left}
- Fix: open {address} yourself; name the address of the raw JSON file (not its web page), or ask again if its host answered an error page
- Test: tests/web/public.test.mjs::a_file_that_is_not_json_is_named
echo.store#
Read and write Echo's tables in its Supabase project through PostgREST, each failed query named by its table and told apart by the answer.
Started by `every /api route and cron job reading or writing Echo's tables through the Supabase client`.
It uses no other functionality.
echo.store.unconfigured#
- config, exit 1
- connecting to Echo's Supabase database: a Supabase client is made from NEXT_PUBLIC_SUPABASE_URL and a project key (SUPABASE_SERVICE_ROLE_KEY for the server, NEXT_PUBLIC_SUPABASE_ANON_KEY for a signed-in session), and {unset} is not set; observed: unset: {unset}
- Fix: set {unset} in the deployment's environment (.env.local in a checkout): the URL is https://<project-ref>.supabase.co and the keys are on the project's API settings page
- Test: tests/http/server.test.mjs::a_store_that_is_not_configured_is_named
echo.store.unreachable#
- infra_down, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the request to the Supabase project got no answer: the host does not resolve, the connection is refused or dropped, or the request was aborted before an answer came; observed: {reason}
- Fix: send the request again once the project NEXT_PUBLIC_SUPABASE_URL names answers; its status is on the Supabase dashboard
- Test: tests/http/server.test.mjs::a_store_that_does_not_answer_is_retryable
echo.store.timed-out#
- timeout, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the database did not finish in time: the statement ran past its timeout or the request was aborted; observed: {reason}
- Fix: send the request again; a read that times out every time needs a narrower window or an index on the columns it filters
- Test: tests/store/postgrest.test.mjs::a_statement_past_its_timeout_is_retryable
echo.store.rate-limited#
- rate_limit, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the Supabase project refused the request for its pace; observed: HTTP {status}: {reason}
- Fix: send the request again after a pause
- Test: tests/store/postgrest.test.mjs::a_throttled_request_is_retryable
echo.store.server-failed#
- infra_down, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the Supabase project answered a server failure: PostgREST could not reach Postgres, or Postgres ran out of connections or resources; observed: HTTP {status}, SQLSTATE {sqlstate}: {reason}
- Fix: send the request again once the project answers; its health is on the Supabase dashboard
- Test: tests/store/postgrest.test.mjs::a_server_failure_is_retryable
echo.store.credentials-refused#
- config, exit 1
- {step} {table} in Echo's Supabase database: the project refused the key the server presented, or the role it maps to may not touch the table; observed: HTTP {status}, SQLSTATE {sqlstate}: {reason}
- Fix: set SUPABASE_SERVICE_ROLE_KEY to the service role key of the project NEXT_PUBLIC_SUPABASE_URL names, in the deployment's environment (.env.local in a checkout)
- Test: tests/http/server.test.mjs::a_key_the_store_refuses_is_named
echo.store.schema-missing#
- config, exit 1
- {step} {table} in Echo's Supabase database: the database lacks a table, column or function Echo reads: the canonical migrations were not applied to it; observed: SQLSTATE {sqlstate}: {reason}
- Fix: apply the migrations of wisent-ai/wisent-supabase-echo to the project NEXT_PUBLIC_SUPABASE_URL names
- Test: tests/store/postgrest.test.mjs::a_table_the_schema_lacks_is_named
echo.store.constraint-refused#
- refused, exit 1
- {step} {table} in Echo's Supabase database: the database refused the write by one of its rules: a value already held under a unique key, a reference to a row that is not there, a check the value fails, or a refusal a database function raised; observed: SQLSTATE {sqlstate}: {reason}
- Fix: change the request so it meets the rule the database names, or settle the row it conflicts with first
- Test: tests/store/postgrest.test.mjs::a_write_a_constraint_refuses_is_named
echo.store.value-malformed#
- refused, exit 2; the request itself is refused
- {step} {table} in Echo's Supabase database: a value the request carried does not fit its column: an id that is not a UUID, a date that does not parse, text past its length or a number past its range; observed: SQLSTATE {sqlstate}: {reason}
- Fix: send the value in the form its column holds, such as a UUID for an id
- Test: tests/http/server.test.mjs::a_value_that_does_not_fit_its_column_is_refused
echo.store.query-rejected#
- config, exit 1
- {step} {table} in Echo's Supabase database: the database rejected the query Echo built: its syntax, an embedded relation or a function's arguments do not match the schema the deployment runs; observed: HTTP {status}, code {sqlstate}: {reason}
- Fix: deploy the Echo revision built for the schema of wisent-ai/wisent-supabase-echo that the project holds, or apply that repository's migrations
- Test: tests/store/postgrest.test.mjs::a_query_the_schema_rejects_is_named
echo.store.row-absent#
- not_found, exit 1
- {step} {table} in Echo's Supabase database: {table} holds no row {key}; observed: no row of {table} matches {key}
- Fix: name a row {table} holds; the list route of the same resource shows which
- Test: tests/http/server.test.mjs::a_row_the_store_does_not_hold_is_named
echo.store.rows-missing#
- infra_down, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the project answered without an error and without the rows of the read; observed: HTTP {status} with no rows
- Fix: send the request again; a project that keeps answering without rows is reported on the Supabase dashboard
- Test: tests/store/postgrest.test.mjs::an_answer_without_rows_is_retryable
echo.store.count-missing#
- config, exit 1
- {step} {table} in Echo's Supabase database: the read is made page by page, and the project's answer carried no row count to know when every page is in hand; observed: the first page carried {held} rows and no count
- Fix: deploy an Echo revision whose read of {table} asks for count: 'exact'
- Test: tests/store/postgrest.test.mjs::a_paged_read_without_a_count_is_named
echo.store.tally-missing#
- infra_down, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: the read asks the project only for the number of rows that match, and its answer carried no number; observed: HTTP {status} with no count while counting {what}
- Fix: send the request again; a project that keeps answering a count read without its count is reported on the Supabase dashboard
- Test: tests/store/postgrest.test.mjs::a_count_read_without_its_count_is_retryable
echo.store.page-short#
- infra_down, exit 69; trying again unchanged can help
- {step} {table} in Echo's Supabase database: a page past the first came back empty before every counted row was read: rows were deleted while the read ran; observed: {held} of {total} rows read
- Fix: send the request again once the rows of {table} stop changing
- Test: tests/store/postgrest.test.mjs::a_read_whose_rows_shrink_is_retryable
echo.store.row-incomplete#
- config, exit 1
- {step} {table} in Echo's Supabase database: a row Echo needs whole lacks {field}, which every row of {table} has to carry; observed: row {row}
- Fix: set {field} on that row of {table}, or delete the row if it was written by hand
- Test: tests/store/postgrest.test.mjs::a_row_without_a_field_it_needs_is_named
echo.store.value-unfit#
- config, exit 1
- {step} {table} in Echo's Supabase database: every row of {table} carries {field} as {expects}, and a row Echo reads holds {value} there; observed: row {row}: {field} is {value}
- Fix: set {field} of that row of {table} to {expects}, or delete the row if it was written by hand
- Test: tests/store/postgrest.test.mjs::a_row_holding_a_value_of_another_form_is_named
echo.store.row-exists#
- refused, exit 1
- {step} {table} in Echo's Supabase database: {table} already holds {key}, and it holds one at most; observed: {held}
- Fix: change or remove the row {table} holds first, or name another
- Test: tests/http/server.test.mjs::a_row_that_is_already_held_is_refused
echo.storage#
Read, write, list and delete Echo's objects through Stado (or the local object directory), and issue the signed links to them.
Nothing starts it alone; the functionalities that use it do.
It also meets the causes of echo.config.
echo.storage.ttl-invalid#
- config, exit 1
- issuing a signed link to {uri}: ECHO_SIGNED_URL_TTL_SECONDS is how long a link stays valid, a positive whole number of seconds, and it holds {value}; observed: no link was issued
- Fix: set ECHO_SIGNED_URL_TTL_SECONDS to a positive whole number of seconds in the deployment's environment (.env.local in a checkout)
- Test: tests/storage/objects.test.mjs::a_link_lifetime_that_is_not_a_count_of_seconds_is_named
echo.storage.key-invalid#
- refused, exit 1
- naming the object {key}: an object key is a path of plain segments, and this one {broken}; observed: nothing was read or written
- Fix: name the object by a relative path of plain segments, without spaces, ?, #, \ or . and .. segments
- Test: tests/storage/objects.test.mjs::an_object_key_that_is_not_a_plain_path_is_refused
echo.storage.uri-foreign#
- refused, exit 1
- reading the object address {uri}: an object of Echo is addressed stado://echo/<key> exactly, and this address {broken}; observed: nothing was read or written
- Fix: name the object by the stado://echo/<key> address Echo recorded for it
- Test: tests/storage/objects.test.mjs::an_address_outside_echos_namespace_is_refused
echo.storage.stado-unreachable#
- infra_down, exit 69; trying again unchanged can help
- {action} {uri} through Stado's object API at {origin}: Stado did not answer: the address does not resolve, the connection was refused or cut; observed: {reason}
- Fix: check that Stado answers at {origin} (stado storage stat {uri} reports present, absent or unreachable), or set STADO_API_URL in the deployment's environment (.env.local in a checkout) to the Stado that keeps Echo's objects
- Test: tests/storage/objects.test.mjs::stado_that_does_not_answer_is_named
echo.storage.token-refused#
- config, exit 1
- {action} {uri} through Stado's object API at {origin}: Stado refused ECHO_STADO_OBJECT_TOKEN: it is not the token Stado holds for Echo's namespace, or it was rotated; observed: HTTP {status}: {detail}
- Fix: set ECHO_STADO_OBJECT_TOKEN in the deployment's environment (.env.local in a checkout) to the token Stado issued for the echo namespace
- Test: tests/storage/objects.test.mjs::an_object_token_stado_refuses_is_named
echo.storage.object-absent#
- not_found, exit 1
- {action} {uri}: no object is kept at that address: it was never written, or it was deleted; observed: HTTP {status}: {detail}
- Fix: write the object first, or name one that is kept (stado storage stat {uri} reports whether it is)
- Test: tests/storage/objects.test.mjs::an_object_that_is_not_kept_is_not_found
echo.storage.stado-failed#
- infra_down, exit 69; trying again unchanged can help
- {action} {uri} through {store}: the object store answered a failure status instead of the object; observed: HTTP {status}: {detail}
- Fix: ask again; a status that persists is read in the store's own log
- Test: tests/storage/objects.test.mjs::an_object_store_answering_a_failure_is_named
echo.storage.object-not-json#
- config, exit 1
- reading the JSON object {uri}: the object is read as JSON, and its text does not parse; observed: {bytes} bytes, {text}: {reason}; nothing was changed
- Fix: write the object again with the step that produces it; stado storage get {uri} shows what it holds
- Test: tests/storage/objects.test.mjs::an_object_that_is_not_json_is_named
echo.storage.object-shapeless#
- config, exit 1
- reading the JSON object {uri}: the object holds {expected}, and its JSON is {found}; observed: nothing was changed
- Fix: write the object again with the step that produces it; stado storage get {uri} shows what it holds
- Test: tests/storage/objects.test.mjs::an_object_of_another_shape_is_named
echo.storage.answer-shapeless#
- infra_down, exit 69; trying again unchanged can help
- {action} {uri} through {store}: the object store answered {expected}, and its answer is {found}; observed: {answer}
- Fix: ask again; a store that keeps answering this is of another revision than Echo reads (stado --version)
- Test: tests/storage/objects.test.mjs::an_object_store_answer_of_another_shape_is_named
echo.storage.meta-unreadable#
- config, exit 1
- reading the local object {uri} from {directory}: a local object keeps its content type, size and time in {file}, and that file {broken}; observed: nothing was read
- Fix: write the object again, or delete {file} and the object beside it so the next write records them anew
- Test: tests/storage/objects.test.mjs::a_local_object_without_its_meta_is_named
echo.storage.local-io-failed#
- config, exit 1
- {action} the local object {uri} in {directory}: the file the object is kept in cannot be used by this server ({code}); observed: {reason}
- Fix: give the account running Echo read and write permission on {directory} (`ls -ld {directory}` shows its mode and owner), or set ECHO_OBJECT_DIR to a directory it may use
- Test: tests/storage/objects.test.mjs::a_local_object_that_cannot_be_read_is_named
echo.storage.content-type-invalid#
- refused, exit 1
- issuing an upload link to {uri}: the upload is signed for one content type, and {type} is empty or holds control characters; observed: no link was issued
- Fix: name the file's media type, such as image/png
- Test: tests/storage/objects.test.mjs::an_upload_link_for_no_content_type_is_refused
echo.storage.stored-not-url#
- config, exit 1
- linking the image {owner} stores: a stored image is a stado:// address or an http(s) URL, and {owner} stores {stored}, which is neither; observed: {reason}
- Fix: store the image again through the screen that uploads it, which records its address
- Test: tests/storage/objects.test.mjs::a_stored_image_that_is_not_an_address_is_named
echo.onboarding.command-line#
Read the arguments of the onboarding journey command and refuse any it does not take, before any repository, catalog or database is read.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.command-line.option-unknown#
- refused, exit 2; the request itself is refused
- reading the command line: {option} is not an option of this command; observed: arguments: {given}
- Fix: use only --discover <root>, --dry-run, --retire <product-id>/<journey-id> and --coverage, with definition .json files to publish
- Test: tests/onboarding/command-line.test.mjs::an_unknown_option_is_named
echo.onboarding.command-line.runs-conflict#
- refused, exit 2; the request itself is refused
- reading the command line: {runs} are separate runs, and one command makes one of them; observed: arguments: {given}
- Fix: run each of them as its own command
- Test: tests/onboarding/command-line.test.mjs::two_runs_in_one_command_are_refused
echo.onboarding.command-line.option-not-applicable#
- refused, exit 2; the request itself is refused
- reading the command line: {option} applies only to {applies}, and this command runs {run}; observed: arguments: {given}
- Fix: leave {option} out of this command
- Test: tests/onboarding/command-line.test.mjs::a_dry_run_of_a_retirement_is_refused
echo.onboarding.command-line.value-missing#
- refused, exit 2; the request itself is refused
- reading the command line: {option} takes {value}, and no value follows it; observed: arguments: {given}
- Fix: write {option} {value}
- Test: tests/onboarding/command-line.test.mjs::an_option_without_its_value_is_refused
echo.onboarding.command-line.retire-target-malformed#
- refused, exit 2; the request itself is refused
- reading the journey --retire names: --retire takes <product-id>/<journey-id>: two ids joined by one slash; observed: --retire {target}
- Fix: name the journey as <product-id>/<journey-id>, the product_id and journey_id its definition states
- Test: tests/onboarding/command-line.test.mjs::a_retire_target_without_two_ids_is_refused
echo.onboarding.command-line.nothing-to-publish#
- refused, exit 2; the request itself is refused
- choosing what to publish: nothing to publish: neither a definition file nor --discover <root> was given; observed: arguments: {given}
- Fix: pass definition files, or --discover <root>
- Test: tests/onboarding/command-line.test.mjs::a_publish_without_definitions_is_refused
echo.onboarding.command-line.not-a-definition#
- refused, exit 2; the request itself is refused
- choosing what to publish: {argument} is not a journey definition: a definition is a .json file; observed: arguments: {given}
- Fix: pass the .json definition files, or --discover <root>
- Test: tests/onboarding/command-line.test.mjs::an_argument_that_is_not_a_json_file_is_refused
echo.onboarding.discovery#
Walk a root for git checkouts and read the journey definitions each commits at origin/main, or HEAD without it, with the source that presents them.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.discovery.root-missing#
- not_found, exit 1
- listing the repositories under {root}: that directory does not exist; observed: {reason}
- Fix: name the directory that holds the product checkouts with --discover <root>
- Test: tests/onboarding/discovery.test.mjs::a_root_that_does_not_exist_is_named
echo.onboarding.discovery.root-not-directory#
- refused, exit 1
- listing the repositories under {root}: it is a file, and discovery walks a directory of checkouts; observed: {reason}
- Fix: name the directory that holds the product checkouts with --discover <root>
- Test: tests/onboarding/discovery.test.mjs::a_root_that_is_a_file_is_refused
echo.onboarding.discovery.root-unreadable#
- refused, exit 1
- listing the repositories under {root}: this process may not read that directory; on macOS the privacy layer refuses a directory the terminal was not granted; observed: {reason}
- Fix: give this process read access to {root} (on macOS: System Settings, Privacy & Security, Files and Folders), or name a root it can read
- Test: tests/onboarding/discovery.test.mjs::a_root_this_process_cannot_read_is_refused
echo.onboarding.discovery.root-unlistable#
- refused, exit 1
- listing the repositories under {root}: the file system answered {code}, which is neither a missing, a forbidden nor a plain file: a symbolic link loop, too many open files or a failing disk; observed: {reason}
- Fix: repair what {code} names at {root}, or name a root this process can list with --discover <root>
- Test: tests/onboarding/discovery.test.mjs::a_root_that_loops_is_named
echo.onboarding.discovery.git-missing#
- config, exit 1
- reading {repository} with git: git is not on this process PATH, and definitions are read out of committed trees with it; observed: PATH is {path}
- Fix: install git or put the directory that holds it on PATH, then run the command again
- Test: tests/onboarding/discovery.test.mjs::discovery_without_git_names_it
echo.onboarding.discovery.repository-unreadable#
- refused, exit 1
- reading {repository} with git {command}: git refused to answer for that repository: it has no commit yet, the ref is missing, or the repository is damaged; observed: {reason}
- Fix: commit to {repository} or repair it until `git -C {repository} {command}` answers, or move it out from under the root
- Test: tests/onboarding/discovery.test.mjs::a_repository_without_commits_is_named
echo.onboarding.catalog#
Read the Wisent product catalog with `stado product catalog --json`, the one register of product identity.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.catalog.stado-missing#
- config, exit 1
- reading the Wisent product catalog with {program} product catalog --json: that program does not exist, and what a product is comes only from the catalog Stado reads; observed: {reason}
- Fix: install Stado's command line so {program} exists (https://stado.wisent.com/docs)
- Test: tests/onboarding/catalog.test.mjs::coverage_without_stado_names_it
echo.onboarding.catalog.stado-refused#
- refused, exit 1
- reading the Wisent product catalog with {program} product catalog --json: Stado refused to print the catalog; observed: exit status {status}: {reason}
- Fix: run `{program} product catalog` to read its refusal, and repair the catalog it names
- Test: tests/onboarding/catalog.test.mjs::a_catalog_stado_refuses_is_named
echo.onboarding.catalog.catalog-unparseable#
- refused, exit 1
- reading the Wisent product catalog with {program} product catalog --json: Stado answered something that is not JSON; observed: {reason}
- Fix: update Stado with `{program} product update --surface cli stado` so its catalog answers JSON (https://stado.wisent.com/docs)
- Test: tests/onboarding/catalog.test.mjs::a_catalog_that_is_not_json_is_named
echo.onboarding.catalog.catalog-shape#
- refused, exit 1
- reading the Wisent product catalog with {program} product catalog --json: the catalog answered neither an array nor { products }; observed: the answer is {shape}
- Fix: update Stado with `{program} product update --surface cli stado` so its catalog answers { products } (https://stado.wisent.com/docs)
- Test: tests/onboarding/catalog.test.mjs::a_catalog_of_another_shape_is_named
echo.onboarding.contract#
Read a journey definition through the journey contract: every field of its declared kind, every screen reachable, every transition landing, an end, and the analytics and experiment promises it makes.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.contract.not-object#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be a JSON object; observed: {path} is {kind}: {value}
- Fix: write {path} as a JSON object
- Test: tests/onboarding/contract.test.mjs::a_field_that_is_not_an_object_is_named
echo.onboarding.contract.field-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} holds only {allowed}, and {field} is none of them: a definition written against another contract is refused, not half read; observed: {path}.{field} holds {value}
- Fix: remove {path}.{field}, or publish with the Echo release whose contract declares it
- Test: tests/onboarding/contract.test.mjs::a_field_the_contract_does_not_declare_is_named
echo.onboarding.contract.not-text#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be text: {expects}; observed: {path} is {kind}: {value}
- Fix: write {path} as {expects}
- Test: tests/onboarding/contract.test.mjs::a_field_that_is_not_text_is_named
echo.onboarding.contract.text-empty#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must name something, and it is empty or only whitespace; observed: {path} is {value}
- Fix: write {path} as {expects}
- Test: tests/onboarding/contract.test.mjs::an_empty_field_is_named
echo.onboarding.contract.text-malformed#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be {expects}, and the text it holds is not; observed: {path} is {value}
- Fix: write {path} as {expects}
- Test: tests/onboarding/contract.test.mjs::a_field_whose_text_is_malformed_is_named
echo.onboarding.contract.schema-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: this Echo reads journey contract version {supported} only, and the definition declares another; observed: {path} is {kind}: {value}
- Fix: set schema_version to {supported}, or publish with the Echo release that reads the version the definition declares
- Test: tests/onboarding/contract.test.mjs::a_definition_of_another_contract_version_is_named
echo.onboarding.contract.list-required#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be a list of at least one {item}; observed: {path} is {kind}: {value}
- Fix: write {path} as a list holding at least one {item}
- Test: tests/onboarding/contract.test.mjs::a_field_that_is_not_a_list_is_named
echo.onboarding.contract.duplicated#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} names each {item} once, and {value} is named {count} times; observed: {path} names {values}
- Fix: keep one {item} {value} in {path}
- Test: tests/onboarding/contract.test.mjs::a_list_naming_one_item_twice_is_named
echo.onboarding.contract.date-invalid#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be a date and time that parses, such as 2026-01-31T12:00:00Z; observed: {path} is {value}
- Fix: write {path} as an ISO-8601 date and time
- Test: tests/onboarding/contract.test.mjs::a_date_that_does_not_parse_is_named
echo.onboarding.contract.screen-missing#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} names screen {screen}, and no screen of the journey has that screen_id; observed: the screens are {screens}
- Fix: name one of the screens in {path}, or add a screen {screen}
- Test: tests/onboarding/contract.test.mjs::a_transition_to_a_missing_screen_is_named
echo.onboarding.contract.screen-unreachable#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: every screen is reached from entry screen {entry} through transitions or fallbacks, and screen {screen} is not; observed: reachable from {entry}: {reachable}
- Fix: add a transition or a fallback_screen_id leading to {screen}, or remove it
- Test: tests/onboarding/contract.test.mjs::a_screen_nothing_leads_to_is_named
echo.onboarding.contract.terminal-missing#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: a journey ends on a screen with no transitions and no fallback_screen_id, and each of its {count} screens leads on; observed: where each screen leads: {exits}
- Fix: give the screen that ends the journey no transitions and no fallback_screen_id
- Test: tests/onboarding/contract.test.mjs::a_journey_without_an_end_is_named
echo.onboarding.contract.choice-unknown#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be one of {choices}; observed: {path} is {value}
- Fix: write {path} as one of {choices}
- Test: tests/onboarding/contract.test.mjs::a_value_outside_its_choices_is_named
echo.onboarding.contract.value-forbidden#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: operator {operator} tests whether fact {fact} is set, and takes no value; observed: {path}.value is {value}
- Fix: remove {path}.value, or use an operator that compares a value (eq, not_eq, contains, gt, gte, lt, lte)
- Test: tests/onboarding/contract.test.mjs::a_presence_test_with_a_value_is_named
echo.onboarding.contract.value-required#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: operator {operator} compares fact {fact} with a value, and {path} states none; observed: {path}.value is absent
- Fix: state {path}.value, or use present or absent
- Test: tests/onboarding/contract.test.mjs::a_comparison_without_a_value_is_named
echo.onboarding.contract.not-boolean#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be true or false; observed: {path} is {kind}: {value}
- Fix: write {path} as true or false
- Test: tests/onboarding/contract.test.mjs::a_flag_that_is_not_a_boolean_is_named
echo.onboarding.contract.not-scalar#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be text, a number, true, false or null; observed: {path} is {kind}: {value}
- Fix: write {path} as one text, number, boolean or null
- Test: tests/onboarding/contract.test.mjs::a_value_that_is_not_a_scalar_is_named
echo.onboarding.contract.not-number#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be {expects} from {min} to {max}, and it is not a number of that kind; observed: {path} is {kind}: {value}
- Fix: write {path} as {expects} from {min} to {max}
- Test: tests/onboarding/contract.test.mjs::a_bound_that_is_not_a_number_is_named
echo.onboarding.contract.out-of-range#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} must be {expects} from {min} to {max}; observed: {path} is {value}
- Fix: write {path} as {expects} from {min} to {max}
- Test: tests/onboarding/contract.test.mjs::a_number_outside_its_range_is_named
echo.onboarding.contract.key-malformed#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: the keys of {path} are identifiers (a letter, then letters, digits, ".", "_" or "-"), and {key} is not one; observed: {path} has the key {key}
- Fix: rename the key {key} of {path} to an identifier
- Test: tests/onboarding/contract.test.mjs::a_key_that_is_not_an_identifier_is_named
echo.onboarding.contract.object-empty#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} configures variant {variant} with at least one setting, and it holds none; observed: {path} holds no setting
- Fix: state at least one setting of variant {variant} in {path}
- Test: tests/onboarding/contract.test.mjs::a_variant_configured_with_nothing_is_named
echo.onboarding.contract.config-oversized#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: {path} configures variant {variant} with at most {limit} settings, and it holds {count}; observed: {path} holds {count} settings
- Fix: keep {limit} settings or fewer in {path}
- Test: tests/onboarding/contract.test.mjs::a_variant_configured_with_too_many_settings_is_named
echo.onboarding.contract.first-success-renamed#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: Echo counts a journey's first success by the event {required} alone, and {path} names another; observed: {path} is {value}
- Fix: set {path} to {required}
- Test: tests/onboarding/contract.test.mjs::a_first_success_event_of_another_name_is_named
echo.onboarding.contract.reward-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: an experiment is rewarded by the journey's first success, so {path} must be {required}; observed: {path} is {value}
- Fix: set {path} to {required}
- Test: tests/onboarding/contract.test.mjs::an_experiment_rewarded_by_another_event_is_named
echo.onboarding.contract.control-ineligible#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: the control variant is one the experiment may assign, and {control} is not among eligible_variant_ids; observed: eligible_variant_ids: {variants}
- Fix: add {control} to eligible_variant_ids, or name one of them in {path}
- Test: tests/onboarding/contract.test.mjs::a_control_variant_that_is_not_eligible_is_named
echo.onboarding.contract.config-missing#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: variant_configs configures every eligible variant, and eligible variant {variant} has no entry; observed: {path} configures {configured}; eligible_variant_ids: {variants}
- Fix: add {path}.{variant}, or remove {variant} from eligible_variant_ids
- Test: tests/onboarding/contract.test.mjs::an_eligible_variant_without_a_config_is_named
echo.onboarding.contract.config-ineligible#
- refused, exit 2; the request itself is refused
- reading {path} of journey {journey}: variant_configs configures only eligible variants, and {variant} is not among eligible_variant_ids; observed: {path} configures {configured}; eligible_variant_ids: {variants}
- Fix: remove {path}.{variant}, or add {variant} to eligible_variant_ids
- Test: tests/onboarding/contract.test.mjs::a_config_of_an_ineligible_variant_is_named
echo.onboarding.proof#
Read a Probierz first-use publication: its form, the assets it publishes and the signed, trusted receipt that covers each of them.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.proof.not-object#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be a JSON object; observed: {path} is {kind}: {value}
- Fix: write {path} as an object, or emit it again with `probierz publication <receipt> <attempt> <journey>`
- Test: tests/onboarding/proof.test.mjs::a_publication_field_that_is_not_an_object_is_named
echo.onboarding.proof.field-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} holds only {allowed}, and {field} is none of them; observed: {path}.{field} holds {value}
- Fix: remove {path}.{field}, or emit it again with `probierz publication <receipt> <attempt> <journey>` with the Probierz release Echo reads
- Test: tests/onboarding/proof.test.mjs::a_publication_field_echo_does_not_read_is_named
echo.onboarding.proof.field-required#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} is required text, and it is absent or empty; observed: {path} is {kind}: {value}
- Fix: state {path}, or emit it again with `probierz publication <receipt> <attempt> <journey>`
- Test: tests/onboarding/proof.test.mjs::a_publication_without_a_required_field_is_named
echo.onboarding.proof.field-malformed#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be {expects}; observed: {path} is {value}
- Fix: write {path} as {expects}, or emit it again with `probierz publication <receipt> <attempt> <journey>`
- Test: tests/onboarding/proof.test.mjs::a_publication_field_whose_text_is_malformed_is_named
echo.onboarding.proof.literal-unexpected#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be {expected}: {meaning}; observed: {path} is {kind}: {value}
- Fix: emit it again with `probierz publication <receipt> <attempt> <journey>` once Probierz states {path} as {expected}
- Test: tests/onboarding/proof.test.mjs::a_publication_not_marked_publishable_is_named
echo.onboarding.proof.timestamp-uncanonical#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be a canonical ISO-8601 timestamp, as Date.toISOString writes it (2026-01-31T12:00:00.000Z); observed: {path} is {value}
- Fix: write {path} as YYYY-MM-DDTHH:MM:SS.sssZ
- Test: tests/onboarding/proof.test.mjs::a_timestamp_written_another_way_is_named
echo.onboarding.proof.list-required#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be a list of at least one {item}; observed: {path} is {kind}: {value}
- Fix: write {path} as a list holding at least one {item}
- Test: tests/onboarding/proof.test.mjs::a_publication_list_that_is_empty_is_named
echo.onboarding.proof.item-empty#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: every item of {path} must be text that is not empty; observed: item {index} of {path} is {kind}: {value}
- Fix: remove item {index} of {path}, or name what it stands for
- Test: tests/onboarding/proof.test.mjs::an_empty_item_of_a_publication_list_is_named
echo.onboarding.proof.choice-unknown#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be one of {choices}; observed: {path} is {value}
- Fix: write {path} as one of {choices}
- Test: tests/onboarding/proof.test.mjs::a_publication_value_outside_its_choices_is_named
echo.onboarding.proof.url-unparseable#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be an absolute URL, and it does not parse as one; observed: {path} is {length} characters; the URL parser said: {reason}
- Fix: write {path} as an https:// address of the stored artifact
- Test: tests/onboarding/proof.test.mjs::a_storage_url_that_does_not_parse_is_named
echo.onboarding.proof.url-mutable#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be a credential-free immutable HTTPS address: scheme https, a host, no user or password, no query and no fragment; observed: scheme {scheme}, host {host}, user {user}, password {password}, query {query}, fragment {fragment}
- Fix: store the artifact where an https address without credentials, query or fragment names it, and publish that address
- Test: tests/onboarding/proof.test.mjs::a_storage_url_with_credentials_is_refused_without_printing_them
echo.onboarding.proof.schema-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: Echo reads {expected} version {supported} only, and the document declares another; observed: schemaVersion is {version}, kind is {kind}
- Fix: emit it again with `probierz publication <receipt> <attempt> <journey>` with the Probierz release that writes {expected} version {supported}
- Test: tests/onboarding/proof.test.mjs::a_publication_of_another_schema_is_named
echo.onboarding.proof.captured-after-verified#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: evidence is verified after it is captured, and {path} states a capture after its verification; observed: capturedAt {captured}, verifiedAt {verified}
- Fix: state when the evidence was captured and when it was verified, in that order
- Test: tests/onboarding/proof.test.mjs::evidence_captured_after_its_verification_is_named
echo.onboarding.proof.redaction-incomplete#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: an asset is published only once its redaction is verified or not needed, so {path} must be one of {choices}; observed: {path} is {value}
- Fix: verify the redaction of the asset in Probierz, then publish again
- Test: tests/onboarding/proof.test.mjs::an_asset_whose_redaction_is_unverified_is_refused
echo.onboarding.proof.bytes-not-positive#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} counts the bytes of a stored artifact, and must be a whole number above zero; observed: {path} is {kind}: {value}
- Fix: state the artifact's size in bytes in {path}
- Test: tests/onboarding/proof.test.mjs::an_asset_without_a_size_is_named
echo.onboarding.proof.digest-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} is the SHA-256 of {covers}, and it is not: the document was changed after it was written; observed: {path} is {declared}; the content hashes to {computed}
- Fix: emit it again with `probierz publication <receipt> <attempt> <journey>`; never edit a publication by hand
- Test: tests/onboarding/proof.test.mjs::a_publication_changed_after_it_was_written_is_named
echo.onboarding.proof.asset-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: an asset proves the publication's own attempt, so {path} must be {expected}, the {source} the publication states; observed: {path} is {value}
- Fix: publish only the assets this attempt captured
- Test: tests/onboarding/proof.test.mjs::an_asset_of_another_attempt_is_named
echo.onboarding.proof.duplicated#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: each asset is published once, and {value} is the {field} of assets {first} and {second}; observed: publication.assets {first} and {second} share {field} {value}
- Fix: keep one of the two assets
- Test: tests/onboarding/proof.test.mjs::an_asset_published_twice_is_named
echo.onboarding.proof.verification-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be {expected}, the {source}, and it holds another value; observed: {path} is {value}
- Fix: emit it again with `probierz publication <receipt> <attempt> <journey>`; the receipt and the publication come from one verification
- Test: tests/onboarding/proof.test.mjs::a_receipt_verified_for_another_attempt_is_named
echo.onboarding.proof.algorithm-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: Probierz signs receipts with {required}, and {path} names another; observed: {path} is {value}
- Fix: sign the runs again with `probierz receipt create` and emit the publication from that receipt
- Test: tests/onboarding/proof.test.mjs::a_receipt_signed_with_another_algorithm_is_named
echo.onboarding.proof.public-key-unparseable#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: {path} must be a PEM public key, and it does not parse as one; observed: {path} is {length} characters; the key parser said: {reason}
- Fix: sign the runs again with `probierz receipt create` and emit the publication from that receipt
- Test: tests/onboarding/proof.test.mjs::a_receipt_whose_public_key_does_not_parse_is_named
echo.onboarding.proof.public-key-kind#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: receipts are verified with an {required} key, and {path} holds a key of type {found}; observed: {path} is a {found} key
- Fix: sign the runs again with `probierz receipt create` and emit the publication from that receipt
- Test: tests/onboarding/proof.test.mjs::a_receipt_with_a_key_of_another_type_is_named
echo.onboarding.proof.signature-invalid#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the signature in {path} does not verify the receipt's signed payload under the receipt's own key: the payload or the signature was changed; observed: payload of {bytes} bytes hashing to {payload}; signature of {length} characters; key {fingerprint}
- Fix: sign the runs again with `probierz receipt create` and emit the publication from that receipt
- Test: tests/onboarding/proof.test.mjs::a_receipt_whose_signature_does_not_verify_is_named
echo.onboarding.proof.trust-unset#
- config, exit 1
- checking which key signed the receipt of the first-use publication: Echo keeps proof only from receipts signed by the Probierz key PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT names, and the deployment sets none; observed: PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT is unset or empty; the receipt is signed by key {fingerprint}
- Fix: set PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT in the deployment's environment to the SHA-256 fingerprint of the Probierz signing key, the one `probierz publication --fingerprint` checks
- Test: tests/onboarding/proof.test.mjs::a_deployment_trusting_no_key_is_named
echo.onboarding.proof.trust-malformed#
- config, exit 1
- checking which key signed the receipt of the first-use publication: PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT must be a SHA-256 fingerprint, 64 lowercase hexadecimal characters, and the deployment sets another value; observed: PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT holds {length} characters: {value}
- Fix: set PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT to the 64-character SHA-256 fingerprint of the Probierz signing key
- Test: tests/onboarding/proof.test.mjs::a_deployment_trusting_a_malformed_fingerprint_is_named
echo.onboarding.proof.key-untrusted#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt is signed by a key the deployment does not trust: PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT names another; observed: the receipt is signed by key {fingerprint}; the deployment trusts {trusted}
- Fix: sign with the Probierz key the deployment trusts, or set PROBIERZ_RECEIPT_PUBLIC_KEY_FINGERPRINT to {fingerprint} if that key is Probierz's
- Test: tests/onboarding/proof.test.mjs::a_receipt_signed_by_an_untrusted_key_is_named
echo.onboarding.proof.receipt-schema-unsupported#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: Echo reads probierz-evidence-receipt version {supported} only, and the receipt declares another; observed: schemaVersion is {version}, kind is {kind}
- Fix: sign the runs again with `probierz receipt create` and emit the publication from that receipt
- Test: tests/onboarding/proof.test.mjs::a_receipt_of_another_schema_is_named
echo.onboarding.proof.receipt-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt signs another {subject} than the publication states: {path} must be {expected}; observed: {path} is {value}
- Fix: emit the publication from the receipt that signed this product, release, source and build
- Test: tests/onboarding/proof.test.mjs::a_receipt_of_another_release_is_named
echo.onboarding.proof.build-uncovered#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt signs builds {targets}, and none of them is the published build {build}; observed: {path} holds {count} builds: {builds}
- Fix: emit the publication for a build the receipt signs, or sign the published build
- Test: tests/onboarding/proof.test.mjs::a_receipt_that_signs_another_build_is_named
echo.onboarding.proof.evidence-below-policy#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt's policy requires evidence {minimum} or stronger, and the attempt has {level}; observed: {path} is {minimum}; the attempt's evidenceLevel is {level}
- Fix: capture the journey again at evidence {minimum} or stronger
- Test: tests/onboarding/proof.test.mjs::evidence_below_the_receipt_policy_is_named
echo.onboarding.proof.journey-outside-policy#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt's policy requires journeys {journeys}, and {journey} is not one; observed: {path} is {journeys}
- Fix: sign a receipt whose policy requires {journey}
- Test: tests/onboarding/proof.test.mjs::a_journey_outside_the_receipt_policy_is_named
echo.onboarding.proof.verdict-failed#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt's verdict did not pass, and only a passing verdict is proof; observed: {path} is {value}; errors: {errors}
- Fix: repair what the verdict names, run the journey again and sign that run
- Test: tests/onboarding/proof.test.mjs::a_receipt_whose_verdict_failed_is_named
echo.onboarding.proof.journey-uncovered#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the verdict covers {covered}, and not {journey}; observed: {path} is {covered}; missingJourneys: {missing}
- Fix: run and sign journey {journey}, then emit the publication
- Test: tests/onboarding/proof.test.mjs::a_verdict_that_does_not_cover_the_journey_is_named
echo.onboarding.proof.run-absent#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: the receipt signs runs {runs}, and none of them is attempt {attempt}; observed: {path} holds {count} runs
- Fix: emit the publication for an attempt the receipt signs
- Test: tests/onboarding/proof.test.mjs::a_receipt_without_the_attempt_is_named
echo.onboarding.proof.run-failed#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: run {attempt} has status {status}, and only a passed run is proof; observed: {path} is {status}
- Fix: publish a passed run
- Test: tests/onboarding/proof.test.mjs::a_run_that_did_not_pass_is_named
echo.onboarding.proof.run-unmatched#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: run {attempt} ran another {subject} than the publication states: {path} must be {expected}; observed: {path} is {value}
- Fix: emit the publication for the journey, evidence, source and build run {attempt} ran
- Test: tests/onboarding/proof.test.mjs::a_run_of_another_journey_is_named
echo.onboarding.proof.protection-absent#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: a run is published only with its protected evidence metadata, and {path} holds none; observed: {path} is {kind}: {value}
- Fix: protect the run's evidence with `probierz protect`, then sign it again
- Test: tests/onboarding/proof.test.mjs::a_run_without_protected_evidence_is_named
echo.onboarding.proof.secret-scan-unpassed#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: evidence is published only after its secret scan passed, and run {attempt}'s did not; observed: {path} is {kind}: {value}
- Fix: scan the run's evidence with `probierz secrets`, remove what it finds, then sign the run again
- Test: tests/onboarding/proof.test.mjs::a_run_without_a_passed_secret_scan_is_refused
echo.onboarding.proof.artifact-unbound#
- refused, exit 2; the request itself is refused
- reading {path} of the first-use publication: every published asset is an artifact the signed run holds, and asset {artifact} (SHA-256 {sha}, {bytes} bytes) is not one; observed: run {attempt} holds {count} artifacts: {bound}
- Fix: publish only the artifacts the signed run captured
- Test: tests/onboarding/proof.test.mjs::an_asset_the_run_does_not_hold_is_named
echo.onboarding.store#
Write a product registration, a journey draft and its versions, the experiment it runs, a proof publication or a runtime event to the onboarding store, refusing what the store does not admit.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.onboarding.store.registration-not-object#
- refused, exit 2; the request itself is refused
- registering an onboarding product: a product registration is one JSON object; observed: the registration is {kind}: {value}
- Fix: send the registration as an object with product_id, display_name, repository, surface_kinds and first_success_fact
- Test: tests/onboarding/store.test.mjs::a_registration_that_is_not_an_object_is_refused
echo.onboarding.store.registration-field-malformed#
- refused, exit 2; the request itself is refused
- registering onboarding product {product}: {field} must be {wanted}; observed: {field} is {value}
- Fix: state {field} as {wanted}
- Test: tests/onboarding/store.test.mjs::a_registration_field_that_is_malformed_is_named
echo.onboarding.store.surfaces-empty#
- refused, exit 2; the request itself is refused
- registering onboarding product {product}: a product is registered for at least one surface, and surface_kinds names none; observed: surface_kinds is {value}
- Fix: state surface_kinds as a list of one or more of {choices}
- Test: tests/onboarding/store.test.mjs::a_registration_without_a_surface_is_refused
echo.onboarding.store.surface-unknown#
- refused, exit 2; the request itself is refused
- registering onboarding product {product}: surface_kinds names only the surfaces Echo registers journeys for ({choices}), and {unknown} is none of them; observed: surface_kinds is {value}
- Fix: remove {unknown} from surface_kinds, or name one of {choices}
- Test: tests/onboarding/store.test.mjs::a_registration_naming_an_unknown_surface_is_refused
echo.onboarding.store.product-unregistered#
- refused, exit 2; the request itself is refused
- drafting journey {journey} of {product}: a journey is drafted for a registered onboarding product, and {product} is not one; observed: onboarding_products holds no row for {product}
- Fix: register the product first (POST /api/onboarding/products, or npm run onboarding:publish, which registers it from Stado's catalog)
- Test: tests/onboarding/store.test.mjs::a_draft_of_an_unregistered_product_is_refused
echo.onboarding.store.experiment-conflict#
- refused, exit 2; the request itself is refused
- putting experiment {experiment} of {product} on surface {surface}: surface {surface} already runs experiment {running}, which this journey contract does not own, and one surface runs one experiment; observed: adaptive_experiments holds running experiment {running} on {product}/{surface}
- Fix: end experiment {running} where it was started (`echo-cli experiments` lists it), or set kill_switch true in this journey's experiment_contract until it ends
- Test: tests/onboarding/store.test.mjs::an_experiment_on_a_surface_another_runs_is_refused
echo.onboarding.store.activation-unanswered#
- config, exit 1
- {action} journey version {version}: activate_onboarding_journey_version answered no row: the deployed function returns the version it changed, and this database's returns nothing; observed: SELECT * FROM public.activate_onboarding_journey_version({version}, actor, {action}) answered 0 rows
- Fix: deploy the onboarding schema from wisent-ai/wisent-supabase-echo, whose function returns the version row
- Test: tests/onboarding/store.test.mjs::a_journey_function_that_answers_nothing_is_named
echo.onboarding.store.publication-unmatched#
- refused, exit 2; the request itself is refused
- keeping publication {manifest} as proof: proof is kept only for a published Echo journey version, and none matches the publication's product, journey, version and source revision; observed: no published version of {product}/{journey} {version} at {revision}
- Fix: publish that journey version first (npm run onboarding:publish), or emit the publication for the version Echo serves
- Test: tests/onboarding/store.test.mjs::a_publication_of_an_unpublished_version_is_refused
echo.onboarding.store.proof-asset-absent#
- not_found, exit 1
- setting the proof status of asset {asset}: no proof asset has that id on a published journey version; observed: onboarding_proof_assets joined to published versions holds no row {asset}
- Fix: name an asset GET /api/onboarding/assets lists
- Test: tests/onboarding/store.test.mjs::an_asset_nobody_published_is_named
echo.onboarding.store.event-version-unpublished#
- refused, exit 2; the request itself is refused
- recording onboarding event {event}: an event belongs to a published journey version, and {version} is not one; observed: onboarding_journey_versions holds no published row {version}
- Fix: report the journey_version_id of the bundle the journey was served
- Test: tests/onboarding/store.test.mjs::an_event_of_an_unpublished_version_is_refused
echo.onboarding.store.event-version-foreign#
- refused, exit 2; the request itself is refused
- recording onboarding event {event}: journey version {version} belongs to {owner}, and the event states product {product}; observed: version {version} is of product {owner}
- Fix: report the event with product_id {owner}, or the version id of {product}'s bundle
- Test: tests/onboarding/store.test.mjs::an_event_naming_another_products_version_is_refused
echo.onboarding.store.attempt-conflict#
- refused, exit 2; the request itself is refused
- recording onboarding event {event}: attempt {attempt} already exists for another product, journey, subject or scope than this event states, and an attempt never changes them; observed: onboarding_attempts holds {attempt} with other identity columns than product {product}, journey version {version}
- Fix: report each attempt under one attempt_id and new attempts under new ids
- Test: tests/onboarding/store.test.mjs::an_event_reusing_another_attempts_id_is_refused
echo.onboarding.store.row-exists#
- refused, exit 2; the request itself is refused
- {step}: the onboarding store already holds a row with that key, and {constraint} admits it once; observed: {table}: {detail}
- Fix: change the value {constraint} keys on, or update the row that holds it
- Test: tests/onboarding/store.test.mjs::a_row_that_already_exists_is_named
echo.onboarding.store.reference-missing#
- refused, exit 2; the request itself is refused
- {step}: the row names another the onboarding store does not hold, and {constraint} requires it; observed: {table}: {detail}
- Fix: create what {constraint} refers to first, or name one that exists
- Test: tests/onboarding/store.test.mjs::a_reference_to_a_missing_row_is_named
echo.onboarding.store.check-refused#
- refused, exit 2; the request itself is refused
- {step}: a value is outside what {constraint} admits; observed: {table}: {detail}
- Fix: change the value {constraint} checks; the constraint is the one list of what it admits
- Test: tests/onboarding/store.test.mjs::a_value_a_check_refuses_is_named
echo.onboarding.store.function-refused#
- refused, exit 2; the request itself is refused
- {step}: a journey function refused the change with RAISE EXCEPTION, because the state machine does not allow it; observed: the function said: {message}{extra}
- Fix: do what the function names first (publish before activate, a version of this journey), then try again
- Test: tests/onboarding/store.test.mjs::a_change_the_journey_functions_refuse_is_named
echo.onboarding.store.rollback-failed#
- infra_down, exit 69; trying again unchanged can help
- {step}: the write failed, and rolling its transaction back failed too: the database stopped answering during the write; observed: the write failed with: {original}; ROLLBACK failed with: {reason}
- Fix: retry once the database answers; the transaction was not committed, so nothing of the write was kept
- Test: tests/onboarding/store.test.mjs::a_rollback_that_fails_names_the_write_it_ended
echo.onboarding.studio#
Register onboarding products by hand or from Stado's service catalog, draft a journey and move its versions through publish, activate and rollback, and keep and judge Probierz proof.
Started by `/api/onboarding/products`, `/api/onboarding/products/sync-stado`, `/api/onboarding/journeys`, `/api/onboarding/journeys/{id}/activate`, `/api/onboarding/assets`.
It also meets the causes of echo.http.access, echo.http.body, echo.onboarding.contract, echo.onboarding.proof, echo.onboarding.store, echo.database.
echo.onboarding.studio.catalog-version#
- refused, exit 2; the request itself is refused
- synchronizing onboarding products from the Stado service catalog: the body is `stado service list --json`'s envelope of schema_version {expected}, and it declares another; observed: schema_version is {value}
- Fix: send the answer of `stado service list --json` from the Stado release that prints schema_version {expected}
- Test: tests/onboarding/studio.test.mjs::a_catalog_of_another_version_is_refused
echo.onboarding.studio.catalog-services-missing#
- refused, exit 2; the request itself is refused
- synchronizing onboarding products from the Stado service catalog: the envelope lists its services in services, and that is not a list; observed: services is {kind}: {value}
- Fix: send the answer of `stado service list --json` whole
- Test: tests/onboarding/studio.test.mjs::a_catalog_without_services_is_refused
echo.onboarding.studio.service-unnamed#
- refused, exit 2; the request itself is refused
- synchronizing onboarding products from the Stado service catalog: service {index} of the catalog declares onboarding metadata, and a registry service names its host and name; observed: host {host}, name {name}
- Fix: declare the service with its host and name in Stado (`stado service list` shows them)
- Test: tests/onboarding/studio.test.mjs::a_service_without_host_or_name_is_refused
echo.onboarding.studio.metadata-conflict#
- refused, exit 2; the request itself is refused
- synchronizing onboarding products from the Stado service catalog: services {first} and {second} declare different onboarding metadata for product {product}, and a product has one registration; observed: {first}: {held}; {second}: {other}
- Fix: make the onboarding metadata of every service of {product} the same
- Test: tests/onboarding/studio.test.mjs::conflicting_metadata_for_one_product_is_refused
echo.onboarding.studio.catalog-empty#
- refused, exit 2; the request itself is refused
- synchronizing onboarding products from the Stado service catalog: no registry service of the catalog declares onboarding metadata, so nothing would be registered; observed: {count} services, {registry} of them from the registry
- Fix: declare onboarding metadata on the registry services of the products to register
- Test: tests/onboarding/studio.test.mjs::a_catalog_declaring_no_onboarding_product_is_refused
echo.onboarding.studio.asset-fields-immutable#
- refused, exit 2; the request itself is refused
- setting the proof status of an onboarding asset: an asset update changes only proof_status, and the rest of an asset is the immutable proof Probierz published; observed: the body names {fields}
- Fix: send only id and proof_status
- Test: tests/onboarding/studio.test.mjs::an_asset_update_naming_immutable_fields_is_refused
echo.onboarding.studio.version-id-malformed#
- refused, exit 2; the request itself is refused
- changing journey version {id}: a journey version is named by its UUID in the path, and {id} is not one; observed: the path names {id}
- Fix: name the version by the id GET /api/onboarding/journeys lists
- Test: tests/onboarding/studio.test.mjs::a_version_named_by_something_else_than_its_id_is_refused
echo.billing.revenuecat#
Receive a RevenueCat delivery: have Stado verify it, keep it raw, attribute it to the app it belongs to, and record what it earned or refunded.
Started by `/api/analytics/revenuecat/webhook`.
It also meets the causes of echo.integration, echo.store.
echo.billing.revenuecat.event-unnamed#
- refused, exit 1
- reading a RevenueCat delivery: RevenueCat names every event by event.id, and this delivery states none; observed: event.id is {value}; event.type is {type}
- Fix: send RevenueCat's own webhook body; a test delivery from the RevenueCat dashboard carries an id
- Test: tests/billing/webhooks.test.mjs::a_revenuecat_event_without_an_id_is_refused
echo.billing.revenuecat.type-missing#
- refused, exit 1
- reading RevenueCat event {event}: what an event earns or refunds is decided by its type, and event.type states none; observed: event.type is {value}
- Fix: send RevenueCat's own webhook body, which states the event type
- Test: tests/billing/webhooks.test.mjs::a_revenuecat_event_without_a_type_is_refused
echo.billing.revenuecat.price-not-number#
- refused, exit 1
- reading RevenueCat event {event}: the price an event states is a number in its purchased currency, and {field} is not one; observed: {field} is {value}
- Fix: check the product's price in RevenueCat; Echo counts the event once its price is a number
- Test: tests/billing/webhooks.test.mjs::a_revenuecat_price_that_is_not_a_number_is_refused
echo.billing.revenuecat.time-not-number#
- refused, exit 1
- reading RevenueCat event {event}: {field} is a time in milliseconds since the epoch, and the event states something else; observed: {field} is {value}
- Fix: send RevenueCat's own webhook body, which states times in milliseconds
- Test: tests/billing/webhooks.test.mjs::a_revenuecat_time_that_is_not_a_number_is_refused
echo.billing.revenuecat.time-missing#
- refused, exit 1
- reading RevenueCat event {event}: when an event happened is its event_timestamp_ms, and the event states none; observed: event_timestamp_ms is {value}
- Fix: send RevenueCat's own webhook body, which states event_timestamp_ms
- Test: tests/billing/webhooks.test.mjs::a_revenuecat_event_without_a_time_is_refused
echo.billing.revenuecat.earning-unpriced#
- refused, exit 1
- reading RevenueCat event {event}: a {type} event earns its price, and it states neither price_in_purchased_currency nor price, so what it earned is unknown; observed: price_in_purchased_currency and price are absent; product {product}, store {store}
- Fix: set the product's price in RevenueCat for {store}; the redelivery is counted once it states one
- Test: tests/billing/webhooks.test.mjs::a_purchase_without_a_price_is_refused
echo.billing.revenuecat.refund-unpriced#
- refused, exit 1
- reading RevenueCat event {event}: a customer-support cancellation refunds its price, and it states neither price_in_purchased_currency nor price, so what it refunded is unknown; observed: price_in_purchased_currency and price are absent; product {product}, store {store}
- Fix: set the product's price in RevenueCat for {store}; the redelivery is counted once it states one
- Test: tests/billing/webhooks.test.mjs::a_refund_without_a_price_is_refused
echo.billing.revenuecat.app-map-not-json#
- config, exit 1
- attributing RevenueCat event {event} to an app: REVENUECAT_APP_ID_MAP_JSON names the apps beside the declared ones as one JSON object, and its text does not parse; observed: REVENUECAT_APP_ID_MAP_JSON holds {length} characters; the parser stopped with: {reason}
- Fix: set REVENUECAT_APP_ID_MAP_JSON to a JSON object of RevenueCat app id, product id or bundle id to Echo app id, such as {"appf06341ba27": "wisent-ios"}
- Test: tests/billing/webhooks.test.mjs::an_app_map_that_is_not_json_is_named
echo.billing.revenuecat.app-map-shape#
- config, exit 1
- attributing RevenueCat event {event} to an app: REVENUECAT_APP_ID_MAP_JSON is one JSON object whose every value is an Echo app id, and it holds {kind}; observed: REVENUECAT_APP_ID_MAP_JSON is {kind}: {value}
- Fix: set REVENUECAT_APP_ID_MAP_JSON to a JSON object whose values are Echo app ids, such as {"appf06341ba27": "wisent-ios"}
- Test: tests/billing/webhooks.test.mjs::an_app_map_of_another_shape_is_named
echo.billing.revenuecat.app-undeclared#
- config, exit 1
- attributing RevenueCat event {event} to an app: an event counts for the app its app_id, product_id or bundle_id is declared for, and no declaration names any of them; the event is stored raw and RevenueCat redelivers it; observed: app_id {app}, product_id {product}, bundle_id {bundle}, store {store}; declared: {declared}
- Fix: add the app to REVENUECAT_APP_ID_MAP_JSON (its app id, a product id or prefix, or its bundle id, to the Echo app id); the next redelivery is attributed
- Test: tests/billing/webhooks.test.mjs::an_event_of_an_undeclared_app_is_kept_raw_and_refused
echo.billing.stripe#
Receive a Stripe delivery: have Stado verify it, keep it raw, and record what it earned or refunded with its ad attribution, identity and conversion feedback.
Started by `/api/analytics/stripe/webhook`.
It also meets the causes of echo.integration, echo.store.
echo.billing.stripe.created-not-time#
- refused, exit 1
- reading Stripe event {event}: when a Stripe event happened is its created, seconds since the epoch, and the event states something else; observed: created is {value}
- Fix: send Stripe's own event body, which states created in seconds
- Test: tests/billing/webhooks.test.mjs::a_stripe_event_without_a_time_is_refused
echo.billing.stripe.amount-not-number#
- refused, exit 1
- counting what Stripe {object} {id} states: the {object} {id} states {field} as a number in the currency's smallest unit, and it states something else; observed: {field} is {value}
- Fix: check the {object} in the Stripe dashboard; Echo counts the event once its amount is a number
- Test: tests/billing/webhooks.test.mjs::a_stripe_amount_that_is_not_a_number_is_refused
echo.billing.stripe.currency-missing#
- refused, exit 1
- counting what Stripe {object} {id} states: an amount is counted in its currency, and the {object} {id} states {field} without one; observed: currency is {value}
- Fix: check the {object} in the Stripe dashboard; every Stripe amount carries its currency
- Test: tests/billing/webhooks.test.mjs::a_stripe_amount_without_a_currency_is_refused
echo.billing.stripe.amounts-unstated#
- refused, exit 1
- counting what Stripe {object} {id} states: what the {object} {id} earned is the first of {fields} it states, and it states none; observed: the {object} states {stated}
- Fix: check the {object} in the Stripe dashboard; an invoice states amount_paid or total
- Test: tests/billing/webhooks.test.mjs::a_stripe_invoice_without_an_amount_is_refused
echo.database#
Read the database settings, connect to Echo's PostgreSQL database over verified TLS and query it.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.database.unconfigured#
- config, exit 1
- connecting to Echo's database: ECHO_DATABASE_URL, or NEXT_PUBLIC_SUPABASE_URL with SUPABASE_DB_PASSWORD and SUPABASE_POOLER_HOST, is required, and neither is set; observed: unset: {unset}
- Fix: set ECHO_DATABASE_URL to the deployment's postgresql:// URL, or set NEXT_PUBLIC_SUPABASE_URL, SUPABASE_DB_PASSWORD and SUPABASE_POOLER_HOST, in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_database_that_is_not_configured_is_named
echo.database.url-unparseable#
- config, exit 1
- reading {setting}, the address of Echo's database: {setting} must be a valid PostgreSQL connection URL, and it does not parse as a URL; observed: {setting} holds {length} characters; the value is not shown because it carries the password
- Fix: set {setting} to postgresql://<user>:<password>@<host>:<port>/<database> in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_database_url_that_is_not_a_url_is_refused
echo.database.url-scheme#
- config, exit 1
- reading {setting}, the address of Echo's database: {setting} must use the postgresql: or postgres: scheme; observed: {setting} uses {scheme}
- Fix: set {setting} to a postgresql:// URL in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_database_url_of_another_scheme_is_refused
echo.database.supabase-url-unparseable#
- config, exit 1
- reading NEXT_PUBLIC_SUPABASE_URL, the project Echo's database belongs to: NEXT_PUBLIC_SUPABASE_URL must be a valid Supabase project URL, and it does not parse as a URL; observed: NEXT_PUBLIC_SUPABASE_URL is {value}
- Fix: set NEXT_PUBLIC_SUPABASE_URL to https://<project-ref>.supabase.co in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_supabase_url_that_is_not_a_url_is_refused
echo.database.supabase-url-shape#
- config, exit 1
- reading NEXT_PUBLIC_SUPABASE_URL, the project Echo's database belongs to: NEXT_PUBLIC_SUPABASE_URL must be an https origin without credentials, port or path; observed: NEXT_PUBLIC_SUPABASE_URL has scheme {scheme}, port {port}, path {path} and {credentials}
- Fix: set NEXT_PUBLIC_SUPABASE_URL to the bare origin https://<project-ref>.supabase.co in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_supabase_url_with_a_path_is_refused
echo.database.supabase-url-not-project#
- config, exit 1
- reading NEXT_PUBLIC_SUPABASE_URL, the project Echo's database belongs to: NEXT_PUBLIC_SUPABASE_URL must identify a Supabase project, a host <project-ref>.supabase.co, which names the database user; observed: NEXT_PUBLIC_SUPABASE_URL names the host {host}
- Fix: set NEXT_PUBLIC_SUPABASE_URL to the project URL the Supabase dashboard shows, or set ECHO_DATABASE_URL instead, in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_supabase_url_of_another_host_is_refused
echo.database.pooler-host-invalid#
- config, exit 1
- reading SUPABASE_POOLER_HOST, the connection pooler of Echo's database: SUPABASE_POOLER_HOST must be a host name, and postgresql://<it>/postgres does not parse as a URL; observed: SUPABASE_POOLER_HOST is {value}
- Fix: set SUPABASE_POOLER_HOST to the pooler host the Supabase dashboard shows for the project, in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/configuration.test.mjs::a_pooler_host_that_is_not_a_host_is_refused
echo.database.unreachable#
- infra_down, exit 69; trying again unchanged can help
- connecting to Echo's database at {address}: nothing answered there: the host name does not resolve, the connection is refused, it timed out or it was dropped; observed: {reason}
- Fix: start the database at {address}, or reach it from a network that can, and run the command again
- Test: tests/database/configuration.test.mjs::a_database_that_does_not_answer_is_retryable
echo.database.client-uncoded#
- infra_down, exit 69; trying again unchanged can help
- connecting to or querying Echo's database at {address} as {user}: node-postgres failed without a code, as it does for a server that answers the TLS request with no, a TLS setup the server broke off, a connection that ended without the server saying why, and its own connect or query timeout; Echo decides on codes only, so which of these it was is the sentence node-postgres wrote; observed: node-postgres said: {reason}; Echo required TLS verified against {trust}
- Fix: when the observed sentence says the server does not support SSL, turn ssl on in the server at {address} or point the database setting at the deployment database; otherwise run the command again once {address} answers
- Test: tests/database/server.test.mjs::a_server_without_tls_is_refused
echo.database.certificate-untrusted#
- config, exit 1
- verifying the certificate of Echo's database at {address}: the server certificate is not signed by a CA this process trusts, and Echo never connects without verifying it; observed: {reason}; the certificate was checked against {trust}
- Fix: set SUPABASE_DB_CA_CERT to the CA certificate (PEM) from the project's database settings in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/server.test.mjs::a_certificate_nobody_trusts_is_refused
echo.database.authentication#
- config, exit 1
- signing in to Echo's database at {address} as {user}: the server refused the password for that user; observed: {reason}
- Fix: set the password the database holds for {user} (SUPABASE_DB_PASSWORD, or the password in ECHO_DATABASE_URL) in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/server.test.mjs::a_password_the_server_refuses_is_named
echo.database.database-missing#
- config, exit 1
- opening Echo's database at {address}: the server holds no database by that name; observed: {reason}
- Fix: name the deployment's database in ECHO_DATABASE_URL, in the environment, or the file ECHO_ENV_FILE names (.env.local in the checkout by default)
- Test: tests/database/server.test.mjs::a_database_the_server_does_not_hold_is_named
echo.database.schema-missing#
- config, exit 1
- querying Echo's database at {address}: the database lacks a table or column Echo reads: the canonical migrations were not applied to it; observed: {reason}
- Fix: apply the migrations of wisent-ai/wisent-supabase-echo to the database at {address}
- Test: tests/database/server.test.mjs::a_database_without_echo_schema_is_named
echo.database.connection-lost#
- infra_down, exit 69; trying again unchanged can help
- querying Echo's database at {address}: the server ended the connection while the query ran: an administrator or the pooler terminated it, the server shut down or crashed, or the connection broke (SQLSTATE 57P01, 57P02, 08000, 08003 or 08006); observed: {reason}
- Fix: run the command again once the database at {address} answers; a publication that was cut short resumes from its saved draft
- Test: tests/database/server.test.mjs::a_connection_the_server_ends_is_retryable
echo.config#
Read a setting this deployment provides: a value, a service origin, this deployment's public origin or a count.
Nothing starts it alone; the functionalities that use it do.
It uses no other functionality.
echo.config.setting-unset#
- config, exit 1
- reading the setting {name}: {name} holds no value, and Echo reads it to reach or configure what it names; observed: {name} is unset or blank
- Fix: set {name} in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::an_unset_setting_is_named
echo.config.setting-control-characters#
- config, exit 1
- reading the setting {name}: {name} holds a control character (a line break or tab pasted with the value), which no address, token or route carries; observed: {name} holds {length} characters, at least one of them a control character
- Fix: set {name} again without the pasted line break or tab, in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::a_setting_with_a_line_break_is_named
echo.config.origin-not-url#
- config, exit 1
- reading the setting {name}: {name} names the origin of a service, and its value is not a URL; observed: {name} is {value}
- Fix: set {name} to the service's origin, such as https://host.example, in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::an_origin_that_is_not_a_url_is_named
echo.config.origin-insecure#
- config, exit 1
- reading the setting {name}: {name} must use HTTPS so its bearer never crosses a network in clear text; {allowed}; observed: {name} is {value}
- Fix: set {name} to the service's https:// origin in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::an_origin_without_https_is_named
echo.config.origin-not-bare#
- config, exit 1
- reading the setting {name}: {name} is an origin, and Echo appends each path itself, so credentials, a path, a query or a fragment in it would reach the wrong address; observed: {name} is {value}
- Fix: set {name} to the scheme, host and port alone, in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::an_origin_with_a_path_is_named
echo.config.site-unset#
- config, exit 1
- reading this deployment's public origin for {purpose}: neither NEXT_PUBLIC_SITE_URL nor VERCEL_URL is set, so Echo does not know the address it is reached at; observed: NEXT_PUBLIC_SITE_URL and VERCEL_URL are both unset
- Fix: set NEXT_PUBLIC_SITE_URL to this deployment's https:// origin in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::a_deployment_without_its_origin_is_named
echo.config.whole-invalid#
- config, exit 1
- reading the setting {name}: {name} counts {unit}, so it is a positive whole number; observed: {name} is {value}
- Fix: set {name} to a positive whole number of {unit} in the deployment's environment (.env.local in a checkout), then deploy again so the server reads it
- Test: tests/config/settings.test.mjs::a_count_that_is_not_whole_is_named