Skip to content

Add optional philosophy of causality chapter - #53

Open
d-morrison wants to merge 5 commits into
mainfrom
claude/philosophy-of-causality
Open

d-morrison wants to merge 5 commits into
mainfrom
claude/philosophy-of-causality

Conversation

@d-morrison

@d-morrison d-morrison commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Ezra · project thread

Summary

Adds a short, optional chapter after the introduction that surveys five accounts of causation (regularity, counterfactual, manipulability, probabilistic, mechanistic) and ties them to the book's definitions of cause, action, and consistency.

  • New philosophy-of-causality.qmd, added to _quarto-book.yml after intro-causal.qmd.
  • Definitions and examples are in crossref divs; prose is original, with semantic line breaks.
  • Adds {#sec-intro-causal} to the intro heading so the new chapter can link to it.
  • Adds 9 BibTeX entries (Hume, Lewis 1973, Mackie 1965, Suppes 1970, Woodward 2003, Machamer et al. 2000, Hernán & Taubman 2008, Hernán 2016, VanderWeele & Hernán 2013).

Verification

  • Rendered a reduced book (index, intro, new chapter, references) to HTML locally with no warnings; all @def-, @sec- and @tbl- references resolved and all 9 new citations appear in the bibliography. Chapters that need did, plotly and qte were not rendered locally; the CI build-deploy job covers them.
  • DOIs for Lewis, Machamer et al., both Hernán papers, and VanderWeele & Hernán resolve (PubMed or doi.org).
  • Woodward, Suppes and Mackie details match library catalog records. The Hume pointers (Enquiry, section 7) were not checked against the text; please spot-check.

🤖 Generated with Claude Code

https://claude.ai/code/session_019xfc9nPjZNQc9UFuokX1us

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019xfc9nPjZNQc9UFuokX1us
Copilot AI balanced review requested due to automatic review settings November 10, 2026 00:27
@d-morrison d-morrison self-assigned this Nov 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

… reference and line breaks

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019xfc9nPjZNQc9UFuokX1us
Copilot AI balanced review requested due to automatic review settings November 10, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Collaborator Author

Pushed 1199892 addressing the blocking findings in the review of e4bb7ea:

  • Rule 3 (examples): each of the five definitions now has an example div (exm-regularity, exm-counterfactual-account, exm-manipulability, exm-probabilistic-view, exm-mechanistic-view); the sex/race aside became exm-manipulability.
  • Rule 1 (one div per subfile): every definition and example moved to definitions/_def-*.qmd / _exm-*.qmd and is included from the chapter.
  • Rule 4 (forward reference): "see below" now links @def-action and @sec-manipulability.
  • Rule 12 (line breaks): the flagged lines are split at clause boundaries.
  • Non-blocking, applied: the bias claim now links @sec-bias-analyses (added an id to that heading), and the two assumptions are a bulleted list.
  • Left as is: linking every term at first use (rule 5), since the intro chapter already introduces them.

A reduced local render (index, intro, bias analyses, this chapter, references) built with no warnings.

The diff exceeds the PR-size cap (16 files, 426 lines) because of the one-div-per-file split plus 9 BibTeX entries; it is one new chapter and not separable into useful smaller PRs.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Resolved conflicts: intro-causal.qmd and bias-analyses.qmd take main's YAML-title
front matter (the heading ids this PR added are gone; the chapter now links by
file instead); references.bib keeps both sides; _quarto-book.yml was deleted on
main, so the chapter is registered in _quarto-website.yml. The chapter adopts
main's front matter, latex-macros include and cross-page links.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019xfc9nPjZNQc9UFuokX1us
Copilot AI balanced review requested due to automatic review settings November 12, 2026 07:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Collaborator Author

Merge-readiness note for head ae8835a, ahead of merging on Ezra's mwc 53:

  • Annotations: I read all 22 annotations on the 15 check runs. They are runner and platform notices unrelated to this diff (the ubuntu-latest label migration, the Node.js 20 deprecation, and an empty SUBMODULES_TOKEN note that is harmless because the submodules are public). I'm treating them as false positives.
  • Cross-harness review waived: no reviewer outside Claude could run here. agy, codex, cursor-agent and gemini are not installed. OpenCode Go returned "usage limit reached" (deepseek-v4-pro), and Ollama Cloud returned HTTP 402 (no usage credits). The review gate is therefore waived; the clean CI Claude review at this head stands.
  • Still open: the Hume section-7 pointers have not been checked against the text.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

Copilot AI balanced review requested due to automatic review settings November 12, 2026 08:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copilot AI balanced review requested due to automatic review settings November 16, 2026 02:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Collaborator Author

Cross-harness review of head cdb4c91: I ran an agy adversarial review twice on Ezra's Linux machine with the Hume Enquiry Section VII passage from Project Gutenberg ebook 9662 as ground truth. Verdict both times: NOT_CLEAN. I checked each finding against the primary text and the files:

  • Hume's two definitions (first run: "counterfactual line is from the Treatise"): false. Section VII of the Enquiry contains both definitions in one passage, at about line 2348 of the Gutenberg text, so the sec. 7 citation is correct.
  • Second run, finding 1 (the chapter only attributes the regularity view to Hume): false. The quoted sentence is about what we observe, and the same page says Hume "also wrote a second, counterfactual formulation of his definition" and lists both formulations under Further reading.
  • Second run, finding 2 (regularity definition too simple): not a defect. The first run's wording point was fair, and cdb4c91 already makes the constant conjunction explicit; the counterfactual definition has its own div.
  • Second run, finding 3 (Hume's 1748 title): self-contradictory. The bib note already says the 1748 edition was titled "Philosophical Essays Concerning Human Understanding", with the later title used for the work.

agy found no Quarto, crossref, link or bibliography syntax errors, and no factual errors about Lewis, Mackie, Suppes, Woodward or Machamer et al. A CLEAN from the second model was not obtained.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

Claude finished review — View run


Review of cdb4c91

This round covers one commit, cdb4c91 ("Make constant conjunction explicit in the regularity-view definition"). It changes definitions/_def-regularity-view.qmd and nothing else. I did not build the site.

  • Substance: the rewording is accurate. "Every event like $A$ is followed by an event like $B$" matches the regularity (Hume) view. It also names the term "constant conjunction" in parentheses.
  • Rule 2 (one term per div): "constant conjunction" is an alias inside the same div, so the rule is met.
  • Rule 12 (line breaks):
    • The new lines each hold one clause or a short phrase.
    • Only the quoted parenthetical sits on its own line, which is acceptable.
  • Rule 5 (terms linked): "constant conjunction" is a new term and is not linked. It is defined in this div, so I am not raising it.
  • Math and macros: the diff touches only the literal $A$ and $B$. Those appear in the earlier definitions and I found no matching macro.
  • Cross-references and build hygiene: the diff adds no references, files or generated artifacts.

The earlier clean verdict (the review of 27e5cd2, #53 (comment)) still stands. This commit is a small wording clarification, and I found no new issues.

Verdict

Ready for merge.

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "cdb4c916497e33b128ba3d4fa7297bfe11fa741a",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "The only change, in definitions/_def-regularity-view.qmd, rewords the regularity-view definition to name constant conjunction; the alias stays in one div and the lines are clause-level.",
  "holistic_assessment": "The single-file wording clarification adds no references, math or build artifacts, so the prior clean verdict on 27e5cd2 still holds with no regression or scope concern."
}

Reviewed commit: cdb4c91

@github-actions

Copy link
Copy Markdown

💰 Cost: $0.1892 (review) — run

@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.2
🚀 Preview available at: https://Morrison-Lab.github.io/cie/pr-preview/pr-53/

Built to branch gh-pages at 2026-11-16 02:44 UTC.

This branch has not been deployed

No deployments
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.

3 participants