Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

index.md

38 lines3.1 KB

1# Design and review instruments
2​
3Use an instrument when a specific uncertainty makes ordinary implementation or
4review insufficient. Read only the relevant card. Choose and use it within the
5user's authorized task; these cards do not require a separate approval for each
6reasoning step or a fixed workflow.
7​
8| Uncertainty | Instrument | Result |
9| --------------------------------------------------------------------- | ------------------------------------------- | ----------------------------------------------------------------------------- |
10| What behavior should this subsystem promise? | [Law discovery](law-discovery.md) | A sourced candidate law, competing predictions, and a distinguishing witness. |
11| Could the implementation, model, or law itself be wrong? | [Adversarial review](adversarial-review.md) | Concrete attacks at named levels, their evidence, and repair conditions. |
12| Would a plausible wrong implementation still pass the oracle? | [Mutant gap hunt](mutant-gap-hunt.md) | A semantic mutant, public distinction or scoped equivalence, and a contract-supported verdict. |
13| Do sound obligations conflict under the same conditions? | [Tension scan](tension-scan.md) | A traced collision, missing distinction, or no supported tension. |
14| Should these laws or concepts be merged, split, replaced, or removed? | [Law restructuring](law-restructuring.md) | An alternative organization and a check of what it preserves or loses. |
15​
16These are reasoning aids, not additional oracle conformance requirements. The
17[oracle guide](../oracle-tests.md) owns testing requirements. Use the
18[glossary](../glossary.md) and the relevant architecture and contract sources.
19The authoring and review skills route oracle work here; the cards can also help
20with architecture and other design questions.
21​
22Keep source statements, observed behavior, generated examples, hypotheses, and
23design judgments distinguishable. An existing contract constrains correctness
24claims and can itself be challenged in a design proposal. Adopting a changed
25contract requires the authority appropriate to the task; an instrument result
26alone does not authorize changing product expectations.
27​
28Carry forward the question, selected operation, source pointers, concrete
29witness, and unresolved part in the task's normal notes or review. A separate
30log or formal schema is unnecessary. No finding, no supported tension, and an
31unsuccessful simplification are useful results. A reasoning witness is not an
32executed test, and passing sampled histories is not universal proof.
33​
34These compact DB adaptations draw on Field Lab's assumption and boundary
35probes, hostile failure assay, tension statement, structural recombinator, and
36position-preservation assay. They change the routing for repository work and
37extend critique to the suitability of the law itself. They are self-contained;
38Field Lab installation, its logging system, and its runtime are not required.