execution-plan/weeks/week-07-measured-extraction-agent/specs.md

execution-plan/weeks/week-07-measured-extraction-agent/specs.md Β· UPDATED 2026-10-01

Week 07 β€” measured extraction agent

13 parts2,357 words 8 checkboxes β€” tick them, they save to the file

Full learning notebook: explanations, step-by-step challenges, stashes and evidence Β· NotebookLM export

Status: NOT_STARTED. Calendar dates: not assigned. Owner: Peter Ciancaglini. Planning authority: v5 Part 6 with retained v4 details. Deeper walkthrough: v6 Β· Week 7 Β· The extraction agent, measured. Active project/repository: fermlit.

Programme Β· Model instructions Β· Decisions Β· Resources Β· v6 walkthrough Β· Previous week review Β· Next week

01

01

Outcome and relevance

This week delivers the three concrete artifacts below and the supporting learning/branding/opportunity pack. The scientific or commercial outcome follows the preserved source brief, while the acceptance checks make its evidence testable. The career objective is to turn this work into something a scientist, hiring manager or buyer can inspect.

  • Scientific/build priority: Implement schema-constrained extraction with provenance and fake/API/local adapters; smoke-test five development papers and log model/prompt versions.
  • Public/profile priority: Prepare per-field evaluation chart and one failure example with permissible source quotation.
  • Career/relationship/commercial priority: Show a narrow evaluation question to a domain reviewer; prepare feedback requests without implying validation already happened.
↑ Back to top
02

02

Deeper walkthrough (v6)

Read v6 Β· Week 7 Β· The extraction agent, measured before Monday. It carries this week's v5 brief unchanged and adds the Welcome analogy, Learn it (β–Ά core and οΌ‹ deeper sources), Run it (repos with a 20-40 minute exercise), the NotebookLM kit and the mentor check below. Standing v6 rules: resource rules, NotebookLM protocol, chapter anatomy. v6 adds depth only; it does not change a goal, gate, output or the 600-minute cap, so this specification still governs execution.

Act II Β· Threads: B, M, FL Β· Next gate: 8

Where this week sits. - ← From: week 5 schema, week 6 gold set, your Vara telemetry habits. - β†’ Feeds: week 8 (F1 table public), week 9 (you pick the cheapest backend that meets the F1 floor), week 14 (the calibrated judge for fuzzy fields), week 15 (M15 evaluation writing), week 34-35 (local vs cloud comparison for labdocs). - ⟳ Returns in: Paper 1 Table 2 (per-field precision/recall/F1) and in every Loop Audit prototype.

Goals. - 🎯 This week: agent extracts 5 papers with provenance; eval/score.py prints per-field P/R/F1 for 50 papers; one round of error analysis logged with before/after. - 🏁 Next milestone: Gate 8. - 🌟 Final: the method section reviewers of Paper 1 will test hardest.

Mentor check. "I can read my own F1 table aloud, say why the worst field fails, and explain why tuning on the gold set is dangerous."

↑ Back to top
03

03

Required inputs and dependency check

↑ Back to top
04

04

Seven-day plan: 600 minutes maximum

The model must turn these into exact physical actions using the observed files and available inputs. Each 90-minute block includes start/stop rituals. All calls, posts, debugging, reading and exercises consume this same capacity.

Day Budget Work and stopping condition
Monday 90 min Implement schema-constrained extraction with provenance and fake/API/local adapters; smoke-test five development papers and log model/prompt versions. Stop when: Invalid JSON, absent values and unsupported evidence fail visibly.
Tuesday 90 min MIT OCW 7.016 Introductory Biology (Fall 2018) lectures on protein structure and enzymes β€” ocw.mit.edu (search 7.016); Khan Academy "Enzyme kinetics" Produce: Michaelis-Menten fitted in Python to a public dataset
Wednesday 90 min Implement field-specific precision/recall/F1, numeric unit/tolerance checks and provenance correctness on frozen paper-level splits. Stop when: Each field has counts and scoring rules; development scores are not called held-out performance. Reserve the last 10 minutes for the optional Wednesday note.
Thursday 90 min Statistical Rethinking 2024 lectures 3-4 Select material/exercise that fits 60 minutes; use the last 30 for the founder paper.
Friday 90 min Inspect five worst fields, make one development-only revision, compare before/after, and choose a documented per-field floor and cost budget for scale-up. Stop when: Unchanged held-out data and a backend decision with quality/cost evidence are recorded.
Saturday 90 min Resolve the earliest critical spillover or dependency. Prepare any long-form publication draft from existing figures here if needed. Sandbox only after commitments are met.
Sunday 60 min 20 min build-log draft/publication when authorized; 5 min evidence/checklist; 20 min source-grounded gap review; 15 min next week's six physical actions.

The source lists more material than necessarily fits. Select exact excerpts for the learning objective and park the remainder; no full-course completion requirement.

↑ Back to top
05

05

Learning specification

Biology/domain unit

Source unit: B7 Β· Protein structure and enzyme kinetics

Material: MIT OCW 7.016 Introductory Biology (Fall 2018) lectures on protein structure and enzymes β€” ocw.mit.edu (search 7.016); Khan Academy "Enzyme kinetics"

Produce: Michaelis-Menten fitted in Python to a public dataset

Understanding check: You can fit Km and Vmax and say what they mean

During preparation, write one worked example connected to the week's actual task, one exercise with a separate answer key and five questions. Peter supplies answers; score explanation quality and flag misconceptions in QUESTIONS. Numeric/scientific conclusions require actual data or explicitly synthetic teaching values.

AI/scientific-method unit

Source unit: M7 Β· Bayesian models

Material: Statistical Rethinking 2024 lectures 3-4

Produce: A simple Bayesian regression in PyMC or numpyro on titer data

Understanding check: You can read a credible interval

Use the prompt pack: P1 explanation ladder, P2 concept-to-project bridge and P3 quiz. Coding practice belongs within the allocated study/build block. Where the source asks for a favorable scientific result, substitute an honest measured comparison as explained below.

Founder/scientist paper

Select one verified founder/scientific-lead paper relevant to this week's domain. Use P11; save the question, method, numerical result with context, data workflow, three author questions and one connection sentence in founder-paper.md. Keep abstract-only access limitations explicit. On source weeks with no study, prioritize the commercial/submission task and log any skipped digest.

↑ Back to top
06

06

Artifact contracts

These filenames are outputs to prepare during this week's execution; this scaffold does not claim they already exist. Drafts and measured results have different states. Technical code/data stay in the canonical project repository and are referenced from these coordinating files.

Artifact Required content / acceptance Primary responsibility
extraction-runbook.md Implement schema-constrained extraction with provenance and fake/API/local adapters; smoke-test five development papers and log model/prompt versions. Acceptance: Invalid JSON, absent values and unsupported evidence fail visibly. Model assists; Peter checks and owns the outcome
evaluation-protocol.md Implement field-specific precision/recall/F1, numeric unit/tolerance checks and provenance correctness on frozen paper-level splits. Acceptance: Each field has counts and scoring rules; development scores are not called held-out performance. Model assists; Peter checks and owns the outcome
error-analysis.md Inspect five worst fields, make one development-only revision, compare before/after, and choose a documented per-field floor and cost budget for scale-up. Acceptance: Unchanged held-out data and a backend decision with quality/cost evidence are recorded. Model assists; Peter checks and owns the outcome
study-notes.md Selected exact free resources; bounded lesson/exercise; separate solution; quiz and grading rubric; Peter's answers and gaps when executed Model prepares; Peter learns
founder-paper.md Verified source and P11 digest; authentic question and connection sentence; access limitations Model assists; Peter checks
branding-pack.md Wednesday note, Sunday build log, X adaptation, figure/caption/alt text and the week's special asset; each claim linked to real proof Model drafts; Peter owns voice/public claims
opportunity-actions.md Qualified target/role, source/date, ladder stage, next action, message/interview/proposal draft and actual status Model prepares; Peter owns external relationships
evidence.md Actual paths/URLs, versions, checks/metrics, preparation versus execution state and external receipts when applicable Updated after each deliverable
review.md Checklist, learning assessment, gate status, shortfalls, next actions and carryover Peter and reviewing model

During preparation, future measured tables get column definitions, input requirements and run instructions with PENDING status. During execution, replace pending values only with measured outputs. Do not create realistic-looking fake evidence.

↑ Back to top
07

07

Branding and opportunity execution brief

Branding: Prepare per-field evaluation chart and one failure example with permissible source quotation.

Opportunity action: Show a narrow evaluation question to a domain reviewer; prepare feedback requests without implying validation already happened.

Use career asset contracts. Publish at most the agreed cadence; one figure and one supported number or admitted failure can support multiple drafts. In long-form weeks, prepare a 1,500–2,500-word article from existing evidence within the build/buffer allocation. In release/demo weeks, prepare a 60-second script: problem, input, command/action, result, limitation and proof link.

Verify individuals, jobs and affiliations at execution time. The GridX list and v4 company map are research seeds, not current facts. Do not reveal named company weaknesses or employer/client confidential information. Keep drafted/sent/replied/booked/held statuses separate. The planning request alone does not authorize external messages or publication; honor explicit authorization in the execution session.

↑ Back to top
08

08

Quality risks and week-specific constraints

The original gold set cannot be repeatedly tuned on and still serve as an untouched test set. Report prompt-development and final evaluation sets separately.

Apply the root scientific evidence contract: provenance; meaningful independent splits; no future-data leakage; baseline comparison; actual denominators/uncertainty; failed cases; human review where required. State whether data are simulated, public experimental, synthetic or partner-provided.

Keep source gates intact, and log scope/time conflicts in review. Missing people, money, access or results must not be replaced with invented evidence. Reduce optional polish first. A specific essential external dependency stays pending while independent preparation continues.

↑ Back to top
09

09

Completion and gate review

This is an enabling week. Its deliverables feed the next scheduled gate: 8. Complete the acceptance checklist below; do not promote reputation from a draft.

  • Monday artifact satisfies: Invalid JSON, absent values and unsupported evidence fail visibly.
  • Wednesday artifact satisfies: Each field has counts and scoring rules; development scores are not called held-out performance.
  • Friday artifact satisfies: Unchanged held-out data and a backend decision with quality/cost evidence are recorded.
  • Study pack is prepared; Peter's actual learning/quiz result is recorded separately.
  • Branding and opportunity drafts use supported claims and the correct external-action state.
  • Reproduction or document checks are recorded with file/version references.
  • This week's special gate, if any, has real evidence or remains explicitly pending.
  • Review, root progress/log and the next physical action are updated.
↑ Back to top
10

10

Minimum viable week and recovery

Source-preserving minimum: the F1 table, whatever it says.

Operational first step if stalled: open extraction-runbook.md, write the required inputs and produce the smallest checkable example in ten minutes. If a more urgent missing gate dependency controls the week, use the source minimum above.

If the full week does not fit, use P14: retain one gate-critical deliverable and one directly supporting study exercise; record what is skipped versus moved. Do not mark the original full gate passed merely because the minimum was completed. After a missed week, reforecast from actual evidence and avoid a second unexamined lost week.

↑ Back to top
11

11

Handoff to the next model

In review, state exactly what exists, what was verified, what Peter can now explain, which external events remain pending, where the canonical code/data live, and the next file/function or draft paragraph to touch. Link each fact to evidence. Carry scientific assumptions, split definitions and rights constraints forward explicitly.

↑ Back to top
12

12

Ready-to-copy model prompt

Prepare Week 07 of this LABLOOP execution plan.
Read execution-plan/specs.md, execution-plan/DECISIONS.md,
execution-plan/GATES.md and
execution-plan/weeks/week-07-measured-extraction-agent/specs.md, commitment.md, evidence.md and review.md.
Read prior prerequisite reviews and inspect actual repository/data state.
Use v5 as the governing sequence, the v6 Week 07 chapter
(LABLOOP-Master-Plan-v6.md) as the deeper walkthrough, and v4 only for
retained details.
Produce the full local preparation pack and the exact week-specific files named
in the artifact table. Give me a bounded lesson with exercises/answer key,
daily physical actions, technical runbook or draft, branding drafts and
career/commercial actions. Keep the total to 600 minutes.
Separate prepared artifacts from measured results and my learning completion.
Verify sources and do not invent metrics, citations, papers, people or outcomes.
Do not execute external communications, publication or spending unless the
current session already authorizes the specific action.
Finish by updating evidence/review and TODAY with the next physical action.
↑ Back to top
13

13

Preserved original v5 weekly brief

v6 reproduces this brief unchanged inside v6 Β· Week 7 Β· The extraction agent, measured. The following is source planning text, not a claim of completion. Apply the explicit evidence corrections in this specification and DECISIONS.md.

Week 7 Β· The extraction agent, measured

  • Goal: first per-field precision and recall.
  • Tue (B7): MIT 7.016 protein lectures; Michaelis-Menten fitted.
  • Thu (M7): Statistical Rethinking L3-4.
  • Build: [ ] Mon: extract/agent.py: one paper in, schema JSON out with provenance; Claude via API and local Qwen 7B as two backends; --fake backend for tests. Done when 5 papers extract. [ ] Wed: eval/score.py: per-field exact and fuzzy match against the gold set, precision/recall/F1, confusion by field. Done when the table prints for 50 papers. [ ] Fri: error analysis: the 5 worst fields, why; one round of prompt and schema fixes; re-score. Log both numbers.
  • Sun: L-Sun: "An LLM read 50 papers; here is where it was wrong" with the per-field table. L-Wed.
  • Only one thing: the F1 table, whatever it says.
↑ Back to top
⏱ Focus Focus25:00 0 min today