xytara 1.25.0 → 1.27.0

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.
@@ -0,0 +1,498 @@
1
+ # xytara Final Contract
2
+
3
+ ## Purpose
4
+
5
+ `xytara` is the machine transaction and execution layer.
6
+
7
+ It exists to let agents, developers, and systems:
8
+
9
+ - discover machine capabilities
10
+ - quote work before execution
11
+ - pay through one or more supported payment paths
12
+ - execute tasks and workflows
13
+ - receive deliverables
14
+ - inspect lifecycle state
15
+ - integrate third-party adapters
16
+ - emit proof through `xoonya`
17
+
18
+ `xytara` is not the proof foundation itself.
19
+ It consumes and emits proof-compatible facts, but its primary job is machine commerce and execution.
20
+
21
+ ## Public Release Stance
22
+
23
+ This product is being prepared as a first public release from private lineage.
24
+
25
+ That means:
26
+
27
+ - prior internal SDK and service shapes are design history, not public obligations
28
+ - useful capability should be preserved where it strengthens the final product
29
+ - historical private helper sprawl does not automatically define the public contract
30
+
31
+ The public baseline should therefore be chosen for product quality, clarity, extensibility, and end-to-end usefulness, not for backward compatibility with prior private repos.
32
+
33
+ ## Product Boundary
34
+
35
+ `xytara` owns:
36
+
37
+ - task catalog
38
+ - workflow catalog
39
+ - quote generation
40
+ - pricing logic
41
+ - payment negotiation
42
+ - payment rail adapters
43
+ - execution adapters
44
+ - settlement adapters
45
+ - delivery and result surfaces
46
+ - lifecycle inspection
47
+ - operator visibility
48
+ - adapter manifests and adapter onboarding surfaces
49
+
50
+ `xytara` does not own:
51
+
52
+ - base proof semantics
53
+ - base receipt semantics
54
+ - proof canonicalization rules
55
+ - base proof bundle semantics
56
+
57
+ Those belong to `xoonya`.
58
+
59
+ ## Core Doctrine
60
+
61
+ `xytara` is the hot-state, machine-transaction layer.
62
+
63
+ Its doctrine is:
64
+
65
+ - discover
66
+ - quote
67
+ - pay
68
+ - execute
69
+ - deliver
70
+ - inspect
71
+ - prove
72
+
73
+ The commerce layer may evolve quickly.
74
+ Its proof boundary must remain strict.
75
+
76
+ ## Required Product Capabilities
77
+
78
+ ### 1. Discovery
79
+
80
+ The system must expose machine-discoverable catalogs of:
81
+
82
+ - tasks
83
+ - workflows
84
+ - settlement profiles
85
+ - planning facets
86
+ - operational list and summary surfaces
87
+
88
+ Discovery must support:
89
+
90
+ - raw row access
91
+ - summary access
92
+ - value-list access where useful
93
+ - filterable query paths
94
+
95
+ ### 2. Quote Before Execution
96
+
97
+ Every payable execution path must support quote or price discovery before irreversible work begins.
98
+
99
+ The quote system must support:
100
+
101
+ - single-task quotes
102
+ - workflow/task-set quotes
103
+ - preview flows where execution outcome is not yet committed
104
+ - dynamic and static pricing models
105
+
106
+ ### 3. Payment Paths
107
+
108
+ The commerce layer must support multiple payment modes.
109
+
110
+ At minimum, the architecture must permit:
111
+
112
+ - machine-native pay-per-use negotiation
113
+ - human-friendly billing / credits
114
+ - settlement-aware downstream accounting
115
+
116
+ The public contract must stay payment-rail-neutral.
117
+
118
+ ### 4. Execution
119
+
120
+ The system must support:
121
+
122
+ - direct task execution
123
+ - workflow execution
124
+ - synchronous result flows
125
+ - asynchronous result flows
126
+ - waited result flows
127
+ - lifecycle inspection after execution
128
+
129
+ ### 5. Delivery
130
+
131
+ Execution outputs must be representable as deliverables.
132
+
133
+ The delivery contract must support:
134
+
135
+ - inline outputs
136
+ - artifact references
137
+ - linked records
138
+ - monitor snapshots
139
+ - activity snapshots
140
+
141
+ ### 6. Lifecycle and Operator Surfaces
142
+
143
+ The system must expose lifecycle and operator-facing surfaces for:
144
+
145
+ - quotes
146
+ - transactions
147
+ - receipts
148
+ - payments / ledger records
149
+ - deliveries
150
+ - disputes
151
+ - refunds
152
+ - remediation tickets
153
+ - reports
154
+
155
+ The operator layer must provide:
156
+
157
+ - summaries
158
+ - counts and aggregates
159
+ - status views
160
+ - open issue views
161
+ - execution exception views
162
+ - dashboard views
163
+ - drill-down record retrieval
164
+
165
+ ### 7. Adapter Extensibility
166
+
167
+ The commerce layer must be intentionally extensible by third parties.
168
+
169
+ This is a first-class product requirement.
170
+
171
+ ## Required Separation Boundaries
172
+
173
+ ### 1. Execution vs Proof
174
+
175
+ Execution describes what happened and produces externally consequential event facts.
176
+
177
+ Proof commits to those facts.
178
+
179
+ `xytara` must not redefine proof semantics.
180
+
181
+ ### 2. Commerce vs Settlement Rail
182
+
183
+ The commerce layer negotiates and coordinates payment and execution.
184
+
185
+ Settlement rails are plugged in as adapters.
186
+
187
+ The public commerce contract must not collapse into one rail’s worldview.
188
+
189
+ ### 3. Commerce vs Governance
190
+
191
+ The commerce layer may enforce configured rules and policies needed for execution and transaction processing.
192
+
193
+ But it should not become an all-purpose political governance system.
194
+
195
+ ### 4. Hot State vs Cold Truth
196
+
197
+ Hot operational state belongs in commerce.
198
+
199
+ Cold portable truth belongs in proof.
200
+
201
+ The commerce layer may reference proof artifacts and emit them, but must not absorb their base semantics.
202
+
203
+ ## Public Commerce Model
204
+
205
+ The public commerce contract should center on the following abstractions.
206
+
207
+ ### A. Task
208
+
209
+ A task is the smallest directly executable commercial capability.
210
+
211
+ Every public task should have:
212
+
213
+ - stable reference
214
+ - summary representation
215
+ - pricing representation
216
+ - schema/template representation where applicable
217
+ - execution mode
218
+ - adapter identity
219
+ - capability metadata
220
+
221
+ ### B. Workflow
222
+
223
+ A workflow is a composed machine capability built from one or more tasks.
224
+
225
+ Every public workflow should have:
226
+
227
+ - stable reference
228
+ - summary representation
229
+ - pricing representation
230
+ - task composition metadata
231
+ - execution and failure posture metadata
232
+
233
+ ### C. Quote
234
+
235
+ A quote is the priced and versioned commercial offer for a machine action.
236
+
237
+ Quotes may be:
238
+
239
+ - previews
240
+ - execution quotes
241
+ - workflow quotes
242
+ - batch quotes
243
+
244
+ ### D. Result / Deliverable
245
+
246
+ A result is the execution outcome.
247
+
248
+ A deliverable is the artifact or structured output accessible to the caller or downstream systems.
249
+
250
+ ### E. Lifecycle Record
251
+
252
+ Lifecycle records track operational state across the quote -> execution -> delivery -> issue/remediation path.
253
+
254
+ ## Required Adapter Classes
255
+
256
+ The final public system must support explicit adapter classes.
257
+
258
+ ### 1. Execution Adapter
259
+
260
+ Wraps an execution backend or runtime capability.
261
+
262
+ Responsibilities:
263
+
264
+ - execute supported task(s)
265
+ - surface deterministic input/output contracts
266
+ - expose capability metadata
267
+ - produce proof-compatible event facts
268
+
269
+ ### 2. Settlement Adapter
270
+
271
+ Handles external settlement or anchoring coordination where needed.
272
+
273
+ Responsibilities:
274
+
275
+ - accept settlement targets
276
+ - expose external references
277
+ - support verification-ready references back into lifecycle state
278
+
279
+ ### 3. Payment Rail Adapter
280
+
281
+ Handles a payment negotiation and payment confirmation path.
282
+
283
+ Responsibilities:
284
+
285
+ - advertise payment capability
286
+ - perform negotiation / payment admission logic
287
+ - produce settlement/payment references usable by lifecycle systems
288
+
289
+ ### 4. Agent Protocol Adapter
290
+
291
+ Wraps agent-facing invocation or integration protocols.
292
+
293
+ Examples:
294
+
295
+ - MCP-style consumption
296
+ - other machine-callable protocol surfaces
297
+
298
+ Responsibilities:
299
+
300
+ - expose discovery and invocation in a machine-native way
301
+ - preserve underlying quote/pay/execute semantics
302
+
303
+ ### 5. Identity / Registry Adapter
304
+
305
+ Handles external identity, trust, registry, or discovery linkage where needed.
306
+
307
+ Responsibilities:
308
+
309
+ - surface references, identities, and compatibility metadata
310
+ - remain additive, not redefining the commerce core
311
+
312
+ ## Third-Party Adapter Contract
313
+
314
+ Third-party adapter support is a product surface, not a private implementation detail.
315
+
316
+ The final system must include:
317
+
318
+ - stable adapter interfaces
319
+ - manifest schema
320
+ - capability metadata schema
321
+ - certification harness
322
+ - compatibility/version rules
323
+ - example adapters
324
+ - adapter authoring docs
325
+
326
+ ### Third-party adapter lifecycle
327
+
328
+ 1. Implement adapter interface
329
+ 2. Publish adapter manifest
330
+ 3. Pass certification harness
331
+ 4. Register into catalog or adapter registry
332
+ 5. Promote from staging to production
333
+
334
+ ### Required adapter properties
335
+
336
+ Every adapter must define:
337
+
338
+ - adapter identity
339
+ - adapter version
340
+ - adapter class
341
+ - supported capabilities
342
+ - failure semantics
343
+ - timeout behavior
344
+ - idempotency behavior
345
+ - health contract
346
+ - proof hook behavior
347
+
348
+ ## Payment Model
349
+
350
+ The system must support multiple commercial modes without collapsing into one payment ideology.
351
+
352
+ ### Publicly acceptable modes
353
+
354
+ - pay-per-use machine negotiation
355
+ - credits / usage units
356
+ - human-facing billing / invoicing / top-up style models
357
+ - batch or workflow pricing
358
+
359
+ ### Rule
360
+
361
+ No public commerce contract should require a single chain, single stablecoin, or single card processor to remain valid.
362
+
363
+ ## Pricing Model
364
+
365
+ The system must support:
366
+
367
+ - fixed pricing
368
+ - dynamic pricing
369
+ - pricing basis metadata
370
+ - pricing band metadata
371
+ - pricing currency metadata
372
+ - bundle/workflow pricing
373
+
374
+ The first production release should keep pricing explainable and stable enough for trust.
375
+
376
+ More advanced adaptive pricing may be layered later, but it must not make the catalog unintelligible.
377
+
378
+ ## Settlement Model
379
+
380
+ Settlement is distinct from execution.
381
+
382
+ ### Rule
383
+
384
+ Execution success and settlement finality may be related, but they are not identical concepts.
385
+
386
+ The commerce system must preserve explicit separation between:
387
+
388
+ - task execution
389
+ - result production
390
+ - settlement/anchoring/finality reference
391
+
392
+ ## Operator Model
393
+
394
+ The operator layer is a required product surface.
395
+
396
+ ### Required outcomes
397
+
398
+ Operators must be able to:
399
+
400
+ - inspect active operational issues
401
+ - inspect execution exceptions
402
+ - view top-level dashboard state
403
+ - drill into affected records
404
+ - retrieve status and aggregate summaries
405
+
406
+ This may begin as API and CLI surfaces before a full UI is finished.
407
+
408
+ ## Public Entry Surfaces
409
+
410
+ The final public commerce product should support:
411
+
412
+ - package / SDK surface
413
+ - service API surface
414
+ - CLI surface
415
+ - machine-tool surface
416
+
417
+ ### One-line use principle
418
+
419
+ The public product story must support the practical flow:
420
+
421
+ run command -> see catalog -> define task(s) -> get quote(s) -> pay -> receive deliverable(s) -> verify proof
422
+
423
+ This is not just an example.
424
+ It is part of the product contract.
425
+
426
+ ## Proof Relationship
427
+
428
+ The commerce layer must emit facts and receipts in a way compatible with `xoonya`.
429
+
430
+ ### Rule
431
+
432
+ Commerce may:
433
+
434
+ - emit proof-compatible canonical event facts
435
+ - emit receipts via proof integration
436
+ - expose proof references in results and lifecycle records
437
+
438
+ Commerce may not:
439
+
440
+ - redefine proof semantics
441
+ - redefine receipt validity
442
+ - turn commerce metadata into the base proof contract
443
+
444
+ ## Versioning Strategy
445
+
446
+ Commerce versioning should distinguish between:
447
+
448
+ - core product contract changes
449
+ - adapter API changes
450
+ - catalog/schema changes
451
+ - optional helper additions
452
+
453
+ Breaking changes to adapter contracts and commerce contract surfaces must be explicit.
454
+
455
+ ## Conformance Requirements
456
+
457
+ The final commerce product must maintain conformance across:
458
+
459
+ - discovery surfaces
460
+ - quote/pay/execute paths
461
+ - batch paths
462
+ - lifecycle inspection
463
+ - operator summaries
464
+ - proof integration
465
+ - adapter certification
466
+
467
+ ## What Must Survive From Internal Lineages
468
+
469
+ From the internal stack, the following semantic wins should survive:
470
+
471
+ - clean separation of execution and proof
472
+ - clean separation of execution and settlement
473
+ - batching and ordering as explicit concerns
474
+ - adapter-first design
475
+ - neutral commerce over multiple rails
476
+ - proof-backed lifecycle state
477
+ - operator-grade visibility
478
+
479
+ Historical internal labels and names should not survive publicly.
480
+
481
+ ## Final Product Position
482
+
483
+ `xytara` should become:
484
+
485
+ - the machine transaction layer
486
+ - the machine execution layer
487
+ - the machine delivery layer
488
+ - the operator-visible machine commerce layer
489
+
490
+ It should be:
491
+
492
+ - protocol-agnostic
493
+ - rail-flexible
494
+ - adapter-extensible
495
+ - machine-native
496
+ - proof-backed
497
+
498
+ That is the correct public role for the final commerce product.
package/README.md CHANGED
@@ -16,6 +16,34 @@ It exists to let agents, developers, and systems:
16
16
 
17
17
  This repo is the hot-state commerce layer. It does not define base proof semantics. It references and emits proof-compatible facts, while `xoonya` owns canonical proof.
18
18
 
19
+ ## Start Here
20
+
21
+ If you are new to the public stack, use this order:
22
+
23
+ 1. read [START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/START_HERE.md)
24
+ 2. run `node examples/quickstart.js`
25
+ 3. run `npm run verify:all`
26
+ 4. use [FINAL_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/FINAL_CONTRACT.md) and [SERVICE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/SERVICE_CONTRACT.md) as the durable public contract
27
+
28
+ If you are building adapters, continue with:
29
+
30
+ - [adapters/AUTHORING_GUIDE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/adapters/AUTHORING_GUIDE.md)
31
+ - [adapters/ONBOARDING_POSTURE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/adapters/ONBOARDING_POSTURE.md)
32
+ - [adapters/THIRD_PARTY_SUBMISSION_PROCESS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/adapters/THIRD_PARTY_SUBMISSION_PROCESS.md)
33
+
34
+ ## Production Path
35
+
36
+ The intended production-facing default path is now:
37
+
38
+ 1. discover a capability
39
+ 2. preview or quote the transaction path
40
+ 3. execute through the default machine path
41
+ 4. inspect the transaction-side result and lifecycle state
42
+ 5. hand the result into `xoonya`
43
+ 6. review and run the proof-side completion path
44
+
45
+ The rest of this README explains the full surface area and milestone trail, but the public starting posture should now be understandable from that one default path.
46
+
19
47
  ## Commerce Loop
20
48
 
21
49
  The public product loop is:
@@ -253,6 +281,15 @@ The current `1.25.0` line starts turning that adapter-ready default path into a
253
281
 
254
282
  This is intended to make the transaction-side continuation path easier to adopt as the complete public default path an outside builder can use without needing private interpretation.
255
283
 
284
+ The current `1.26.0` line finalizes that public shape into a cleaner production-ready package:
285
+
286
+ - a publishable [START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_public/naxytra/xytara/START_HERE.md) onboarding path
287
+ - clearer top-level README entry points for the default production flow
288
+ - publishable contract and terminology docs carried in the package tarball
289
+ - naming cleanup that keeps the public story anchored to `xytara` and `xoonya`
290
+
291
+ This is intended to make the public transaction-side package feel like a finished production-facing product instead of a strong stack that still assumes milestone-history context.
292
+
256
293
  ## Package Surface
257
294
 
258
295
  The SDK is broad, but it stays organized into a few repeatable families instead of one-off surfaces.
@@ -569,6 +606,24 @@ Primary service routes:
569
606
  - `POST /v1/registry/packs/anchor`
570
607
  - `POST /v1/anchoring/submit`
571
608
  - `POST /v1/anchoring/packs/preview`
609
+ - `GET /v1/coordination-center`
610
+ - `GET /v1/coordination-center/summary`
611
+ - `GET /v1/zones`
612
+ - `GET /v1/zones/compatibility-profiles`
613
+ - `GET /v1/zones/:zoneId/constitution`
614
+ - `POST /v1/coordination-center/interpretation-handoff/validate`
615
+ - `POST /v1/coordination-center/handshake-preview`
616
+ - `POST /v1/coordination-center/cross-zone-preview`
617
+ - `POST /v1/coordination-center/admission-case-projection`
618
+ - `POST /v1/coordination-center/admission-case-bundle`
619
+ - `POST /v1/coordination-center/operator-view`
620
+ - `POST /v1/coordination-center/admin-view`
621
+ - `POST /v1/coordination-center/admission-ops-pack`
622
+ - `POST /v1/coordination-center/admission-workflow-pack`
623
+ - `POST /v1/coordination-center/coordination-pack`
624
+ - `POST /v1/coordination-center/review-link`
625
+ - `GET /v1/coordination-center/zones-dashboard`
626
+ - `POST /v1/coordination-center/zones-dashboard-pack`
572
627
  - `POST /v1/mcp/tools/invoke`
