Skip to main content

Pattern Tools

Tools for managing the automated pattern detection engine. The system scans the research graph on a schedule to detect convergence, contradictions, staleness, cross-domain connections, and untested implications.

Available Tools

pattern_list

List detected patterns for a workspace.

{
"name": "pattern_list",
"arguments": {
"workspaceId": "ws_123",
"status": "detected",
"patternType": "contradiction"
}
}

Arguments:

ArgumentTypeRequiredDescription
workspaceIdstringYesWorkspace ID
spaceIdstringNoFilter by space
statusstringNoFilter by status (detected, acknowledged, dismissed)
patternTypestringNoFilter by pattern type

Response:

{
"patterns": [
{
"id": "pat_001",
"patternType": "contradiction",
"severity": "high",
"title": "Contradicting hypotheses: Caching vs No-cache",
"details": {
"fromPage": "page_hyp_123",
"fromTitle": "Caching reduces latency by 50%",
"toPage": "page_hyp_456",
"toTitle": "Caching adds overhead for small payloads"
},
"status": "detected",
"detectedAt": "2024-01-15T06:00:00Z"
}
]
}

pattern_acknowledge

Acknowledge a detected pattern, indicating it has been reviewed.

{
"name": "pattern_acknowledge",
"arguments": {
"patternId": "pat_001",
"actionTaken": {
"notes": "Created a new experiment to resolve the contradiction",
"experimentId": "page_exp_789"
}
}
}

Arguments:

ArgumentTypeRequiredDescription
patternIdstringYesPattern ID
actionTakenobjectNoDetails about the action taken

pattern_dismiss

Dismiss a detected pattern.

{
"name": "pattern_dismiss",
"arguments": {
"patternId": "pat_001"
}
}

pattern_run

Manually trigger pattern detection for a workspace. Runs all configured pattern evaluators immediately.

{
"name": "pattern_run",
"arguments": {
"workspaceId": "ws_123"
}
}

Response:

{
"patternsDetected": 3,
"message": "Pattern detection completed"
}
info

Pattern detection also runs automatically every 6 hours for workspaces with intelligence enabled.

Pattern Types

TypeSeverityDescription
convergencemediumMultiple experiments validate the same hypothesis (default threshold: 3+)
contradictionhighTwo pages have a CONTRADICTS relationship in the graph
stalenesslowOpen questions that haven't been updated in a configurable period
cross_domainmediumConnections detected between pages with different domain tags
untested_implicationmediumA validated hypothesis EXTENDS a proposed hypothesis with no testing
intake_gatehighHypothesis marked as "proved" without completing its intake gate checklist
evidence_gapmediumHypothesis with citations or formalizations but fewer than N experiments
reproduction_failurehighExperiment with incoming FAILS_TO_REPRODUCE edges from other experiments

Pattern Statuses

StatusDescription
detectedPattern was found by an evaluator
acknowledgedA user has reviewed and acknowledged the pattern
dismissedPattern was dismissed as not relevant

How Detection Works

Pattern detection runs on a schedule (every 6 hours) or can be triggered manually:

Evaluators

Convergence — Finds hypotheses with 3+ validating experiments, suggesting strong evidence.

Contradiction — Scans the research graph for CONTRADICTS edges between pages.

Staleness — Finds open questions (tasks labeled "open-question") not updated within a configurable period.

Cross-domain — Detects connections between pages with different domain tags, revealing unexpected relationships.

Untested implications — Finds validated hypotheses that EXTEND proposed hypotheses with no experiments testing them.

Intake gate violation — Flags hypotheses whose claim label is "proved" but whose intake gate checklist hasn't been completed.

Evidence gap — Identifies hypotheses that are cited or formalized by other pages but have fewer than the configured number of experiments testing them.

Reproduction failure — Detects experiments that have incoming FAILS_TO_REPRODUCE edges, indicating another experiment could not reproduce the results.

Actions

When patterns are detected, configurable actions can be taken:

ActionDescription
notifyEmit an event for notification systems
flagRecord the pattern (default behavior)
surfaceProminently surface the pattern in the dashboard
create_taskAutomatically create a task to address the pattern

Configuration

Pattern detection is configured per-workspace via intelligence settings:

{
"intelligence": {
"enabled": true,
"patternRules": [
{
"type": "convergence",
"enabled": true,
"threshold": 3,
"action": "surface"
},
{
"type": "contradiction",
"enabled": true,
"action": "notify"
},
{
"type": "staleness",
"enabled": true,
"maxAgeDays": 14,
"action": "create_task"
}
]
}
}