Callis roadmap
Status: accepted (owner review, 2026-11-03; incremental first-release direction, 2026-11-06). This is the index of the tasks that build Callis. Each task has its own file in
tasks/with goal, scope, design notes and acceptance criteria. The big picture is in architecture.md; the reasons behind decisions are inadr/. Task IDs are four-digit and stable (T0000,T0001, …), like the ADR numbers. The file name starts with the ID (T0000-scaffold.md). Refer to the IDs in branch names, PR titles and commit messages; the fixed width keeps searches unambiguous (T0001never matchesT0010).
How to use this roadmap
- One task = one PR. A worker reads its task file and the ADRs it links. If a task turns out too big, split it in the PR that starts it (for example
T0008a/T0008b) and update the task file and this index. - Changes to the plan start as follow-up issues and land in their own
docsPRs (Findings during a task). New tasks take the next free ID; IDs are never reused. - This file is the source of truth for task titles, phases, waves, sizes and dependencies. The overview table is the master; the graph, the waves table and the task file headers must match it (
pnpm check:roadmap). The roadmap sync copies it to the task issues and the project board. - Workflow, PR titles and the definition of done are in CONTRIBUTING.md; agents also follow AGENTS.md.
- Conformance groups listed for a task are the groups from the HL7 test suites (
tests-fhir-r4.xmlandtests-fhir-r5.xml) that the task should turn green. A group that exists in only one suite says so. The runner and converted fixtures are in place (T0022, T0023), so every PR shows the conformance delta, and the baseline may only go up. There is no R6 suite (FHIR versions). - FHIR versions: a task whose behaviour depends on the FHIR model covers R4, R5 and R6 as described in FHIR versions.
- Sizes are rough, for one worker: S ≈ 1 day, M ≈ 2–4 days, L ≈ 1–2 weeks.
Overview
| ID | Task | Phase | Depends on | Wave | Size |
|---|---|---|---|---|---|
| T0000 | Repository scaffold | 0 | – | 0 | M |
| T0001 | Lexer | 1 | T0000 | 1 | M |
| T0002 | Parser and AST | 1 | T0001 | 2 | M |
| T0003 | Type system and collection foundations | 1 | T0000 | 1 | M |
| T0004 | Decimal | 1 | T0000 | 1 | M |
| T0005 | Date, DateTime and Time values | 1 | T0000 | 1 | L |
| T0006 | Quantity and minimal unit system | 1 | T0004 | 2 | M |
| T0007 | @callis/ucum package | 1 | T0006 | 3 | L |
| T0008 | Compiler and evaluator core | 1 | T0002, T0003, T0004, T0005, T0006 | 3 | L |
| T0009 | Equality, equivalence and ordering kernels | 1 | T0003, T0004, T0005, T0006 | 3 | M |
| T0010 | Operators | 1 | T0008, T0009 | 4 | L |
| T0011 | Functions: exists and count | 1 | T0008, T0009, T0012 | 5 | S |
| T0012 | Functions: where | 1 | T0008, T0009 | 4 | S |
| T0013 | Functions: subsetting and combining | 1 | T0008, T0009, T0044 | 5 | S |
| T0014 | Functions: conversion | 1 | T0008 | 4 | M |
| T0015 | Functions: string manipulation | 1 | T0008 | 4 | M |
| T0016 | Functions: math | 1 | T0008 | 4 | S |
| T0017 | Functions: tree navigation and utility | 1 | T0008 | 4 | S |
| T0018 | Model-aware evaluation | 1 | T0008 | 4 | L |
| T0019 | FHIR model generator and model packages | 1 | T0003 | 2 | L |
| T0020 | FHIR functions and variables | 1 | T0009, T0018 | 5 | M |
| T0021 | Host hooks and async evaluation | 1 | T0020 | 6 | M |
| T0022 | Conformance runner | 1 | T0000 | 1 | M |
| T0023 | FHIR XML fixture conversion | 1 | T0019, T0022 | 3 | M |
| T0024 | Static analysis and strict mode | 1 | T0018, T0019 | 5 | L |
| T0024a | Static analysis: type inference and diagnostics | 1 | T0018, T0019 | 5 | L |
| T0024b | Static analysis: strict mode | 1 | T0024a | 6 | M |
| T0025 | Minimal synchronous public API | 1 | T0007, T0008, T0009, T0010, T0023 | 5 | M |
| T0026 | STU: aggregates and variables | 2 | T0038 | 8 | M |
| T0027 | STU: collection additions | 2 | T0038 | 8 | M |
| T0028 | STU: Long type | 2 | T0038 | 8 | M |
| T0029 | STU: string and regex additions | 2 | T0038 | 8 | M |
| T0030 | STU: precision, boundaries and date/time additions | 2 | T0038 | 8 | L |
| T0031 | STU: reflection and instance selector | 2 | T0038 | 8 | M |
| T0032 | FHIR phase 2: structure functions and R5 service APIs | 2 | T0038 | 8 | L |
| T0033 | Benchmarks and performance | 3 | T0038 | 8 | L |
| T0034 | CLI (optional) | 3 | T0038 | 8 | M |
| T0035 | Documentation site, progress page and deployment | 3 | T0022 | 2 | L |
| T0036 | Simple FHIRPath playground | 3 | T0025, T0035 | 6 | M |
| T0037 | First 0.1 release readiness | 1 | T0025, T0036 | 7 | M |
| T0038 | Complete the phase-1 public API and documentation | 1 | T0007, T0010, T0011, T0012, T0013, T0014, T0015, T0016, T0017, T0021, T0023, T0024, T0024b, T0025, T0041, T0042 | 7 | L |
| T0038a | Public API: model-aware options | 1 | T0018, T0019, T0024b, T0025, T0039 | 7 | M |
| T0038b | Public API: async evaluation, hooks and limits | 1 | T0017, T0021, T0025, T0042 | 7 | M |
| T0038c | Public API: parser, AST input and compile cache | 1 | T0024b, T0025 | 7 | M |
| T0038d | Public API: typed output | 1 | T0018, T0025 | 7 | M |
| T0038e | Conformance runner on the public API | 1 | T0038a, T0038b, T0038c, T0038d | 8 | S |
| T0038f | Phase-1 documentation and examples | 1 | T0038a, T0038b, T0038c, T0038d | 8 | M |
| T0039 | Pinned FHIR R6 model provider | 1 | T0019 | 3 | M |
| T0040 | R6 package and compatibility validation | 1 | T0039, T0025 | 6 | M |
| T0041 | Functions: remaining existence | 1 | T0011, T0013 | 6 | S |
| T0042 | Functions: projection and repeat | 1 | T0012 | 5 | M |
| T0043 | Shared playground example library | 3 | T0036, T0011 | 7 | M |
| T0044 | Functions: first and single | 1 | T0008, T0009 | 4 | S |
| T0045 | Public custom-function contract | 3 | T0026, T0027, T0028, T0029, T0030, T0031, T0032, T0038 | 9 | M |
Dependency graph
flowchart TDsubgraph P0["Phase 0: foundation"]T0000["T0000 Scaffold"]endsubgraph P1["Phase 1: N1 normative + FHIR"]T0001["T0001 Lexer"]T0002["T0002 Parser + AST"]T0003["T0003 Types + collections"]T0004["T0004 Decimal"]T0005["T0005 Date/time"]T0006["T0006 Quantity"]T0007["T0007 @callis/ucum"]T0008["T0008 Compiler + evaluator"]T0009["T0009 Equality kernels"]T0010["T0010 Operators"]T0011["T0011 exists + count"]T0012["T0012 where"]T0013["T0013 fn: subsetting + combining completion"]T0044["T0044 first + single"]T0014["T0014 fn: conversion"]T0015["T0015 fn: string"]T0016["T0016 fn: math"]T0017["T0017 fn: tree + utility"]T0018["T0018 Model-aware evaluation"]T0019["T0019 FHIR model generator"]T0020["T0020 FHIR functions + variables"]T0021["T0021 Hooks + async"]T0022["T0022 Conformance runner"]T0023["T0023 XML fixture conversion"]T0024["T0024 Static analysis"]T0024a["T0024a Type inference + diagnostics"]T0024b["T0024b Strict mode"]T0025["T0025 Minimal sync API"]T0037["T0037 First 0.1 readiness"]T0038["T0038 Complete phase-1 API + docs"]T0038a["T0038a Public model options"]T0038b["T0038b Public async + hooks + limits"]T0038c["T0038c Public parser + cache"]T0038d["T0038d Public typed output"]T0038e["T0038e Conformance on public API"]T0038f["T0038f Phase-1 docs + examples"]T0039["T0039 Pinned R6 provider"]T0040["T0040 R6 package validation"]T0041["T0041 Remaining existence"]T0042["T0042 Projection + repeat"]endsubgraph P2["Phase 2: STU"]T0026["T0026 Aggregates + variables"]T0027["T0027 Collection additions"]T0028["T0028 Long"]T0029["T0029 String + regex additions"]T0030["T0030 Precision + date/time additions"]T0031["T0031 Reflection + instance selector"]T0032["T0032 FHIR phase 2"]endsubgraph P3["Phase 3: performance + tooling"]T0033["T0033 Benchmarks + performance"]T0034["T0034 CLI"]T0035["T0035 Docs site + progress page"]T0036["T0036 Playground"]T0043["T0043 Example library"]T0045["T0045 Public custom-function contract"]endT0000 --> T0001 & T0003 & T0004 & T0005 & T0022T0001 --> T0002T0004 --> T0006T0006 --> T0007T0003 --> T0019T0019 --> T0039T0039 & T0025 --> T0040T0002 & T0003 & T0004 & T0005 & T0006 --> T0008T0003 & T0004 & T0005 & T0006 --> T0009T0008 & T0009 --> T0010 & T0011 & T0012 & T0013 & T0044T0044 --> T0013T0012 --> T0011 & T0042T0011 & T0013 --> T0041T0008 --> T0014 & T0015 & T0016 & T0017 & T0018T0009 & T0018 --> T0020T0020 --> T0021T0019 & T0022 --> T0023T0022 --> T0035T0018 & T0019 --> T0024 & T0024aT0024a --> T0024bT0007 & T0008 & T0009 & T0010 & T0023 --> T0025T0025 & T0035 --> T0036T0036 & T0011 --> T0043T0025 & T0036 --> T0037T0007 & T0010 & T0011 & T0012 & T0013 & T0014 & T0015 & T0016 & T0017 & T0021 & T0023 & T0024 & T0024b & T0025 & T0041 & T0042 --> T0038T0018 & T0019 & T0024b & T0025 & T0039 --> T0038aT0017 & T0021 & T0025 & T0042 --> T0038bT0024b & T0025 --> T0038cT0018 & T0025 --> T0038dT0038a & T0038b & T0038c & T0038d --> T0038e & T0038fT0038 --> T0026 & T0027 & T0028 & T0029 & T0030 & T0031 & T0032 & T0033 & T0034T0026 & T0027 & T0028 & T0029 & T0030 & T0031 & T0032 & T0038 --> T0045
Waves (suggested order)
Tasks in the same wave can be worked on in parallel. A task can start as soon as its own dependencies are merged; it does not have to wait for its whole wave.
| Wave | Tasks | Parallel workers | Notes |
|---|---|---|---|
| 0 | T0000 | 1 | Everything else waits for the scaffold. |
| 1 | T0001, T0003, T0004, T0005, T0022 | 5 | Independent leaf modules, plus fixture vendoring. |
| 2 | T0002, T0006, T0019, T0035 | 4 | T0035 is tooling and can start as soon as the conformance runner is merged. |
| 3 | T0007, T0008, T0009, T0023, T0039 | 5 | T0008 is on the engine path; T0039 supplies R6 required by the selected first release. |
| 4 | T0010, T0012, T0014, T0015, T0016, T0017, T0018, T0044 | up to 8 | Function groups only add files in src/functions/, so they rarely conflict. |
| 5 | T0011, T0013, T0020, T0024, T0024a, T0025, T0042 | 6 | Minimal public API can land while the rest of phase 1 continues. T0024 was split into T0024a and T0024b on 2026-11-12 (Pull requests); T0024 is complete when both have merged. |
| 6 | T0021, T0024b, T0036, T0040, T0041 | 5 | T0040 verifies the five-package first release; it is independent of hooks/async work. T0024b follows T0024a. |
| 7 | T0037, T0038, T0038a, T0038b, T0038c, T0038d, T0043 | 6 | First-release readiness and full phase-1 API completion are independent milestones. T0038 was split on 2026-11-12 into T0038a–T0038f (Pull requests); T0038 is complete when all six have merged. |
| 8 | T0026–T0034, T0038e, T0038f | up to 11 | STU features, FHIR phase 2, performance and CLI, all independent. They depend on all of T0038, so they start once T0038e and T0038f have merged too. |
| 9 | T0045 | 1 | The public custom-function contract waits until phase 2 has settled the function contract (owner decision, 2026-11-21). |
Incremental releases
The first 0.1 release does not wait for full phase 1. The original engine/API/playground preparation is complete through T0037, on top of the original wave-3 engine tasks (including T0008 and T0023, with #110 fixing the UCUM conformance adapter). The owner's R6 inclusion decision adds T0039 and T0040 as requirements for the selected five-package release. Completed task history, including the T0035 site, is not reopened.
Published so far (GitHub Releases): the five-package 0.1.0 (core, UCUM, R4, R5, R6) from version PR #93 at b92db53, on 2026-11-06 UTC (RELEASING); then @callis/core 0.2.0 with where, exists and count, and 0.1.1 of the four companions, from #138 at b587e09, on 2026-11-07. The release trackers #115 and #131 record the owner's post-publication verification and close after it.
First-release prerequisites: the completed engine/API/playground path (original wave-3 engine tasks → T0010 → T0025 → T0036 → T0037, with T0035 also required by the playground), plus the R6 provider/integration path (T0019 → T0039 → T0040, with T0040 also depending on T0025). Both feed the selected five-package inventory; the regenerated exact version-PR head then requires its own checks, review and owner release decision. This extends release prerequisites without retroactively changing completed task dependencies. Neither the API nor the playground depends on an npm publish. T0036 records the accepted Lectio Docs/Ratio/editor research: retain the site, pin the Ratio JSON editor and use a labelled expression field.
Later 0.x releases: function groups, model-aware evaluation, FHIR functions, hooks/async and static analysis land incrementally with updated support, limitations, examples and per-phase conformance. The engine side of model-aware evaluation is merged (T0018, with lossless JSON input); its public model and lenient options arrive with T0038. T0038 preserves the original T0025 completion work, including typed output, public parsing (after #107), analysis, async APIs, cache and moving full conformance onto the public API. The existing phase-1 specification target is unchanged; a phase is a scope grouping, not a release number.
Every release documents exactly what is supported and what remains unimplemented, with the R4/R5 conformance reports and exceptions. For R6 it states the engine-tested coverage and the known gaps instead of a pass count (FHIR versions). Package inclusion is explicit in the release inventory (T0037 preparation, extended by T0039/T0040 for R6), since the existing workflow may version several packages together. Publishing remains an owner action under RELEASING.md. No version number beyond the first 0.1 is promised for a particular feature.
1.0 is open: scope, support commitments, conformance gates, API freeze and release criteria require a later owner decision. Neither the first 0.1 nor completing phase 1 or phase 2 automatically constitutes 1.0.
Conformance is measurable since T0008, T0022 and T0023 merged (the end of the original engine wave 3). From wave 4 on, every PR reports its conformance delta.
Phase 2 (T0026–T0032) implements the STU parts of N1 and the additions in FHIRPath 3.0.0. These tasks are independent of each other and can all run in parallel after T0038 completes the phase-1 API. Each one must make its matching conformance tests (those classified STU) pass, and update the scope table in architecture.md.
Custom functions are not part of any of these. The functions option stays internal, and the public API rejects it, until T0045 designs a small, stable public contract once phase 2 has settled the function contract (owner decision, 2026-11-21, #222). Hosts extend the engine through the T0021 hooks until then. No release is selected for T0045.
Approved 0.2 scope
The owner approved only where, exists and count for 0.2.0 on 2026-11-07 (release tracker #131), using the existing synchronous model-less API. T0012 implements where and its shared predicate helper first; T0011 then implements exists/count using that helper, in a separate task PR. Documentation, synthetic playground examples, stable errors, public consumer checks and the conformance ratchet are part of those tasks. No model-aware evaluation, select/repeat, lossless JSON, public async or new API options are included.
T0012 and T0011 merged, and @callis/core 0.2.0 was published with them on 2026-11-07. The remaining original T0011/T0012 scope and acceptance are preserved in T0041/T0042, with explicit dependencies into T0038's later full phase-1 completion. Those completion tasks have no selected release. Waves reflect these real helper/completion dependencies, not release numbers. GitHub milestone assignments are the release-scope authority under CONTRIBUTING; the target does not authorize merge or publication and sets no due date or 1.0 criteria.
FHIR versions
Callis supports FHIR R4, R5 and R6 (owner direction, 2026-11-08). R6 is best effort: its provider is pinned to a draft, and there is no official R6 FHIRPath conformance suite.
| Version | Provider | Source | Conformance evidence |
|---|---|---|---|
| R4 | r4 from @callis/fhir-r4 | FHIR 4.0.1 | HL7 suite tests-fhir-r4.xml, report |
| R5 | r5 from @callis/fhir-r5 | FHIR 5.0.0 | HL7 suite tests-fhir-r5.xml, report |
| R6 | r6 from @callis/fhir-r6 | the September 2026 draft 6.0.0-snapshot1, pinned by T0039 | No suite. Engine tests run model-aware cases against the real provider (packages/core/test/generated-models.test.ts). |
The engine is provider-agnostic: version differences come from the provider's data, not from version-specific cases in the engine (T0018). Every task whose behaviour depends on the FHIR model (navigation, FHIR functions and variables, analysis, public model options, packaging, examples, benchmarks):
- Runs its model-dependent cases against the real
r4,r5andr6providers, asgenerated-models.test.tsdoes, including at least one case where the versions differ when the task has one (such asObservation.value[x],Observation.triggeredBy, or the R6-onlyDeviceAlert). - Measures conformance with the R4 and R5 suites only. It never invents an R6 pass count, registers an R6 suite exception or presents the R4/R5 reports as R6 evidence.
- Says where the R6 draft differs from R5 or is not final, with a link to the pinned R6 FHIRPath page, and lists the known gaps in its task file and user docs. It never claims final-R6 stability.
- Treats a newer R6 snapshot or the final R6 as a reviewed provider update with a new pin, checksum and tests (T0039), never as a silent change.
Known R6 differences. Comparing the pinned R6 FHIRPath page with R5's, together with the page's own change notes (which list changes since 6.0.0-ballot4), shows these differences. The owner decided how to handle them on 2026-11-08:
| R6 draft change | Decision | Affects |
|---|---|---|
The Type Factory (%factory), General Service API (%server) and Terminology Service API (%terminologies) moved out of the core specification into HL7's API incubator IG, which has only a CI build. | T0032 covers the R4/R5 APIs. The R6 ones wait until the IG is published; until then they are a known R6 gap. | T0032 |
htmlChecks() also accepts a string, parsed as the content of a div. | Accept strings for every provider (R4, R5 and R6), as the pinned R5 suite already expects (htmlTest02/03); no suite exceptions (spec notes). | T0021 |
A new function, weight(), and the %profile variable for profile invariants. | weight() is on the backlog until final R6 (#151). Hosts can pass %profile as a variable. | T0020 |
comparable() is no longer a FHIR addition; it is in FHIRPath 3.0.0. | Already planned with the 3.0.0 additions. | T0030 |
The type table maps FHIR.date to System.Date. | None needed: Callis already does this (spec notes). | – |
Delivery. T0039 added the R6 provider from the checksum-pinned 6.0.0-snapshot1 source, and T0040 the installed-package and release checks; both shipped in the five-package 0.1.0. The engine tests of T0018 run model-aware evaluation against all three providers. The public model option is T0038a, part of T0038. R6 metadata is not a FHIR validator, and none of this is R6 conformance. These tasks extend version coverage without reopening T0019 or changing the FHIRPath specification baseline.
Backlog (not scheduled)
- R4B model (R6 is delivered by T0039/T0040).
weight()from the R6 draft (#151): waits for final R6 (owner decision, 2026-11-08). It needs cross-resource lookups, so it will likely build on the T0021 hooks.- Parser error recovery and a language-server or editor integration.
- FHIR XML as an input format (a separate package that reuses the T0023 converter).
- A SQL-on-FHIR
ViewDefinitionrunner built on Callis. - A differential test harness against
fhirpath.jsand the HL7 Java engine. - An optional "compiled sync-only" build mode, if T0033 shows a significant gain.
- API stabilisation for 1.0: review the public API surface (the
@callis/coreexports,ModelProvider, the conformanceEvaluatorAdapter, the error codes) and decide what is frozen for 1.0. Until then, 0.x releases may break any of it (T0038).
Bounded first/single increment
The owner selected only first and single for the next implementation increment, without selecting a release version, milestone or due date. T0044 / #141 is a native child of the still-open T0013 / #25. T0044 merged in #143; T0013 stays open for its remaining functions. T0044 needs only the delivered evaluator/equality kernels; T0013 depends on its child for full completion, avoiding a parent/child dependency cycle. T0041 and T0038 keep their full-completion dependencies on T0013. Only first-dependent acceptance references use the smaller child.
Function progress assigns first/single only to T0044 and the other eight functions only to T0013, so each original function appears once. The additional task row represents bounded work, not an additional feature or completed parent. No retroactive migration of historical tasks, model-aware FHIR, other collection functions, public API expansion or conformance explorer is selected.