Decisions¶
Format: date, decision, alternatives, reason. Newest at the bottom.
| ID | Date | Decision | Alternatives | Reason |
|---|---|---|---|---|
| D0 | 2026-10-14 | Plan format: single epics.md in Claude format, 6 epics and 22 stories |
BMAD sharded story files | Owner preference |
| D1 | 2026-10-14 | Build DM, AE, CM, VS, LB, EX, TS plus SUPPDM and SUPPAE; zero-error gate on all produced domains | Six domains only | PRD s11.1 lists TS and SUPP datasets |
| D2 | 2026-10-14 | pharmaskills mcp install --client <claude-code,codex,cursor,gemini-cli,opencode> |
Leave undefined | PRD s15 row is truncated |
| D3 | 2026-10-14 | Author structure YAML for ib, icf, pbrer, dsur, us-pi, smpc in E3.S3 | Only E3, M11, M4 | s12 lists them as check-structure standards |
| D4 | 2026-10-14 | pubmed build-query is an alias of connectors pubmed build-query |
One spelling only | s9.1 and s12 use both spellings |
| D5 | 2026-10-14 | Add docs detect-pii to the docs group |
Separate group | s13 requires it, s12 omitted it |
| D6 | 2026-10-14 | E4 delivers 23 Tier 1 skills; sdtm-mapper is the 24th from E2 |
Rebuild in E4 | Built in M1 |
| D7 | 2026-10-14 | adam build and adam test ship with adam-spec (E4.S3) |
Earlier | Depends on SDTM outputs |
| D8 | 2026-10-14 | CT is fetched at first run; fixtures include CT only if licence allows | Bundle CT | Licence unknown |
| D9 | 2026-10-14 | Reference eval model chosen on day 1 and recorded in pharmaskills.toml under [eval] |
Fixed vendor | PRD s22 |
| D10 | 2026-10-14 | Skills that miss their gate move to v1.1, logged | Ship broken | PRD s21 |
| D11 | 2026-10-14 | Generator also emits synthetic SAP and TLFs for downstream skills | Hand-written fixtures | Needed by csr-e3, tlf-shells, adam-spec |
| D12 | 2026-10-14 | cdisc-rules-engine is a dependency only on Python 3.12 (python_version == '3.12'); other versions use an external CORE executable (config) or the native conformance engine, and every report states which engine ran |
Pin Python 3.12 only; vendor CORE | The package only supports 3.12; PRD requires 3.11 to 3.13 |
| D13 | 2026-10-14 | Nested git repository inside oss/pharmaskills with main, dev and one feature branch per epic |
Use the parent repo | Parent repo is unrelated and noisy; AGENTS.md PR target is dev |
| D14 | 2026-10-14 | Copyright holder text: "The PharmaSkills Authors (owner: @vikas)" | Personal legal name | Legal name not supplied; owner may replace |
| D15 | 2026-10-14 | ich-m11.yaml headings are authored from the public template and must be re-verified against the current M11 revision before v1.0 (resolved by D54) |
Wait for verification | Cannot fetch the template in this environment |
| D16 | 2026-10-14 | Eval replay: deterministic mode replays committed examples/<stage>/<id>/out/ against the checks; model mode runs claude -p |
Model calls on every PR | PRD s14 requires no model calls on PRs |
| D17 | 2026-10-14 | pyinstaller and pyinstaller-hooks-contrib (GPLv2 with bootloader exception, pulled in by cdisc-rules-engine for its own binary builds) are exempted in the licence guard; tests assert they are never imported |
Drop CORE; forbid them | They are build tools that PharmaSkills never imports or redistributes; CORE is a hard PRD requirement |
| D18 | 2026-10-14 | CORE needs a rule cache and rule files that the PyPI library does not bundle. pharmaskills sdtm validate uses CORE when its rules are available (library on 3.12 or configured executable) and otherwise the native conformance engine; the report always states the engine and version |
Fail when CORE is absent | Honesty over silent substitution (PRD priority 1) |
| D19 | 2026-10-14 | standards/data/cdisc/sdtmig-3.4.yaml is authored for this project (names, labels, types, core status) for DM, AE, CM, VS, LB, EX, TS, SUPPQUAL; it is replaceable by CDISC Library content when a key is available |
Fetch only | No CDISC Library key or CORE cache in the build environment; names and labels are facts of the public standard |
| D20 | 2026-10-14 | CT is fetched from NCI EVS (SDTM Terminology.txt); the cache version label is the HTTP Last-Modified date unless --version is given; tests use a small subset of the real file |
Bundle full CT | PRD s11.5; licence caution |
| D21 | 2026-10-14 | RACE, ETHNIC and COUNTRY are not codelists in the current SDTM CT file, so mappings for them are plain value maps without CT validation | Invent codelists | Verified against the real CT file on 2026-10-14 |
| D22 | 2026-10-14 | Define-XML uses def:Origin Type "Collected" (not "CRF"), SUPP dataset ItemDef OIDs are IT.SUPPxx.<VAR>, one CodeList per NCI codelist code |
CRF origin value | "CRF" is not a valid Define-XML 2.1 origin type |
| D23 | 2026-10-14 | The official Define-XML 2.1 XSD is not vendored (redistribution terms unconfirmed); structural validation is built in, XSD optional via --xsd |
Vendor the XSD | Licence unconfirmed; PRD s11.5 caution |
| D24 | 2026-10-14 | Variables in a spec may be listed in any order; the engine orders them by dependency. Raw columns win for data sources, derived variables win for dtc/by/sort/test/unit/result, @NAME and v_NAME are explicit |
Author-ordered only | Removes a common source of spec errors for people and models |
| D25 | 2026-10-14 | Uninterpretable dates are left blank with a warning (B003), partial dates are kept partial | Fail the build | Honesty over silent guessing; queries go to data management |
| D26 | 2026-10-14 | Review queue treats concat as non-derivation for the Required rule (low confidence still queues it) |
Treat as derivation | Subagent finding, matches PRD s11.3 step 5 wording |
| D27 | 2026-10-14 | Publish to PyPI (source of truth) and to npm as a zero-dependency launcher plus skills bundle that executes the pinned PyPI package through uvx, pipx or Python; no reimplementation in JavaScript, no postinstall scripts |
JS port; bundle Python with pyodide or wasm; npm only | Determinism and one tested implementation; RDKit, polars and CORE cannot run in a JS or wasm bundle reasonably |
| D28 | 2026-10-14 | skills/ is also shipped inside the wheel and installed by pharmaskills skills install --agent <name> |
npm-only skill install | Works for users without Node |
| D29 | 2026-10-14 | mcp>=2.0 is required (SDK 2.x API); typer 0.27 vendors click, so command introspection uses duck typing |
mcp 1.x | Installed SDK and tests |
| D30 | 2026-10-14 | pharmaskills pubmed build-query is a top-level alias of connectors pubmed build-query |
One spelling | D4 |
| D31 | 2026-10-14 | safety build-e2b writes the XML and exits 2 when minimum criteria are unmet, so the draft is inspectable but the exit code signals invalidity |
Refuse to write | Review workflow |
| D32 | 2026-10-14 | The chem hazard screen refuses chemical-weapon-agent scaffolds (no descriptors printed) and only warns on nitrogen-mustard oncology drugs | Refuse all mustards | Legitimate oncology drugs |
| D33 | 2026-10-14 | scipy (BSD-3-Clause) added as a runtime dependency for noncentral t and regression quantiles |
Pure-Python approximations | Accuracy and licence |
| D34 | 2026-10-14 | Official ICH E2B(R3) XSD and Define-XML XSD are not vendored; both validators are structural with optional --xsd |
Vendor | Redistribution terms unconfirmed |
| D35 | 2026-10-14 | pk-nca uses stage preclinical although the PRD says "preclinical and clinical"; lint allows one stage value |
Add a combined stage | Registry simplicity |
| D36 | 2026-10-14 | Heading matching is number first, then exact title, then title suffix, and each heading satisfies at most one section | Suffix match only | Prevented false out-of-order findings (us-pi, E3, M11) |
| D37 | 2026-10-14 | docs build converts Markdown to DOCX and never overwrites the source Markdown |
Always write the bannered copy | Source files are the user's |
| D38 | 2026-10-14 | The ClinicalTrials.gov connector exposes site_count (None when unknown), countries and eligibility |
Raw API only | Needed by trials feasibility |
| D39 | 2026-10-14 | Refusal samples (refusal_*.md) are chat replies and are exempt from the banner rule; generated documents are not |
Require the banner everywhere | They are not artefacts handed to regulators |
| D40 | 2026-10-14 | tlf-shells stage is clinical-data and sap-writer stage is clinical |
Same stage | PRD s5 stage column |
| D41 | 2026-10-14 | Official-host policy for fetching and citation checks lives only in docs/data/official_domains.yaml, exposed by docs official-host |
Per-script allow-lists | Single source |
| D42 | 2026-10-14 | Every command that writes a report also writes <report>.manifest.json (command, tool version, input hashes, report hash, verdict); sdtm run keeps its richer run_manifest.json |
Manifest only for sdtm | PRD s13 audit trail applies to every run |
| D43 | 2026-10-14 | The v1.0.0 tag is not pushed by the build: it triggers publishing to PyPI, npm and GHCR and needs owner-side registry setup | Tag and push | Outward-facing, irreversible publishing |
| D44 | 2026-10-14 | Safety suite results are recorded by bench safety from a real test run, never written by hand |
Hand-written result file | Only measured values may be published |
| D45 | 2026-10-16 | Positioning: "Skills, tested tools and live data for AI agents, across the drug development lifecycle." leads the README, docs site, social preview and repository About; "Pharma skills for AI agents" stays the package tagline (_meta.TAGLINE) and the start of every registry description. The launch kit and owner checklist are untracked (.gitignore, exclude_docs) and kept locally. Agent manifests for Codex, Cursor and Gemini CLI, CITATION.cff and AGENTS.md ship at the root, version-synced by tests |
Change the tagline everywhere; keep the launch kit public | The search phrase people type stays in names and descriptions while the hero describes the whole ecosystem, and the contrast with prompt-only skills is made once, in the README's "Why PharmaSkills" section; launch drafts published before launch read as unfinished and give the plan away |
| D46 | 2026-10-16 | The README presents PharmaSkills as an ecosystem (skills, deterministic engine, MCP server, connectors, checkers, evals, synthetic studies, examples, guardrails) with a generated ecosystem diagram in light and dark variants and nine component icons, and follows the openast structure (why, ecosystem, what you can do, quickstart, per-agent setup, proof, comparison, trust, contributing). It ships in eight languages; English is the source of truth and the numbers strip of every README is tested against the measured skill, command and tool counts | Hand-drawn diagram; English only | Counts in a picture drift unless generated; most agent users discover tools in their own language |
| D47 | 2026-10-16 | Provenance and attribution: copyright is held by "The PharmaSkills Authors" (_meta.COPYRIGHT, listed in AUTHORS), every shipped Python file carries an SPDX copyright and licence header, NOTICE names @aiagentpro as owner, and the README and SECURITY.md list the official channels. Apache-2.0 is kept; the name is protected by TRADEMARKS.md, not by the licence |
Switch to AGPL, BSL or FSL; a personal name as copyright holder | Apache section 4 makes forks keep NOTICE and headers, so attribution survives cloning; licence changes in comparable projects triggered forks; the holder can be changed in one place |
| D48 | 2026-10-17 | The README hero shows an animated terminal demo (docs/assets/demo-{light,dark}.svg) recorded by scripts/gen_demo.py from a real sdtm run and bench sdtm on synthetic data, followed by the measured headline; the badge row keeps PyPI, CI, licence, the SDTM result and status, and the counts live in the numbers strip. The demo is rerecorded with make demo, not on every make docs |
GIF or asciinema cast; a hand-typed transcript; regenerate in make docs |
An SVG renders on GitHub in light and dark with no external tools and stays searchable text; captured output keeps the only-measured-numbers rule; timings differ per run, so regenerating on every docs build would churn the file |
| D49 | 2026-10-17 | Positioning, superseding the hero line of D45: "The tested engine for AI agents in pharma." leads the README (and its seven translations), docs home, site description, social preview and repository About. The subline names the parts (skills, MCP server, live data connectors, checkers on one deterministic engine) and the entry point (raw EDC to validated SDTM). _meta.TAGLINE and registry descriptions keep "Pharma skills for AI agents" for search |
"Drug development skills for AI agents, with every output checked against the standard it claims"; "The open pharma stack for AI agents"; keep D45 | Leading with skills frames the project as one more skill pack, while what is hard to copy is the tested engine, the checkers and the rerunnable proof; "pharma" is the word buyers search and recognise, and "life sciences" would promise device and diagnostics coverage the project does not have |
| D50 | 2026-10-17 | The lifecycle map is an animated swimlane timeline (docs/assets/lifecycle-{light,dark}.svg, generated by scripts/gen_docs.py): nine program milestones from target to post-market across the top, one lane per stage, each skill a bar over the milestones it covers, and a marker that sweeps the timeline and lights each skill as the program reaches it; reduced motion shows the final frame. Every skill declares metadata.lifecycle: [start, end] from registry.MILESTONES, required and checked by skill lint (SK015). The single-theme lifecycle.svg is removed |
Keep the 3x3 stage grid; a static timeline; spans hard-coded in the generator | The grid read as nine sequential steps although safety, quality, CMC and regulatory work run alongside development; spans kept in each skill stay next to the skill they describe and are checked like the rest of its metadata |
| D51 | 2026-10-17 | The README demo (D48) becomes a lifecycle tour: six scenes (clinical data, discovery, preclinical, clinical, safety, CMC), each running real commands on synthetic inputs, with a stage strip in the title bar; SDTM stays the first scene and the one shown without animation. Omitted output lines become a visible ... N more lines marker, and a line too wide for the terminal fails the recording instead of being cut |
Keep the single SDTM scenario; one tall scrolling session; trim output silently | One scenario read as the whole product although the engine covers every stage; visible markers keep the only-measured-output rule while fitting a terminal |
| D52 | 2026-11-13 | The release workflow publishes PyPI (trusted publishing), the GHCR image and the GitHub Release on a v* tag; npm is published by the maintainer with scripts/publish.py npm after the PyPI release, and the npm job is removed from release.yml (tested). Supersedes the npm part of D43 |
Keep the npm job with an automation token; npm trusted publishing | The npm account uses a security key only, so the maintainer publishes by hand; a failing npm job would also have blocked the GitHub Release job |
| D53 | 2026-11-13 | Version 1.0.0 declares a stable interface (CLI, MCP tools, skill metadata, output formats) under Semantic Versioning, with the PyPI classifier "Development Status :: 4 - Beta" | "5 - Production/Stable"; stay on 0.x | The interface is stable, but every output is a draft for qualified review and several cited values still carry "verify" flags (docs/PROGRESS.md), so "Production/Stable" would overstate it |
| D54 | 2026-11-13 | Resolves D15: ich-m11.yaml follows the level-1 and level-2 headings of the ICH M11 Step 4 template (19 November 2025), checked against the published PDF. All sections are required because the template forbids deleting level-1 and level-2 headings ("Not applicable" instead). Sponsor appendices such as comparable trials go after 12.3. protocol check-estimands ignores headings that name analyses, so 10.4 is not read as an endpoint |
Keep the draft layout; mark new sections optional | The draft layout put statistics in 9 and adverse events in 8.3, so a protocol written to the final template failed the check; optional sections would hide gaps the template requires to be stated |
| D55 | 2026-11-13 | Dependency updates land as uv lock --upgrade-package changes; Dependabot pull requests that raise lower bounds in pyproject.toml are closed |
Merge Dependabot PRs as opened | Raising a floor (for example pandas>=3.1.0) forces users to upgrade with no code need; the lock file already pins what CI tests |
| D56 | 2026-11-13 | Keep the name PharmaSkills for 1.0.0 and beyond, and hold it on every channel: PyPI (owned), npm (pharmaskills launcher published by the maintainer after the 1.0.0 PyPI release, D52), the GitHub repository and the official channels in the README. The README opening states what is distinctive (deterministic engine, MCP server, SDTM to E2B(R3)) so the project is not confused with other projects of the same name |
Rename to PharmaLayer before going public (free on PyPI, npm and GitHub on 2026-11-13); DrugDevKit; a coined, more registrable name | "Skills" is the term agent users search for, and the name is held on PyPI and GitHub with npm still free. Risks accepted: at least two unrelated GitHub projects use the name (one targets PharmaSUG 2027 with SAS ADaM agent skills), so search results are shared, and a trademark on a descriptive "pharma" plus common-word name is unlikely to register; channel ownership is the protection instead. A rename after 1.0.0 is not planned |
| D57 | 2026-11-19 | Cap typer<0.29 for 1.0.0 and add an MCP tool listing to the clean-install release check |
Support Typer 0.29 now; leave the floor open | Typer 0.29 (2026-11-09) removed the click param.type that mcp_server reads, so a fresh install of any released version crashed mcp serve while the CLI and every existing check passed. The cap is the smallest change for the release; supporting the new Typer internals is follow-up work with its own tests |
| D58 | 2026-11-19 | Support Python 3.14 (requires-python <3.15, doctor, npm launcher, CI matrix) |
Keep 3.11 to 3.13 | uv ignores the upper bound of requires-python, so uvx pharmaskills setup on a machine whose default is 3.14 (current macOS Homebrew) installed onto 3.14 and then reported its own doctor check as FAIL. The full suite passes on 3.14 apart from that check; CORE stays 3.12-only (D12) |
| D59 | 2026-11-19 | The PyPI description is the README with repository-relative images and links rewritten to absolute GitHub URLs pinned to the release tag, by a hatch metadata hook (scripts/hatch_metadata.py, scripts/pypi_readme.py); the release check fails on any relative reference left |
Write the README with absolute URLs; a separate PyPI README; the hatch-fancy-pypi-readme plugin | PyPI renders the README away from the repository, so the logo, demo, diagrams and 37 links were broken. Relative paths keep the GitHub view and translations working; pinning to the tag keeps an old version's page showing that version; the hook needs no extra build dependency |