Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

docs: say what to_networkx and compute_survival_records build - #2

Merged
zz-plant merged 1 commit into
mainfrom
claude/vibecoded-ui-copy-audit-g3mj8p
Sep 29, 2026
Merged

zz-plant merged 1 commit into
mainfrom
claude/vibecoded-ui-copy-audit-g3mj8p

Conversation

@zz-plant

Copy link
Copy Markdown
Contributor

This changes docstrings only, in src/refract/__init__.py.

  • compute_survival_records: it said "sentence/claim events", but it handles sentence events only. It now says it makes one record per span from sentence_first_seen or sentence_reintroduced to sentence_removed, matched on section and the first 60 characters, with unremoved spans right-censored (event_observed 0). That matches lines 113–141.
  • to_networkx: it said "citation and transition events", but no analyzer emits a citation URL as a fact. The function adds a rev:<from> -> rev:<to> edge per event, and a cites edge for any fact detail containing url= (lines 161–164). At forensic depth, the whole-page wikitext facts contain url=, so each becomes a node holding a revision's full wikitext. The docstring says so and recommends brief or detailed events.

Checks: the module parses, and the diff touches only docstrings. pytest is not installed in this session's container, and nothing executable changed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EpGaiBuSk5nCSV2hKyD6PN


Generated by Claude Code

to_networkx's docstring promised citation edges. It adds a "cites" edge
for any fact detail containing "url=". No analyzer emits a citation URL
as a fact (citation facts carry "type=added" and the like), so at brief
and detailed depth the graph holds revision transitions only; at
forensic depth the full_wikitext_before/after facts match, and each
becomes a node holding a revision's whole wikitext. The docstring says
so. compute_survival_records handles sentence events, not claim events;
its docstring now says how spans are matched and censored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EpGaiBuSk5nCSV2hKyD6PN
@zz-plant
zz-plant merged commit 65673b5 into main Sep 29, 2026
1 check passed
@zz-plant
zz-plant deleted the claude/vibecoded-ui-copy-audit-g3mj8p branch October 8, 2026 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants