• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Recached

accordproject / template-engine
56%

Build:
DEFAULT BRANCH: main
Repo Added 11 Apr 2026 08:35PM UTC
Token l6JGF4FfmBiqro0pob0Nv2aZnowTZZeS5 regen
Build 72 Last
Files 28
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • Rishabh060105/strict-template-logic-validation
  • ap-publish-v3.0.1
  • chore/stale-maintainer-engagement-guard
  • dependabot/npm_and_yarn/follow-redirects-1.16.0
  • dependabot/npm_and_yarn/npm_and_yarn-053c9c4054
  • dependabot/npm_and_yarn/npm_and_yarn-47c4268404
  • dependabot/npm_and_yarn/npm_and_yarn-b3b4accef5
  • dependabot/npm_and_yarn/xmldom/xmldom-0.9.10
  • ds-fix-publish-node22
  • ds-markdown-transform-1.0.1
  • feat/decouple-compilation
  • feat/enforce-runtime-type-hierarchy
  • feat/us07-runtime-validation
  • fix/146-formula-missing-value
  • fix/147-draft-logic-helpers
  • fix/currentTime-argumentNames
  • fix/issue-145-ulist-direct-vars
  • fix/javascript-evaluator-bugs-clean
  • fix/optional-nested-test-guard
  • fix/publish-workflow-npm-token
  • fix/v4-api-updates
  • main
  • mdawoud27/65/fix-test-failures
  • salama968/i117/fix-clause-logic-bug-and-false-wrong-evaluation-as-true

22 Jul 2026 01:39PM UTC coverage: 55.698% (+1.3%) from 54.447%
29924877602

push

github

web-flow
feat: enforce runtime State/Response/Event hierarchy at compile time (#166)

* feat: enforce runtime State/Response/Event hierarchy at compile time

Derive RuntimeState/RuntimeRequest/RuntimeResponse/RuntimeEvent unions from
the template's Concerto model (concrete subclasses of the runtime base types)
and use them as the bounds/positions in the injected TemplateLogic
declarations. A "state" that is a plain concept (not an asset extending
State) now binds to `never` and fails to compile (TS2344); likewise an
invalid response or emitted event fails in return position (TS2322).

Also emit generated model files under `generated/` so the logic's own
`./generated/<ns>` imports resolve in the twoslash sandbox - previously they
did not, so all model types were `any` and no type checking occurred.

compileLogic now surfaces the TS2344 hierarchy violation as a hard error
(scoped to the logic entry file) instead of silently ignoring diagnostics.

Known limitation: request is not enforceable via the input parameter
(TypeScript method parameters are bivariant); some templates still suppress
the errors with @ts-expect-error and should be updated separately.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: mttrbrts <code@rbrts.uk>

* feat: enforce request hierarchy at model level; drop unused SLC base64

Two follow-ups to the runtime hierarchy work:

1. Request enforcement (was unenforceable at compile time). The runtime
   Request hierarchy cannot be checked by the type system: `request` appears
   only as the `trigger` parameter, and TypeScript method parameters are
   bivariant, so the model-derived `never` bound accepts any type (State,
   Response and Event are caught because they sit in constraint / return
   positions). compileLogic now asserts the invariant against the model: when
   the logic defines a `trigger`, the model must declare a concrete subclass of
   org.accordproject.runtime@0.2.0.Request.

   Note the base Request/Respons... (continued)

430 of 895 branches covered (48.04%)

Branch coverage included in aggregate %.

49 of 51 new or added lines in 3 files covered. (96.08%)

25 existing lines in 2 files now uncovered.

787 of 1290 relevant lines covered (61.01%)

2654.36 hits per line

Relevant lines Covered
Build:
Build:
1290 RELEVANT LINES 787 COVERED LINES
2654.36 HITS PER LINE
Source Files on main
  • Tree
  • List 28
  • Changed 23
  • Source Changed 4
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29924877602 main feat: enforce runtime State/Response/Event hierarchy at compile time (#166) * feat: enforce runtime State/Response/Event hierarchy at compile time Derive RuntimeState/RuntimeRequest/RuntimeResponse/RuntimeEvent unions from the template's Concert... push 22 Jul 2026 01:42PM UTC web-flow github
55.7
29819535373 main fix: add strict TemplateLogic compile validation (#165) * fix: add strict TemplateLogic compile validation Signed-off-by: Rishabh Jain <rishabhj2005@email.com> * fix: lazy load strict validation Signed-off-by: Rishabh Jain <rishabhj2005@email.... push 21 Jul 2026 09:47AM UTC web-flow github
54.45
29701664167 Rishabh060105/strict-template-logic-validation Merge a7db557bb into 4957b6994 Pull #165 21 Jul 2026 09:44AM UTC web-flow github
54.45
29432082590 feat/enforce-runtime-type-hierarchy Merge f7881f100 into 4957b6994 Pull #166 15 Jul 2026 04:23PM UTC web-flow github
54.98
29430529568 feat/enforce-runtime-type-hierarchy Merge 254990c63 into 4957b6994 Pull #166 15 Jul 2026 04:01PM UTC web-flow github
54.98
29430269978 feat/enforce-runtime-type-hierarchy Merge 0a431d3a1 into 4957b6994 Pull #166 15 Jul 2026 03:58PM UTC web-flow github
54.98
29228767986 feat/enforce-runtime-type-hierarchy Merge e9d280c9a into 4957b6994 Pull #166 13 Jul 2026 06:23AM UTC web-flow github
54.78
29206720423 feat/enforce-runtime-type-hierarchy Merge f601d553f into 4957b6994 Pull #166 12 Jul 2026 07:57PM UTC web-flow github
54.84
29205356352 feat/enforce-runtime-type-hierarchy Merge eed77d6e0 into 4957b6994 Pull #166 12 Jul 2026 07:14PM UTC web-flow github
54.56
29205028056 feat/enforce-runtime-type-hierarchy Merge 03b2ba7a9 into 4957b6994 Pull #166 12 Jul 2026 07:04PM UTC web-flow github
54.52
See All Builds (66)

Badge your Repo: template-engine

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc