xoonya 3.1.17 → 3.2.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.
- package/README.md +97 -74
- package/RELEASE_NOTES.md +7 -1
- package/START_HERE.md +38 -134
- package/bin/xoonya-first-run.js +22 -10
- package/bin/xoonya.js +61 -29
- package/lib/native_verify.js +1918 -0
- package/package.json +19 -42
- package/scripts/verify_release_candidate.js +243 -116
- package/scripts/verify_vectors.js +351 -104
- package/verify.js +95 -0
- package/.env.example +0 -10
- package/CARRIED_HANDOFF_DEMO.md +0 -60
- package/COMPATIBILITY_NOTE.md +0 -27
- package/CROSS_RUNTIME_POSTURE.md +0 -77
- package/EXAMPLE_PATHS.md +0 -53
- package/FINAL_CONTRACT.md +0 -445
- package/PARTNER_READY_PATH.md +0 -67
- package/PUBLIC_DEMO_SCRIPT.md +0 -79
- package/SERVICE_CONTRACT.md +0 -207
- package/TERMINOLOGY.md +0 -55
- package/WHY_XYTARA_XOONYA.md +0 -43
- package/XNYA_CONFORMANCE_MARK.md +0 -78
- package/XNYA_REFERENCE_IMPLEMENTATIONS.md +0 -157
- package/XOONYA_DEFAULT_PATH_MODEL.md +0 -63
- package/XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md +0 -63
- package/XOONYA_NATIVE_ATOM_SPEC.md +0 -184
- package/XOONYA_NATIVE_PROOF_FORMAT.md +0 -570
- package/XOONYA_NATIVE_STANDARD_GOVERNANCE.md +0 -119
- package/XOONYA_PROOF_TRUTH_MODEL.md +0 -58
- package/bin/xoonya-release.js +0 -1367
- package/bin/xoonya-review.js +0 -70
- package/examples/integration_boundary_walkthrough.js +0 -37
- package/examples/package_quickstart.js +0 -1007
- package/examples/partner_proof_walkthrough.js +0 -68
- package/examples/proof_review_walkthrough.js +0 -66
- package/examples/review_carried_handoff.js +0 -72
- package/index.js +0 -31
- package/integrations/PROOF_INTEGRATION_PROCESS.md +0 -45
- package/integrations/examples/example-third-party-verifier-registration.record.json +0 -22
- package/integrations/registration-record.schema.json +0 -99
- package/integrations/registry-snapshot.schema.json +0 -36
- package/integrations/registry.js +0 -636
- package/integrations/views.js +0 -36
- package/lib/adapter_certification_contract.js +0 -90
- package/lib/announcement_pack.js +0 -61
- package/lib/artifact_distribution_lane_contract.js +0 -54
- package/lib/asyncapi_contract.js +0 -135
- package/lib/auth_interop_contract.js +0 -69
- package/lib/authority_binding_lifecycle_contract.js +0 -182
- package/lib/bridge_intelligence.js +0 -102
- package/lib/cloudevents_contract.js +0 -79
- package/lib/crypto_agility_matrix.js +0 -131
- package/lib/default_path_contract.js +0 -380
- package/lib/ecosystem_entry.js +0 -64
- package/lib/erc8004_proof_lane_contract.js +0 -64
- package/lib/event_system_lane_contract.js +0 -76
- package/lib/external_proof_import_lane_contract.js +0 -87
- package/lib/feature_control_lane_contract.js +0 -54
- package/lib/followthrough_truth_contract.js +0 -214
- package/lib/framework_lane_contract.js +0 -76
- package/lib/governance_disputes_summary.js +0 -36
- package/lib/governance_intelligence.js +0 -108
- package/lib/identity_interop_contract.js +0 -83
- package/lib/integration_matrix_contract.js +0 -81
- package/lib/launch_narrative.js +0 -53
- package/lib/machine_identity_registry_contract.js +0 -199
- package/lib/major_rails_proof_lane_contract.js +0 -87
- package/lib/offline_verifiability_recovery_contract.js +0 -155
- package/lib/openapi_contract.js +0 -227
- package/lib/operational_receipt_contract.js +0 -165
- package/lib/outreach_proof.js +0 -71
- package/lib/phase_10_closeout_pack.js +0 -45
- package/lib/phase_10_completion_pack.js +0 -76
- package/lib/phase_10_decision_record_pack.js +0 -54
- package/lib/phase_10_decision_resolution_pack.js +0 -53
- package/lib/phase_10_demand_signal_adapters_proof_pack.js +0 -74
- package/lib/phase_10_ecosystem_backlog_triage_proof_pack.js +0 -74
- package/lib/phase_10_freeze_baseline_pack.js +0 -67
- package/lib/phase_10_freeze_review_pack.js +0 -64
- package/lib/phase_10_gate_pack.js +0 -57
- package/lib/phase_10_long_tail_continuity_pack.js +0 -80
- package/lib/phase_10_long_tail_ecosystem_pack.js +0 -68
- package/lib/phase_10_niche_extension_registry_proof_pack.js +0 -74
- package/lib/phase_1_claude_mcp_pack.js +0 -60
- package/lib/phase_1_claude_mcp_proof_pack.js +0 -57
- package/lib/phase_1_ecosystem_pack.js +0 -51
- package/lib/phase_1_openai_codex_pack.js +0 -60
- package/lib/phase_1_openai_codex_proof_pack.js +0 -57
- package/lib/phase_2_base_proof_pack.js +0 -71
- package/lib/phase_2_base_usdc_proof_pack.js +0 -72
- package/lib/phase_2_closeout_pack.js +0 -65
- package/lib/phase_2_completion_pack.js +0 -113
- package/lib/phase_2_decision_record_pack.js +0 -66
- package/lib/phase_2_decision_resolution_pack.js +0 -69
- package/lib/phase_2_eth_proof_pack.js +0 -70
- package/lib/phase_2_evm_base_proof_pack.js +0 -73
- package/lib/phase_2_evm_proof_pack.js +0 -71
- package/lib/phase_2_flip_preview_pack.js +0 -60
- package/lib/phase_2_freeze_review_pack.js +0 -99
- package/lib/phase_2_gate_pack.js +0 -77
- package/lib/phase_2_payment_rails_pack.js +0 -71
- package/lib/phase_2_usdc_proof_pack.js +0 -71
- package/lib/phase_3_brc_proof_pack.js +0 -81
- package/lib/phase_3_bsv_teranode_proof_pack.js +0 -81
- package/lib/phase_3_closeout_pack.js +0 -62
- package/lib/phase_3_completion_pack.js +0 -92
- package/lib/phase_3_decision_record_pack.js +0 -64
- package/lib/phase_3_decision_resolution_pack.js +0 -69
- package/lib/phase_3_freeze_baseline_pack.js +0 -67
- package/lib/phase_3_freeze_review_pack.js +0 -80
- package/lib/phase_3_gate_pack.js +0 -76
- package/lib/phase_3_metanet_proof_pack.js +0 -81
- package/lib/phase_3_native_bsv_pack.js +0 -89
- package/lib/phase_3_native_continuity_pack.js +0 -82
- package/lib/phase_4_attestation_proof_pack.js +0 -75
- package/lib/phase_4_closeout_pack.js +0 -45
- package/lib/phase_4_completion_pack.js +0 -82
- package/lib/phase_4_decision_record_pack.js +0 -54
- package/lib/phase_4_decision_resolution_pack.js +0 -45
- package/lib/phase_4_erc8004_proof_pack.js +0 -76
- package/lib/phase_4_freeze_baseline_pack.js +0 -67
- package/lib/phase_4_freeze_review_pack.js +0 -68
- package/lib/phase_4_gate_pack.js +0 -58
- package/lib/phase_4_identity_registry_proof_pack.js +0 -75
- package/lib/phase_4_identity_trust_pack.js +0 -73
- package/lib/phase_4_trust_continuity_pack.js +0 -86
- package/lib/phase_5_antelope_proof_pack.js +0 -76
- package/lib/phase_5_closeout_pack.js +0 -44
- package/lib/phase_5_completion_pack.js +0 -82
- package/lib/phase_5_decision_record_pack.js +0 -54
- package/lib/phase_5_decision_resolution_pack.js +0 -45
- package/lib/phase_5_freeze_baseline_pack.js +0 -67
- package/lib/phase_5_freeze_review_pack.js +0 -68
- package/lib/phase_5_gate_pack.js +0 -58
- package/lib/phase_5_major_rails_continuity_pack.js +0 -86
- package/lib/phase_5_major_rails_pack.js +0 -74
- package/lib/phase_5_proton_xpr_proof_pack.js +0 -76
- package/lib/phase_5_solana_proof_pack.js +0 -76
- package/lib/phase_6_autogen_proof_pack.js +0 -74
- package/lib/phase_6_closeout_pack.js +0 -46
- package/lib/phase_6_completion_pack.js +0 -77
- package/lib/phase_6_decision_record_pack.js +0 -54
- package/lib/phase_6_decision_resolution_pack.js +0 -53
- package/lib/phase_6_framework_continuity_pack.js +0 -81
- package/lib/phase_6_framework_runtime_pack.js +0 -68
- package/lib/phase_6_freeze_baseline_pack.js +0 -68
- package/lib/phase_6_freeze_review_pack.js +0 -65
- package/lib/phase_6_gate_pack.js +0 -59
- package/lib/phase_6_langchain_proof_pack.js +0 -74
- package/lib/phase_6_langgraph_proof_pack.js +0 -74
- package/lib/phase_6_semantic_kernel_proof_pack.js +0 -74
- package/lib/phase_7_closeout_pack.js +0 -45
- package/lib/phase_7_completion_pack.js +0 -85
- package/lib/phase_7_decision_record_pack.js +0 -53
- package/lib/phase_7_decision_resolution_pack.js +0 -53
- package/lib/phase_7_event_system_continuity_pack.js +0 -89
- package/lib/phase_7_event_system_pack.js +0 -76
- package/lib/phase_7_freeze_baseline_pack.js +0 -74
- package/lib/phase_7_freeze_review_pack.js +0 -65
- package/lib/phase_7_gate_pack.js +0 -58
- package/lib/phase_7_kafka_proof_pack.js +0 -76
- package/lib/phase_7_mqtt_proof_pack.js +0 -76
- package/lib/phase_7_nats_proof_pack.js +0 -76
- package/lib/phase_7_webhook_event_bus_proof_pack.js +0 -76
- package/lib/phase_8_closeout_pack.js +0 -46
- package/lib/phase_8_completion_pack.js +0 -82
- package/lib/phase_8_decision_record_pack.js +0 -54
- package/lib/phase_8_decision_resolution_pack.js +0 -53
- package/lib/phase_8_external_receipt_import_proof_pack.js +0 -74
- package/lib/phase_8_external_result_import_proof_pack.js +0 -74
- package/lib/phase_8_freeze_baseline_pack.js +0 -71
- package/lib/phase_8_freeze_review_pack.js +0 -64
- package/lib/phase_8_gate_pack.js +0 -58
- package/lib/phase_8_proof_bridge_continuity_pack.js +0 -86
- package/lib/phase_8_proof_bridges_pack.js +0 -72
- package/lib/phase_8_proof_bundle_normalization_proof_pack.js +0 -74
- package/lib/phase_9_closeout_pack.js +0 -46
- package/lib/phase_9_completion_pack.js +0 -82
- package/lib/phase_9_custody_refs_proof_pack.js +0 -74
- package/lib/phase_9_decision_record_pack.js +0 -54
- package/lib/phase_9_decision_resolution_pack.js +0 -53
- package/lib/phase_9_freeze_baseline_pack.js +0 -71
- package/lib/phase_9_freeze_review_pack.js +0 -64
- package/lib/phase_9_gate_pack.js +0 -58
- package/lib/phase_9_operator_accounting_bridges_proof_pack.js +0 -74
- package/lib/phase_9_treasury_connectivity_pack.js +0 -72
- package/lib/phase_9_treasury_continuity_pack.js +0 -86
- package/lib/phase_9_treasury_destinations_proof_pack.js +0 -74
- package/lib/phase_program_pack.js +0 -47
- package/lib/proof_bridge_lane_contract.js +0 -82
- package/lib/proof_truth_contract.js +0 -224
- package/lib/provenance_lane_contract.js +0 -54
- package/lib/provider_lane_contract.js +0 -67
- package/lib/public_surface_policy_contract.js +0 -111
- package/lib/publish_plan.js +0 -51
- package/lib/release_candidate.js +0 -50
- package/lib/release_center.js +0 -1037
- package/lib/release_history.js +0 -206
- package/lib/release_manifest.js +0 -114
- package/lib/release_pack.js +0 -391
- package/lib/result_package_trust_lane_contract.js +0 -74
- package/lib/review_intelligence.js +0 -100
- package/lib/role_freeze.js +0 -436
- package/lib/shared_signals_lane_contract.js +0 -54
- package/lib/signed_audit_provenance_contract.js +0 -93
- package/lib/telemetry_lane_contract.js +0 -54
- package/lib/treasury_proof_lane_contract.js +0 -83
- package/lib/trust_intelligence.js +0 -106
- package/lib/trust_portability_boundary_contract.js +0 -66
- package/lib/trust_portability_pack.js +0 -224
- package/lib/verification_service_pack.js +0 -149
- package/proof_sdk.js +0 -6692
- package/reference/python/README.md +0 -35
- package/reference/python/requirements-optional.txt +0 -1
- package/reference/python/verify_vectors.py +0 -223
- package/reference/python/xnya_reference.py +0 -810
- package/reference/rust/Cargo.toml +0 -11
- package/reference/rust/README.md +0 -28
- package/reference/rust/src/lib.rs +0 -87
- package/scripts/registry_cli.js +0 -157
- package/scripts/verify_all.js +0 -603
- package/scripts/verify_control_plane_contracts.js +0 -34
- package/scripts/verify_control_plane_routes.js +0 -70
- package/scripts/verify_examples.js +0 -19
- package/scripts/verify_external_proof_import_gate.js +0 -84
- package/scripts/verify_external_proof_signature.js +0 -142
- package/scripts/verify_forgery_resistance.js +0 -281
- package/scripts/verify_integrations.js +0 -170
- package/scripts/verify_native_hybrid_design_gate.js +0 -114
- package/scripts/verify_paid_execute.js +0 -133
- package/scripts/verify_paywall_flag.js +0 -86
- package/scripts/verify_reference_promotion_gate.js +0 -74
- package/scripts/verify_reference_python.js +0 -49
- package/scripts/verify_reference_python_crypto.js +0 -87
- package/scripts/verify_reference_rust_scaffold.js +0 -50
- package/scripts/verify_service.js +0 -3038
- package/scripts/verify_tooling.js +0 -1251
- package/scripts/verify_trust_portability.js +0 -56
- package/scripts/verify_verification_services.js +0 -56
- package/server.js +0 -4430
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const packageJson = require("../package.json");
|
|
4
|
-
|
|
5
|
-
function buildPhase9TreasuryDestinationsProofPack() {
|
|
6
|
-
return {
|
|
7
|
-
ok: true,
|
|
8
|
-
product: packageJson.name,
|
|
9
|
-
category: "proof-phase-9-treasury-destinations-proof-pack",
|
|
10
|
-
phase_ref: "phase_9",
|
|
11
|
-
posture: "proof_path",
|
|
12
|
-
ecosystems: ["treasury_destinations"],
|
|
13
|
-
proof_shape: {
|
|
14
|
-
evidence_modes: ["treasury_continuation", "custody_reference_carry", "accounting_bridge_evidence"],
|
|
15
|
-
destination_modes: ["destination_proof_flow", "destination_carry_flow", "destination_handoff_flow"],
|
|
16
|
-
proof_artifacts: ["destination_bundle", "custody_bundle", "accounting_bundle"],
|
|
17
|
-
proof_surfaces: [
|
|
18
|
-
"/v1/proof-center/bridge/summary",
|
|
19
|
-
"/v1/release-center/summary",
|
|
20
|
-
"/v1/phases/phase-9/summary"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
first_path: {
|
|
24
|
-
purpose: "show the first Phase 9 treasury proof path from settlement evidence into treasury and accounting continuity",
|
|
25
|
-
first_http_sequence: [
|
|
26
|
-
"/v1/phases/phase-9/summary",
|
|
27
|
-
"/v1/phases/phase-9/treasury-destinations/proof/summary",
|
|
28
|
-
"/v1/release-center/summary"
|
|
29
|
-
],
|
|
30
|
-
first_cli_sequence: [
|
|
31
|
-
"xoonya-release --phase-9-treasury-destinations-proof --summary",
|
|
32
|
-
"xoonya-release --phase-9 --summary"
|
|
33
|
-
],
|
|
34
|
-
expected_signals: [
|
|
35
|
-
"treasury destinations is a public Phase 9 proof lane",
|
|
36
|
-
"proof artifacts are explicit at the lane level",
|
|
37
|
-
"treasury proof posture is visible before broader Phase 9 expansion"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
completion: {
|
|
41
|
-
completion_checks: [
|
|
42
|
-
"treasury destinations proof lane is public and inspectable",
|
|
43
|
-
"proof artifacts are visible at lane level",
|
|
44
|
-
"proof surfaces remain attached to the treasury lane",
|
|
45
|
-
"the lane is ready to anchor broader treasury/operator breadth"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function summarizePhase9TreasuryDestinationsProofPack() {
|
|
52
|
-
const pack = buildPhase9TreasuryDestinationsProofPack();
|
|
53
|
-
return {
|
|
54
|
-
ok: true,
|
|
55
|
-
product: pack.product,
|
|
56
|
-
category: pack.category,
|
|
57
|
-
phase_ref: pack.phase_ref,
|
|
58
|
-
ecosystem_count: pack.ecosystems.length,
|
|
59
|
-
evidence_mode_count: pack.proof_shape.evidence_modes.length,
|
|
60
|
-
destination_mode_count: pack.proof_shape.destination_modes.length,
|
|
61
|
-
proof_artifact_count: pack.proof_shape.proof_artifacts.length,
|
|
62
|
-
completion_check_count: pack.completion.completion_checks.length,
|
|
63
|
-
http_step_count: pack.first_path.first_http_sequence.length,
|
|
64
|
-
cli_step_count: pack.first_path.first_cli_sequence.length,
|
|
65
|
-
signal_count: pack.first_path.expected_signals.length,
|
|
66
|
-
proof_surface_count: pack.proof_shape.proof_surfaces.length,
|
|
67
|
-
first_http_step: pack.first_path.first_http_sequence[0] || null
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
module.exports = {
|
|
72
|
-
buildPhase9TreasuryDestinationsProofPack,
|
|
73
|
-
summarizePhase9TreasuryDestinationsProofPack
|
|
74
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const packageJson = require("../package.json");
|
|
4
|
-
|
|
5
|
-
function buildPhaseProgramPack() {
|
|
6
|
-
return {
|
|
7
|
-
ok: true,
|
|
8
|
-
product: packageJson.name,
|
|
9
|
-
category: "proof-phase-program-pack",
|
|
10
|
-
current_phase: "program_closed",
|
|
11
|
-
phases: [
|
|
12
|
-
{ phase_ref: "phase_1", title: "Agent And Protocol Entry", status: "completed", main_repo_weight: "xoonya_medium_xytara_heavy", ecosystems: ["openai_codex", "claude_anthropic_mcp"], goal: "give early ecosystem users a clean proof-side continuation and review path" },
|
|
13
|
-
{ phase_ref: "phase_2", title: "Broadly Legible Payment Rails", status: "completed", main_repo_weight: "xoonya_medium_xytara_very_heavy", ecosystems: ["evm", "base", "eth", "usdc"], goal: "normalize proof for broadly legible settlement rails" },
|
|
14
|
-
{ phase_ref: "phase_3", title: "Native BSV Completion", status: "completed", main_repo_weight: "xoonya_heavy_xytara_heavy", ecosystems: ["bsv", "teranode", "metanet", "brc"], goal: "fully solidify native settlement proof and continuity" },
|
|
15
|
-
{ phase_ref: "phase_4", title: "Identity And Trust Adapters", status: "completed", main_repo_weight: "xoonya_heavy_xytara_medium", ecosystems: ["erc8004", "identity_registry", "attestation"], goal: "deepen identity-aware proof and verification posture" },
|
|
16
|
-
{ phase_ref: "phase_5", title: "Additional Major Rails", status: "completed", main_repo_weight: "xoonya_medium_xytara_heavy", ecosystems: ["solana", "antelope", "greymass", "eosio", "proton_xpr"], goal: "broaden chain-normalized proof continuity" },
|
|
17
|
-
{ phase_ref: "phase_6", title: "Framework And Runtime Adapters", status: "completed", main_repo_weight: "xoonya_light_medium_xytara_heavy", ecosystems: ["langgraph", "langchain", "autogen", "semantic_kernel"], goal: "support production runtimes with direct proof followthrough" },
|
|
18
|
-
{ phase_ref: "phase_7", title: "Event And System Integration", status: "completed", main_repo_weight: "xoonya_light_xytara_heavy", ecosystems: ["kafka", "nats", "mqtt", "webhook_event_bus"], goal: "accept and classify system-origin proof-relevant events cleanly" },
|
|
19
|
-
{ phase_ref: "phase_8", title: "Proof And External Evidence Bridges", status: "completed", main_repo_weight: "xoonya_very_heavy_xytara_medium", ecosystems: ["external_result_import", "external_receipt_import", "proof_bundle_normalization"], goal: "make xoonya the universal proof-side convergence layer" },
|
|
20
|
-
{ phase_ref: "phase_9", title: "Treasury And Operator Connectivity", status: "completed", main_repo_weight: "xoonya_light_medium_xytara_very_heavy", ecosystems: ["treasury_destinations", "custody_refs", "operator_accounting_bridges"], goal: "preserve proof continuity for real economic operations" },
|
|
21
|
-
{ phase_ref: "phase_10", title: "Long Tail Ecosystem Breadth", status: "completed", main_repo_weight: "varies", ecosystems: ["demand_driven_niche_extensions"], goal: "extend from real demand without fragmenting proof semantics" }
|
|
22
|
-
],
|
|
23
|
-
cross_phase_rules: [
|
|
24
|
-
"proof-side additions normalize external evidence into stable proof-bundle posture",
|
|
25
|
-
"verification, review, continuation, and evidence normalization belong first in xoonya",
|
|
26
|
-
"runtime and payment-specific behavior stays anchored in xytara and is carried into xoonya as facts",
|
|
27
|
-
"each phase should preserve one clear runtime-to-proof path for the target ecosystem"
|
|
28
|
-
]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function summarizePhaseProgramPack() {
|
|
33
|
-
const pack = buildPhaseProgramPack();
|
|
34
|
-
return {
|
|
35
|
-
ok: true,
|
|
36
|
-
product: pack.product,
|
|
37
|
-
category: pack.category,
|
|
38
|
-
current_phase: pack.current_phase,
|
|
39
|
-
phase_count: pack.phases.length,
|
|
40
|
-
active_phase_count: pack.phases.filter((entry) => entry.status === "active").length,
|
|
41
|
-
planned_phase_count: pack.phases.filter((entry) => entry.status === "planned").length,
|
|
42
|
-
completed_phase_count: pack.phases.filter((entry) => entry.status === "completed").length,
|
|
43
|
-
rule_count: pack.cross_phase_rules.length
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
module.exports = { buildPhaseProgramPack, summarizePhaseProgramPack };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
buildBridgeIntelligencePack,
|
|
5
|
-
summarizeBridgeIntelligencePack
|
|
6
|
-
} = require("./bridge_intelligence");
|
|
7
|
-
const {
|
|
8
|
-
buildTrustIntelligencePack,
|
|
9
|
-
summarizeTrustIntelligencePack
|
|
10
|
-
} = require("./trust_intelligence");
|
|
11
|
-
|
|
12
|
-
function buildProofBridgeLanePack() {
|
|
13
|
-
const bridgeIntelligence = buildBridgeIntelligencePack();
|
|
14
|
-
const trustIntelligence = buildTrustIntelligencePack();
|
|
15
|
-
return {
|
|
16
|
-
product: "xoonya",
|
|
17
|
-
category: "proof-bridge-lane-pack",
|
|
18
|
-
pack_version: "xoonya-proof-bridge-lane-pack-v1",
|
|
19
|
-
lane_state: "first_party_proof_bridge_present",
|
|
20
|
-
posture: "runtime_to_proof_handoff_and_external_proof_bridge_lane",
|
|
21
|
-
bridge_intelligence: bridgeIntelligence,
|
|
22
|
-
trust_intelligence: trustIntelligence,
|
|
23
|
-
supported_surfaces: {
|
|
24
|
-
bridge_summary_ref: "/v1/proof-center/bridge/summary",
|
|
25
|
-
bridge_profile_support_ref: "/v1/proof-center/bridge/profile-support",
|
|
26
|
-
bridge_operator_review_pack_ref: "/v1/proof-center/bridge/operator-review-pack",
|
|
27
|
-
bridge_compatibility_pack_ref: "/v1/proof-center/bridge/compatibility-pack",
|
|
28
|
-
bridge_economic_handoff_ref: "/v1/proof-center/bridge/economic-handoff",
|
|
29
|
-
bridge_workflow_pack_ref: "/v1/proof-center/bridge/workflow-pack",
|
|
30
|
-
trust_intelligence_ref: "/v1/trust-intelligence/summary",
|
|
31
|
-
bridge_intelligence_ref: "/v1/bridge-intelligence/summary",
|
|
32
|
-
phase_8_continuity_ref: "/v1/phases/phase-8/proof-bridge-continuity/summary"
|
|
33
|
-
},
|
|
34
|
-
first_run_flows: [
|
|
35
|
-
{
|
|
36
|
-
flow_ref: "runtime_to_proof_bridge",
|
|
37
|
-
recommended_reason: "best first bridge path for carrying bounded runtime consequence into proof review",
|
|
38
|
-
sequence: [
|
|
39
|
-
"inspect_bridge_lane_summary",
|
|
40
|
-
"inspect_bridge_profile_support",
|
|
41
|
-
"submit_economic_handoff",
|
|
42
|
-
"inspect_compatibility_and_operator_review_posture"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
flow_ref: "external_proof_bridge_review",
|
|
47
|
-
recommended_reason: "best first external proof compatibility path for imported result, receipt, or normalized proof bundles",
|
|
48
|
-
sequence: [
|
|
49
|
-
"inspect_phase_8_continuity_summary",
|
|
50
|
-
"inspect_bridge_intelligence",
|
|
51
|
-
"inspect_operator_review_pack",
|
|
52
|
-
"inspect_trust_intelligence"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
guardrails: [
|
|
57
|
-
"bridge surfaces remain bounded followthrough rather than a second runtime core",
|
|
58
|
-
"compatibility and handoff carry must remain subordinate to proof review and governance checks",
|
|
59
|
-
"the bridge lane should increase builder trust without widening xoonya into uncontrolled orchestration"
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function summarizeProofBridgeLanePack() {
|
|
65
|
-
const pack = buildProofBridgeLanePack();
|
|
66
|
-
return {
|
|
67
|
-
product: "xoonya",
|
|
68
|
-
category: "proof-bridge-lane-pack-summary",
|
|
69
|
-
summary_version: "xoonya-proof-bridge-lane-pack-summary-v1",
|
|
70
|
-
lane_state: pack.lane_state,
|
|
71
|
-
posture: pack.posture,
|
|
72
|
-
bridge_coverage_state: pack.bridge_intelligence.bridge_coverage_state,
|
|
73
|
-
trust_readiness_state: pack.trust_intelligence.proof_readiness_state,
|
|
74
|
-
first_run_flow_count: pack.first_run_flows.length,
|
|
75
|
-
linked_surfaces: pack.supported_surfaces
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
module.exports = {
|
|
80
|
-
buildProofBridgeLanePack,
|
|
81
|
-
summarizeProofBridgeLanePack
|
|
82
|
-
};
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const packageJson = require("../package.json");
|
|
4
|
-
const proofSdk = require("../proof_sdk");
|
|
5
|
-
const { summarizeVerificationServicesPack } = require("./verification_service_pack");
|
|
6
|
-
const { summarizeTrustPortabilityPack } = require("./trust_portability_pack");
|
|
7
|
-
|
|
8
|
-
function buildProofTruthModelPack() {
|
|
9
|
-
const proofCenter = proofSdk.summarizeDefaultProofCenter();
|
|
10
|
-
const nativeStandard = proofSdk.summarizexoonyaNativeProofStandard();
|
|
11
|
-
const nativeAtom = proofSdk.summarizexoonyaNativeAtomSpec();
|
|
12
|
-
const nativePayloadProfile = proofSdk.summarizexoonyaNativePayloadProfilePack();
|
|
13
|
-
const nativeAnchorProfile = proofSdk.summarizexoonyaNativeAnchorProfile();
|
|
14
|
-
const verificationServices = summarizeVerificationServicesPack();
|
|
15
|
-
const trustPortability = summarizeTrustPortabilityPack();
|
|
16
|
-
const transactionHandoff = proofSdk.summarizeTransactionProofHandoffCenter();
|
|
17
|
-
const interactionHandoff = proofSdk.summarizeInteractionSpineProofHandoffCenter();
|
|
18
|
-
const resultPackageHandoff = proofSdk.summarizeInteractionResultPackageHandoffCenter();
|
|
19
|
-
const bridge = proofSdk.summarizeBridgeCenter();
|
|
20
|
-
const governance = proofSdk.summarizeGovernanceCenter();
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
ok: true,
|
|
24
|
-
product: packageJson.name,
|
|
25
|
-
category: "xoonya-proof-truth-model",
|
|
26
|
-
pack_version: "xoonya-proof-truth-model-v1",
|
|
27
|
-
posture: "deterministic_proof_truth_plus_reviewable_followthrough",
|
|
28
|
-
model_state: "frozen_for_3_0_0_closeout",
|
|
29
|
-
doctrine: "xoonya_owns_proof_truth_verification_reviewable_handoff_followthrough_and_governance_without_reabsorbing_runtime_commerce_semantics",
|
|
30
|
-
core_claim: "xoonya is the canonical proof-side fact model linking canonical events, receipts, proof bundles, native XNYA artifacts, verification services, handoff continuation, bridge carry, and governance followthrough",
|
|
31
|
-
canonical_objects: [
|
|
32
|
-
{
|
|
33
|
-
object_id: "canonical_event_bundle",
|
|
34
|
-
role: "deterministic_hot_input_for_proof_construction",
|
|
35
|
-
required_fields: [
|
|
36
|
-
"event",
|
|
37
|
-
"event_hash_sha256"
|
|
38
|
-
],
|
|
39
|
-
primary_surfaces: [
|
|
40
|
-
"/v1/events/canonicalize",
|
|
41
|
-
"/v1/events/hash"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
object_id: "receipt",
|
|
46
|
-
role: "canonical_intermediate_statement_of_what_is_being_proved",
|
|
47
|
-
required_fields: [
|
|
48
|
-
"receipt_id",
|
|
49
|
-
"event_hash_sha256",
|
|
50
|
-
"verification_method"
|
|
51
|
-
],
|
|
52
|
-
primary_surfaces: [
|
|
53
|
-
"/v1/receipts/emit",
|
|
54
|
-
"/v1/receipts/verify"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
object_id: "proof_bundle",
|
|
59
|
-
role: "portable_replayable_verifiable_proof_output",
|
|
60
|
-
required_fields: [
|
|
61
|
-
"version",
|
|
62
|
-
"ceb",
|
|
63
|
-
"receipt",
|
|
64
|
-
"proof"
|
|
65
|
-
],
|
|
66
|
-
primary_surfaces: [
|
|
67
|
-
"/v1/proof-bundles/build",
|
|
68
|
-
"/v1/proof-bundles/verify"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
object_id: "xnya_native_artifact",
|
|
73
|
-
role: "native_compact_machine_evidence_artifact",
|
|
74
|
-
required_fields: [
|
|
75
|
-
"method",
|
|
76
|
-
"native_atom_magic",
|
|
77
|
-
"payload_hash_or_binding"
|
|
78
|
-
],
|
|
79
|
-
primary_surfaces: [
|
|
80
|
-
"/v1/proof-center/native-standard",
|
|
81
|
-
"/v1/proof-center/native-atom-spec",
|
|
82
|
-
"/v1/proof-center/native-payload-profile",
|
|
83
|
-
"/v1/proof-center/native-anchor-profile"
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
object_id: "proof_handoff_review",
|
|
88
|
-
role: "reviewable_runtime_to_proof_continuation_boundary",
|
|
89
|
-
required_fields: [
|
|
90
|
-
"source_ref",
|
|
91
|
-
"proof_ref",
|
|
92
|
-
"review_summary"
|
|
93
|
-
],
|
|
94
|
-
primary_surfaces: [
|
|
95
|
-
"/v1/proof-center/transaction-handoff/summary",
|
|
96
|
-
"/v1/proof-center/interaction-spine-handoff/summary",
|
|
97
|
-
"/v1/proof-center/result-package-handoff/review/summary"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
object_id: "bridge_and_governance_followthrough",
|
|
102
|
-
role: "operator_review_bridge_and_dispute_followthrough_bundle",
|
|
103
|
-
required_fields: [
|
|
104
|
-
"bridge_ref_or_bundle",
|
|
105
|
-
"governance_review_ref_or_case"
|
|
106
|
-
],
|
|
107
|
-
primary_surfaces: [
|
|
108
|
-
"/v1/proof-center/bridge/summary",
|
|
109
|
-
"/v1/proof-center/governance/summary",
|
|
110
|
-
"/v1/proof-center/governance/disputes/summary"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
layer_model: [
|
|
115
|
-
{
|
|
116
|
-
layer_id: "proof_core",
|
|
117
|
-
order_index: 1,
|
|
118
|
-
objects: ["canonical_event_bundle", "receipt", "proof_bundle"],
|
|
119
|
-
invariants: [
|
|
120
|
-
"proof_core_stays_deterministic_portable_and_replayable",
|
|
121
|
-
"proof_bundle_verification_is_canonical_xoonya_truth"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
layer_id: "native_xnya",
|
|
126
|
-
order_index: 2,
|
|
127
|
-
objects: ["xnya_native_artifact"],
|
|
128
|
-
invariants: [
|
|
129
|
-
"xnya_is_the_native_compact_machine_evidence_family",
|
|
130
|
-
"native_artifacts_do_not_replace_runtime_or_identity_control_planes"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
layer_id: "verification_services",
|
|
135
|
-
order_index: 3,
|
|
136
|
-
objects: ["proof_bundle", "proof_handoff_review"],
|
|
137
|
-
invariants: [
|
|
138
|
-
"verification_surfaces_stay_first_class_services",
|
|
139
|
-
"external_signature_or_chain_truth_requires_bounded_claim_language"
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
layer_id: "handoff_and_bridge_continuity",
|
|
144
|
-
order_index: 4,
|
|
145
|
-
objects: ["proof_handoff_review", "bridge_and_governance_followthrough"],
|
|
146
|
-
invariants: [
|
|
147
|
-
"runtime_outputs_can_continue_into_proof_without_dead_end_loss",
|
|
148
|
-
"bridge_carry_preserves_reviewable_context_without_becoming_runtime_truth"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
layer_id: "governance_followthrough",
|
|
153
|
-
order_index: 5,
|
|
154
|
-
objects: ["bridge_and_governance_followthrough"],
|
|
155
|
-
invariants: [
|
|
156
|
-
"governance_preserves_reviewable_dispute_and_resolution_posture",
|
|
157
|
-
"xoonya_does_not_claim_universal_external_judgment_truth"
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
proof_truth_invariants: [
|
|
162
|
-
"canonical_event_bundle_precedes_receipt_and_bundle_verification",
|
|
163
|
-
"receipt_is_a_canonical_proof_intermediate_not_runtime_commerce_truth",
|
|
164
|
-
"proof_bundle_is_the_portable_verifiable_output",
|
|
165
|
-
"xnya_is_the_native_compact_evidence_family",
|
|
166
|
-
"handoff_review_is_first_class_not_optional_afterthought",
|
|
167
|
-
"bridge_and_governance_surfaces_extend_proof_followthrough_without_redefining_runtime_truth"
|
|
168
|
-
],
|
|
169
|
-
linked_summaries: {
|
|
170
|
-
proof_center_summary: proofCenter,
|
|
171
|
-
native_standard_summary: nativeStandard,
|
|
172
|
-
native_atom_summary: nativeAtom,
|
|
173
|
-
native_payload_profile_summary: nativePayloadProfile,
|
|
174
|
-
native_anchor_profile_summary: nativeAnchorProfile,
|
|
175
|
-
verification_services_summary: verificationServices,
|
|
176
|
-
trust_portability_summary: trustPortability,
|
|
177
|
-
transaction_handoff_summary: transactionHandoff,
|
|
178
|
-
interaction_handoff_summary: interactionHandoff,
|
|
179
|
-
result_package_handoff_summary: resultPackageHandoff,
|
|
180
|
-
bridge_summary: bridge,
|
|
181
|
-
governance_summary: governance
|
|
182
|
-
},
|
|
183
|
-
linked_surfaces: {
|
|
184
|
-
proof_center_ref: "/v1/proof-center",
|
|
185
|
-
proof_center_summary_ref: "/v1/proof-center/summary",
|
|
186
|
-
native_standard_summary_ref: "/v1/proof-center/native-standard/summary",
|
|
187
|
-
verification_services_summary_ref: "/v1/proof-center/verification-services/summary",
|
|
188
|
-
trust_portability_summary_ref: "/v1/proof-center/trust-portability/summary",
|
|
189
|
-
transaction_handoff_summary_ref: "/v1/proof-center/transaction-handoff/summary",
|
|
190
|
-
interaction_handoff_summary_ref: "/v1/proof-center/interaction-spine-handoff/summary",
|
|
191
|
-
result_package_handoff_review_summary_ref: "/v1/proof-center/result-package-handoff/review/summary",
|
|
192
|
-
bridge_summary_ref: "/v1/proof-center/bridge/summary",
|
|
193
|
-
governance_summary_ref: "/v1/proof-center/governance/summary"
|
|
194
|
-
},
|
|
195
|
-
claim_boundary: "claim_the_proof_side_fact_model_verification_and_reviewable_followthrough_only_without_reclaiming_runtime_commerce_truth_or_unbounded_external_chain_identity_or_judgment_truth"
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function summarizeProofTruthModelPack() {
|
|
200
|
-
const pack = buildProofTruthModelPack();
|
|
201
|
-
return {
|
|
202
|
-
ok: true,
|
|
203
|
-
product: pack.product,
|
|
204
|
-
category: pack.category,
|
|
205
|
-
summary_version: "xoonya-proof-truth-model-summary-v1",
|
|
206
|
-
pack_version: pack.pack_version,
|
|
207
|
-
model_state: pack.model_state,
|
|
208
|
-
canonical_object_count: pack.canonical_objects.length,
|
|
209
|
-
layer_count: pack.layer_model.length,
|
|
210
|
-
invariant_count: pack.proof_truth_invariants.length,
|
|
211
|
-
linked_surfaces: pack.linked_surfaces
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function getProofTruthObjectDetail(objectId) {
|
|
216
|
-
const normalized = String(objectId || "").trim().toLowerCase();
|
|
217
|
-
return (buildProofTruthModelPack().canonical_objects || []).find((entry) => entry.object_id === normalized) || null;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
module.exports = {
|
|
221
|
-
buildProofTruthModelPack,
|
|
222
|
-
summarizeProofTruthModelPack,
|
|
223
|
-
getProofTruthObjectDetail
|
|
224
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function buildProvenanceLanePack() {
|
|
4
|
-
return {
|
|
5
|
-
product: "xoonya",
|
|
6
|
-
category: "proof-provenance-lane-pack",
|
|
7
|
-
pack_version: "xoonya-provenance-lane-pack-v1",
|
|
8
|
-
lane_state: "first_party_provenance_lane_present",
|
|
9
|
-
posture: "proof_release_and_bundle_supply_chain_trust_lane",
|
|
10
|
-
standards: ["slsa"],
|
|
11
|
-
focal_surfaces: ["release_candidate", "release_manifest", "proof_bridge", "result_package_trust"],
|
|
12
|
-
supported_surfaces: {
|
|
13
|
-
release_candidate_ref: "/v1/release-candidate",
|
|
14
|
-
release_manifest_ref: "/v1/release-manifest",
|
|
15
|
-
release_center_ref: "/v1/release-center",
|
|
16
|
-
proof_bridge_ref: "/v1/proof-bridge",
|
|
17
|
-
result_package_trust_ref: "/v1/result-package-trust"
|
|
18
|
-
},
|
|
19
|
-
first_run_flows: [
|
|
20
|
-
{
|
|
21
|
-
flow_ref: "proof_provenance_review",
|
|
22
|
-
recommended_reason: "best path for teams that need trust in proof artifacts, release posture, and imported evidence before wider rollout",
|
|
23
|
-
sequence: [
|
|
24
|
-
"inspect_provenance_lane_summary",
|
|
25
|
-
"inspect_release_candidate_and_manifest",
|
|
26
|
-
"inspect proof_bridge and result_package_trust surfaces",
|
|
27
|
-
"treat proof artifacts and release posture as provenance-carrying trust anchors"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
guardrails: [
|
|
32
|
-
"provenance should strengthen trust in proof artifacts without replacing proof verification itself",
|
|
33
|
-
"supply-chain trust remains complementary to canonical proof semantics"
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function summarizeProvenanceLanePack() {
|
|
39
|
-
const pack = buildProvenanceLanePack();
|
|
40
|
-
return {
|
|
41
|
-
product: "xoonya",
|
|
42
|
-
category: "proof-provenance-lane-pack-summary",
|
|
43
|
-
summary_version: "xoonya-provenance-lane-pack-summary-v1",
|
|
44
|
-
lane_state: pack.lane_state,
|
|
45
|
-
standard_count: pack.standards.length,
|
|
46
|
-
focal_surface_count: pack.focal_surfaces.length,
|
|
47
|
-
linked_surfaces: pack.supported_surfaces
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
module.exports = {
|
|
52
|
-
buildProvenanceLanePack,
|
|
53
|
-
summarizeProvenanceLanePack
|
|
54
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
buildPhase1OpenaiCodexProofPack,
|
|
5
|
-
summarizePhase1OpenaiCodexProofPack
|
|
6
|
-
} = require("./phase_1_openai_codex_proof_pack");
|
|
7
|
-
const {
|
|
8
|
-
buildPhase1ClaudeMcpProofPack,
|
|
9
|
-
summarizePhase1ClaudeMcpProofPack
|
|
10
|
-
} = require("./phase_1_claude_mcp_proof_pack");
|
|
11
|
-
|
|
12
|
-
function buildProviderLanePack() {
|
|
13
|
-
return {
|
|
14
|
-
product: "xoonya",
|
|
15
|
-
category: "proof-provider-lane-pack",
|
|
16
|
-
pack_version: "xoonya-provider-lane-pack-v1",
|
|
17
|
-
lane_state: "first_party_provider_family_present",
|
|
18
|
-
posture: "provider_entry_and_proof_followthrough_family",
|
|
19
|
-
featured_providers: {
|
|
20
|
-
openai_codex: {
|
|
21
|
-
pack: buildPhase1OpenaiCodexProofPack(),
|
|
22
|
-
summary: summarizePhase1OpenaiCodexProofPack()
|
|
23
|
-
},
|
|
24
|
-
claude_mcp: {
|
|
25
|
-
pack: buildPhase1ClaudeMcpProofPack(),
|
|
26
|
-
summary: summarizePhase1ClaudeMcpProofPack()
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
supported_surfaces: {
|
|
30
|
-
phase_1_summary_ref: "/v1/phases/phase-1/summary",
|
|
31
|
-
openai_codex_summary_ref: "/v1/phases/phase-1/openai-codex/proof/summary",
|
|
32
|
-
claude_mcp_summary_ref: "/v1/phases/phase-1/claude-mcp/proof/summary",
|
|
33
|
-
proof_bridge_ref: "/v1/proof-bridge",
|
|
34
|
-
integrations_ref: "/v1/integrations"
|
|
35
|
-
},
|
|
36
|
-
first_run_flows: [
|
|
37
|
-
{
|
|
38
|
-
flow_ref: "provider_family_proof_selection",
|
|
39
|
-
recommended_reason: "best first path for understanding how named provider-originated runs enter the canonical proof and review system",
|
|
40
|
-
sequence: [
|
|
41
|
-
"inspect_provider_lane_summary",
|
|
42
|
-
"inspect_openai_codex_and_claude_mcp_proof_profiles",
|
|
43
|
-
"choose_the_followthrough_shape",
|
|
44
|
-
"continue_into_bridge_and_result_package_review"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function summarizeProviderLanePack() {
|
|
52
|
-
const pack = buildProviderLanePack();
|
|
53
|
-
return {
|
|
54
|
-
product: "xoonya",
|
|
55
|
-
category: "proof-provider-lane-pack-summary",
|
|
56
|
-
summary_version: "xoonya-provider-lane-pack-summary-v1",
|
|
57
|
-
lane_state: pack.lane_state,
|
|
58
|
-
featured_provider_count: Object.keys(pack.featured_providers).length,
|
|
59
|
-
first_run_flow_count: pack.first_run_flows.length,
|
|
60
|
-
linked_surfaces: pack.supported_surfaces
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
module.exports = {
|
|
65
|
-
buildProviderLanePack,
|
|
66
|
-
summarizeProviderLanePack
|
|
67
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const packageJson = require("../package.json");
|
|
4
|
-
|
|
5
|
-
function buildPublicSurfacePolicyContractPack() {
|
|
6
|
-
return {
|
|
7
|
-
ok: true,
|
|
8
|
-
product: packageJson.name,
|
|
9
|
-
category: "naxytra-public-surface-policy-contract",
|
|
10
|
-
pack_version: "naxytra-public-surface-policy-contract-v1",
|
|
11
|
-
doctrine: "xoonya_respects_public_surface_classification_before_accepting_or_reviewing_any_surface",
|
|
12
|
-
model_state: "core_now",
|
|
13
|
-
core_claim: "every public surface must declare discovery paid proof_review or operator_only policy before it is treated as part of the public stack",
|
|
14
|
-
surface_classes: [
|
|
15
|
-
{
|
|
16
|
-
surface_class: "discovery_only",
|
|
17
|
-
description: "public informational and machine-discoverable surfaces",
|
|
18
|
-
examples: [
|
|
19
|
-
"/health",
|
|
20
|
-
"/server.json",
|
|
21
|
-
"/.well-known/mcp-server.json",
|
|
22
|
-
"/.well-known/glama.json",
|
|
23
|
-
"/v1/agent-discovery-index",
|
|
24
|
-
"/v1/agent-discovery-index/summary"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
surface_class: "paid",
|
|
29
|
-
description: "machine work or runtime invocation surfaces",
|
|
30
|
-
examples: [
|
|
31
|
-
"POST /v1/commands/execute",
|
|
32
|
-
"POST /x402/commands/execute",
|
|
33
|
-
"POST /v1/mcp/tools/invoke",
|
|
34
|
-
"POST /x402/mcp/tools/invoke"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
surface_class: "proof_review",
|
|
39
|
-
description: "proof and evidence review surfaces",
|
|
40
|
-
examples: [
|
|
41
|
-
"/v1/proof-truth",
|
|
42
|
-
"/v1/proof-truth/summary",
|
|
43
|
-
"/v1/followthrough-truth",
|
|
44
|
-
"/v1/followthrough-truth/summary",
|
|
45
|
-
"/v1/receipts",
|
|
46
|
-
"/v1/receipts/:receipt_id"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
surface_class: "operator_only",
|
|
51
|
-
description: "internal control or mutable operator surfaces",
|
|
52
|
-
examples: [
|
|
53
|
-
"/v1/business-cockpit",
|
|
54
|
-
"/business-cockpit",
|
|
55
|
-
"/v1/operator-shell",
|
|
56
|
-
"/v1/agent-accounts"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
enforcement_rules: [
|
|
61
|
-
"discovery_only_surfaces_must_not_require_payment",
|
|
62
|
-
"paid_surfaces_must_carry_payment_or_challenge_metadata_when_public",
|
|
63
|
-
"proof_review_surfaces_must_not_mutate_runtime_or_treasury_truth",
|
|
64
|
-
"operator_only_surfaces_must_not_be_listed_as_public_discovery",
|
|
65
|
-
"every_new_surface_must_choose_a_class_before_release"
|
|
66
|
-
],
|
|
67
|
-
route_fields: [
|
|
68
|
-
"surface_path",
|
|
69
|
-
"surface_class",
|
|
70
|
-
"requires_payment",
|
|
71
|
-
"requires_operator_auth",
|
|
72
|
-
"proof_boundary",
|
|
73
|
-
"claim_boundary"
|
|
74
|
-
],
|
|
75
|
-
linked_surfaces: {
|
|
76
|
-
discovery_index_ref: "/v1/agent-discovery-index",
|
|
77
|
-
discovery_index_summary_ref: "/v1/agent-discovery-index/summary",
|
|
78
|
-
proof_truth_ref: "/v1/proof-truth",
|
|
79
|
-
followthrough_truth_ref: "/v1/followthrough-truth",
|
|
80
|
-
operator_cockpit_ref: "/v1/business-cockpit"
|
|
81
|
-
},
|
|
82
|
-
claim_boundary: "claim_the_public_surface_policy_for_xoonya_only_without_claiming_runtime_payment_or_proof_truth_beyond_the_listed_surfaces"
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function summarizePublicSurfacePolicyContractPack() {
|
|
87
|
-
const pack = buildPublicSurfacePolicyContractPack();
|
|
88
|
-
return {
|
|
89
|
-
ok: true,
|
|
90
|
-
product: pack.product,
|
|
91
|
-
category: pack.category,
|
|
92
|
-
summary_version: "naxytra-public-surface-policy-contract-summary-v1",
|
|
93
|
-
pack_version: pack.pack_version,
|
|
94
|
-
model_state: pack.model_state,
|
|
95
|
-
surface_class_count: pack.surface_classes.length,
|
|
96
|
-
rule_count: pack.enforcement_rules.length,
|
|
97
|
-
route_field_count: pack.route_fields.length,
|
|
98
|
-
linked_surfaces: pack.linked_surfaces
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function getPublicSurfaceClassDetail(surfaceClass) {
|
|
103
|
-
const normalized = String(surfaceClass || "").trim().toLowerCase();
|
|
104
|
-
return (buildPublicSurfacePolicyContractPack().surface_classes || []).find((entry) => entry.surface_class === normalized) || null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
module.exports = {
|
|
108
|
-
buildPublicSurfacePolicyContractPack,
|
|
109
|
-
summarizePublicSurfacePolicyContractPack,
|
|
110
|
-
getPublicSurfaceClassDetail
|
|
111
|
-
};
|