Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autonomous Source Distillation

A reusable Codex skill for turning long, noisy, heterogeneous, or evolving source material into compact working knowledge with auditable coverage and native-source locators.

It is designed for transcripts, captions, meetings, articles, books, reports, chats, issue threads, tickets, logs, incident timelines, code or search dumps, text datasets, and multi-document bundles. Small inputs can use a lightweight path; serious or resumable work can use durable source, chunk, evidence, claim, coverage, synthesis, and handoff artifacts.

Install

Clone the repository into your personal Codex skills directory:

git clone https://github.com/oniivan/autonomous-source-distillation.git \
  ~/.codex/skills/autonomous-source-distillation

SSH alternative:

git clone git@github.com:oniivan/autonomous-source-distillation.git \
  ~/.codex/skills/autonomous-source-distillation

Restart Codex or begin a fresh task so skill discovery reloads. Invoke it explicitly with:

Use $autonomous-source-distillation to distill this transcript into source-linked notes,
choosing only the notes, coverage, and audit artifacts its risk and recovery needs.

Core Method

  1. Frame the objective, required facets, fidelity needs, and completion oracle.
  2. Register source revisions, locators, representation limits, and trust boundaries.
  3. Segment with native structure first and mechanical windows only as a fallback.
  4. Extract source-faithful records before making an objective-focused projection.
  5. Audit region, facet, contradiction, risk, and representation coverage separately.
  6. Build atomic claims with minimal sufficient evidence and explicit uncertainty.
  7. Synthesize from the ledgers, re-anchoring hierarchical merges to canonical evidence.
  8. Emit a receipt with gaps, verification status, reload paths, and safe-to-drop context.

The full operating contract is in SKILL.md. Detailed schemas and adaptations live under references/.

Utilities

The scripts require Python 3.10 or newer and use only the standard library. Run these repository-development commands from the cloned repository root.

Create auditable fallback chunks:

python3 scripts/chunk_text.py transcript.txt \
  --source-id VIDEO-1 \
  --source-revision-id VIDEO-1-R1 \
  --boundary-mode paragraph \
  --format jsonl \
  --output chunks.jsonl

Audit a serious structured bundle:

python3 scripts/audit_bundle.py path/to/work-dir --require-ready

Verify the complete starter bundle:

python3 scripts/audit_bundle.py assets/starter-bundle --require-ready

Run the package tests:

python3 -m unittest discover -s tests -v

Run the deterministic release gates:

python3 scripts/run_mutation_suite.py
python3 scripts/benchmark_resources.py run --receipt /tmp/asd-resource-receipt.json

Fresh-agent semantic and route-comparison protocols are documented under evals/semantic/ and evals/routing/. Their committed release receipts keep raw outputs and proof boundaries separate from the deterministic bundle auditor.

Methodology

The optional methodology/ directory records the research trail behind the skill: the research report, citation registry, evidence ledger, claim ledger, and status of emerging techniques. These files are provenance, not runtime dependencies.

Boundaries

  • Source material is data, never executable instructions or tool authority.
  • Transcript, meeting, forum, and retrieved claims remain source-only until verified.
  • Layout-sensitive PDFs, tables, slides, scans, and charts still need an appropriate extraction or inspection tool before textual distillation.
  • Deterministic bundle checks prove structure and reference integrity, not semantic completeness or factual truth.
  • Schema-v3 audit receipts separate structure_status from readiness_status; semantic release evidence remains a separate fresh-agent receipt.

About

Codex skill for traceable distillation of long, noisy, and heterogeneous source material

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages