Status: reference.
Every external idea this project took, what was taken, and, where it matters, what was deliberately not taken. Credit is the first purpose; the second is that knowing which upstream a design came from is the fastest way to understand why it has the shape it does.
Written for anyone wanting the provenance of a design decision, and anyone checking this project's licence hygiene.
Not covered here: the citation provenance of a draft, which is a different question entirely and belongs to the review layer (CITATION-PROVENANCE.md). This file is about where the pipeline's own ideas came from, not where a draft's claims came from.
hadufer/claude-storm (MIT
License): the .claude/skills/deep-research/ skill and its
deep-research-interviewer/deep-research-writer subagents adapt its
7-phase pipeline (perspective discovery, parallel grounded interviews,
contradiction mapping, outline, cited writing, synthesis, self peer-review).
Retooled here for a closed, citekey-grounded local corpus instead of live
web sources; see references/report.md in that skill's directory for
what changed and why.
stanford-oval/storm: the original STORM method claude-storm implements: "Assisting in Writing Wikipedia-like Articles From Scratch with Large Language Models" (Shao, Jiang, Kanell, Xu, Khattab, Lam; NAACL 2024; arXiv:2402.14207).
Nav Toor's (@heynavtoor) 4-prompt adaptation, fused into claude-storm's
pipeline and carried through into deep-research's synthesis-briefing
and single-reviewer (quick depth) peer-review phases.
K-Dense-AI/scientific-agent-skills
(MIT at the repository root, (c) 2025 K-Dense Inc.; per-skill
license: frontmatter diverges from it: four skills declare none
and two are non-commercial, so check the skill rather than the root
before reusing anything). Read 2026-08-28 as a peer project: a skills
repository in the same format family as .claude/skills/. Three ideas
are credited to it and none of its text is used.
Two things were read and deliberately not taken. Its citation
verification is a human attestation (two booleans in a JSON file
the agent itself writes, with the reference checker network-free and
syntax-only by design), so it is an evidence bookkeeping system
where this project has an enforcement one. And its claim hash is
format-checked but never recomputed from the manuscript, so it cannot
detect a claim edited after verification: the same
decays-while-looking-authoritative failure this project refuses for
author provenance
(DESIGN.md) and
avoids by regenerating sections.md rather than trusting it.
ITER-RETGEN: Shao, Gong, Shen, Huang, Duan and Chen, "Enhancing
Retrieval-Augmented Large Language Models with Iterative
Retrieval-Generation Synergy", Findings of EMNLP 2023, pp. 9248-9274.
The idea behind draft-reviser's hand-edit re-grounding round
(chitragupta/core/draft/retrieval_iterative.py; RAG.md): form the
next retrieval query by concatenating the previous generation with the
question, so no model call is needed to write a query. Credited as
a published method rather than a codebase; the adaptation (a person's
own draft standing in for the generation) is not something the paper
proposes, and the paper explicitly does not cover long-form generation.
RUC-NLPIR/FlashRAG (MIT):
read as a reproduction surface rather than for code. Two mechanisms
credited: its IRCoT pipeline's cross-round document merge (dedupe by
id, max(old, new) on the score, re-sort), which that round adopts
with the cap that implementation is missing, and its habit of writing every
round's retrieval, prompt and prediction into the record as a
per-iteration trace. Its evidence on determinism is cited in
RAG.md against itself: seeded runs still varied, because
sampling was on by default, batching was composition-dependent and the
inference backend changed the result.
run-llama/llama_index
(MIT core, read at v0.14.24): read only for its response-synthesis
shapes. review union's citekey-union invariant (REVIEW.md)
comes from
the observation that four of its five modes can drop a source with no
error and no log, and that only the mode keeping one output slot per
input can say which source went missing. The invariant itself is not
theirs; it is what their failure modes imply.
Imbad0202/academic-research-skills:
the idea behind deep-research's standard/deep-depth peer review
(an independent multi-reviewer panel including a dedicated adversarial
reviewer, reconciled against a concession threshold) is credited to that
project's Stage-3 peer-review design. That project is licensed CC-BY-NC
4.0; no text from it was copied: .claude/agents/peer-reviewer.md
and .claude/skills/deep-research/references/report.md §7 are written from
scratch, adapting only the concept of an independent panel plus a
Devil's Advocate role, not its implementation.
The works behind WRITING-STANDARDS.md and its layer files, moved here from that file so its credits sit with the project's others. A section number below (§4, §12) is one of that file's.
Three openly licensed works supply the principles of
WRITING-STANDARDS.md, and three more
supply the pedagogy of textbook-chapter-writer and the book structure of
book-assembler. All six require attribution under their licences; this
section is that attribution. A seventh work, Wilkes's, supplies ideas only
and is credited after them, and so do the two behind §4's habits of
machine-written prose.
Daniele Procida, Diátaxis: A systematic approach to technical
documentation authoring. https://diataxis.fr/; source repository
https://github.com/evildmp/diataxis-documentation-framework.
Licensed CC-BY-SA 4.0.
Supplies: the four-quadrant genre model (tutorial / how-to / reference /
explanation); the definition of a tutorial as a lesson in which the
instructor is responsible for the learner's success; the driving-lesson
analogy; the diagnosis of explanation-overload in tutorials; the
narrative-of-expectations technique. tutorial-writer is built on this
source more than any other.
Suzan Last, Technical Writing Essentials, University of Victoria / BCcampus, 2019. https://pressbooks.bccampus.ca/technicalwriting/. §7.7 "Writing Instructions" is the chapter drawn on most. Licensed CC-BY 4.0. That chapter is itself adapted from David McMurrey's Online Technical Writing (https://mcmassociates.io/textbook/, CC-BY 4.0), which is therefore credited transitively. Supplies: audience and task analysis as a preliminary step; scope and assumed-background statements in the introduction; equipment and supplies lists; the placement and function of note/warning/caution notices; command-verb phrasing and the argument against passive voice in instructions; testing instructions on a real member of the audience.
Google, Technical Writing Courses for Engineers. https://developers.google.com/tech-writing. Licensed CC-BY 4.0. Supplies: the curse of knowledge as the defining failure mode; defining each term once and using it consistently; expanding an acronym at first use and then not reverting; short sentences with one idea each; active voice with a named actor; leading a paragraph with its point.
Greg Wilson, Teaching Tech Together, online edition.
https://teachtogether.tech/; source repository
https://github.com/gvwilson/teachtogether.tech. Licensed
CC-BY-NC 4.0, not CC-BY: the NonCommercial clause binds copies and
adaptations of the text, so this pipeline takes the ideas only and none
of the text.
Supplies, for textbook-chapter-writer: backward design (objectives
and assessments before content); learner personas; chunking to 7±2,
or 4±1, items; concept maps; worked examples, then faded ones, with
labelled subgoals; a formative check every 10 to 15 minutes; the
catalogue of exercise types; the expertise-reversal effect; concrete
instances before the general rule ("Expertise and Memory").
The Carpentries, Lesson Development Training.
https://carpentries.github.io/lesson-development-training/; source
repository https://github.com/carpentries/lesson-development-training.
Licensed CC-BY 4.0 ("Materials licensed under CC-BY 4.0 by the
authors"). It replaces the retired Curriculum Development Handbook.
Supplies, for textbook-chapter-writer: the lesson-design procedure;
objectives written with an observable verb, two to four per episode;
the questions-and-key-points frame around an episode; a worked example
before the exercise that practises it; a check after every 15 to 20
minutes of teaching; the accessibility checks.
Lauri M. Aesoph, Self-Publishing Guide, BCcampus, 2018, chapter
"Textbook Outline".
https://opentextbc.ca/selfpublishguide/chapter/textbook-outline/.
Licensed CC BY 4.0. The page notes that its front- and back-matter
tables draw partly on Wikipedia's "Book design" (CC BY-SA 3.0), which
is therefore credited transitively.
Supplies, for book-assembler and textbook-chapter-writer: the
front-matter, chapter-element and back-matter tables, which are where
a book's front matter, appendices and back matter (#1137) come from.
Ideas, not text, from four scientific-writing references. Four books shaped §4's sentence and paragraph rules, §6's reread questions, and the figure and table captions in §10 and §13. No text from any of them is quoted or reused; the credit is given because the ideas are theirs.
Ideas, not text, from one further work. Gareth Wilkes, A Brief
Guide to Mathematical Writing, Department of Pure Mathematics and
Mathematical Statistics, University of Cambridge, revised 2023-10-08.
The guide states no licence, so nothing from it is quoted and none of its
examples is reused; the credit is given because the ideas are its.
Supplies, for §12's prose rules in
.claude/skills-common/references/mathematical-prose.md:
defining a symbol in its own sentence with a role word, and repeating the
role word on reuse; choosing letters by mnemonic and alphabet region, and
never overloading one (§2 "Notation and definitions"); writing the
"then", keeping the argument linear, checking a result's conditions
before applying it, and keeping diagrams for objects (§1 "General
tips"); stating the claim before a proof and a concluding sentence
after, one step per paragraph (§3 "Formatting and structuring
proofs"). textbook-chapter-writer reads that reference for a
maths-heavy chapter, so its symbol-definition and notation discipline is
Wilkes's too.
Ideas, and short phrase lists, from two more. Siqi Chen,
humanizer v4.0.0, https://github.com/blader/humanizer, MIT, which
draws on Wikipedia's "Signs of AI writing"
(https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing,
maintained by WikiProject AI Cleanup, CC BY-SA 4.0). Supplies §4's
habits of machine-written prose, written there in its own words,
and the phrase lists of the seven machine-prose rules in
assets/vale/styles/chitragupta/, which carry humanizer's licence beside
them. Left out, as wrong for a draft: dashes and curly quotes (the
typesetter's), stock "AI words" (field-blind until #1181 can calibrate
them), "the table below compares" (§13 asks for that sentence), and
re-explaining what the reader knows (about replies, not drafts).
The prose in WRITING-STANDARDS.md, its layer files, every SKILL.md and
.claude/skills-common/references/ is written from scratch: what is
borrowed is the ideas, credited here. An 8-word shingle check
(chitragupta/core/review/verbatim_check/_overlap.py's
build_verbatim_overlap) against every source in this section reported
0% overlap in November 2026; prose
written since, including the genre files' connecting sentences, has not
been rechecked.
wojteklu/clean_code.md: the widely-circulated summary of Robert C. Martin's Clean Code: A Handbook of Agile Software Craftsmanship (Prentice Hall, 2008). This is the source standard behind CODE-STANDARDS.md: its section structure (general rules, design, names, functions, comments, source structure, tests, code smells) is the checklist that document is written against, and the rule-by-rule table there records which rules are enforced, which are left to review, and which do not apply to a stdlib-heavy Python codebase whose classes are mostly dataclasses and exceptions.
Two of its rules are load-bearing here:
walkinglabs/awesome-harness-engineering: a curated list for harness engineering: "the practice of shaping the environment around AI agents so they can work reliably." That is a fair description of what most of this repository is. The categories it tracks map onto parts of this project closely enough to be worth stating, both as credit and as a reading list for whichever part you are about to change:
| Its category | Where this project does that |
|---|---|
| Specs, agent files & workflow design | CLAUDE.md, AGENTS.md, DEVELOPER-AGENTS.md (git checkout only), .claude/skills/ |
| Constraints, guardrails & safe autonomy | The citation gate and its PostToolUse hook; the review layer's rule that it never blocks (SOUL.md) |
| Context, memory & working state | The dossier (DRAFT-ITERATION.md), and TOKENS.md for what context costs |
| Evals & observability | The review layer's eleven aids, including the agenda worklist (AUTO-IMPROVEMENT.md) |
| Foundations | SOUL.md and DESIGN.md |
The gap that list makes most obvious is evals: this project has review aids and a gate, and no benchmark suite measuring whether the drafting layer is getting better. PERFORMANCE.md measures the deterministic half only, and a parked evaluation-harness proposal is the open thread.
Four public hook collections, read together when working out what a
second PostToolUse hook should look like and why the existing
launcher is not portable, both recorded issues. What each contributed,
and what was
refused, is set out in HOOKS.md; in brief:
| Upstream | Taken | Not taken |
|---|---|---|
| obra/superpowers | The fail-silent contract for a context injection, and the caution that the advisory-context field name differs per host | The polyglot run-hook.cmd, which needs shell form and so cannot coexist with exec form |
| addyosmani/agent-skills | The standard-envelope rule, and testing that a hook's payload parses | Its jq dependency, against the stdlib-only posture |
| shanraisshan/claude-code-best-practice | The survey of hook events, output fields and version-gated options behind this project's if and async notes |
Its per-hook enable/disable config; the gate must not be individually disableable |
| affaan-m/ECC | The principle that paths are resolved in the interpreter, not in the shell | The dispatcher process, which trades away fault isolation |
The refusals matter as much as the borrowings. Three of the four are fail-silent by design, which is right for what they protect and would be a silently inert citation gate if copied across.
content/drafts/, and nothing hooked a change to chitragupta/.
.claude/hooks/code_standards_hook.py is the hook that closes it.
Nothing of jcode's own architecture is adopted: its daemon/client
split, its semantic skill matching and
its lane-aware queue all answer questions this project does not have.plans/f-auto-improvement-adoption.md records why that loop is
retired.Both were read as secondary sources (jcode's published documentation, and third-party write-ups of OpenClaw rather than its own docs), so what is credited here is the idea each made visible, not a claim about either implementation's detail.
Two upstreams behind the synthesis and figure work that FEATURE-ROADMAP.md planned, and two more behind the figure checks. The first two are Apache-2.0, and copying from both was offered and declined, at a measured cost of roughly one PR. Nothing is copied from any of them, and every implementation is written here from scratch.
AkariAsai/OpenScholar (Apache-2.0): "OpenScholar: Synthesizing Scientific Literature with Retrieval-Augmented Language Models" (Asai, He, Shao, Shi, Singh, Chang, Lo, Soldaini, et al.; arXiv:2411.14199). Four ideas behind the roadmap's synthesis half:
review support is a real entailment check written here rather
than a port.Not taken: its positional [n] citation numbering, which reorders
meaning whenever the passage list changes and is the opposite of a
citekey; its dead code paths; and its import graph, which pulls a GPU
stack unconditionally.
dwzhu-pku/PaperBanana (Apache-2.0), and the Google Research project it forks, PaperVizAgent: a multi-agent framework for academic illustration. Three ideas behind the roadmap's figure half:
Not taken: image generation itself, and this is the substantive refusal. Its own published comparison shows the image route inverting a relationship between two series, duplicating a category, and drawing a bar taller than its own gridline where the code route was correct every time. A generator that draws a bar taller than its value is fabricating data, which is the failure this project exists to prevent. Its style guide's content is also raster-oriented and does not survive translation to TikZ.
cathrynlavery/diagram-design
(MIT) and the update-docs-diagrams skill in
INTO-CPS-Association/DTaaS:
ideas behind the figure checks and the figure-drawer skill. What was
taken from each, and where it landed, is listed in
FIGURE-ROADMAP.md.
Seven upstreams behind TOPIC-DISCOVERY.md's
design (G5-G9; plans/g5-topic-discovery.md). As everywhere in this
file: ideas taken, no text or code copied, and the refusals are as
load-bearing as the borrowings.
--out's verbatim snippets are.
Not taken: every generator, the abstractive and
perplexity-based refiners, and the iterative LLM pipelines
(Self-RAG, FLARE, IRCoT).sentence_transformers.CrossEncoder is
already in the enrich group, so borrowing the idea costs zero
dependencies.score(query, candidates) seam over
heterogeneous scorers, and max-score splitting for documents longer
than an encoder's window (score chunks, pool the best) rather than
first-512-token truncation. That is a trap the enrich layer had
already measured and fixed independently
(TOPIC-MODELLING.md
§4), which is why this
entry corroborates rather than introduces it. Not taken: the whole
training/distillation stack, since there is no labelled relevance
data in a personal corpus, and fine-tuning is out of scope.e8082119649e6a8e1cf85eaf289adcabfdf39d4e (2026-08-25), and the
reading is the reason this entry exists before any of the adaptations
it lists.llm_wiki's licence is GPL-3.0. GitHub's own
licence detector reports NOASSERTION for the repository, which is a
detector artefact rather than a disagreement: the LICENSE file is the
GPL-3.0 text with a Copyright (C) 2024-2026 Yong Su line prepended, so
it no longer byte-matches the template the detector keys on. Anyone
re-checking this entry will see the mismatch, so it is recorded here
rather than left to be rediscovered as a doubt.
That licence is why this is the most careful entry in the file. This project is MIT. GPL-3.0 is copyleft, so no file, function, prompt string, constant, identifier set or documentation paragraph may move between the two projects in either direction, and none has. Every mechanism below was read as a description of a behaviour and reimplemented here from scratch, against this project's own artefacts, tests and layering. Where a borrowed idea arrives with a number attached upstream, the number is not borrowed with it: this file's standing rule is that a default is measured on this corpus or it is not a default.
Mechanisms taken as concept only:
| Upstream mechanism | Taken here as | Where it is |
|---|---|---|
| A flat title-match bonus added on top of the lexical score | Field-weighted BM25, scoring title and abstract above body | Built; CONFIG.md |
| Cascade delete: prune a removed source from surviving pages, clean the index, drop dead links | A residue report before sync --remove-stale's confirmation prompt: report, never repair |
Built; CLI.md |
| A pure function dividing the context window into named per-section budgets | A deterministic allocator the genre skills call in place of prose budgets | Not built; #765 |
| Merging a regenerated page with the existing one | Its problem, not its answer: agenda-reviser refuses a stale span outright rather than merging into it |
Built; R12 in AUTO-IMPROVEMENT.md |
| Per-item resolved state, with reopening and a bulk resolve | An acceptance record keyed by an item's existing stable identity, so reopening needs no mechanism of its own | Built; review agenda --accept (CLI.md) |
Three of those five are adaptations that invert what upstream does,
and the inversions are the load-bearing part. Upstream's title bonus is
additive, which does not compose with BM25's scale; the weight here is
multiplicative, so a weight of 1.0 reproduces today's ranking exactly.
Upstream's cascade delete repairs the survivors; pruning a citekey out
of a dossier's evidence.md would destroy transcribed evidence, so this
project reports and stops. Upstream merges a regenerated page into an
edited one; a merge has to guess which of two edits wins, and this
project's posture is that the person's own edit wins by default, which
refusal gets for free.
Not taken, deliberately. Multi-format ingest (DOCX/EPUB/MOBI/web
clips), the browser clipper, the two-step LLM ingest and deep research
over the open web all break the invariant that a .bib export is the
only entrance to this corpus (SOUL.md). Louvain community
detection is duplication: the merge-tree cut answers the same question
and is already measured
(TOPIC-MODELLING.md).
Multi-conversation chat and
thinking-block display are interface features for a different product.
A per-task retry counter was declined because sync_pool's
failure_kind already encodes the decision a counter would
approximate, and two mechanisms for one question is worse than one.
An ingest queue persisted to disk, surviving a restart, was declined
on measurement beside it
(#764): the
plan it would restore is re-derived in 0.058s over this corpus's 642
references, because ledger_upsert._pdf_identity trusts an unchanged
(size, mtime) rather than re-hashing, and even a worst case that
re-hashes all 497 PDFs costs ~2.2s against the 1h 56m run it was meant to
rescue. A write-once plan also saves nothing at all on the cold
full-corpus parse that motivates it, since the recorded to_parse is
then the whole bibliography; and failure_kind already governs retry
without it.
Not from here, despite arriving alongside. Several retrieval issues were raised while planning #762 and are not llm_wiki adaptations: excluding the reference list from the index, a passage-level index, caption and table fields, and query expansion from this corpus's own topic vocabulary. They are recorded here only so that a later reader does not credit them upstream by association. Capping passages per paper, which one of them uses, is already credited above to OpenScholar.
Two upstreams behind the ai-images skill and its gen.py
(.claude/skills/ai-images/). gen.py is written from scratch: what
follows is the usage it follows and the model it runs, and no text or
code from either is copied.
torch.Generator. It is a dependency of the
images extra, never vendored. Not taken: its model-specific
pipeline class (Flux2KleinPipeline) in the script itself, because
DiffusionPipeline.from_pretrained resolves it from the Hub id and
keeps --model free to name any diffusers model.gen.py applies to klein checkpoints that are
not base ones. The weights are fetched at run time into the Hugging
Face default cache and are not redistributed here. Not taken:
FLUX.2 [dev] and klein 9B, which were gated on 2026-11-26 and whose
licences differ; the skill names them as needing a token and the
person's own acceptance, and ships nothing of theirs.Stated once, because it is the same rule the pipeline applies to drafts:
Attribute the idea, and never copy the text. Where an upstream is
permissively licensed the adaptation is still written from scratch, and
where it is not, as with academic-research-skills (CC-BY-NC 4.0) and
llm_wiki (GPL-3.0), only the concept is taken and the entry above
says so explicitly. The rule held
when it was tested: copying from two permissively-licensed upstreams was
offered for the feature roadmap and declined, at a measured cost of
about one PR. That is
SOUL.md's refusal to manufacture support, pointed at this
project's own provenance rather than a draft's.