Skip to content

feat(query): add risk, unverified edits, and formal proof --where keys - #314

Merged
jackulau merged 4 commits into
mainfrom
feat/query-risk-and-proof
Nov 28, 2026
Merged

jackulau merged 4 commits into
mainfrom
feat/query-risk-and-proof

Conversation

@jackulau

Copy link
Copy Markdown
Owner

Summary

Adds 6 --where session query keys (plus 3 facets and enum choices validation) for supervision risk, unverified edit streaks, and formal-verification proof stats across SQLite, in-memory, Postgres, and ClickHouse stores:

  • risk (medium, high, facet)
  • risk.reason (list with globs + comma lists, facet)
  • proof.lang (lean, rocq, dafny, verus, isabelle, tla, tlc, facet)
  • proof.escapes (count in proof sessions, sortable)
  • proof.oscillating (count in proof sessions, sortable)
  • unverified.edits (longest unverified edit streak, sortable)

Verification

  • tsc --noEmit -p packages/coding.sh: pass
  • packages/coding.sh/test/query/where-risk-proof.test.ts (99 tests covering parser/validation, SQLite vs Memory parity, facets, sorting, CLI sessions --where, and dataset mine --where): pass (fails 0/99 without changes)
  • Full query, SQLite, dataset-curate, and docs reference tests: 470 pass, 0 fail
  • node scripts/lint/slop.mjs --strict-allowlist & node scripts/changelog/add.mjs --check: clean
  • Site perf & readability budgets: pass (/docs/query/ 26.41 KB < 28.6 KB)

@jackulau jackulau added the ready Run the full suite on this pull request; main requires its check label Nov 28, 2026
@jackulau
jackulau merged commit f3f0792 into main Nov 28, 2026
35 checks passed
@jackulau
jackulau deleted the feat/query-risk-and-proof branch November 28, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Run the full suite on this pull request; main requires its check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant