@tenova/swt3-ai 0.5.2 → 0.5.4

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.
Files changed (62) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +113 -7
  3. package/dist/adapters/cerebras.d.ts +25 -0
  4. package/dist/adapters/cerebras.d.ts.map +1 -0
  5. package/dist/adapters/cerebras.js +79 -0
  6. package/dist/adapters/cerebras.js.map +1 -0
  7. package/dist/clearing.d.ts +15 -3
  8. package/dist/clearing.d.ts.map +1 -1
  9. package/dist/clearing.js +42 -10
  10. package/dist/clearing.js.map +1 -1
  11. package/dist/config.d.ts.map +1 -1
  12. package/dist/config.js +54 -2
  13. package/dist/config.js.map +1 -1
  14. package/dist/demo.d.ts.map +1 -1
  15. package/dist/demo.js +6 -2
  16. package/dist/demo.js.map +1 -1
  17. package/dist/doctor.d.ts.map +1 -1
  18. package/dist/doctor.js +20 -0
  19. package/dist/doctor.js.map +1 -1
  20. package/dist/exporters/evidence.d.ts +59 -0
  21. package/dist/exporters/evidence.d.ts.map +1 -0
  22. package/dist/exporters/evidence.js +148 -0
  23. package/dist/exporters/evidence.js.map +1 -0
  24. package/dist/index.d.ts +10 -5
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +6 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/merkle.d.ts +15 -0
  29. package/dist/merkle.d.ts.map +1 -1
  30. package/dist/merkle.js +24 -0
  31. package/dist/merkle.js.map +1 -1
  32. package/dist/schema.d.ts.map +1 -1
  33. package/dist/schema.js +60 -4
  34. package/dist/schema.js.map +1 -1
  35. package/dist/sentinel-client.d.ts +90 -0
  36. package/dist/sentinel-client.d.ts.map +1 -0
  37. package/dist/sentinel-client.js +179 -0
  38. package/dist/sentinel-client.js.map +1 -0
  39. package/dist/signing.d.ts +31 -6
  40. package/dist/signing.d.ts.map +1 -1
  41. package/dist/signing.js +105 -12
  42. package/dist/signing.js.map +1 -1
  43. package/dist/types.d.ts +25 -0
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/types.js +15 -0
  46. package/dist/types.js.map +1 -1
  47. package/dist/wal.d.ts +1 -1
  48. package/dist/wal.js +1 -1
  49. package/dist/witness.d.ts +117 -0
  50. package/dist/witness.d.ts.map +1 -1
  51. package/dist/witness.js +334 -9
  52. package/dist/witness.js.map +1 -1
  53. package/package.json +5 -6
  54. package/templates/autonomous-systems.yaml +70 -0
  55. package/templates/content-platform.yaml +68 -0
  56. package/templates/cost-conscious.yaml +35 -0
  57. package/templates/defense-govcon.yaml +77 -0
  58. package/templates/fintech-model-risk.yaml +69 -0
  59. package/templates/github-action.yml +44 -0
  60. package/templates/healthcare-clinical.yaml +67 -0
  61. package/templates/insurance-underwriting.yaml +68 -0
  62. package/templates/telecom-compliance.yaml +72 -0
package/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025-2026 Tenable Nova LLC
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md CHANGED
@@ -13,6 +13,20 @@ Works with OpenAI, Anthropic, AWS Bedrock, Vercel AI SDK, and any OpenAI-compati
13
13
 
14
14
  GPAI transparency obligations are enforceable now. EU AI Act high-risk enforcement begins **December 2, 2027**. This SDK gives you the evidence chain.
15
15
 
16
+ ## What's New in v0.5.4
17
+
18
+ - **ML-DSA-65 (FIPS 204) post-quantum signing** -- Optional alongside HMAC-SHA256. Configure via `signingAlgorithm: "ml-dsa-65"` in constructor or `signing_algorithm: "ml-dsa-65"` in .swt3.yaml. Cross-language parity (same seed produces same keys in Python, TypeScript). `npm install @noble/post-quantum`
19
+ - **Self-hosted deployment** -- [SWT3 Gateway](#self-hosted-deployment) (Go reverse proxy, zero-latency, Helm chart) and full platform container (UBI 9, Iron Bank compatible, air-gap export). Deploy everything inside your VPC.
20
+ - **Chain Enforcer** -- 5-layer policy witnessing: tool blocklist/allowlist, velocity limiting, chain depth, token budgets. Every policy violation minted as an anchor. [Details](#agent-cost-governance)
21
+ - **Agent Cost Governance** -- per-session token budgets with `max_tokens_per_session`. Halt and record on exceeded. `cost-conscious` profile ships built-in. [Details](#agent-cost-governance)
22
+ - **Sentinel Client** -- IPC integration with the independent evidence custody daemon. Protected WAL, cross-process budgets, key isolation. Evidence the agent cannot tamper with.
23
+ - **AI-MARK.1** -- Content provenance witnessing (text, image, audio with C2PA/watermark/metadata tagging)
24
+ - **AI-BASE.1** -- Agent behavioral baseline (deviation scoring against established patterns)
25
+ - **AI-LIC.1** -- License provenance witnessing (model, adapter, and data license composition with SPDX)
26
+ - **14 Built-in Profiles** -- 7 framework profiles + 7 industry verticals (fintech, healthcare, insurance, telecom, defense/govcon, content platform, autonomous systems)
27
+ - **NSA MCP Security Mapping** -- [7 of 9 NSA AISC recommendations](https://sovereign.tenova.io/guides/nsa-mcp-security-mapping.html) addressed at the SDK layer (CSI U/OO/6030316-26, May 2026)
28
+ - **65 procedures**, 41 namespaces, 207 cross-language test vectors
29
+
16
30
  ## MCP Server -- Official Registry
17
31
 
18
32
  `@tenova/swt3-mcp` is listed on the official Model Context Protocol Registry as `io.tenova/swt3-witness`. Zero-config compliance governance for Claude Code, Cursor, Windsurf, and any MCP-compatible host.
@@ -487,13 +501,24 @@ Supports single files or chains (`extends: [base.yaml, team.yaml]`). Merge order
487
501
 
488
502
  ### Built-in Profiles
489
503
 
490
- Three profiles ship with the SDK:
504
+ 14 profiles ship with the SDK -- 7 framework profiles and 7 industry verticals:
491
505
 
492
506
  | Profile | Use Case |
493
507
  |---------|----------|
494
508
  | `eu-ai-act-high-risk` | EU AI Act high-risk: clearing 2, signing required, jurisdiction required |
495
509
  | `nist-ai-rmf` | NIST AI RMF: full procedure coverage, moderate policy |
510
+ | `cost-conscious` | Token budget governance: 25K/session ceiling, cost attribution |
511
+ | `owasp-agentic-top10` | OWASP Agentic Top 10: fail-closed, 100K tokens, depth 8 |
512
+ | `mythos-defense` | Exploit chain containment: clearing 3, strict trust, depth 5 |
513
+ | `granite-sovereign` | IBM Granite on-prem: air-gap ready, hardware attestation |
496
514
  | `minimal` | Development: clearing 0, no policy enforcement |
515
+ | `fintech-model-risk` | SR 11-7 model risk: drift monitoring, clearing 2, signing required |
516
+ | `healthcare-clinical` | HIPAA clinical AI: consent witnessing, clearing 3, PII protection |
517
+ | `insurance-underwriting` | Underwriting AI: fairness, explainability, DPIA, clearing 2 |
518
+ | `telecom-compliance` | Telecom fraud/network AI: performance monitoring, incident response |
519
+ | `defense-govcon` | CMMC/RMF: clearing 3, strict chain enforcement, SBOM required |
520
+ | `content-platform` | Content moderation: watermark verification, transparency, consent |
521
+ | `autonomous-systems` | Autonomous/robotics: safety, robustness, dual-use, human oversight |
497
522
 
498
523
  ### Diagnostics
499
524
 
@@ -547,7 +572,7 @@ merkle:
547
572
 
548
573
  Cross-language parity with Python SDK. Domain-separated (SWT3:LEAF: / SWT3:NODE:) to prevent second-preimage attacks.
549
574
 
550
- ## Gatekeeper Mode (Pre-Call Enforcement)
575
+ ## Gatekeeper Mode (Pre-Call Attestation)
551
576
 
552
577
  New in v0.3.4. Require guardrails to be active *before* the model is called, not just observed after:
553
578
 
@@ -585,6 +610,35 @@ Gatekeeper mode mints an **AI-GRD.3** anchor with:
585
610
  - **factor_b** = actual guardrail count
586
611
  - **factor_c** = 1 if gate passed, 0 if blocked
587
612
 
613
+ ## Agent Cost Governance
614
+
615
+ Every inference witnessed by the SDK captures prompt and completion token counts from the API response. Combined with `max_tokens_per_session`, this gives you a per-agent, per-session cost ceiling with a complete audit trail.
616
+
617
+ ```yaml
618
+ # .swt3.yaml
619
+ profile: cost-conscious # Built-in budget profile (25K tokens)
620
+
621
+ mcp_policy:
622
+ max_tokens_per_session: 25000 # Hard cutoff per session
623
+ fail_secure: true # Halt and record on budget exceeded
624
+ ```
625
+
626
+ ```typescript
627
+ import { Witness } from "@tenova/swt3-ai";
628
+
629
+ const witness = new Witness({ /* ... */ });
630
+ const client = witness.wrap(new OpenAI()) as OpenAI;
631
+
632
+ // Every call through the wrapped client automatically tracks tokens.
633
+ // When the session budget is exhausted, the chain enforcer halts
634
+ // further calls and mints a token_budget violation anchor.
635
+
636
+ // Manual token recording (for custom pipelines):
637
+ witness.recordSessionTokens(1500);
638
+ ```
639
+
640
+ Token usage flows into the witness ledger alongside every other anchor. Your auditor sees what the agent did, whether it complied, and what it cost -- in one export.
641
+
588
642
  ## Multi-Agent Chain Linking
589
643
 
590
644
  New in v0.3.4. Link anchors across agents in a multi-step pipeline using `cycleId`:
@@ -634,7 +688,7 @@ Each inference produces anchors for these checks. Every check maps to a regulati
634
688
 
635
689
  ### EU AI Act Article Mapping
636
690
 
637
- All 43 SWT3 AI witnessing procedures map to specific EU AI Act obligations:
691
+ All 65 SWT3 AI witnessing procedures map to specific EU AI Act obligations:
638
692
 
639
693
  | Procedure | EU AI Act Article | Obligation | Demo | Production |
640
694
  |-----------|-------------------|------------|------|------------|
@@ -651,7 +705,7 @@ All 43 SWT3 AI witnessing procedures map to specific EU AI Act obligations:
651
705
  | AI-EXPL.1 | Art. 13(1) | Transparency & Explainability | -| ✓ |
652
706
  | AI-EXPL.2 | Art. 13(3b) | Confidence Calibration | -| ✓ |
653
707
 
654
- The demo demonstrates 5 procedures using simulated data. All 43 are available in production with real inference data. 38 cross-language test vectors ensure fingerprint parity across Python, TypeScript, Rust, C#, and Ruby. [See live conformity →](https://sovereign.tenova.io/audit/axm_audit_demo_eu_ai_act_public)
708
+ The demo demonstrates 5 procedures using simulated data. All 65 are available in production with real inference data. 207 cross-language test vectors ensure fingerprint parity across Python, TypeScript, Rust, C#, and Ruby. [See live conformity →](https://sovereign.tenova.io/audit/axm_audit_demo_eu_ai_act_public)
655
709
 
656
710
  ## How Verdicts Work
657
711
 
@@ -701,6 +755,58 @@ echo -n "WITNESS:DEMO_TENANT:AI-INF.1:1:1:0:1774800000000" | sha256sum | cut -c1
701
755
 
702
756
  No SDK needed. Works on any machine, any language.
703
757
 
758
+ ## Self-Hosted Deployment
759
+
760
+ Run the full stack inside your own infrastructure. No data leaves your network boundary.
761
+
762
+ ### SWT3 Gateway (LLM Proxy)
763
+
764
+ A zero-latency Go reverse proxy that witnesses every inference transparently. Deploy inside your VPC, point your app at the gateway instead of the LLM provider. One line change:
765
+
766
+ ```bash
767
+ docker run -d \
768
+ -e SWT3_API_KEY=axm_live_your_key \
769
+ -e SWT3_TENANT_ID=YOUR_ENCLAVE \
770
+ -e SWT3_UPSTREAM=https://api.openai.com \
771
+ -p 8443:8443 \
772
+ tenova/swt3-gateway:latest
773
+ ```
774
+
775
+ ```typescript
776
+ // One line change. Everything else stays the same.
777
+ const client = new OpenAI({ baseURL: "http://gateway:8443/v1" });
778
+ ```
779
+
780
+ Multi-provider routing, model allowlist (advisory or strict), streaming support, HMAC payload signing. Helm chart included for Kubernetes.
781
+
782
+ [Gateway Documentation](https://github.com/tenova-labs/swt3-ai/tree/main/packages/swt3-gateway)
783
+
784
+ ### Axiom Sovereign Engine (Full Platform)
785
+
786
+ The complete compliance platform as a container: dashboard, adjudicator, evidence chain, Merkle rollups.
787
+
788
+ ```bash
789
+ # Three-service deployment (dashboard + adjudicator + postgres)
790
+ docker compose up -d
791
+
792
+ # Air-gap export for disconnected environments
793
+ docker save axiom-sovereign-engine:latest | gzip > axiom-sovereign.tar.gz
794
+ ```
795
+
796
+ - UBI 9 Minimal base (Iron Bank compatible, DoD IL2-IL5)
797
+ - Non-root runtime, FIPS-validated OpenSSL 3.x
798
+ - Works air-gapped: `docker load` on the target, no internet required
799
+ - Helm chart for Kubernetes orchestration
800
+
801
+ ### Deployment Options
802
+
803
+ | Mode | What You Run | Data Residency |
804
+ |------|-------------|----------------|
805
+ | **SDK only** | `npm install @tenova/swt3-ai` | Hashes leave, data stays |
806
+ | **Gateway** | Docker container in your VPC | Raw traffic never leaves your network |
807
+ | **Self-hosted platform** | Docker Compose or Helm | Everything on your infrastructure |
808
+ | **Air-gapped** | `docker load` from tarball | Zero internet connectivity required |
809
+
704
810
  ## Sovereign Cloud Support
705
811
 
706
812
  The SDK works with any OpenAI-compatible endpoint. Run models on your own infrastructure and witness every inference identically:
@@ -810,7 +916,8 @@ const witness = new Witness({
810
916
  | `maxRetries` | 3 | Retries before dead-letter |
811
917
  | `guardrailNames` | [] | Active guardrail names |
812
918
  | `agentId` | - | Agent identity (survives all clearing levels) |
813
- | `signingKey` | - | HMAC-SHA256 key for payload signing (register server-side for validation) |
919
+ | `signingKey` | - | Signing key for payload non-repudiation (HMAC-SHA256 secret or ML-DSA-65 hex seed) |
920
+ | `signingAlgorithm` | - | `"hmac-sha256"` (default) or `"ml-dsa-65"` (FIPS 204 post-quantum) |
814
921
  | `cycleId` | - | Multi-agent chain link (survives all clearing levels) |
815
922
  | `policyVersion` | - | Policy config identifier (hashed in payloads) |
816
923
  | `strict` | false | Gatekeeper mode: block inference if guardrails insufficient |
@@ -920,9 +1027,8 @@ Your prompts and responses **never leave your infrastructure**. The SDK computes
920
1027
  - [10-Minute Quickstart](https://sovereign.tenova.io/guides/ai-witness-quickstart.html) -- from install to first anchor
921
1028
  - [SWT3 Protocol Spec](https://sovereign.tenova.io/guides/swt3-protocol.html) -- formal specification with ABNF grammar
922
1029
  - [Design Rationale](https://sovereign.tenova.io/guides/swt3-design-rationale.html) -- why every protocol decision was made
923
- - [UCT Registry](https://sovereign.tenova.io/registry) -- 162 procedures, full factor definitions
1030
+ - [UCT Registry](https://sovereign.tenova.io/registry) -- full procedure catalog with factor definitions
924
1031
  - [Anchor Verifier](https://sovereign.tenova.io/verify) -- verify any anchor, zero server calls
925
- - [EU AI Act Regulatory Architecture](https://sovereign.tenova.io/guides/futurium-submission.html) -- VI+CJT+ALF+LAVR framework mapping for conformity assessment bodies
926
1032
  - [Five Eyes Agentic AI Overlay](https://sovereign.tenova.io/guides/five-eyes-overlay.html) -- CISA/NSA guidance mapped to SWT3 procedures
927
1033
  - [CMMC Compliance Overlay](https://sovereign.tenova.io/guides/cmmc-overlay.html) -- clearing levels mapped to CMMC and NIST 800-171
928
1034
  - [SR 11-7 Model Risk Overlay](https://sovereign.tenova.io/guides/sr-11-7-overlay.html) -- clearing levels mapped to SR 11-7 requirements
@@ -0,0 +1,25 @@
1
+ /**
2
+ * SWT3 AI Witness SDK -- Cerebras WSE-3 Adapter.
3
+ *
4
+ * Host-side compliance witnessing for Cerebras wafer-scale inference.
5
+ * Wraps any object with launch()/memcpyD2H() methods, minting anchors
6
+ * on device-to-host transfers without modifying CSL kernels.
7
+ *
8
+ * Usage:
9
+ * import { wrapCerebrasRuntime } from "@tenova/swt3-ai/adapters/cerebras";
10
+ * const witnessed = wrapCerebrasRuntime(runtime, witness);
11
+ * witnessed.launch("kernel_name");
12
+ * const result = witnessed.memcpyD2H(symbol, shape);
13
+ *
14
+ * Copyright (c) 2026 Tenable Nova LLC. Apache 2.0. Patent pending.
15
+ */
16
+ import type { Witness } from "../witness.js";
17
+ export interface CerebrasRuntime {
18
+ launch(kernelName: string, ...args: unknown[]): unknown;
19
+ memcpyD2H?(...args: unknown[]): unknown;
20
+ memcpyH2D?(...args: unknown[]): unknown;
21
+ }
22
+ export declare function wrapCerebrasRuntime(runtime: CerebrasRuntime, witness: Witness, modelId?: string): CerebrasRuntime & {
23
+ readonly launchCount: number;
24
+ };
25
+ //# sourceMappingURL=cerebras.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cerebras.d.ts","sourceRoot":"","sources":["../../src/adapters/cerebras.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAK7C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IACxD,SAAS,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IACxC,SAAS,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CACzC;AAsBD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAsDpD"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * SWT3 AI Witness SDK -- Cerebras WSE-3 Adapter.
3
+ *
4
+ * Host-side compliance witnessing for Cerebras wafer-scale inference.
5
+ * Wraps any object with launch()/memcpyD2H() methods, minting anchors
6
+ * on device-to-host transfers without modifying CSL kernels.
7
+ *
8
+ * Usage:
9
+ * import { wrapCerebrasRuntime } from "@tenova/swt3-ai/adapters/cerebras";
10
+ * const witnessed = wrapCerebrasRuntime(runtime, witness);
11
+ * witnessed.launch("kernel_name");
12
+ * const result = witnessed.memcpyD2H(symbol, shape);
13
+ *
14
+ * Copyright (c) 2026 Tenable Nova LLC. Apache 2.0. Patent pending.
15
+ */
16
+ import { sha256Truncated } from "../fingerprint.js";
17
+ import { createHash } from "crypto";
18
+ function hashBuffer(data) {
19
+ if (data === null || data === undefined)
20
+ return "";
21
+ if (data instanceof Buffer || data instanceof Uint8Array) {
22
+ return createHash("sha256").update(data).digest("hex").slice(0, 16);
23
+ }
24
+ if (typeof data === "string") {
25
+ return sha256Truncated(data);
26
+ }
27
+ if (data instanceof ArrayBuffer) {
28
+ return createHash("sha256").update(Buffer.from(data)).digest("hex").slice(0, 16);
29
+ }
30
+ return sha256Truncated(String(data));
31
+ }
32
+ export function wrapCerebrasRuntime(runtime, witness, modelId) {
33
+ const mid = modelId ?? process.env.SWT3_MODEL_ID ?? process.env.CEREBRAS_MODEL_NAME ?? "cerebras-wse3";
34
+ const state = {
35
+ launchTime: null,
36
+ kernelName: null,
37
+ launchCount: 0,
38
+ };
39
+ const originalLaunch = runtime.launch.bind(runtime);
40
+ const originalMemcpy = runtime.memcpyD2H?.bind(runtime);
41
+ const wrapped = Object.create(runtime);
42
+ wrapped.launch = (kernelName, ...args) => {
43
+ state.launchTime = performance.now();
44
+ state.kernelName = kernelName;
45
+ state.launchCount++;
46
+ return originalLaunch(kernelName, ...args);
47
+ };
48
+ if (originalMemcpy) {
49
+ wrapped.memcpyD2H = (...args) => {
50
+ const result = originalMemcpy(...args);
51
+ const elapsed = state.launchTime !== null
52
+ ? Math.round(performance.now() - state.launchTime)
53
+ : 0;
54
+ const record = {
55
+ modelId: mid,
56
+ modelHash: sha256Truncated(mid),
57
+ promptHash: state.kernelName ? sha256Truncated(state.kernelName) : "",
58
+ responseHash: hashBuffer(result),
59
+ latencyMs: elapsed,
60
+ inputTokens: 0,
61
+ outputTokens: 0,
62
+ guardrailsActive: 0,
63
+ guardrailsRequired: 0,
64
+ guardrailPassed: true,
65
+ hasRefusal: false,
66
+ provider: "cerebras-wse3",
67
+ guardrailNames: [],
68
+ };
69
+ witness.record(record);
70
+ return result;
71
+ };
72
+ }
73
+ Object.defineProperty(wrapped, "launchCount", {
74
+ get: () => state.launchCount,
75
+ enumerable: true,
76
+ });
77
+ return wrapped;
78
+ }
79
+ //# sourceMappingURL=cerebras.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cerebras.js","sourceRoot":"","sources":["../../src/adapters/cerebras.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAcpC,SAAS,UAAU,CAAC,IAAa;IAC/B,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACnD,IAAI,IAAI,YAAY,MAAM,IAAI,IAAI,YAAY,UAAU,EAAE,CAAC;QACzD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QAChC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,M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AAG,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC;gBAClD,CAAC,CAAC,CAAC,CAAC;YAEN,MAAM,MAAM,GAAoB;gBAC9B,OAAO,EAAE,GAAG;gBACZ,SAAS,EAAE,eAAe,CAAC,GAAG,CAAC;gBAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;gBACrE,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC;gBAChC,SAAS,EAAE,OAAO;gBAClB,WAAW,EAAE,CAAC;gBACd,YAAY,EAAE,CAAC;gBACf,gBAAgB,EAAE,CAAC;gBACnB,kBAAkB,EAAE,CAAC;gBACrB,eAAe,EAAE,IAAI;gBACrB,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,eAAe;gBACzB,cAAc,EAAE,EAAE;aACnB,CAAC;YACF,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACvB,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;QAC5C,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW;QAC5B,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -16,7 +16,7 @@ import type { InferenceRecord, WitnessPayload } from "./types.js";
16
16
  * Applies clearing level to each payload via object destructuring (Level 2+
17
17
  * fields are simply never assigned, guaranteeing they don't exist on the wire).
18
18
  */
19
- export declare function extractPayloads(record: InferenceRecord, tenantId: string, clearingLevel: 0 | 1 | 2 | 3, latencyThresholdMs?: number, guardrailsRequired?: number, procedures?: string[], agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string, authorizationId?: string): WitnessPayload[];
19
+ export declare function extractPayloads(record: InferenceRecord, tenantId: string, clearingLevel: 0 | 1 | 2 | 3, latencyThresholdMs?: number, guardrailsRequired?: number, procedures?: string[], agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string, authorizationId?: string, signingAlgorithm?: string): WitnessPayload[];
20
20
  /**
21
21
  * Mint an AI-GRD.3 (Gatekeeper Gate) payload.
22
22
  *
@@ -25,7 +25,7 @@ export declare function extractPayloads(record: InferenceRecord, tenantId: strin
25
25
  * factor_c = 1 if gate passed, 0 if blocked
26
26
  * Verdict: PASS if b >= a AND c == 1
27
27
  */
28
- export declare function extractGatekeeperPayload(tenantId: string, required: number, active: number, gatePassed: boolean, clearingLevel: 0 | 1 | 2 | 3, agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string): WitnessPayload;
28
+ export declare function extractGatekeeperPayload(tenantId: string, required: number, active: number, gatePassed: boolean, clearingLevel: 0 | 1 | 2 | 3, agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string, signingAlgorithm?: string): WitnessPayload;
29
29
  /** Revocation reason code mapping. */
30
30
  export declare const REVOCATION_REASONS: Record<string, number>;
31
31
  /**
@@ -35,5 +35,17 @@ export declare const REVOCATION_REASONS: Record<string, number>;
35
35
  * factor_b = 1 (target declared valid by caller)
36
36
  * factor_c = reason code (integer from REVOCATION_REASONS)
37
37
  */
38
- export declare function extractRevocationPayload(tenantId: string, targetFingerprint: string, reason: string, clearingLevel: 0 | 1 | 2 | 3, agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string): WitnessPayload;
38
+ export declare function extractRevocationPayload(tenantId: string, targetFingerprint: string, reason: string, clearingLevel: 0 | 1 | 2 | 3, agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, jurisdiction?: string, legalBasis?: string, purposeClass?: string, signingAlgorithm?: string): WitnessPayload;
39
+ /**
40
+ * Mint an AI-CHAIN.2 (Trust Degradation) payload.
41
+ *
42
+ * Minted automatically when the effective trust level drops during
43
+ * a multi-agent chain handoff. Provides auditors with a specific,
44
+ * searchable anchor for trust boundary crossings.
45
+ *
46
+ * factor_a = previous effective trust level
47
+ * factor_b = new effective trust level
48
+ * factor_c = delta (negative = degradation)
49
+ */
50
+ export declare function extractChainTrustDegradationPayload(tenantId: string, previousTrustLevel: number, newTrustLevel: number, clearingLevel: 0 | 1 | 2 | 3, agentId?: string, signingKey?: string, signingKeyId?: string, signingKeyVersion?: number, cycleId?: string, policyVersionHash?: string, signingAlgorithm?: string): WitnessPayload;
39
51
  //# sourceMappingURL=clearing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clearing.d.ts","sourceRoot":"","sources":["../src/clearing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAC5B,kBAAkB,GAAE,MAAc,EAClC,kBAAkB,GAAE,MAAU,EAC9B,UAAU,CAAC,EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE,MAAM,EACrB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,YAAY,CAAC,EAAE,M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