Skip to content

Phase 7: imports, dialectical semantics and argument analysis - #9

Merged
JFrusher merged 1 commit into
phase-6-modalfrom
phase-7-analysis
Oct 24, 2026
Merged

JFrusher merged 1 commit into
phase-6-modalfrom
phase-7-analysis

Conversation

@JFrusher

Copy link
Copy Markdown
Owner

Stacked on #8. Implements Phase 7 of ROADMAP.md.

  • M7.1 Imports and standard library. Imports resolve next to the importing file, then in -L directories, then in the bundled library/. Cycles are reported with the chain (cycle_a -> cycle_b -> cycle_a), diamond imports are merged once, and every imported file is checked in its own right. library/std/principles.theo provides non-contradiction, the PSR and the causal principle. The library is also packaged into the WASM build, so imports work in the playground.
  • M7.2 Objections and replies. Dung grounded semantics, with defeat propagated along inferences (docs/spec/analysis.md). Statuses show in the graph, the playground and the gallery. An objection whose reply is itself answered stands again.
  • M7.3 theosc analyze. What each conclusion rests on, premise load, unused nodes/axioms/citations (detected through proofs, or by re-deciding without the premise), objection outcomes, and premises shared across files.
  • Verdicts are now honest about what was checked: "The argument is valid." Contested conclusions are reported separately ("Objection O1 stands against P2. So C1 is contested.").
  • The library reaches ten arguments: Anselm, Aquinas's Third Way, Leibniz, the moral argument and Mackie's problem of evil join the existing five. The Third Way and the problem of evil come out contested, reflecting the recorded exchanges (quantifier shift; free will defence and transworld depravity).

83 test cases, the WASM and Playwright smoke tests, and all ten arguments pass. Screenshots checked for the contested-argument page and the gallery index.


Generated by Claude Code

- Import resolution: relative to the importing file, then -L dirs, then the
  bundled library; cycles reported with the chain; diamond imports merged
  once; every imported file checked in its own right
- Standard library: library/std/principles.theo (non-contradiction, PSR,
  causal principle); bundled into the browser build as well
- Dung grounded semantics over objections and replies, defeat propagated
  along inferences; statuses shown in Mermaid, the playground and the
  gallery
- theosc analyze: what each conclusion rests on, premise load, unused
  nodes/axioms/citations (via proofs or re-deciding without a premise),
  objection outcomes, premises shared across files
- Verdicts now say 'valid' and report contested conclusions separately
- Library grows to ten arguments: Anselm, Aquinas's Third Way, Leibniz,
  the moral argument and Mackie's problem of evil join the existing five
- docs/spec/analysis.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019WEmxyo9CRKSbjbEdCuJTG
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 06b01206-67f0-4193-9379-9a0789b53f7c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JFrusher
JFrusher marked this pull request as ready for review October 24, 2026 23:23
@JFrusher
JFrusher merged commit ccd50c0 into phase-6-modal Oct 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants