Overview Research Pipeline Knowledge Graph Evaluation Report Reflection Dataset Hypothesis Test Sushma Anand Akoju

Human-AI Research Pipeline

NLI · Natural Logic · Logical Inconclusiveness
claude-code-agentic-simulation
Generated: 2026-04-29
agent_pipeline_viz · sonnet
End-to-End Workflow
Swim-lane timeline showing the 6 phases from raw research artefacts to interactive visualizations, annotated by who did what.
1 Research Artifacts
2 Second Brain
3 KB Generation
4 Evaluation
5 Report & Reflection
6 Visualization
👤 Human
👤 Human

Author raw notes & upload papers

raw/*.md raw/assets/ CLAUDE.md
👤 Human

Review & correct second-brain entries

concepts/ papers/ projects/
👤 Human

Design PROMPT.md & validate schema

PROMPT.md toy_data.jsonl
🤝 Collaborative
🤝 Collaborative

Ingest entries into second brain

concepts/ experiments/ ideation/ models/ tools/
🤝 Collaborative

Reflection & Q&A

reflection.md q&a.md
🤖 AI Agent
🤖 agent_mentalmap

Build mental map

mental_map.md mental_map_index.md
🤖 agent_datagen

Generate polysemy KB datasets

generated_data.jsonl toy_data.jsonl
🤖 eval_record + agents

Parallel logic + NLI + eval

eval_output.jsonl
🤖 agent_eval

Produce eval report

eval_report.md
🤖 agent_mentalmap_html + agent_pipeline_viz

Render interactive HTML pages

mental_map_graph.html pipeline_viz.html
Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5 → Phase 6
Agentic System Architecture
All agents, skills, and data nodes with directed edges. Colour coding: ■ haiku agents   ■ sonnet agents   ■ skills   ■ data nodes   ■ human trigger
MENTAL MAP PIPELINE EVAL PIPELINE KB GENERATION PIPELINE 👤 Human triggers agent_mentalmap sonnet Read·Glob·Write writes to output/mentalmap/ mental_map.md + index feeds agent_mentalmap_html sonnet R·G·W mental_ map.html 👤 Human triggers eval_record skill / orchestrator parallel agent_logic haiku Read · Glob agent_NLI haiku Read · Glob feeds agent_eval sonnet Read·Write writes results/ eval_*.jsonl 👤 Human agent_datagen sonnet Read · Write data/ JSONL generated_data.jsonl feeds eval agent_pipeline_viz sonnet R·G·W pipeline_ viz.html LEGEND: triggers writes to feeds invokes haiku sonnet eval_record ∥ eval_record_datagen — both skills follow the same orchestration pattern
KB Construction Pipeline
Vertical step-by-step flow from raw research notes to structured JSONL knowledge-base datasets. Decision points mark where a human must choose the next action.
Step 1

Author raw research notes

Human researcher writes paper notes, group-meeting logs (Jan–May 2023), and uploads PDFs. Source material covers SICCK/NLI compositionality and logical inconclusiveness abstention.

raw/Synthetic Dataset….md raw/A proof-of-concept….md raw/assets/Natural-logic-group-meeting.md raw/assets/nlrse-sicck-poster.pdf
👤 Human
Step 2

Design second-brain schema

Human writes CLAUDE.md specifying entry types (concept/paper/project/experiment/model/tool/ideation), YAML frontmatter format, directory structure, and research domain overview.

CLAUDE.md INDEX.md LOG.md
👤 Human
Step 3

Ingest entries into second brain

Human writes Markdown entries from raw notes following CLAUDE.md schema; agent_mentalmap structures and cross-links them. Produces 4 concepts, 3 papers, 3 projects, 3 experiments, 1 model, 1 tool, 1 ideation entry.

concepts/natural-logic-compositionality.md concepts/logical-inconclusiveness.md concepts/agentic-architectures-council-of-experts.md concepts/generalized-quantifiers-nli.md papers/sicck-synthetic-nli-compositionality.md ideation/council-of-experts-inconclusiveness.md
🤝 Collaborative
Step 4

Build mental map

agent_mentalmap reads all second-brain entries, extracts thematic clusters (NLI Compositionality, Logical Inconclusiveness, Agentic Evaluation, Pragmatic Sense-Restriction, Dataset Construction, LLM Reasoning Gaps), builds Mermaid graph and hierarchical outline.

output/mentalmap/mental_map.md output/mentalmap/mental_map_index.md
🤖 agent_mentalmap
Step 5

Identify KB generation approach ⚠ Decision Point

Human reviews mental map, identifies gap in inconclusiveness detection research, decides on polysemy nouns + resolution refutation strategy. Designs the 18-step KB construction protocol covering two meanings, distinguishing features, equivalence exclusions, colored instance, and ambiguous action.

PROMPT.md .claude/agents/agent_datagen.md
👤 Human
Step 6

Generate polysemy KB datasets

agent_datagen follows the 18-step protocol for each polysemy noun (bat, head, nail, paper, bank, wave, mouse, pitcher + additional). Produces 4 JSON arrays: original_format, neutral_format, separated_inconclusive, separated_conclusive. Writes canonical JSONL for downstream eval.

data/generated_data.jsonl data/generated_data_full.json
🤖 agent_datagen (sonnet)
Step 7

Validate and hand-craft toy dataset ⚠ Decision Point

Human spot-checks KB quality for generated dataset, verifies ambiguous actions are genuinely compatible with both meanings, and hand-crafts a smaller toy dataset for pipeline testing. Confirms JSONL schema integrity (key, kb, inconclusive, conclusive, neutral_query, not_neutral).

data/toy_data.jsonl 8 keys × 4 query types = 32 items
👤 Human
Step 8

Visualize knowledge structure

agent_mentalmap_html reads mental_map.md and mental_map_index.md, renders an interactive D3.js force-directed graph with theme-coded nodes, edge types, hover sidebar, and filter controls. Produces a self-contained HTML file.

output/mentalmap/mental_map_graph.html 19 nodes · D3.js v7
🤖 agent_mentalmap_html (sonnet)
Evaluation Pipeline
eval_record skill orchestrates agent_logic ∥ agent_NLI → agent_eval for every (key × query_type) work item in the JSONL dataset.
Input

JSONL Dataset

data/toy_data.jsonl  |  data/generated_data.jsonl

Each line: {key, kb, inconclusive, conclusive, neutral_query, not_neutral}

▼
Orchestrator

eval_record skill

Loads JSONL, applies optional --key and --type filters, builds flat work queue (one item per key × query_type). Dispatches agent_logic and agent_NLI in parallel for each item.

Usage: /eval_record data/toy_data.jsonl
▼
⟵ Parallel execution ⟶
agent_logic haiku
  • Parse KB atomic facts
  • Identify referential scope / possible worlds
  • Evaluate per world (True / False / Undecidable)
  • Aggregate verdict: True / False / Inconclusive / Paradox
  • Applies Closed-World Assumption (CWA)
agent_NLI haiku
  • Premise inventory from KB
  • Monotonicity scan (upward/downward)
  • Polarity analysis (negation, quantifiers)
  • NLI label: Entailment / Contradiction / Neutral
  • MacCartney Natural Logic chain (⊏ ⊐ ≡ ^ | ⌣ #)
▼
Synthesizer

agent_eval sonnet

  • Step 0: Load full research context (concepts/, experiments/, ideation/, papers/, projects/, models/, tools/)
  • Cross-check logic ↔ NLI verdicts (expected: True↔E, False↔C, Inconclusive↔N)
  • Fallacy scan: Equivocation, Amphiboly, Hasty Generalization, Affirming Consequent, False Dichotomy, Paradox, False Premise
  • Natural Logic chain validation (monotonicity consistency)
  • MCQ answer selection from provided options
  • Dataset quality flag: GOLD / REVIEW / CONFLICT / ERROR
▼
Output

Results files

results/eval_output.jsonl
32 JSON lines — one per (key × query_type)
Fields: logic_verdict, nli_label, neutral_classification,
agents_match, fallacies_detected, mcq_answer_selected,
mcq_correct, dataset_quality_flag, eval_reasoning
results/eval_report.md
Hostable Markdown — aggregate stats,
per-key blocks, cross-key analysis,
fallacy frequency, dataset quality assessment
▼
Human review

👤 Human interrogates report

Human reads eval_report.md, identifies failure modes, asks follow-up questions about Failure Mode 2 (universal KB scoping), and requests elaboration. Q&A recorded.

results/q&a.md
▼
Reflection

🤝 results/reflection.md

Recommendation: Yes, progress — with targeted fixes first. Not solved by evolving LLMs — systematic failures in mouse/con & mouse/not reveal reasoning-scope gaps. Reframed research question: "can LLMs apply pragmatic sense-restriction to universal KB assertions?" Recommends Polysemy Expert agent addition.

71.9% MCQ Accuracy (23/32)
56.3% GOLD Flags (18/32)
21.9% CONFLICT Flags (7/32)
3 Systematic Failure Modes

Expected Verdict Correspondences

Logic (agent_logic) NLI (agent_NLI) Neutral Classification Dataset Quality
True Entailment Not Neutral GOLD if agents agree
False Contradiction Not Neutral GOLD if agents agree
Inconclusive Neutral Neutral GOLD if agents agree
Paradox — Manual review REVIEW / ERROR
Any Any Divergent CONFLICT

Fallacy Frequency (32 items evaluated)

Fallacy Type Occurrences % of items Notes
Equivocation32100%Root cause: polysemy noun with two referents
Hasty Generalization2268.8%Inferring referent from single observation predicate
Affirming the Consequent1650.0%P→Q, Q ∴ P (e.g., flew → mammal)
Amphiboly515.6%Structural sentence ambiguity
False Premise26.3%KB fact contradicts world knowledge
Human-AI Collaboration Map
Classification of every major artefact by authorship heuristic, and the iterative collaboration loop that produced this research pipeline.
👤 Human Contributions
Raw research notes & papers
Source papers (accepted SICCK, rejected inconclusiveness abstention), group-meeting notes (Jan–May 2023), poster PDF. Entirely human-authored.
input/raw/*.md · raw/assets/
CLAUDE.md schema design
Second-brain schema: 7 entry types, YAML frontmatter format, directory structure, research domain overview, conventions. Core intellectual framework for the project.
CLAUDE.md
Agent prompt engineering
All agent definition files under .claude/agents/ — role, protocol steps, input/output contracts, constraints, worked examples. Human designed; Claude Code provided framework.
.claude/agents/agent_*.md (7 files)
Skill orchestration design
eval_record and eval_record_datagen skill files specifying the pipeline orchestration, step ordering, parallelism, JSONL schema, report template, and error policy.
.claude/commands/eval_record*.md
KB generation protocol
18-step polysemy KB construction protocol (PROMPT.md): two meanings, distinguishing features, equivalence exclusions, colored instance, ambiguous action, inconclusive/conclusive queries.
PROMPT.md
Toy dataset validation
Spot-checked KB quality, verified ambiguous actions work for both meanings, hand-crafted toy_data.jsonl for pipeline testing (8 keys × 4 query types = 32 items).
data/toy_data.jsonl
Report review & questioning
Read eval_report.md, identified and questioned Failure Mode 2 framing, corrected the characterization of universal KB assertions (intentional design, not flaw), requested elaboration. Q&A recorded.
results/q&a.md
Architecture decisions
Decided on council-of-experts architecture, chose haiku for logic/NLI agents and sonnet for eval agent, selected polysemy noun approach over other KB generation strategies.
conceptual architecture
🤖 AI Contributions
Second-brain structured entries
Structured Markdown entries from raw notes: 4 concepts, 3 papers, 3 projects, 3 experiments, 1 model, 1 tool, 1 ideation entry — all with YAML frontmatter and cross-references.
agent_mentalmap · concepts/ · papers/ · projects/ · experiments/ · models/ · tools/ · ideation/
Mental map Markdown
Thematic cluster analysis, Mermaid connection graph (35+ edges), hierarchical knowledge outline, open-questions registry, and quick-reference index table (19 entries).
agent_mentalmap · output/mentalmap/mental_map.md · mental_map_index.md
KB JSONL datasets
Generated polysemy KB datasets following 18-step protocol: bat, head, nail, paper, bank, wave, mouse, pitcher + additional nouns. Four JSON arrays (original, neutral, separated_inconclusive, separated_conclusive).
agent_datagen · data/generated_data.jsonl · data/generated_data_full.json
Evaluation pipeline output
32 evaluation results (8 keys × 4 query types): logic verdicts, NLI labels, fallacy detection, MCQ answers, quality flags. Pipeline run twice to confirm results.
eval_record + agent_logic + agent_NLI + agent_eval · results/eval_output.jsonl
Evaluation report
Comprehensive hostable Markdown report: aggregate stats (71.9% accuracy), quality flag distribution, fallacy frequency table, per-key blocks for all 8 KBs, cross-key analysis, methodology notes.
eval_record · results/eval_report.md
Reflection document
Research trajectory analysis: 3 failure modes, "is it solved?" analysis, specific recommendations (re-annotate mouse/con, add Polysemy Expert, scale to 50 KBs). Reframed research question re: pragmatic sense-restriction.
collaborative (AI drafted, human reviewed & corrected) · results/reflection.md
Mental map HTML visualization
Self-contained D3.js force-directed graph: 19 nodes, theme-coded colours, edge types, hover sidebar, theme/status filters, search, zoom & pan.
agent_mentalmap_html · output/mentalmap/mental_map_graph.html
Pipeline visualization (this file)
5-tab interactive HTML: workflow swim-lane, SVG architecture diagram, KB pipeline steps, eval pipeline with stats, collaboration map. All data sourced from actual project files.
agent_pipeline_viz · output/pipeline_viz.html

Iterative Collaboration Loop

👤 Human writes prompt
→
🤖 Claude runs agent
→
👤 Human reviews output
→
👤 Human refines prompt
→
🤖 Claude re-runs
→
👤 Human accepts artefact
↻
🤝 Artefact enters second brain

Example cycle: Human writes eval_report.md → Claude runs eval_record → Human reads report, identifies Failure Mode 2 framing error → Human corrects framing (universals are intentional) → Claude elaborates reflection.md with corrected framing → Human accepts reflection → agent_eval.md updated with Step 0 context-loading requirement.

Project Artefact Inventory (click to expand)
Artefact Type Producer Status Purpose
input/raw/Synthetic Dataset….mdRaw noteHumanarchivedSource paper: SICCK ACL 2023 NLRSE
input/raw/A proof-of-concept….mdRaw noteHumanarchivedSource paper: AAAI 2026 inconclusiveness abstention
input/raw/assets/Natural-logic-group-meeting.mdRaw noteHumanarchivedGroup meeting notes Jan–May 2023, SICCK project
input/raw/assets/nlrse-sicck-poster.pdfRaw assetHumanarchivedACL 2023 NLRSE workshop poster
CLAUDE.mdSchemaHumanactiveSecond-brain schema, conventions, research domain overview
INDEX.mdIndexHumanactiveFull entry index with one-line descriptions
LOG.mdLogHumanactiveIngestion and update log (2026-04-26 — 2026-04-28)
PROMPT.mdProtocolHumanactive18-step polysemy KB construction protocol
SKILL.mdSkillHumanactiveSkill configuration (not found — noted)
concepts/natural-logic-compositionality.mdConceptCollaborativeactiveMacCartney 2009 Natural Logic: 7 relations, monotonicity calculus
concepts/generalized-quantifiers-nli.mdConceptCollaborativeactiveUniversal/existential quantifiers, negation, NLI model degradation
concepts/logical-inconclusiveness.mdConceptCollaborativeactiveSAT-but-inconclusive KB queries, polysemy disambiguation
concepts/agentic-architectures-council-of-experts.mdConceptCollaborativeactive4-agent council: Logic + NLI + Polysemy + Arbitrator
papers/sicck-synthetic-nli-compositionality.mdPaperCollaborativeactiveAccepted ACL 2023: SICCK dataset (1,304 pairs), NLI compositionality
papers/sicck-nlrse-poster-acl2023.mdPaperCollaborativeactiveACL 2023 NLRSE poster: negation failure (DeBERTa F1 ≈ 0.19)
papers/inconclusiveness-based-abstention.mdPaperCollaborativeactiveRejected AAAI 2026: polysemy KB inconclusiveness proof-of-concept
projects/sicck-nli-research.mdProjectCollaborativearchivedSICCK dataset creation, annotation, NLI evaluation project (UofA)
projects/inconclusiveness-abstention-research.mdProjectCollaborativeactiveIndependent inconclusiveness detection research (UNH), revising
projects/agentic-nli-logic-inconclusiveness-ideation.mdProjectCollaborativeideationCouncil-of-experts evaluation architecture, 4-phase plan
experiments/sicck-annotation-methodology.mdExperimentCollaborativearchivedSVO modification, annotation guidelines, IAA resolution
experiments/sicck-finetuning-cv.mdExperimentCollaborativearchived5-fold CV: DeBERTa and RoBERTa on SICCK (F1=0.62)
experiments/logically-inconclusive-kb-generation.mdExperimentCollaborativeactive16-step automated KB generation via Claude/Gemini APIs
models/nli-models-and-logical-reasoners.mdModelCollaborativeactiveDeBERTa, RoBERTa, ELMo; Claude 4.5/3.x; Gemini 2.5; GPT 5.1/4o
tools/logically-inconclusive-kbs-repo.mdToolCollaborativeactivePython repo: Gemini 2.5 Flash + Claude Sonnet 4.5 KB generation
ideation/council-of-experts-inconclusiveness.mdIdeationCollaborativeideationNLI Neutral ≈ Logical Inconclusiveness; council architecture diagram
.claude/agents/agent_datagen.mdAgent defCollaborativeactiveKB generator: 18-step protocol, JSONL output, sonnet model
.claude/agents/agent_eval.mdAgent defCollaborativeactiveEval synthesizer: cross-check, fallacy scan, quality flag, sonnet
.claude/agents/agent_logic.mdAgent defCollaborativeactiveFormal logic: CWA, possible worlds, True/False/Inconclusive, haiku
.claude/agents/agent_NLI.mdAgent defCollaborativeactiveNLI + Natural Logic: E/C/N labels, MacCartney chains, haiku
.claude/agents/agent_mentalmap.mdAgent defCollaborativeactiveKnowledge cartographer: themes, Mermaid graph, outline, sonnet
.claude/agents/agent_mentalmap_html.mdAgent defCollaborativeactiveD3.js HTML renderer for force-directed mental map graph, sonnet
.claude/agents/agent_pipeline_viz.mdAgent defCollaborativeactivePipeline visualization: 5-tab HTML page, all artefacts, sonnet
.claude/commands/eval_record.mdSkillHumanactivePipeline orchestrator: JSONL → logic∥NLI → eval → reports
.claude/commands/eval_record_datagen.mdSkillHumanactiveSame as eval_record, adds generated_data.jsonl usage
data/toy_data.jsonlDatasetHumanactive8 polysemy KBs × 4 query types = 32 items for pipeline testing
data/generated_data.jsonlDatasetAI (agent_datagen)activeFull polysemy KB dataset (original_format canonical lines)
results/eval_output.jsonlResultAI (eval_record)completed32 JSON evaluation results from full pipeline run
results/eval_report.mdResultAI (eval_record)completedHosted Markdown report: 71.9% accuracy, 3 failure modes
results/reflection.mdResultCollaborativecompletedResearch trajectory: progress recommendation, failure elaboration
output/mentalmap/mental_map.mdOutputAI (agent_mentalmap)completedFull mental map: thematic clusters, Mermaid graph, outline
output/mentalmap/mental_map_index.mdOutputAI (agent_mentalmap)completedQuick-reference flat table: 19 entries with themes and connections
output/mentalmap/mental_map_graph.htmlOutputAI (agent_mentalmap_html)completedInteractive D3.js force-directed graph of research knowledge
output/pipeline_viz.htmlOutputAI (agent_pipeline_viz)completedThis file: 5-tab pipeline visualization