agentleFS
binqi20binqi20/management-research-notes/CLAUDE.md

management-research-notes

CLAUDE.md2 starsChanged yesterdayMITView on GitHub

This folder is an academic knowledge base for management / business sustainability research. Read this file before doing anything in this folder. - notes/ is a Zettelkasten-style knowledge base — one Markdown file per academic paper, with YAML frontmatter for structured metadata and a markdown body for the analytic distillation (research question, mechanism, contribution, limitations, etc.). - library/{Source}/{Year-Month}/pdfs/ holds the original PDFs. Each has a sibling text/ folder with the extracted plain text. - index/synapse.db is a SQLite index derived…

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Before extraction, populate (Tier 3, mandatory): run python tools/populate_manifest.py library/<source>/<issue>/manifest.tsv --apply …

    line 27
  2. Very specific:

    Before extraction, validate (mandatory): run python tools/lint_manifests.py --manifest library/<source>/<issue>/manifest.tsv to …

    line 33
  3. Distinctive:

    Do not treat full-library CrossRef as a ritual.

    line 49
  4. Very specific:

    Notes are the source of truth: If you need to fix a paper's metadata, re-run the ingestion pipeline for that paper (tools/ingest_batch.py …

    line 74
  5. Very specific:

    Stable IDs: Every paper has a paper_id like nbs-2026-02-spoor-2026 that is derived from …

    line 78
  6. Very specific:

    Validate before committing: After producing or editing a note, run python tools/validate_note.py notes/<id>.md and only proceed if it …

    line 107
  7. Distinctive:

    One paper, one note: Never split a paper across multiple notes.

    line 110
  8. Very specific:

    Faithfulness is checked, not assumed: Every v2 note must carry an evidence: frontmatter block whose quotes are verbatim substrings of the …

    line 112
  9. Very specific:

    Run tools/pdf_to_text.py <pdf> to produce a plain-text version.

    line 139
  10. Very specific:

    Run tools/prepare_paper.py <pdf> to look up the trusted bibliographic metadata from the manifest and produce an extraction bundle (text + …

    line 140
  11. Very specific:

    Read the bundle, apply the extraction prompt to the text, and write the resulting note to notes/{paper_id}.md using the Write tool.

    line 143
  12. Very specific:

    Run python tools/validate_note.py notes/{paper_id}.md.

    line 147
  13. Very specific:

    Run the two-layer faithfulness audit with an independent Layer 2 auditor.

    line 152
  14. Very specific:

    Follow the model assignments.

    line 160
  15. Very specific:

    Follow docs/analysis-workflow.md and the runbook for selective releases.

    line 171
  16. Distinctive:

    Use at most three active workers with the current four-slot Codex runtime, or a lower observed cap.

    line 175
  17. Distinctive:

    Keep writing and auditing waves separate.

    line 178
  18. Distinctive:

    Do not silently change models on dispatch failure.

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Working in Management Research Notes

This folder is an academic knowledge base for management / business sustainability research. Read this file before doing anything in this folder.

What this project is

  • notes/ is a Zettelkasten-style knowledge base — one Markdown file per academic paper, with YAML frontmatter for structured metadata and a markdown body for the analytic distillation (research question, mechanism, contribution, limitations, etc.).
  • library/{Source}/{Year-Month}/pdfs/ holds the original PDFs. Each has a sibling text/ folder with the extracted plain text.
  • index/synapse.db is a SQLite index derived from notes/. Same for index/papers.csv and index/library.bib. Never edit these by hand — they will be overwritten by tools/build_index.py.
  • The user is a researcher who will use these notes for literature reviews and theoretical development. Accuracy matters more than speed.

Hard rules

  1. Never invent bibliographic fields. Title, authors, year, journal, DOI, volume/issue/pages — these come only from library/.../manifest.tsv (the trusted source) or, if missing there, from CrossRef looked up by DOI. If a field is unknown, write Not reported in paper. Never guess. The manifest is the trusted source but it is hand-entered and error-prone, so the project uses three CrossRef-based gates that bracket the pipeline:

    • Before extraction, populate (Tier 3, mandatory): run python tools/populate_manifest.py library/<source>/<issue>/manifest.tsv --apply --fix-year to upgrade the manifest with volume, issue, pages columns from CrossRef and auto-correct any year mismatches against published-print (APA 7 issue year). This is Step 0 of /synapse-ingest and prevents wrong-year/null-vol errors from ever propagating into note frontmatter.
    • Before extraction, validate (mandatory): run python tools/lint_manifests.py --manifest library/<source>/<issue>/manifest.tsv to structurally audit each manifest row (heuristic checks on first_author_last, year, doi, saved_filename) and cross-check first_author_last against CrossRef's first-author family name. This is Step 0.5 of /synapse-ingest and catches the D'Amico bug class: a manifest row that is internally consistent but structurally wrong (e.g., full given+family name captured in first_author_last instead of just the family name). v0.13.2 ran this linter for the first time and found 6 latent bugs that had been in the library since the original NBS-2026-02 ingestion.
    • After extraction (Tier 2, mandatory within the changed scope): run python tools/verify_metadata.py --quiet --paper-id <PAPER_ID> for every changed note to cross-check bibliographic fields (year, title, journal, volume, issue, pages, authors) against CrossRef. For an issue or volume release, run the scoped check for every note in the changed scope. This is Step 4.5 of /synapse-ingest, the last gating step before commit. Do not treat full-library CrossRef as a ritual; reserve it for global metadata parsing/comparison changes, schema/indexer changes affecting metadata fields, batch migrations or global metadata transformations, suspected systemic metadata drift, stale or unreliable prior validation state, explicit user request, or a major public milestone where the network cost is justified. A narrow known-false-positive registry addition for a newly added paper is a scoped data exception, not a global logic change.

    v0.11.1 fixed 48 issue-year mismatches (27% of the library) where the manifest had silently stored the online-first year — only an external cross-check surfaced this. v0.11.2 fixed 21 papers' missing volume/issue/pages by backfilling from CrossRef. v0.12.0 introduced Tier 3 (populate_manifest.py) so future batches never need this kind of cleanup. v0.13.2 introduced lint_manifests.py to catch structural manifest bugs that the other gates miss. All three required gates must exit 0 in their appropriate scope before committing new notes. The legacy tools/verify_years.py is preserved as a year-only alias and is equivalent to verify_metadata.py --field year.

  2. Verbatim means verbatim. The abstract must match the extracted PDF text under the documented normalization. For layout interruptions, use the optional PDF-derived abstract check, which reproduces a hash-bound alternative from the same original PDF. Visually verify complete boundaries and preserve original source files. Book reviews without standalone abstracts retain the heading with Not reported in paper.
  3. Notes are the source of truth. If you need to fix a paper's metadata, re-run the ingestion pipeline for that paper (tools/ingest_batch.py to rebuild its bundle, then re-extract the note). Don't edit synapse.db directly. Don't edit a note's frontmatter by hand unless you are also planning to rebuild the index.
  4. Stable IDs. Every paper has a paper_id like nbs-2026-02-spoor-2026 that is derived from {source-slug}-{year-month}-{first-author-slug}-{year}. Once assigned, it never changes. The note file is notes/{paper_id}.md.

    Historical exception — the v0.13.x cleanup cohort (2026-05-12): 11 paper_ids were renamed in a single bounded cleanup pass after slugify() was updated to fold diacritics and strip apostrophes (so "Soublière" → soubliere instead of soubli-re, "D'Amico" → damico instead of d-amico, etc.) AND after tools/lint_manifests.py was built and surfaced 6 additional manifest-population bugs of the same class. The cohort closed in two releases:

    • v0.13.1 (5 papers): renames surfaced by manual inspection during the slugify migration — Pérezts, Soublière, two Grégoire papers, D'Amico.
    • v0.13.2 (6 papers): renames surfaced when lint_manifests.py was built and run for the first time — Anjier Chen, Chang Lu, Yuliya Snihur, Stella Seyb, Ahmed Sewaid, Nuno Clara (all had full given+family names captured in the manifest's first_author_last column instead of just the family name).

    This was a deliberate, bounded one-time cleanup pass taken when the library was small (197 notes) and had no known external citations by paper_id. The "cohort" framing matters: the right rule for future agents is "when you build a detector for a known bug class, run it once and fix everything it finds before declaring the cohort closed" — not "fix what you happened to notice manually." The 11-paper cohort is closed; future renames should be exceptional, well-justified, and explicitly documented. The rule's "once assigned, never changes" invariant remains in force for all post-v0.13.2 paper_ids.

  5. Validate before committing. After producing or editing a note, run python tools/validate_note.py notes/<id>.md and only proceed if it passes (or move the note to incoming/_flagged/ with a .reason.txt).
  6. One paper, one note. Never split a paper across multiple notes. Never merge two papers into one note.
  7. Faithfulness is checked, not assumed. Every v2 note must carry an evidence: frontmatter block whose quotes are verbatim substrings of the PDF text (same two-pass normalization the abstract check uses). The Layer 1 substring check is mechanical and deterministic — fabricated anchors will fail tools/validate_note.py and tools/audit_note.py identically. Layer 2 uses a fresh, independent auditor context that scores the prose fields (research question, mechanism, theoretical contribution, practical implication, limitations, future research) against the PDF via the rubric at docs/audit-rubric.md. The auditor must not be the same agent/session that wrote the note. When the audit is run by Codex or another external agent, write the Layer 2 verdict as provenance- checked JSON and assemble it with tools/audit_note.py --layer-2-json. v1 notes are exempt via an extraction_version gate.

When the user asks "what's in the library?"

  • For aggregate questions ("how many papers use stakeholder theory?"), query the SQLite index: sqlite3 index/synapse.db "SELECT theory, COUNT(*) FROM theories GROUP BY 1".
  • For specific lookups ("show me the Spoor 2026 paper"), use Read on notes/nbs-2026-02-spoor-2026.md.
  • For full-text search across abstracts and analytic fields, use the FTS5 virtual table in SQLite, or Grep over notes/.
  • For literature-review work, pull the matching notes into context and synthesize from them. Always cite using the APA citation in each note's body — that's the trusted citation, with the DOI you can verify.

When ingesting a new PDF

  1. Run tools/pdf_to_text.py <pdf> to produce a plain-text version.
  2. Run tools/prepare_paper.py <pdf> to look up the trusted bibliographic metadata from the manifest and produce an extraction bundle (text + bib + the canonical extraction prompt) in incoming/_bundles/.
  3. Read the bundle, apply the extraction prompt to the text, and write the resulting note to notes/{paper_id}.md using the Write tool. The bundle tells you exactly what paper_id to use and what frontmatter is mandatory. Use the per-study source checks in docs/analysis-workflow.md before drafting.
  4. Run python tools/validate_note.py notes/{paper_id}.md. If it fails, fix the note OR move it to incoming/_flagged/ with a .reason.txt and report what went wrong. Before auditing, run python tools/check_numbers.py notes/{paper_id}.md and record parent raw-line verification of every advisory zero-hit token and every item marked requires_raw_verification.
  5. Run the two-layer faithfulness audit with an independent Layer 2 auditor. Layer 1 substring-checks the evidence: anchors against the PDF text. Layer 2 scores the prose fields (six on v1/v2 notes, nine on v3 — every AMJ note since the v3 backfill completed on 2026-09-10) against docs/audit-rubric.md. From v0.70.0 the writer is never a reader: use fresh blind holistic rubric-v3 and structured claims readers, with runtime-verified OpenAI model diversity when available, and parent raw-text adjudication before assembling every report before repairs (the Stage 1 exception follows the calibration rule). Follow the model assignments. Use gpt-6.2-astra for writing and independent holistic review, and gpt-6.2-sol for claims verification. Use separate contexts at xhigh and verify each worker's own runtime before analytical input. Stop on mismatch or unavailability. The independent holistic reader writes incoming/_audits/{paper_id}.layer2.json with provenance fields. The parent assembles the official report with python tools/audit_note.py notes/{paper_id}.md --layer-2-json incoming/_audits/{paper_id}.layer2.json --claims-json incoming/_audits/{paper_id}.claims.json --flag; the claims reader receives --claims-prompt-only and follows docs/claims-verification.md. The old Claude CLI path remains an unused manual fallback in this OpenAI-only workflow.
  6. Complete the hash-bound publication review in docs/publication-readiness.md; then rebuild SQLite, CSV and BibTeX sequentially from the eligible note set. Follow docs/analysis-workflow.md and the runbook for selective releases.

Parallel agent slot policy

Use at most three active workers with the current four-slot Codex runtime, or a lower observed cap. Writers own only their assigned note; readers own only their assigned Layer-2 or claims sidecar. The parent assembles reports and indexes. Keep writing and auditing waves separate. Record and re-read every return before dispatching another worker. This runtime has no close-agent operation: do not assume completed threads free a slot, and never reuse a writer context as a reader. Do not silently change models on dispatch failure.

Things that should make you stop and ask the user

  • A field in the trusted manifest contradicts what the PDF text clearly says (e.g., the manifest year is 2025 but the PDF cover page says 2026). Don't silently pick one.
  • The validator fails for the same reason on more than 3 papers in a single batch — this means the prompt or the validator needs to change, not the notes.
  • A paper appears to be a dataset, a website snapshot, or otherwise not a peer-reviewed scholarly article. The pipeline is for scholarly articles only.

Things that are allowed without asking

  • Re-running ingestion on a paper that already has a note (it should be deterministic; the new note replaces the old one, and extraction_version is bumped if the prompt changed).
  • Updating index/topics.json to add a new term to the controlled vocabulary, as long as the change is consistent with the user's research focus.
  • Creating new derived views in index/ (e.g., a CSV grouped by theory) — these are always rebuildable from notes/.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.