@bpmsoftwaresolutions/appture
v1.0.0
Published
Layout intent validation and materialization pipeline. DISR + CST -> validated HTML with IEM scoring.
Maintainers
Readme
Appture
Appture is the production DISR/CST validation and materialization pipeline.
Core Concepts (DISR and CST)
DISR (Diagram Instruction Stream)
- The model of meaning/intent.
- Serves as the canonical reference model.
- Acts as anti-drift source-of-truth for what the system is supposed to express.
CST (Composable Semantic Template)
- The execution plan for how DISR truth is revealed.
- Defines how intent is materialized into concrete renderable outputs.
- Targets can include HTML, CSS, SVG, JavaScript, ReactJS, Node, XAML, workflows, and other renderable/runtime surfaces.
Core closed loop:
DISR + CST -> HTML
Validation checks:
grammar-contractdisr-to-cstcst-to-outputdisr-to-outputintent-expression
Architecture (Current)
Appture is organized as hard-cut stages:
- Fetch
- load DISR text
- load CST JSON
- load external grammar profile
- Decode
- merge grammar/profile + CST decode contract
- enforce DISR boundary rules
- parse DISR intent
- validate grammar contract
- Execute
- validate DISR-to-CST topology
- materialize HTML from CST + intent primitives
- compute intent-expression scoring
- Write-back
- validate CST-to-output and DISR-to-output
- write HTML artifact
- write evidence artifact
The pipeline entrypoint is src/pipeline.ts.
Source Layout
src/types.ts— shared contracts and model typessrc/core/html-inspector.tsinterpolator.tstopology-indexer.ts
src/fetch/disr-sampler.tscst-sampler.tsgrammar-sampler.ts
src/decode/boundary-guard.tsdisr-decoder.tsgrammar-resolver.tsgrammar-contract-validator.ts
src/execute/topology-validator.tsmaterializer.tsiem-scorer.ts
src/write-back/output-validator.tsoutput-writer.ts
src/pipeline.ts— pipeline orchestratorsrc/index.ts— public export surfacesrc/cli.ts— CLI runner
Demos and Artifacts
demos/demo-manifest.jsondefines demo order and metadata.demos/<demo>/contains source files and generated outputs:*-output.html*-evidence.txt
demos/.baseline/stores baseline snapshots and hash manifests for no-regression verification.
CLI Usage
Run from the repository root:
npm run buildnpm run appture -- allnpm run appture -- <demo-name>
Example demo names are in demos/demo-manifest.json.
Build Note (Grammar Assets)
Build now includes a grammar asset copy step so runtime profile loading works from dist/:
npm run buildruns TypeScript compilation and copiesgrammar/todist/grammar/.- Copy script:
scripts/copy-grammar-assets.js
Behavior Notes
- Decode behavior is data-driven via
renderingContract.decodeContractand optional external grammar profiles. - DISR boundary guardrails are enforced before parsing.
- Primitive rendering is template-map driven and checked for materialization coverage.
- Demo suite status follows current baseline truth; no-regression is validated using baseline evidence/HTML hashes.
