Back to logic overview

02 / Logic discovery

New questions.
Testable logic.

Help AI investigate unfamiliar problems: follow a clue, propose an explanation, seek counterexamples and shape a rule worth reusing.

Start with this example
1An unexpected result2A better question3A testable explanation

Your AI can investigate what comes next.

EXAMPLE 01 / AGENT RELIABILITY

An unfamiliar failure leaves a clue.

An agent retries a tool call. Some requests produce two writes; others produce one. Follow the investigation from an initial hypothesis to a more precise safeguard.

This walkthrough illustrates a research workflow: discover, challenge, refine and review.

Interactive illustration · Synthetic evidence
What the records tell us

Compare four request records

RequestRetrySame keyWrites
T-01YesNo2
T-02YesYes1
T-03NoNo1
T-04YesNo2

A stable request key tells the tool that two attempts belong to the same request. It helps prevent the same action from being performed twice.

Candidate logic

A retry without the same request key is a candidate signal of duplicate risk.

Inspect the formal ruleretry ∧ missing_stable_key → review_duplicate_risk
Further example traces
T-05No stable key · 2 writes✓
T-06Stable key · 1 write✓
  1. 01 / Notice the anomaly

    Two writes for one request

    T-01 and T-04 record duplicate writes. Their common context provides a starting point.

  2. 02 / Ask a new question

    What separates the retries?

    Compare the retry traces, the request identity and the recorded side effects.

  3. 03 / Propose a hypothesis

    Candidate: every retry duplicates

    Test this broad explanation against all four traces, including the cases that worked.

  4. 04 / Find a counterexample

    T-02 challenges the hypothesis

    T-02 retries with a stable request key and records one write. The broad explanation does not fit.

  5. 05 / Refine the logic

    A more useful condition emerges

    The duplicate traces combine a retry with no stable key. That combination becomes a candidate safeguard to test.

  6. 06 / Prepare it for reuse

    Keep the evidence with the rule

    Two further example traces support the refined distinction. Package the candidate, its examples and scope for review.

Trace → Question → Test → Refine
Read the investigation step by step+
  1. 1

    Two writes for one request

    T-01 and T-04 record duplicate writes. Their common context provides a starting point.

  2. 2

    What separates the retries?

    Compare the retry traces, the request identity and the recorded side effects.

  3. 3

    Candidate: every retry duplicates

    Test this broad explanation against all four traces, including the cases that worked.

  4. 4

    T-02 challenges the hypothesis

    T-02 retries with a stable request key and records one write. The broad explanation does not fit.

  5. 5

    A more useful condition emerges

    The duplicate traces combine a retry with no stable key. That combination becomes a candidate safeguard to test.

  6. 6

    Keep the evidence with the rule

    Two further example traces support the refined distinction. Package the candidate, its examples and scope for review.

The investigation produces a clearer question, an evidence-backed explanation and a condition that can be tested again.

Inspect the evidence+
S1

Tool execution log · T-01–T-04

T-01 | retry=true | stable_key=false | writes=2
T-02 | retry=true | stable_key=true | writes=1
T-03 | retry=false | stable_key=false | writes=1
T-04 | retry=true | stable_key=false | writes=2
S2

Scope attached to the candidate

Scope: this example tool writes a record; retries must carry the same idempotency key. The reusable output is a check for duplicate risk.

EXAMPLE 02 / FINDING THE HIDDEN QUESTION

The average improved. Did the channels?

Overall conversion rises from 55% to 78.6%. Looking at each channel reveals a different pattern.

New question: is the improvement broad-based, or explained by who arrived?

ChannelBeforeAfter
Organic90%90 / 10085%170 / 200
Paid20%20 / 10015%3 / 20

Each cell shows conversions / visits. Both channel rates fall by 5 percentage points.

Overall conversion

55%
→
78.6%

The higher-converting channel accounts for a larger share of visits. Both channel conversion rates fell by 5 percentage points.

A change in the mix masks a decline within both channels.

Read the rule+
compare subgroup rates + compare subgroup weights → investigate a mix effect

EXAMPLE 03 / CROSS-SOURCE DISCOVERY

“Released” needs the right context.

A release note announces a feature. Test results show it working in staging. The production configuration supplies the missing distinction.

Discover a consistency check across documents, environments and tool outputs.

S1

Release announcement

The announcement is published.

release_note = published
S2

Staging test results

The test passed in staging.

test_environment = staging
S3

Production configuration

Production access is still off.

production_enabled = false
Derived conclusion

The announcement does not establish production availability.

Read the rule+
production_available ← enabled_in(production)

Turn a new problem into an investigation.

Evidence → Reasoning → Reusable knowledge

01

Propose explanations

Use the available evidence and relevant knowledge to ask questions that were not written into a checklist.

02

Read with a purpose

Follow the premises a hypothesis needs. Seek missing facts and evidence that could distinguish competing explanations.

03

Keep the strongest account

Compare with counterexamples, make the conditions explicit and carry the evidence into review and reuse.

CITPROOF

Build reasoning into your AI.

Bring us a workflow where answers, actions or discoveries need a stronger basis. Explore how evidence chains and logic verification can fit your product.

Talk to the team