scripts/librarian_promote.py is the first Stage 2 piece: a
vendor-agnostic LLM dispatcher that drafts a docs/research/ note
from a given docs/archive/ entry. It assembles the prompt by
stitching scripts/librarian-prompt.md (system) onto the archive
body with a "draft a research note per the rules above" task
instruction, then shells out to the CLI selected by LIBRARIAN_LLM
({claude|codex|gemini}; default claude). The LLM's stdout is
captured to runs/tmp/librarian-promote-<timestamp>-draft.md for
human review — the script never writes into docs/research/ itself.
Refusal cases:
- path not under docs/archive/
- target docs/research/<stem>.md already exists (after stripping any
-YYYY-MM-DD suffix)
- archive missing
If the LLM judges the archive non-promotable, it is instructed to
return a single SKIP: <reason> line instead of fabricating a draft.
--show-prompt prints the assembled prompt without invoking the LLM,
useful for inspecting what would be sent.
Plan updated: Stage 2 v1 marked complete; remaining Stage 2 work
(MEMORY drift fixup, duplicate-merge, survey mode) catalogued.
Next concrete step is a smoke test against one real archive entry.
Adds one ignore-list entry for docs/research/option-a-bench-result.md
which appears in the plan as a hypothetical accept target.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
995 B
Plaintext
26 lines
995 B
Plaintext
# Ignore patterns for scripts/librarian_check_citations.py.
|
|
#
|
|
# One fnmatch glob per line. Citations matching any pattern are
|
|
# silently skipped — use sparingly, only for citations that are
|
|
# genuinely intentional (planned future files, design references)
|
|
# rather than drift you can fix.
|
|
#
|
|
# Format examples:
|
|
# scripts/foo.sh # exact path
|
|
# configs/deep_cfr/model-*.yaml # glob
|
|
# docs/research/*.md # whole directory
|
|
#
|
|
# Comments after `#` are stripped per line. Blank lines ignored.
|
|
|
|
# Future config + script described in docs/plans/model_size_experiment.md
|
|
configs/deep_cfr/model-size-*.yaml
|
|
scripts/run_model_size_experiment.sh
|
|
|
|
# Future config described in docs/plans/torch_compile.md
|
|
configs/deep_cfr/default_compile.yaml
|
|
|
|
# Hypothetical accept target named in docs/plans/librarian.md as a
|
|
# smoke-test illustration; resolves naturally if Stage 2 promote is
|
|
# accepted, otherwise stays a forward reference.
|
|
docs/research/option-a-bench-result.md
|