Skip to content

docs: apply Simplified Technical English to user-facing strings - #16

Merged
OmerBaddour merged 2 commits into
mainfrom
worktree-ste-user-facing-strings
Aug 1, 2026
Merged

docs: apply Simplified Technical English to user-facing strings#16
OmerBaddour merged 2 commits into
mainfrom
worktree-ste-user-facing-strings

Conversation

@OmerBaddour

Copy link
Copy Markdown
Member

Applies ASD-STE100 to the strings a clair user actually reads. CLAUDE.md already requires STE for comments and docstrings; this extends the same rules to output.

Rules applied: active verbs, ≤20-word instructions / ≤25-word descriptions, no -ing forms, no present perfect, one meaning per word, and no vague verbs (check, ensure).

Scope

Area Files
CLI help text, prompts, echo output cli/main.py
Error messages exceptions.py, trouve.py, test.py, run_config.py, dag.py, routing.py, environments.py, runner.py, compiler.py
Log detail= fields cli/main.py
Generated SQL comments trouve.py (the 3 UPSERT statements)
Docs UI column messages docs/columns.py
Generated environments.yml comments core/scaffold.py
docs= values example_projects/, tests/fixtures/, README.md

Log event keys (run.node.success), machine tokens (reason="table_not_found"), and SQL keywords are unchanged — they are identifiers, not prose.

Sample of the rewrites

  • Selector pattern to filter Trouves; supports globs and + operatorsPattern that selects Trouves. You can use globs and + operators.
  • Run mode: full_refresh recreates all tables; incremental applies only new data.Run mode. full_refresh writes all tables again. incremental writes only the new data.
  • environments.yml not found at {path}. Run 'clair init' to create oneClair cannot find environments.yml at {path}. Run 'clair init' to make one.
  • Skip running data quality tests after a successful run.Do not run the data quality tests after a successful run.
  • This model uses SELECT * -- columns depend on the upstream source and cannot be inferred from SQL alone.This model uses SELECT *. The columns come from the upstream source, thus Clair cannot find them in the SQL.
  • docs="Daily order totals aggregated from raw orders."docs="Daily totals for the orders. This Trouve reads the raw orders."

Verification

  • uv run pytest tests/ — 516 passed. 37 tests assert on message text and were updated to the new wording; no test logic changed.
  • ruff check . — clean.
  • clair --help and the per-command help render correctly.

No behaviour changes.

🤖 Generated with Claude Code

OmerBaddour and others added 2 commits August 1, 2026 18:52
Rewrite the strings that a clair user reads, following ASD-STE100:
active verbs, short sentences, no -ing forms, no present perfect, and
one meaning per word.

Covers CLI help text and prompts, error messages, log detail fields,
the comments in the generated MERGE statements, the docs= values in the
example projects and fixtures, and the column-inference messages in the
docs UI. Test assertions that match on message text follow the new
wording. No behaviour changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
main #15 rewrote comments and docstrings in STE, which overlapped three
files. Resolutions:

- cli/main.py: keep main's docstrings for `compile` and `docs`; keep this
  branch's "configuration" over the "config" abbreviation for `init`.
- core/compiler.py: main's docstring, this branch's summary line.
- core/scaffold.py: main's wording for the generated environments.yml
  comments.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@OmerBaddour
OmerBaddour marked this pull request as ready for review August 1, 2026 23:38
@OmerBaddour
OmerBaddour merged commit 4af1cb8 into main Aug 1, 2026
3 checks passed
@OmerBaddour
OmerBaddour deleted the worktree-ste-user-facing-strings branch August 1, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant