@unifyplane/logsdk 0.1.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.
Files changed (170) hide show
  1. package/README.md +18 -0
  2. package/contracts/repo.capabilities.json +12 -0
  3. package/contracts/repo.runtime.json +49 -0
  4. package/contracts/schemas/repo/repo.runtime.v1.schema.json +134 -0
  5. package/dist/core/clock.d.ts +3 -0
  6. package/dist/core/clock.d.ts.map +1 -0
  7. package/dist/core/clock.js +21 -0
  8. package/dist/core/clock.js.map +1 -0
  9. package/dist/core/context.d.ts +10 -0
  10. package/dist/core/context.d.ts.map +1 -0
  11. package/dist/core/context.js +100 -0
  12. package/dist/core/context.js.map +1 -0
  13. package/dist/core/fanout.d.ts +4 -0
  14. package/dist/core/fanout.d.ts.map +1 -0
  15. package/dist/core/fanout.js +32 -0
  16. package/dist/core/fanout.js.map +1 -0
  17. package/dist/core/ids.d.ts +6 -0
  18. package/dist/core/ids.d.ts.map +1 -0
  19. package/dist/core/ids.js +27 -0
  20. package/dist/core/ids.js.map +1 -0
  21. package/dist/core/message_constraints.d.ts +4 -0
  22. package/dist/core/message_constraints.d.ts.map +1 -0
  23. package/dist/core/message_constraints.js +53 -0
  24. package/dist/core/message_constraints.js.map +1 -0
  25. package/dist/core/outcomes.d.ts +5 -0
  26. package/dist/core/outcomes.d.ts.map +1 -0
  27. package/dist/core/outcomes.js +4 -0
  28. package/dist/core/outcomes.js.map +1 -0
  29. package/dist/core/record_builder.d.ts +34 -0
  30. package/dist/core/record_builder.d.ts.map +1 -0
  31. package/dist/core/record_builder.js +188 -0
  32. package/dist/core/record_builder.js.map +1 -0
  33. package/dist/core/spool.d.ts +4 -0
  34. package/dist/core/spool.d.ts.map +1 -0
  35. package/dist/core/spool.js +31 -0
  36. package/dist/core/spool.js.map +1 -0
  37. package/dist/core/types.d.ts +33 -0
  38. package/dist/core/types.d.ts.map +1 -0
  39. package/dist/core/types.js +4 -0
  40. package/dist/core/types.js.map +1 -0
  41. package/dist/esm/core/clock.js +21 -0
  42. package/dist/esm/core/clock.js.map +1 -0
  43. package/dist/esm/core/context.js +100 -0
  44. package/dist/esm/core/context.js.map +1 -0
  45. package/dist/esm/core/fanout.js +32 -0
  46. package/dist/esm/core/fanout.js.map +1 -0
  47. package/dist/esm/core/ids.js +27 -0
  48. package/dist/esm/core/ids.js.map +1 -0
  49. package/dist/esm/core/message_constraints.js +53 -0
  50. package/dist/esm/core/message_constraints.js.map +1 -0
  51. package/dist/esm/core/outcomes.js +4 -0
  52. package/dist/esm/core/outcomes.js.map +1 -0
  53. package/dist/esm/core/record_builder.js +188 -0
  54. package/dist/esm/core/record_builder.js.map +1 -0
  55. package/dist/esm/core/spool.js +31 -0
  56. package/dist/esm/core/spool.js.map +1 -0
  57. package/dist/esm/core/types.js +4 -0
  58. package/dist/esm/core/types.js.map +1 -0
  59. package/dist/esm/index.js +52 -0
  60. package/dist/esm/index.js.map +1 -0
  61. package/dist/esm/sinks/file_ndjson.js +29 -0
  62. package/dist/esm/sinks/file_ndjson.js.map +1 -0
  63. package/dist/esm/sinks/file_ndjson_sink.js +36 -0
  64. package/dist/esm/sinks/file_ndjson_sink.js.map +1 -0
  65. package/dist/esm/sinks/sink_types.js +2 -0
  66. package/dist/esm/sinks/sink_types.js.map +1 -0
  67. package/dist/esm/sinks/stdout_sink.js +15 -0
  68. package/dist/esm/sinks/stdout_sink.js.map +1 -0
  69. package/dist/esm/validate/api_surface_guard.js +63 -0
  70. package/dist/esm/validate/api_surface_guard.js.map +1 -0
  71. package/dist/esm/validate/noncompliance.js +17 -0
  72. package/dist/esm/validate/noncompliance.js.map +1 -0
  73. package/dist/esm/validate/schema_guard.js +151 -0
  74. package/dist/esm/validate/schema_guard.js.map +1 -0
  75. package/dist/index.d.ts +26 -0
  76. package/dist/index.d.ts.map +1 -0
  77. package/dist/index.js +52 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/sinks/file_ndjson.d.ts +18 -0
  80. package/dist/sinks/file_ndjson.d.ts.map +1 -0
  81. package/dist/sinks/file_ndjson.js +29 -0
  82. package/dist/sinks/file_ndjson.js.map +1 -0
  83. package/dist/sinks/file_ndjson_sink.d.ts +7 -0
  84. package/dist/sinks/file_ndjson_sink.d.ts.map +1 -0
  85. package/dist/sinks/file_ndjson_sink.js +36 -0
  86. package/dist/sinks/file_ndjson_sink.js.map +1 -0
  87. package/dist/sinks/sink_types.d.ts +12 -0
  88. package/dist/sinks/sink_types.d.ts.map +1 -0
  89. package/dist/sinks/sink_types.js +2 -0
  90. package/dist/sinks/sink_types.js.map +1 -0
  91. package/dist/sinks/stdout_sink.d.ts +6 -0
  92. package/dist/sinks/stdout_sink.d.ts.map +1 -0
  93. package/dist/sinks/stdout_sink.js +15 -0
  94. package/dist/sinks/stdout_sink.js.map +1 -0
  95. package/dist/types/core/clock.d.ts +3 -0
  96. package/dist/types/core/clock.d.ts.map +1 -0
  97. package/dist/types/core/context.d.ts +10 -0
  98. package/dist/types/core/context.d.ts.map +1 -0
  99. package/dist/types/core/fanout.d.ts +4 -0
  100. package/dist/types/core/fanout.d.ts.map +1 -0
  101. package/dist/types/core/ids.d.ts +6 -0
  102. package/dist/types/core/ids.d.ts.map +1 -0
  103. package/dist/types/core/message_constraints.d.ts +4 -0
  104. package/dist/types/core/message_constraints.d.ts.map +1 -0
  105. package/dist/types/core/outcomes.d.ts +5 -0
  106. package/dist/types/core/outcomes.d.ts.map +1 -0
  107. package/dist/types/core/record_builder.d.ts +34 -0
  108. package/dist/types/core/record_builder.d.ts.map +1 -0
  109. package/dist/types/core/spool.d.ts +4 -0
  110. package/dist/types/core/spool.d.ts.map +1 -0
  111. package/dist/types/core/types.d.ts +33 -0
  112. package/dist/types/core/types.d.ts.map +1 -0
  113. package/dist/types/index.d.ts +26 -0
  114. package/dist/types/index.d.ts.map +1 -0
  115. package/dist/types/sinks/file_ndjson.d.ts +18 -0
  116. package/dist/types/sinks/file_ndjson.d.ts.map +1 -0
  117. package/dist/types/sinks/file_ndjson_sink.d.ts +7 -0
  118. package/dist/types/sinks/file_ndjson_sink.d.ts.map +1 -0
  119. package/dist/types/sinks/sink_types.d.ts +12 -0
  120. package/dist/types/sinks/sink_types.d.ts.map +1 -0
  121. package/dist/types/sinks/stdout_sink.d.ts +6 -0
  122. package/dist/types/sinks/stdout_sink.d.ts.map +1 -0
  123. package/dist/types/validate/api_surface_guard.d.ts +2 -0
  124. package/dist/types/validate/api_surface_guard.d.ts.map +1 -0
  125. package/dist/types/validate/noncompliance.d.ts +15 -0
  126. package/dist/types/validate/noncompliance.d.ts.map +1 -0
  127. package/dist/types/validate/schema_guard.d.ts +5 -0
  128. package/dist/types/validate/schema_guard.d.ts.map +1 -0
  129. package/dist/validate/api_surface_guard.d.ts +2 -0
  130. package/dist/validate/api_surface_guard.d.ts.map +1 -0
  131. package/dist/validate/api_surface_guard.js +63 -0
  132. package/dist/validate/api_surface_guard.js.map +1 -0
  133. package/dist/validate/noncompliance.d.ts +15 -0
  134. package/dist/validate/noncompliance.d.ts.map +1 -0
  135. package/dist/validate/noncompliance.js +17 -0
  136. package/dist/validate/noncompliance.js.map +1 -0
  137. package/dist/validate/schema_guard.d.ts +5 -0
  138. package/dist/validate/schema_guard.d.ts.map +1 -0
  139. package/dist/validate/schema_guard.js +151 -0
  140. package/dist/validate/schema_guard.js.map +1 -0
  141. package/evidence/audit/llm/llm_audit_report_2026-01-25T15-11-32Z.json +30 -0
  142. package/evidence/audit/llm/llm_audit_report_2026-01-25T15-53-20Z.json +154 -0
  143. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-14-52Z.json +130 -0
  144. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-15-42Z.json +152 -0
  145. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-17-39Z.json +152 -0
  146. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-18-51Z.json +152 -0
  147. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-19-50Z.json +152 -0
  148. package/evidence/audit/llm/llm_audit_report_2026-01-25T16-20-36Z.json +152 -0
  149. package/evidence/audit/llm/llm_audit_report_2026-01-25T23-22-43Z.json +170 -0
  150. package/evidence/audit/llm/llm_audit_report_2026-01-25T23-39-03Z.json +157 -0
  151. package/filestructure.output.txt +73 -0
  152. package/package.json +16 -0
  153. package/src/core/clock.ts +25 -0
  154. package/src/core/context.ts +142 -0
  155. package/src/core/fanout.ts +38 -0
  156. package/src/core/ids.ts +35 -0
  157. package/src/core/message_constraints.ts +66 -0
  158. package/src/core/outcomes.ts +5 -0
  159. package/src/core/record_builder.ts +269 -0
  160. package/src/core/spool.ts +41 -0
  161. package/src/core/types.ts +56 -0
  162. package/src/index.ts +105 -0
  163. package/src/sinks/file_ndjson.ts +42 -0
  164. package/src/sinks/file_ndjson_sink.ts +45 -0
  165. package/src/sinks/sink_types.ts +15 -0
  166. package/src/sinks/stdout_sink.ts +20 -0
  167. package/src/validate/api_surface_guard.ts +106 -0
  168. package/src/validate/noncompliance.ts +33 -0
  169. package/src/validate/schema_guard.ts +242 -0
  170. package/unifyplane-logsdk-0.1.0.tgz +0 -0
@@ -0,0 +1,152 @@
1
+ {
2
+ "repo": {
3
+ "path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
4
+ "name": "@unifyplane/logsdk",
5
+ "runtime_manifest": "contracts/repo.runtime.json"
6
+ },
7
+ "audit_input_path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
8
+ "audit_root": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
9
+ "generated_at_utc": "2026-01-25T16:15:42Z",
10
+ "overall_status": "PASS",
11
+ "blocking_failure": null,
12
+ "runtime_contract": {
13
+ "exists": true,
14
+ "path": "contracts/repo.runtime.json",
15
+ "schema_path": "contracts\\schemas\\repo\\repo.runtime.v1.schema.json",
16
+ "valid": true,
17
+ "record_version": "repo.runtime.v1",
18
+ "authoritative_repo_role": "enterprise-substrate-logging",
19
+ "repo_role": "enterprise-substrate-logging",
20
+ "repo_id": "unifyplane-logsdk",
21
+ "module_system": "esm",
22
+ "node_target": "node22",
23
+ "tsconfig_path": "tsconfig.json",
24
+ "dist_entry": "dist/index.js",
25
+ "json_strategy": "esm-import"
26
+ },
27
+ "derived_runtime_diagnostics": {
28
+ "signals": {
29
+ "audit_root_resolution": "Starting at C:\\Ananda\\projects\\unifyplane\\LogSDK (package.json located here)",
30
+ "package_json_type": "module",
31
+ "tsconfig_module": "NodeNext",
32
+ "tsconfig_moduleResolution": "NodeNext",
33
+ "dist_require_matches": true,
34
+ "dist_import_matches": "dist/index.js",
35
+ "dist_export_matches": true,
36
+ "dist_has_contracts_dir": false,
37
+ "dist_has_schemas_dir": false
38
+ },
39
+ "surfaces": {
40
+ "agents_md": true,
41
+ "package_json": true,
42
+ "tsconfig_json": true,
43
+ "src_dir": true,
44
+ "app_dir": false,
45
+ "plans_dir": false,
46
+ "tools_dir": true,
47
+ "tests_dir": true,
48
+ "contracts_dir": true,
49
+ "evidence_dir": true,
50
+ "dist_dir": true
51
+ }
52
+ },
53
+ "rule_findings": [
54
+ {
55
+ "rule_id": "BUILD-DIST-001",
56
+ "status": "PASS",
57
+ "scope": "REPO_STATIC",
58
+ "evidence": "dist/ directory exists with compiled artifacts such as dist/index.js"
59
+ },
60
+ {
61
+ "rule_id": "DEP-SDK-001",
62
+ "status": "PASS",
63
+ "scope": "REPO_STATIC",
64
+ "evidence": "package.json declares no dependencies and dependency_policy.mode=workspace-allowed"
65
+ },
66
+ {
67
+ "rule_id": "DIST-ENTRY-001",
68
+ "status": "PASS",
69
+ "scope": "RUNTIME_CONTRACT",
70
+ "evidence": "runtime manifest dist_entry=dist/index.js and the file exists"
71
+ },
72
+ {
73
+ "rule_id": "LOG-FORB-001",
74
+ "status": "PASS",
75
+ "scope": "REPO_STATIC",
76
+ "evidence": "rg -n console\\\\.log src dist produced no matches, so no adhoc console logging"
77
+ },
78
+ {
79
+ "rule_id": "META-RUNTIME-001",
80
+ "status": "PASS",
81
+ "scope": "RUNTIME_CONTRACT",
82
+ "evidence": "contracts/repo.runtime.json is present"
83
+ },
84
+ {
85
+ "rule_id": "META-RUNTIME-002",
86
+ "status": "PASS",
87
+ "scope": "RUNTIME_CONTRACT",
88
+ "evidence": "Derived schema contracts\\schemas\\repo\\repo.runtime.v1.schema.json exists"
89
+ },
90
+ {
91
+ "rule_id": "META-RUNTIME-003",
92
+ "status": "PASS",
93
+ "scope": "RUNTIME_CONTRACT",
94
+ "evidence": "Runtime contract satisfies the schema constraints (required keys, enums, ajv structure, etc.)"
95
+ },
96
+ {
97
+ "rule_id": "META-RUNTIME-004",
98
+ "status": "PASS",
99
+ "scope": "RUNTIME_CONTRACT",
100
+ "evidence": "record_version equals repo.runtime.v1"
101
+ },
102
+ {
103
+ "rule_id": "MOD-CJS-001",
104
+ "status": "NOT_APPLICABLE",
105
+ "scope": "RUNTIME_CONTRACT",
106
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
107
+ },
108
+ {
109
+ "rule_id": "MOD-CJS-002",
110
+ "status": "NOT_APPLICABLE",
111
+ "scope": "RUNTIME_CONTRACT",
112
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
113
+ },
114
+ {
115
+ "rule_id": "MOD-CJS-003",
116
+ "status": "NOT_APPLICABLE",
117
+ "scope": "RUNTIME_CONTRACT",
118
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
119
+ },
120
+ {
121
+ "rule_id": "MOD-ESM-001",
122
+ "status": "PASS",
123
+ "scope": "RUNTIME_CONTRACT",
124
+ "evidence": "dist/index.js uses static ESM imports/exports with .js extensions"
125
+ },
126
+ {
127
+ "rule_id": "MOD-ESM-002",
128
+ "status": "PASS",
129
+ "scope": "RUNTIME_CONTRACT",
130
+ "evidence": "tsconfig.json module and moduleResolution are both NodeNext"
131
+ },
132
+ {
133
+ "rule_id": "TEST-SEM-001",
134
+ "status": "GAP",
135
+ "scope": "REPO_STATIC",
136
+ "evidence": "Cannot confirm dist-aligned tests because npm/node commands are disallowed by instructions"
137
+ },
138
+ {
139
+ "rule_id": "TOOL-PURITY-001",
140
+ "status": "PASS",
141
+ "scope": "REPO_STATIC",
142
+ "evidence": "tools/ contains only the t helper folder, so tooling does not pollute runtime dist artifacts"
143
+ }
144
+ ],
145
+ "summary": {
146
+ "blocking_failure": null,
147
+ "violation_count": 0,
148
+ "gap_count": 4,
149
+ "overall_status": "PASS",
150
+ "explicit_violations": null
151
+ }
152
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "repo": {
3
+ "path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
4
+ "name": "@unifyplane/logsdk",
5
+ "runtime_manifest": "contracts/repo.runtime.json"
6
+ },
7
+ "audit_input_path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
8
+ "audit_root": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
9
+ "generated_at_utc": "2026-01-25T16:17:39Z",
10
+ "overall_status": "PASS",
11
+ "blocking_failure": null,
12
+ "runtime_contract": {
13
+ "exists": true,
14
+ "path": "contracts/repo.runtime.json",
15
+ "schema_path": "contracts\\schemas\\repo\\repo.runtime.v1.schema.json",
16
+ "valid": true,
17
+ "record_version": "repo.runtime.v1",
18
+ "authoritative_repo_role": "enterprise-substrate-logging",
19
+ "repo_role": "enterprise-substrate-logging",
20
+ "repo_id": "unifyplane-logsdk",
21
+ "module_system": "esm",
22
+ "node_target": "node22",
23
+ "tsconfig_path": "tsconfig.json",
24
+ "dist_entry": "dist/index.js",
25
+ "json_strategy": "esm-import"
26
+ },
27
+ "derived_runtime_diagnostics": {
28
+ "signals": {
29
+ "audit_root_resolution": "Starting at C:\\Ananda\\projects\\unifyplane\\LogSDK (package.json located here)",
30
+ "package_json_type": "module",
31
+ "tsconfig_module": "NodeNext",
32
+ "tsconfig_moduleResolution": "NodeNext",
33
+ "dist_require_matches": true,
34
+ "dist_import_matches": "dist/index.js",
35
+ "dist_export_matches": true,
36
+ "dist_has_contracts_dir": false,
37
+ "dist_has_schemas_dir": false
38
+ },
39
+ "surfaces": {
40
+ "agents_md": true,
41
+ "package_json": true,
42
+ "tsconfig_json": true,
43
+ "src_dir": true,
44
+ "app_dir": false,
45
+ "plans_dir": false,
46
+ "tools_dir": true,
47
+ "tests_dir": true,
48
+ "contracts_dir": true,
49
+ "evidence_dir": true,
50
+ "dist_dir": true
51
+ }
52
+ },
53
+ "rule_findings": [
54
+ {
55
+ "rule_id": "BUILD-DIST-001",
56
+ "status": "PASS",
57
+ "scope": "REPO_STATIC",
58
+ "evidence": "dist/ directory exists with compiled artifacts such as dist/index.js"
59
+ },
60
+ {
61
+ "rule_id": "DEP-SDK-001",
62
+ "status": "PASS",
63
+ "scope": "REPO_STATIC",
64
+ "evidence": "package.json declares no dependencies and dependency_policy.mode=workspace-allowed"
65
+ },
66
+ {
67
+ "rule_id": "DIST-ENTRY-001",
68
+ "status": "PASS",
69
+ "scope": "RUNTIME_CONTRACT",
70
+ "evidence": "runtime manifest dist_entry=dist/index.js and the file exists"
71
+ },
72
+ {
73
+ "rule_id": "LOG-FORB-001",
74
+ "status": "PASS",
75
+ "scope": "REPO_STATIC",
76
+ "evidence": "rg -n console\\\\.log src dist produced no matches, so no adhoc console logging"
77
+ },
78
+ {
79
+ "rule_id": "META-RUNTIME-001",
80
+ "status": "PASS",
81
+ "scope": "RUNTIME_CONTRACT",
82
+ "evidence": "contracts/repo.runtime.json is present"
83
+ },
84
+ {
85
+ "rule_id": "META-RUNTIME-002",
86
+ "status": "PASS",
87
+ "scope": "RUNTIME_CONTRACT",
88
+ "evidence": "Derived schema contracts\\schemas\\repo\\repo.runtime.v1.schema.json exists"
89
+ },
90
+ {
91
+ "rule_id": "META-RUNTIME-003",
92
+ "status": "PASS",
93
+ "scope": "RUNTIME_CONTRACT",
94
+ "evidence": "Runtime contract satisfies the schema constraints (required keys, enums, ajv structure, etc.)"
95
+ },
96
+ {
97
+ "rule_id": "META-RUNTIME-004",
98
+ "status": "PASS",
99
+ "scope": "RUNTIME_CONTRACT",
100
+ "evidence": "record_version equals repo.runtime.v1"
101
+ },
102
+ {
103
+ "rule_id": "MOD-CJS-001",
104
+ "status": "NOT_APPLICABLE",
105
+ "scope": "RUNTIME_CONTRACT",
106
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
107
+ },
108
+ {
109
+ "rule_id": "MOD-CJS-002",
110
+ "status": "NOT_APPLICABLE",
111
+ "scope": "RUNTIME_CONTRACT",
112
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
113
+ },
114
+ {
115
+ "rule_id": "MOD-CJS-003",
116
+ "status": "NOT_APPLICABLE",
117
+ "scope": "RUNTIME_CONTRACT",
118
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
119
+ },
120
+ {
121
+ "rule_id": "MOD-ESM-001",
122
+ "status": "PASS",
123
+ "scope": "RUNTIME_CONTRACT",
124
+ "evidence": "dist/index.js uses static ESM imports/exports with .js extensions"
125
+ },
126
+ {
127
+ "rule_id": "MOD-ESM-002",
128
+ "status": "PASS",
129
+ "scope": "RUNTIME_CONTRACT",
130
+ "evidence": "tsconfig.json module and moduleResolution are both NodeNext"
131
+ },
132
+ {
133
+ "rule_id": "TEST-SEM-001",
134
+ "status": "GAP",
135
+ "scope": "REPO_STATIC",
136
+ "evidence": "Cannot confirm dist-aligned tests because npm/node commands are disallowed by instructions"
137
+ },
138
+ {
139
+ "rule_id": "TOOL-PURITY-001",
140
+ "status": "PASS",
141
+ "scope": "REPO_STATIC",
142
+ "evidence": "tools/ contains only the t helper folder, so tooling does not pollute runtime dist artifacts"
143
+ }
144
+ ],
145
+ "summary": {
146
+ "blocking_failure": null,
147
+ "violation_count": 0,
148
+ "gap_count": 4,
149
+ "overall_status": "PASS",
150
+ "explicit_violations": null
151
+ }
152
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "repo": {
3
+ "path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
4
+ "name": "@unifyplane/logsdk",
5
+ "runtime_manifest": "contracts/repo.runtime.json"
6
+ },
7
+ "audit_input_path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
8
+ "audit_root": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
9
+ "generated_at_utc": "2026-01-25T16:18:51Z",
10
+ "overall_status": "PASS",
11
+ "blocking_failure": null,
12
+ "runtime_contract": {
13
+ "exists": true,
14
+ "path": "contracts/repo.runtime.json",
15
+ "schema_path": "contracts\\schemas\\repo\\repo.runtime.v1.schema.json",
16
+ "valid": true,
17
+ "record_version": "repo.runtime.v1",
18
+ "authoritative_repo_role": "enterprise-substrate-logging",
19
+ "repo_role": "enterprise-substrate-logging",
20
+ "repo_id": "unifyplane-logsdk",
21
+ "module_system": "esm",
22
+ "node_target": "node22",
23
+ "tsconfig_path": "tsconfig.json",
24
+ "dist_entry": "dist/index.js",
25
+ "json_strategy": "esm-import"
26
+ },
27
+ "derived_runtime_diagnostics": {
28
+ "signals": {
29
+ "audit_root_resolution": "Starting at C:\\Ananda\\projects\\unifyplane\\LogSDK (package.json located here)",
30
+ "package_json_type": "module",
31
+ "tsconfig_module": "NodeNext",
32
+ "tsconfig_moduleResolution": "NodeNext",
33
+ "dist_require_matches": true,
34
+ "dist_import_matches": true,
35
+ "dist_export_matches": true,
36
+ "dist_has_contracts_dir": false,
37
+ "dist_has_schemas_dir": false
38
+ },
39
+ "surfaces": {
40
+ "agents_md": true,
41
+ "package_json": true,
42
+ "tsconfig_json": true,
43
+ "src_dir": true,
44
+ "app_dir": false,
45
+ "plans_dir": false,
46
+ "tools_dir": true,
47
+ "tests_dir": true,
48
+ "contracts_dir": true,
49
+ "evidence_dir": true,
50
+ "dist_dir": true
51
+ }
52
+ },
53
+ "rule_findings": [
54
+ {
55
+ "rule_id": "BUILD-DIST-001",
56
+ "status": "PASS",
57
+ "scope": "REPO_STATIC",
58
+ "evidence": "dist/ directory exists with compiled artifacts such as dist/index.js"
59
+ },
60
+ {
61
+ "rule_id": "DEP-SDK-001",
62
+ "status": "PASS",
63
+ "scope": "REPO_STATIC",
64
+ "evidence": "package.json declares no dependencies and dependency_policy.mode=workspace-allowed"
65
+ },
66
+ {
67
+ "rule_id": "DIST-ENTRY-001",
68
+ "status": "PASS",
69
+ "scope": "RUNTIME_CONTRACT",
70
+ "evidence": "runtime manifest dist_entry=dist/index.js and the file exists"
71
+ },
72
+ {
73
+ "rule_id": "LOG-FORB-001",
74
+ "status": "PASS",
75
+ "scope": "REPO_STATIC",
76
+ "evidence": "rg -n console\\\\.log src dist produced no matches, so no adhoc console logging"
77
+ },
78
+ {
79
+ "rule_id": "META-RUNTIME-001",
80
+ "status": "PASS",
81
+ "scope": "RUNTIME_CONTRACT",
82
+ "evidence": "contracts/repo.runtime.json is present"
83
+ },
84
+ {
85
+ "rule_id": "META-RUNTIME-002",
86
+ "status": "PASS",
87
+ "scope": "RUNTIME_CONTRACT",
88
+ "evidence": "Derived schema contracts\\schemas\\repo\\repo.runtime.v1.schema.json exists"
89
+ },
90
+ {
91
+ "rule_id": "META-RUNTIME-003",
92
+ "status": "PASS",
93
+ "scope": "RUNTIME_CONTRACT",
94
+ "evidence": "Runtime contract satisfies the schema constraints (required keys, enums, ajv structure, etc.)"
95
+ },
96
+ {
97
+ "rule_id": "META-RUNTIME-004",
98
+ "status": "PASS",
99
+ "scope": "RUNTIME_CONTRACT",
100
+ "evidence": "record_version equals repo.runtime.v1"
101
+ },
102
+ {
103
+ "rule_id": "MOD-CJS-001",
104
+ "status": "NOT_APPLICABLE",
105
+ "scope": "RUNTIME_CONTRACT",
106
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
107
+ },
108
+ {
109
+ "rule_id": "MOD-CJS-002",
110
+ "status": "NOT_APPLICABLE",
111
+ "scope": "RUNTIME_CONTRACT",
112
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
113
+ },
114
+ {
115
+ "rule_id": "MOD-CJS-003",
116
+ "status": "NOT_APPLICABLE",
117
+ "scope": "RUNTIME_CONTRACT",
118
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
119
+ },
120
+ {
121
+ "rule_id": "MOD-ESM-001",
122
+ "status": "PASS",
123
+ "scope": "RUNTIME_CONTRACT",
124
+ "evidence": "dist/index.js uses static ESM imports/exports with .js extensions"
125
+ },
126
+ {
127
+ "rule_id": "MOD-ESM-002",
128
+ "status": "PASS",
129
+ "scope": "RUNTIME_CONTRACT",
130
+ "evidence": "tsconfig.json module and moduleResolution are both NodeNext"
131
+ },
132
+ {
133
+ "rule_id": "TEST-SEM-001",
134
+ "status": "GAP",
135
+ "scope": "REPO_STATIC",
136
+ "evidence": "Cannot confirm dist-aligned tests because npm/node commands are disallowed by instructions"
137
+ },
138
+ {
139
+ "rule_id": "TOOL-PURITY-001",
140
+ "status": "PASS",
141
+ "scope": "REPO_STATIC",
142
+ "evidence": "tools/ contains only the t helper folder, so tooling does not pollute runtime dist artifacts"
143
+ }
144
+ ],
145
+ "summary": {
146
+ "blocking_failure": null,
147
+ "violation_count": 0,
148
+ "gap_count": 4,
149
+ "overall_status": "PASS",
150
+ "explicit_violations": null
151
+ }
152
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "repo": {
3
+ "path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
4
+ "name": "@unifyplane/logsdk",
5
+ "runtime_manifest": "contracts/repo.runtime.json"
6
+ },
7
+ "audit_input_path": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
8
+ "audit_root": "C:\\Ananda\\projects\\unifyplane\\LogSDK",
9
+ "generated_at_utc": "2026-01-25T16:19:50Z",
10
+ "overall_status": "PASS",
11
+ "blocking_failure": null,
12
+ "runtime_contract": {
13
+ "exists": true,
14
+ "path": "contracts/repo.runtime.json",
15
+ "schema_path": "contracts\\schemas\\repo\\repo.runtime.v1.schema.json",
16
+ "valid": true,
17
+ "record_version": "repo.runtime.v1",
18
+ "authoritative_repo_role": "enterprise-substrate-logging",
19
+ "repo_role": "enterprise-substrate-logging",
20
+ "repo_id": "unifyplane-logsdk",
21
+ "module_system": "esm",
22
+ "node_target": "node22",
23
+ "tsconfig_path": "tsconfig.json",
24
+ "dist_entry": "dist/index.js",
25
+ "json_strategy": "esm-import"
26
+ },
27
+ "derived_runtime_diagnostics": {
28
+ "signals": {
29
+ "audit_root_resolution": "Starting at C:\\Ananda\\projects\\unifyplane\\LogSDK (package.json located here)",
30
+ "package_json_type": "module",
31
+ "tsconfig_module": "NodeNext",
32
+ "tsconfig_moduleResolution": "NodeNext",
33
+ "dist_require_matches": true,
34
+ "dist_import_matches": true,
35
+ "dist_export_matches": true,
36
+ "dist_has_contracts_dir": false,
37
+ "dist_has_schemas_dir": false
38
+ },
39
+ "surfaces": {
40
+ "agents_md": true,
41
+ "package_json": true,
42
+ "tsconfig_json": true,
43
+ "src_dir": true,
44
+ "app_dir": false,
45
+ "plans_dir": false,
46
+ "tools_dir": true,
47
+ "tests_dir": true,
48
+ "contracts_dir": true,
49
+ "evidence_dir": true,
50
+ "dist_dir": true
51
+ }
52
+ },
53
+ "rule_findings": [
54
+ {
55
+ "rule_id": "BUILD-DIST-001",
56
+ "status": "PASS",
57
+ "scope": "REPO_STATIC",
58
+ "evidence": "dist/ directory exists with compiled artifacts such as dist/index.js"
59
+ },
60
+ {
61
+ "rule_id": "DEP-SDK-001",
62
+ "status": "PASS",
63
+ "scope": "REPO_STATIC",
64
+ "evidence": "package.json declares no dependencies and dependency_policy.mode=workspace-allowed"
65
+ },
66
+ {
67
+ "rule_id": "DIST-ENTRY-001",
68
+ "status": "PASS",
69
+ "scope": "RUNTIME_CONTRACT",
70
+ "evidence": "runtime manifest dist_entry=dist/index.js and the file exists"
71
+ },
72
+ {
73
+ "rule_id": "LOG-FORB-001",
74
+ "status": "PASS",
75
+ "scope": "REPO_STATIC",
76
+ "evidence": "rg -n console\\\\.log src dist produced no matches, so no adhoc console logging"
77
+ },
78
+ {
79
+ "rule_id": "META-RUNTIME-001",
80
+ "status": "PASS",
81
+ "scope": "RUNTIME_CONTRACT",
82
+ "evidence": "contracts/repo.runtime.json is present"
83
+ },
84
+ {
85
+ "rule_id": "META-RUNTIME-002",
86
+ "status": "PASS",
87
+ "scope": "RUNTIME_CONTRACT",
88
+ "evidence": "Derived schema contracts\\schemas\\repo\\repo.runtime.v1.schema.json exists"
89
+ },
90
+ {
91
+ "rule_id": "META-RUNTIME-003",
92
+ "status": "PASS",
93
+ "scope": "RUNTIME_CONTRACT",
94
+ "evidence": "Runtime contract satisfies the schema constraints (required keys, enums, ajv structure, etc.)"
95
+ },
96
+ {
97
+ "rule_id": "META-RUNTIME-004",
98
+ "status": "PASS",
99
+ "scope": "RUNTIME_CONTRACT",
100
+ "evidence": "record_version equals repo.runtime.v1"
101
+ },
102
+ {
103
+ "rule_id": "MOD-CJS-001",
104
+ "status": "NOT_APPLICABLE",
105
+ "scope": "RUNTIME_CONTRACT",
106
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
107
+ },
108
+ {
109
+ "rule_id": "MOD-CJS-002",
110
+ "status": "NOT_APPLICABLE",
111
+ "scope": "RUNTIME_CONTRACT",
112
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
113
+ },
114
+ {
115
+ "rule_id": "MOD-CJS-003",
116
+ "status": "NOT_APPLICABLE",
117
+ "scope": "RUNTIME_CONTRACT",
118
+ "evidence": "Module system is declared as esm so CJS-specific requirement is not evaluated"
119
+ },
120
+ {
121
+ "rule_id": "MOD-ESM-001",
122
+ "status": "PASS",
123
+ "scope": "RUNTIME_CONTRACT",
124
+ "evidence": "dist/index.js uses static ESM imports/exports with .js extensions"
125
+ },
126
+ {
127
+ "rule_id": "MOD-ESM-002",
128
+ "status": "PASS",
129
+ "scope": "RUNTIME_CONTRACT",
130
+ "evidence": "tsconfig.json module and moduleResolution are both NodeNext"
131
+ },
132
+ {
133
+ "rule_id": "TEST-SEM-001",
134
+ "status": "GAP",
135
+ "scope": "REPO_STATIC",
136
+ "evidence": "Cannot confirm dist-aligned tests because npm/node commands are disallowed by instructions"
137
+ },
138
+ {
139
+ "rule_id": "TOOL-PURITY-001",
140
+ "status": "PASS",
141
+ "scope": "REPO_STATIC",
142
+ "evidence": "tools/ contains only the t helper folder, so tooling does not pollute runtime dist artifacts"
143
+ }
144
+ ],
145
+ "summary": {
146
+ "blocking_failure": null,
147
+ "violation_count": 0,
148
+ "gap_count": 1,
149
+ "overall_status": "PASS",
150
+ "explicit_violations": []
151
+ }
152
+ }