573
628
  - `GET /v1/payment-quotes`
574
629
  - `GET /v1/payment-quotes/:quote_id`
@@ -599,6 +654,73 @@ Primary service routes:
599
654
  - `GET /v1/operator-export-pack`
600
655
  - `GET /v1/operations/dashboard`
601
656
  - `GET /v1/operations/attention-records`
657
+ - `GET /v1/operator-shell`
658
+ - `GET /v1/operator-shell/summary`
659
+ - `POST /v1/operator-shell/summary`
660
+ - `POST /v1/operator-shell/workflow-pack`
661
+ - `POST /v1/operator-shell/admin-pack`
662
+ - `GET /v1/agent-accounts`
663
+ - `POST /v1/agent-accounts`
664
+ - `GET /v1/agent-accounts/:account_id`
665
+ - `POST /v1/economics/budgets`
666
+ - `POST /v1/economics/budgets/:budget_id/status`
667
+ - `POST /v1/economics/agents`
668
+ - `POST /v1/economics/agents/:agent_id/status`
669
+ - `POST /v1/economics/receipts`
670
+ - `POST /v1/economics/receipts/:receipt_id/lifecycle`
671
+ - `POST /v1/economics/receipts/:receipt_id/operator-action`
672
+ - `POST /v1/economics/allocations/mint`
673
+ - `POST /v1/economics/allocations/reverse`
674
+ - `POST /v1/economics/rails/credits/preview`
675
+ - `POST /v1/economics/rails/credits/apply`
676
+ - `POST /v1/economics/receipt-ledger/validate`
677
+ - `POST /v1/economics/interpretation-handoff`
678
+ - `POST /v1/economics/markets/preview`
679
+ - `POST /v1/economics/markets/workflow-pack`
680
+ - `POST /v1/economics/markets/signoff-pack`
681
+ - `POST /v1/economics/markets/coordination-pack`
682
+ - `GET /v1/economics/accounts/:account_id/budgets`
683
+ - `GET /v1/economics/accounts/:account_id/agents`
684
+ - `GET /v1/economics/accounts/:account_id/receipts`
685
+ - `GET /v1/economics/accounts/:account_id`
686
+ - `GET /v1/economics/accounts/:account_id/operator-view`
687
+ - `GET /v1/economics/accounts/:account_id/operator-dashboard`
688
+ - `GET /v1/economics/accounts/:account_id/treasury-summary`
689
+ - `GET /v1/economics/accounts/:account_id/ledger-export`
690
+ - `GET /v1/economics/accounts/:account_id/treasury-drilldown`
691
+ - `GET /v1/economics/accounts/:account_id/reconciliation-pack`
692
+ - `GET /v1/economics/accounts/:account_id/treasury-workflow-pack`
693
+ - `GET /v1/economics/accounts/:account_id/treasury-signoff-pack`
694
+ - `GET /v1/economics/accounts/:account_id/policy-summary`
695
+ - `GET /v1/economics/accounts/:account_id/rail-summary`
696
+ - `GET /v1/economics/accounts/:account_id/rail-workflow-pack`
697
+ - `GET /v1/economics/accounts/:account_id/rail-signoff-pack`
698
+ - `POST /v1/economics/jobs/:job_id/operator-action`
699
+ - `GET /v1/economics/evidence/receipts/:receipt_ref`
700
+ - `GET /v1/economics/evidence/jobs/:job_id`
701
+ - `GET /v1/economics/integration/jobs/:job_id`
702
+
703
+ The Wave C coordination carry-over line adds a bounded coordination center on top of the public transaction spine:
704
+
705
+ - zone discovery, compatibility profiles, and constitution lookup
706
+ - interpretation-handoff validation and cross-zone handshake preview
707
+ - cross-zone admission-case projection and portable case-bundle export
708
+ - coordination operator/admin views plus explicit review-linkage into governance and proof follow-through
709
+ - admission ops/workflow packs, coordination packs, and zones dashboard packaging
710
+
711
+ The Wave D adapter-breadth line broadens the bundled public integration surface as well:
712
+
713
+ - additional built-in protocol surfaces for `a2a`, `acp`, `mqtt`, `grpc`, `kafka`, `nats`, and `ros2`
714
+ - additional built-in execution-front surfaces for `langchain`, `langgraph`, `semantic_kernel`, `autogen`, `crewai`, and `llamaindex`
715
+ - broader bundled payment and identity breadth through `mpp` and `erc8004`-oriented public integration surfaces
716
+
717
+ The Wave F shell carry-over line adds a bounded operator shell inside public `xytara`:
718
+
719
+ - self-serve agent account issuance for the public runtime path
720
+ - a unified operator shell summary across operations, economics, and coordination
721
+ - compact workflow/admin shell exports that point cleanly into proof-side follow-through when needed
722
+
723
+ This keeps the public product centered on `naxytra` while recovering the useful operator-shell lineage as a built-in `xytara` capability instead of a separate branded surface.
602
724
 
603
725
  ## Verification
604
726