@cynodia/axiom 0.16.0-alpha.1 → 0.16.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,7 +33,7 @@ Shorter forms of the same routing: [`AGENTS.md`](AGENTS.md) and [`llms.txt`](llm
33
33
  at this package's root.
34
34
 
35
35
  **Status: experimental / alpha.** The API may change between alpha releases. The
36
- documentation in `docs/` describes this exact version, `0.16.0-alpha.1`.
36
+ documentation in `docs/` describes this exact version, `0.16.0-alpha.2`.
37
37
 
38
38
  ## Installation
39
39
 
@@ -47,10 +47,12 @@ Every release of this project is a pre-release and npm's `latest` tag points at
47
47
  plain command above installs the current version. **There is no `alpha` dist-tag** — the tag
48
48
  was removed once it stopped tracking releases, and `npm install @cynodia/axiom@alpha` now
49
49
  fails with a 404. Pin the exact version instead when one is needed:
50
- `npm install @cynodia/axiom@0.16.0-alpha.1`.
50
+ `npm install @cynodia/axiom@0.16.0-alpha.2`.
51
51
 
52
- These are ES modules compiled to ES2022; import them with `import`, not `require`. There is
53
- no published Axiom CLI. `@cynodia/axiom-server`'s SQLite persistence adapter additionally
52
+ These are ES modules compiled to ES2022; import them with `import`, not `require`.
53
+ `@cynodia/axiom-cli` (`npm install -g @cynodia/axiom-cli`) publishes the `axiom` executable
54
+ — `explain` / `analyze` / `diff` over `AgentAPI`, plus `inspect` / `validate` / `build` /
55
+ `serve` — see that package's README. `@cynodia/axiom-server`'s SQLite persistence adapter additionally
54
56
  needs a Node build that provides `node:sqlite` (Node 22 or newer); `isSqliteAvailable()`
55
57
  reports its absence rather than failing at import.
56
58
 
@@ -1,6 +1,6 @@
1
1
  # Actions and transactions
2
2
 
3
- Axiom 0.16.0-alpha.1. An action is behavior expressed as data, executed as a transaction.
3
+ Axiom 0.16.0-alpha.2. An action is behavior expressed as data, executed as a transaction.
4
4
 
5
5
  ```ts
6
6
  {
package/docs/AGENT_API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agent API
2
2
 
3
- Axiom 0.16.0-alpha.1. The machine-facing interface. Agents query semantics and apply
3
+ Axiom 0.16.0-alpha.2. The machine-facing interface. Agents query semantics and apply
4
4
  structural transformations; they never edit generated code.
5
5
 
6
6
  ```ts
@@ -31,6 +31,15 @@ agent.referencedBy(expression) // ids an expression references
31
31
  Edge kinds: `contains` `reads` `writes` `invokes` `renders` `binds` `depends-on`
32
32
  `derives-from` `constrains` `routes-to` `references`.
33
33
 
34
+ `getDependencies`/`getDependents` return **dependency edges resolved to nodes, not a
35
+ deduplicated node set**: if two distinct edges of the requested kinds connect the same pair
36
+ of nodes — an action that both reads and writes the same state, with no `kinds` filter
37
+ narrowing it to one — the target node appears once per edge (spec16pt2 §112, intentional:
38
+ provenance would otherwise be lost). De-duplicate by `id` where a unique node set is what
39
+ you actually want. `getTransitiveDependencies`/`Dependents` (spec16) are the exception —
40
+ they return a deduplicated id set by construction, since "reachable at all" is what a
41
+ transitive closure answers.
42
+
34
43
  ## Dependency queries
35
44
 
36
45
  ```ts
@@ -1,6 +1,6 @@
1
1
  # Agent reference
2
2
 
3
- Axiom 0.16.0-alpha.1. Compressed operational contract. Read this plus the `.d.ts`
3
+ Axiom 0.16.0-alpha.2. Compressed operational contract. Read this plus the `.d.ts`
4
4
  declarations before authoring or modifying an Axiom application.
5
5
 
6
6
  Formal guarantees: [`SEMANTIC_CONTRACT.md`](SEMANTIC_CONTRACT.md). Mistakes that compile:
@@ -663,9 +663,9 @@ await serveAxiomApplication({
663
663
  ```
664
664
 
665
665
  `GET /` is the page, `POST /axiom` the semantic endpoint. No route, controller, handler, SQL
666
- or client JavaScript is authored. **There is no published Axiom CLI.** The halves also run
667
- separately: `serveOverHttp({ server, port })` is the bare authority, and
668
- `createDirectTransport(server)` drives one in-process for tests.
666
+ or client JavaScript is authored. `@cynodia/axiom-cli`'s `axiom serve` runs this same path
667
+ ad hoc. The halves also run separately: `serveOverHttp({ server, port })` is the bare
668
+ authority, and `createDirectTransport(server)` drives one in-process for tests.
669
669
 
670
670
  A remote invocation returns `{ ok: false, pending: true }` and its outcome arrives later,
671
671
  through the same action-outcome lifecycle a local refusal uses — so a `diagnostic` node
@@ -949,12 +949,12 @@ Providers: `createMemoryRowStore` + `createMemoryMigrationStore` (deterministic
949
949
  `runMigrationConformanceFixture` over the `axiom.conformance.v5` fixtures in
950
950
  `conformance/migrations/`.
951
951
 
952
- There is **no published Axiom CLI**. Every schema/migration operation is a public library
953
- function — `inspectSchema`, `diffSchema`, `explainSchemaDiff`, `migrationImpact` (from
952
+ Every schema/migration operation is also a public library function —
953
+ `inspectSchema`, `diffSchema`, `explainSchemaDiff`, `migrationImpact` (from
954
954
  `@cynodia/axiom-agent-api`); `planMigration`, `explainMigration`, `executeMigration`,
955
- `getMigrationStatus` (from `@cynodia/axiom-server`). A host builds its own command around
956
- them. (The Axiom repository has a private, unpublished CLI over the same functions for
957
- maintainer use.)
955
+ `getMigrationStatus` (from `@cynodia/axiom-server`) — for a host that builds its own
956
+ command around them. `@cynodia/axiom-cli` publishes `axiom schema status` / `schema diff` /
957
+ `migrate plan` / `migrate` / `migrate status` over the same functions.
958
958
 
959
959
  Diagnostics: `SCHEMA_MIGRATION_REQUIRED` `SCHEMA_INCOMPATIBLE` `MIGRATION_IN_PROGRESS`
960
960
  `MIGRATION_STATE_CORRUPTED` `MIGRATION_PATH_NOT_FOUND` `MIGRATION_APPROVAL_REQUIRED`
@@ -1,6 +1,6 @@
1
1
  # Anti-patterns
2
2
 
3
- Axiom 0.16.0-alpha.1. Each of these compiles. Each is wrong. Each is followed by the correct
3
+ Axiom 0.16.0-alpha.2. Each of these compiles. Each is wrong. Each is followed by the correct
4
4
  alternative.
5
5
 
6
6
  ## 1. Field names as entity runtime keys
package/docs/AUTHORITY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Authority
2
2
 
3
- Axiom 0.16.0-alpha.1. How an application crosses the trust boundary.
3
+ Axiom 0.16.0-alpha.2. How an application crosses the trust boundary.
4
4
 
5
5
  Until 0.5.x an Axiom application executed locally. 0.6 adds an **authority**: a generic
6
6
  runtime that owns state, decides mutations and persists them. The same semantic graph
@@ -596,8 +596,8 @@ The two halves also run separately. `serveOverHttp({ server, port })` is the bar
596
596
  and `createAxiomServer({ ir, persistence, host })` is the authority with no transport at all —
597
597
  which is what `createDirectTransport` drives in tests.
598
598
 
599
- **There is no published Axiom CLI.** `packages/cli` is a private development tool of this
600
- repository and is not on npm; the API above is the supported way to run an application.
599
+ `@cynodia/axiom-cli` publishes an `axiom serve` command over this same API for ad hoc use;
600
+ the API above remains the supported way to run an application from your own Node process.
601
601
 
602
602
  ## Conformance
603
603
 
@@ -1,6 +1,6 @@
1
1
  # Authorization
2
2
 
3
- Axiom 0.16.0-alpha.1. The operational contract for **authorization completeness** — the 0.15
3
+ Axiom 0.16.0-alpha.2. The operational contract for **authorization completeness** — the 0.15
4
4
  milestone (spec15). Whether a principal may perform a semantic operation is part of the
5
5
  graph's executable meaning — not a runtime concern, not UI visibility, not something that
6
6
  varies by transport, provider, process, retry path or authority topology. `axiom.server.v9`
@@ -1,6 +1,6 @@
1
1
  # Constraints
2
2
 
3
- Axiom 0.16.0-alpha.1. Two constructs, answering different questions. They are not
3
+ Axiom 0.16.0-alpha.2. Two constructs, answering different questions. They are not
4
4
  interchangeable.
5
5
 
6
6
  | | Question | Sees |
@@ -1,6 +1,6 @@
1
1
  # Distributed authority
2
2
 
3
- *This document describes Axiom `0.16.0-alpha.1`.*
3
+ *This document describes Axiom `0.16.0-alpha.2`.*
4
4
 
5
5
  The authoritative runtime (`docs/AUTHORITY.md`) may run as **more than one process at the
6
6
  same time**, over one shared persistence provider, without any change to the
package/docs/EFFECTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Effects
2
2
 
3
- Axiom 0.16.0-alpha.1. External effects are not rollback-capable state mutations. This file
3
+ Axiom 0.16.0-alpha.2. External effects are not rollback-capable state mutations. This file
4
4
  is the delivery model; [`AUTHORITY.md`](AUTHORITY.md#external-effects) is the load-bearing
5
5
  statement of why, and [`INTEGRATIONS.md`](INTEGRATIONS.md) is the operation vocabulary this
6
6
  builds on.
package/docs/EVENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Events
2
2
 
3
- Axiom 0.16.0-alpha.1. An event is a typed fact — something that happened — never work
3
+ Axiom 0.16.0-alpha.2. An event is a typed fact — something that happened — never work
4
4
  itself. [`AUTHORITY.md`](AUTHORITY.md#external-events) is the load-bearing statement;
5
5
  this file is the vocabulary and the webhook delivery mechanism. A **subscription** is the
6
6
  other way an external fact becomes an `EventDef` payload — see
@@ -1,6 +1,6 @@
1
1
  # Expressions
2
2
 
3
- Axiom 0.16.0-alpha.1. An expression describes **what value is computed**. It is a tree of
3
+ Axiom 0.16.0-alpha.2. An expression describes **what value is computed**. It is a tree of
4
4
  plain data, never source text and never a callback. Evaluation is pure: an expression MUST
5
5
  NOT change state.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Graph model
2
2
 
3
- Axiom 0.16.0-alpha.1. The `ApplicationGraph` is the authoritative representation of an
3
+ Axiom 0.16.0-alpha.2. The `ApplicationGraph` is the authoritative representation of an
4
4
  application. Everything else — the IR, the page, the DOM — is derived from it and is never
5
5
  edited.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Integrations
2
2
 
3
- Axiom 0.16.0-alpha.1. How an application declares and calls an external system, without
3
+ Axiom 0.16.0-alpha.2. How an application declares and calls an external system, without
4
4
  embedding a transport, an SDK or a secret in the graph. The authority boundary this
5
5
  depends on is [`AUTHORITY.md`](AUTHORITY.md#external-systems); this file is the vocabulary.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Realtime — live canonical queries
2
2
 
3
- Axiom 0.16.0-alpha.1. The operational contract for **observing a `QueryDef` result over
3
+ Axiom 0.16.0-alpha.2. The operational contract for **observing a `QueryDef` result over
4
4
  time**: subscribe once, receive an initial coherent result, then receive canonical changes
5
5
  as authoritative committed state moves — through any compatible authority, across
6
6
  reconnects. `axiom.server.v7` (0.13 adds no IR vocabulary).
package/docs/LOCATIONS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Locations
2
2
 
3
- Axiom 0.16.0-alpha.1.
3
+ Axiom 0.16.0-alpha.2.
4
4
 
5
5
  ```text
6
6
  Expression = a value
@@ -1,6 +1,6 @@
1
1
  # Schema evolution & semantic migrations
2
2
 
3
- Axiom 0.16.0-alpha.1. The operational contract for evolving a deployed application's
3
+ Axiom 0.16.0-alpha.2. The operational contract for evolving a deployed application's
4
4
  semantic model and its persisted canonical data over time — adding a required field,
5
5
  splitting one field into two, removing an obsolete one, migrating millions of
6
6
  provider-backed rows — **without** an application-authored SQL migration, an ORM migration,
@@ -1,6 +1,6 @@
1
1
  # Presentation
2
2
 
3
- Axiom 0.16.0-alpha.1. Presentation is **semantic UX intent**, expressed as data on a UI
3
+ Axiom 0.16.0-alpha.2. Presentation is **semantic UX intent**, expressed as data on a UI
4
4
  node. It names roles, tokens and device classes. It never names a colour, a length, a media
5
5
  query or a CSS property.
6
6
 
package/docs/QUERIES.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Semantic data access & the query layer
2
2
 
3
- Axiom 0.16.0-alpha.1. The operational contract for demand-driven reads over authoritative
3
+ Axiom 0.16.0-alpha.2. The operational contract for demand-driven reads over authoritative
4
4
  data that is too large to materialize as a `StateDef` — 500,000 orders, 5,000,000 order
5
5
  lines, years of audit rows. `axiom.server.v6`.
6
6
 
package/docs/RUNTIME.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Runtime
2
2
 
3
- Axiom 0.16.0-alpha.1. The runtime executes an `ApplicationIR`. It is domain-independent: it
3
+ Axiom 0.16.0-alpha.2. The runtime executes an `ApplicationIR`. It is domain-independent: it
4
4
  contains no knowledge of any application.
5
5
 
6
6
  ## Constructing
@@ -1,6 +1,6 @@
1
1
  # Semantic contract
2
2
 
3
- Axiom 0.16.0-alpha.1. Runtime guarantees, stated formally. This file defines behavior; it
3
+ Axiom 0.16.0-alpha.2. Runtime guarantees, stated formally. This file defines behavior; it
4
4
  does not teach. Where this file and any specification in `../specs/` disagree, this file
5
5
  describes the implementation and is authoritative.
6
6
 
package/docs/STATE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # State
2
2
 
3
- Axiom 0.16.0-alpha.1. A `StateDef` is a named application value: stored, or computed from
3
+ Axiom 0.16.0-alpha.2. A `StateDef` is a named application value: stored, or computed from
4
4
  other state.
5
5
 
6
6
  ```ts
package/docs/STORAGE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Storage and blobs
2
2
 
3
- Axiom 0.16.0-alpha.1. How an application stores, references, serves and deletes binary data —
3
+ Axiom 0.16.0-alpha.2. How an application stores, references, serves and deletes binary data —
4
4
  an attachment, a document, a photograph, a diagnostic log — with no filesystem path, no
5
5
  upload route and no download route anywhere in it.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Subscriptions
2
2
 
3
- Axiom 0.16.0-alpha.1. How an application receives a stream of external events — an MQTT
3
+ Axiom 0.16.0-alpha.2. How an application receives a stream of external events — an MQTT
4
4
  topic, a WebSocket feed, a queue consumer, a filesystem watcher, a serial port — without a
5
5
  client, a socket or a callback anywhere in the graph.
6
6
 
package/docs/TRIGGERS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Triggers
2
2
 
3
- Axiom 0.16.0-alpha.1. A `TriggerDef` says **when** an action should be invoked, without
3
+ Axiom 0.16.0-alpha.2. A `TriggerDef` says **when** an action should be invoked, without
4
4
  embedding callback code. `docs/AUTHORITY.md`
5
5
  [§ Triggers](AUTHORITY.md#triggers) is the load-bearing statement of the execution model;
6
6
  this file is the vocabulary.
package/docs/UI.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # UI
2
2
 
3
- Axiom 0.16.0-alpha.1. Eleven semantic UI node kinds describe **what exists and what it does**.
3
+ Axiom 0.16.0-alpha.2. Eleven semantic UI node kinds describe **what exists and what it does**.
4
4
  How it looks is [presentation](PRESENTATION.md).
5
5
 
6
6
  All eleven share `UIBase`:
@@ -1,6 +1,6 @@
1
1
  # Validation
2
2
 
3
- Axiom 0.16.0-alpha.1. Validation is authoring-time structural checking. It is not the same
3
+ Axiom 0.16.0-alpha.2. Validation is authoring-time structural checking. It is not the same
4
4
  as runtime constraint evaluation — see [`CONSTRAINTS.md`](CONSTRAINTS.md) for the four
5
5
  layers of correctness.
6
6
 
@@ -70,7 +70,7 @@ non-numeric collections, and obviously incompatible assignments.
70
70
 
71
71
  | Code | Raised when |
72
72
  | --- | --- |
73
- | `UNKNOWN_STATE_REF` | A location naming a state that does not exist, or an unknown location kind. |
73
+ | `UNKNOWN_STATE_REF` | A location naming a state that does not exist, an unknown location kind, or a location/selector that is not even a plain object (spec16pt2 F2). |
74
74
  | `DERIVED_STATE_WRITE` | A write target rooted in derived state. |
75
75
  | `FIELD_ON_NON_ENTITY` | A field selected on a value that has no fields. |
76
76
  | `FIELD_NOT_ON_ENTITY` | A field that belongs to a different entity than the one addressed. |
@@ -107,6 +107,15 @@ Recursive, with a `path` naming the position.
107
107
  | `UNSUPPORTED_OPERATION` | An operation kind outside `OPERATION_KINDS`, or a `for-each` containing something other than a mutation. |
108
108
  | `INVALID_ACTION_REF` | A button or form naming something that is not an action. |
109
109
  | `INVALID_STATE_REF` | A reference that must be a state but is not. |
110
+ | `INVALID_OPERATION_COLLECTION` | `ActionDef.operations`, or a `for-each`'s nested `operations`, is present but not an array (spec16pt2 F1). |
111
+ | `INVALID_OPERATION` | An operation array entry that is not a plain object with a recognized `kind` — `null`, a primitive, or a malformed object (spec16pt2 F1/F2). |
112
+
113
+ A candidate graph can arrive from AI generation, deserialization or hand-tampering, so
114
+ `validateGraph` establishes shape before it ever traverses an action's operations or a
115
+ location — `{}` where `operations` should be an array, or `null` where a `set`/`insert`/
116
+ `remove` target should be a `Location`, is a structured diagnostic (`INVALID_OPERATION_COLLECTION`,
117
+ `INVALID_OPERATION`, or `UNKNOWN_STATE_REF` for a malformed location/selector), never a
118
+ native exception.
110
119
 
111
120
  ### Constraints
112
121
 
package/docs/WORKFLOWS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Durable workflows
2
2
 
3
- Axiom 0.16.0-alpha.1. The operational contract for **long-running semantic computations with
3
+ Axiom 0.16.0-alpha.2. The operational contract for **long-running semantic computations with
4
4
  a durable control position** — orchestration that survives process death, authority
5
5
  failover, retries, timer delivery, event delivery and ordinary distributed contention
6
6
  without application-owned infrastructure. `axiom.server.v8`.
@@ -255,7 +255,7 @@ step's argument expressions / `retry` policy, a `wait-event` step's `where` / `b
255
255
  or binding migration, and none is inferred ("closest step" recovery never happens).
256
256
  - A graph with **no** `WorkflowDef` compiles to the byte-identical `axiom.server.v1`–`v7`
257
257
  document it always did, and its `semanticFingerprint` / `schemaFingerprint` are unchanged.
258
- - Pre-`0.16.0-alpha.1` instances carry a compatibility key computed before `WorkflowDef`
258
+ - Pre-`0.16.0-alpha.2` instances carry a compatibility key computed before `WorkflowDef`
259
259
  participated; a corrected authority treats them as incompatible and fails closed (these
260
260
  are pre-freeze alpha releases — silent reinterpretation is the only unacceptable
261
261
  outcome).
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # Axiom
2
2
 
3
- > AI-native semantic application framework, version 0.16.0-alpha.1. An Axiom application is a
3
+ > AI-native semantic application framework, version 0.16.0-alpha.2. An Axiom application is a
4
4
  > typed semantic graph — state, behavior, constraints, UI structure, presentation and
5
5
  > authority as structured data — executed by generic runtimes. The JavaScript, HTML and CSS
6
6
  > that reach a browser are compiler output and are never authored or edited. The primary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cynodia/axiom",
3
- "version": "0.16.0-alpha.1",
3
+ "version": "0.16.0-alpha.2",
4
4
  "description": "AI-native semantic web application framework.",
5
5
  "license": "MIT",
6
6
  "author": "AskTech AS",
@@ -34,10 +34,10 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@cynodia/axiom-core": "0.16.0-alpha.1",
38
- "@cynodia/axiom-runtime": "0.16.0-alpha.1",
39
- "@cynodia/axiom-compiler": "0.16.0-alpha.1",
40
- "@cynodia/axiom-agent-api": "0.16.0-alpha.1"
37
+ "@cynodia/axiom-core": "0.16.0-alpha.2",
38
+ "@cynodia/axiom-runtime": "0.16.0-alpha.2",
39
+ "@cynodia/axiom-compiler": "0.16.0-alpha.2",
40
+ "@cynodia/axiom-agent-api": "0.16.0-alpha.2"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc -b tsconfig.json"