evagix 0.1.0__tar.gz

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 (206) hide show
  1. evagix-0.1.0/CHANGELOG.md +27 -0
  2. evagix-0.1.0/LICENSE +201 -0
  3. evagix-0.1.0/MANIFEST.in +11 -0
  4. evagix-0.1.0/PKG-INFO +454 -0
  5. evagix-0.1.0/README.md +412 -0
  6. evagix-0.1.0/SECURITY.md +53 -0
  7. evagix-0.1.0/evagix/__init__.py +1 -0
  8. evagix-0.1.0/evagix/__main__.py +4 -0
  9. evagix-0.1.0/evagix/agent_context_registry.py +162 -0
  10. evagix-0.1.0/evagix/changes.py +358 -0
  11. evagix-0.1.0/evagix/classification.py +197 -0
  12. evagix-0.1.0/evagix/classification_models.py +27 -0
  13. evagix-0.1.0/evagix/classification_rules.py +155 -0
  14. evagix-0.1.0/evagix/cli.py +8 -0
  15. evagix-0.1.0/evagix/command_analysis.py +382 -0
  16. evagix-0.1.0/evagix/command_recipes.py +354 -0
  17. evagix-0.1.0/evagix/command_safety.py +380 -0
  18. evagix-0.1.0/evagix/command_shell.py +168 -0
  19. evagix-0.1.0/evagix/command_text.py +99 -0
  20. evagix-0.1.0/evagix/commands/__init__.py +1 -0
  21. evagix-0.1.0/evagix/commands/agents.py +21 -0
  22. evagix-0.1.0/evagix/commands/common.py +100 -0
  23. evagix-0.1.0/evagix/commands/context_pack.py +11 -0
  24. evagix-0.1.0/evagix/commands/core_cli.py +137 -0
  25. evagix-0.1.0/evagix/commands/fix_apply.py +42 -0
  26. evagix-0.1.0/evagix/commands/fix_cli.py +40 -0
  27. evagix-0.1.0/evagix/commands/fix_plan.py +41 -0
  28. evagix-0.1.0/evagix/commands/generation.py +398 -0
  29. evagix-0.1.0/evagix/commands/generation_safety.py +96 -0
  30. evagix-0.1.0/evagix/commands/git_cli.py +36 -0
  31. evagix-0.1.0/evagix/commands/git_cmds.py +62 -0
  32. evagix-0.1.0/evagix/commands/inspect.py +276 -0
  33. evagix-0.1.0/evagix/commands/inspect_cli.py +71 -0
  34. evagix-0.1.0/evagix/commands/mcp.py +27 -0
  35. evagix-0.1.0/evagix/commands/prepare.py +55 -0
  36. evagix-0.1.0/evagix/commands/preview_cli.py +44 -0
  37. evagix-0.1.0/evagix/commands/preview_cmds.py +39 -0
  38. evagix-0.1.0/evagix/commands/readiness_cli.py +201 -0
  39. evagix-0.1.0/evagix/commands/registry.py +54 -0
  40. evagix-0.1.0/evagix/commands/report_audit.py +177 -0
  41. evagix-0.1.0/evagix/commands/report_doctor.py +147 -0
  42. evagix-0.1.0/evagix/commands/report_misc.py +76 -0
  43. evagix-0.1.0/evagix/commands/report_readme_context.py +164 -0
  44. evagix-0.1.0/evagix/commands/reports_cmds.py +67 -0
  45. evagix-0.1.0/evagix/config.py +12 -0
  46. evagix-0.1.0/evagix/config_loader.py +130 -0
  47. evagix-0.1.0/evagix/config_models.py +39 -0
  48. evagix-0.1.0/evagix/config_validate.py +154 -0
  49. evagix-0.1.0/evagix/constants.py +6 -0
  50. evagix-0.1.0/evagix/context/__init__.py +1 -0
  51. evagix-0.1.0/evagix/context/command_checks.py +268 -0
  52. evagix-0.1.0/evagix/context/content_checks.py +87 -0
  53. evagix-0.1.0/evagix/context/eval_engine.py +400 -0
  54. evagix-0.1.0/evagix/context/eval_models.py +26 -0
  55. evagix-0.1.0/evagix/context/eval_rendering.py +83 -0
  56. evagix-0.1.0/evagix/context/files.py +204 -0
  57. evagix-0.1.0/evagix/context/quality.py +66 -0
  58. evagix-0.1.0/evagix/context_eval.py +13 -0
  59. evagix-0.1.0/evagix/context_quality.py +7 -0
  60. evagix-0.1.0/evagix/core/__init__.py +8 -0
  61. evagix-0.1.0/evagix/core/collections.py +24 -0
  62. evagix-0.1.0/evagix/core/constants.py +5 -0
  63. evagix-0.1.0/evagix/core/fs.py +35 -0
  64. evagix-0.1.0/evagix/core/io.py +210 -0
  65. evagix-0.1.0/evagix/core/models.py +32 -0
  66. evagix-0.1.0/evagix/core/paths.py +10 -0
  67. evagix-0.1.0/evagix/core/text.py +21 -0
  68. evagix-0.1.0/evagix/decide.py +303 -0
  69. evagix-0.1.0/evagix/drift.py +130 -0
  70. evagix-0.1.0/evagix/ecosystems/__init__.py +13 -0
  71. evagix-0.1.0/evagix/ecosystems/commands.py +195 -0
  72. evagix-0.1.0/evagix/ecosystems/core.py +34 -0
  73. evagix-0.1.0/evagix/ecosystems/manifests.py +290 -0
  74. evagix-0.1.0/evagix/ecosystems/node.py +119 -0
  75. evagix-0.1.0/evagix/ecosystems/profiles.py +252 -0
  76. evagix-0.1.0/evagix/ecosystems/python.py +170 -0
  77. evagix-0.1.0/evagix/ecosystems/utils.py +328 -0
  78. evagix-0.1.0/evagix/evidence.py +236 -0
  79. evagix-0.1.0/evagix/explain.py +98 -0
  80. evagix-0.1.0/evagix/fixes.py +102 -0
  81. evagix-0.1.0/evagix/generated_integrity.py +165 -0
  82. evagix-0.1.0/evagix/model.py +183 -0
  83. evagix-0.1.0/evagix/onboard.py +226 -0
  84. evagix-0.1.0/evagix/pr_risk.py +242 -0
  85. evagix-0.1.0/evagix/profiles.py +182 -0
  86. evagix-0.1.0/evagix/prompt_injection.py +321 -0
  87. evagix-0.1.0/evagix/py.typed +0 -0
  88. evagix-0.1.0/evagix/readme/__init__.py +1 -0
  89. evagix-0.1.0/evagix/readme/audit_engine.py +377 -0
  90. evagix-0.1.0/evagix/readme/claim_checks.py +350 -0
  91. evagix-0.1.0/evagix/readme/claim_registry.py +134 -0
  92. evagix-0.1.0/evagix/readme/claim_rules.py +5 -0
  93. evagix-0.1.0/evagix/readme/claim_text_scan.py +85 -0
  94. evagix-0.1.0/evagix/readme/command_extractor.py +209 -0
  95. evagix-0.1.0/evagix/readme/evidence_matcher.py +120 -0
  96. evagix-0.1.0/evagix/readme/findings.py +69 -0
  97. evagix-0.1.0/evagix/readme/source.py +84 -0
  98. evagix-0.1.0/evagix/readme/text_utils.py +396 -0
  99. evagix-0.1.0/evagix/readme_audit.py +25 -0
  100. evagix-0.1.0/evagix/renderers.py +53 -0
  101. evagix-0.1.0/evagix/rendering/__init__.py +1 -0
  102. evagix-0.1.0/evagix/rendering/context.py +148 -0
  103. evagix-0.1.0/evagix/rendering/fingerprints.py +12 -0
  104. evagix-0.1.0/evagix/rendering/payloads.py +99 -0
  105. evagix-0.1.0/evagix/rendering/sections.py +70 -0
  106. evagix-0.1.0/evagix/rendering/sections_core.py +157 -0
  107. evagix-0.1.0/evagix/rendering/sections_domain.py +135 -0
  108. evagix-0.1.0/evagix/rendering/sections_policy.py +161 -0
  109. evagix-0.1.0/evagix/rendering/target_renderers.py +139 -0
  110. evagix-0.1.0/evagix/report_models.py +65 -0
  111. evagix-0.1.0/evagix/reports/__init__.py +1 -0
  112. evagix-0.1.0/evagix/reports/context_pack.py +69 -0
  113. evagix-0.1.0/evagix/reports/json.py +20 -0
  114. evagix-0.1.0/evagix/reports/locations.py +79 -0
  115. evagix-0.1.0/evagix/reports/markdown.py +26 -0
  116. evagix-0.1.0/evagix/reports/pr_comment.py +33 -0
  117. evagix-0.1.0/evagix/reports/sarif.py +105 -0
  118. evagix-0.1.0/evagix/reports/text.py +17 -0
  119. evagix-0.1.0/evagix/repository_intent.py +344 -0
  120. evagix-0.1.0/evagix/rules/__init__.py +18 -0
  121. evagix-0.1.0/evagix/rules/_shared.py +19 -0
  122. evagix-0.1.0/evagix/rules/agent_compatibility.py +12 -0
  123. evagix-0.1.0/evagix/rules/aliases.py +30 -0
  124. evagix-0.1.0/evagix/rules/commands.py +12 -0
  125. evagix-0.1.0/evagix/rules/context.py +12 -0
  126. evagix-0.1.0/evagix/rules/mcp.py +12 -0
  127. evagix-0.1.0/evagix/rules/models.py +34 -0
  128. evagix-0.1.0/evagix/rules/pr_risk.py +12 -0
  129. evagix-0.1.0/evagix/rules/readme.py +12 -0
  130. evagix-0.1.0/evagix/rules/readme_source.py +9 -0
  131. evagix-0.1.0/evagix/rules/registry.py +400 -0
  132. evagix-0.1.0/evagix/rules/safety.py +12 -0
  133. evagix-0.1.0/evagix/rules/static_rules.py +78 -0
  134. evagix-0.1.0/evagix/safety.py +121 -0
  135. evagix-0.1.0/evagix/scanner.py +7 -0
  136. evagix-0.1.0/evagix/scanner_utils.py +362 -0
  137. evagix-0.1.0/evagix/scanners/__init__.py +1 -0
  138. evagix-0.1.0/evagix/scanners/agent_files.py +89 -0
  139. evagix-0.1.0/evagix/scanners/commands.py +21 -0
  140. evagix-0.1.0/evagix/scanners/context_pack.py +10 -0
  141. evagix-0.1.0/evagix/scanners/ecosystems.py +14 -0
  142. evagix-0.1.0/evagix/scanners/git_diff.py +9 -0
  143. evagix-0.1.0/evagix/scanners/mcp.py +33 -0
  144. evagix-0.1.0/evagix/scanners/readme.py +11 -0
  145. evagix-0.1.0/evagix/scanners/repository.py +22 -0
  146. evagix-0.1.0/evagix/scanners/safety.py +19 -0
  147. evagix-0.1.0/evagix/scanning/__init__.py +1 -0
  148. evagix-0.1.0/evagix/scanning/base.py +164 -0
  149. evagix-0.1.0/evagix/scanning/command_evidence.py +152 -0
  150. evagix-0.1.0/evagix/scanning/infrastructure.py +280 -0
  151. evagix-0.1.0/evagix/scanning/node_policy.py +179 -0
  152. evagix-0.1.0/evagix/scanning/polyglot_extra.py +113 -0
  153. evagix-0.1.0/evagix/scanning/project_evidence.py +384 -0
  154. evagix-0.1.0/evagix/scanning/python_evidence.py +398 -0
  155. evagix-0.1.0/evagix/scanning/repository.py +57 -0
  156. evagix-0.1.0/evagix/scanning/shared.py +82 -0
  157. evagix-0.1.0/evagix/schemas/__init__.py +1 -0
  158. evagix-0.1.0/evagix/schemas/audit-report.schema.json +145 -0
  159. evagix-0.1.0/evagix/schemas/changed-report.schema.json +40 -0
  160. evagix-0.1.0/evagix/schemas/classification-report.schema.json +55 -0
  161. evagix-0.1.0/evagix/schemas/context-eval.schema.json +154 -0
  162. evagix-0.1.0/evagix/schemas/decision-plan.schema.json +27 -0
  163. evagix-0.1.0/evagix/schemas/doctor-report.schema.json +117 -0
  164. evagix-0.1.0/evagix/schemas/drift-report.schema.json +91 -0
  165. evagix-0.1.0/evagix/schemas/evagix-config.schema.json +212 -0
  166. evagix-0.1.0/evagix/schemas/evidence.schema.json +62 -0
  167. evagix-0.1.0/evagix/schemas/policy-report.schema.json +45 -0
  168. evagix-0.1.0/evagix/schemas/pr-risk-report.schema.json +67 -0
  169. evagix-0.1.0/evagix/schemas/readme-audit.schema.json +326 -0
  170. evagix-0.1.0/evagix/schemas/scan-facts.schema.json +149 -0
  171. evagix-0.1.0/evagix/scoped.py +76 -0
  172. evagix-0.1.0/evagix/scoring/__init__.py +5 -0
  173. evagix-0.1.0/evagix/scoring/breakdown.py +10 -0
  174. evagix-0.1.0/evagix/scoring/engine.py +25 -0
  175. evagix-0.1.0/evagix/scoring/weights.py +9 -0
  176. evagix-0.1.0/evagix/security/__init__.py +12 -0
  177. evagix-0.1.0/evagix/security/assignment_patterns.py +45 -0
  178. evagix-0.1.0/evagix/security/labels.py +29 -0
  179. evagix-0.1.0/evagix/security/output.py +78 -0
  180. evagix-0.1.0/evagix/security/redaction.py +385 -0
  181. evagix-0.1.0/evagix/signatures.py +156 -0
  182. evagix-0.1.0/evagix/strict_scoring.py +243 -0
  183. evagix-0.1.0/evagix/targets.py +206 -0
  184. evagix-0.1.0/evagix/task_renderers.py +180 -0
  185. evagix-0.1.0/evagix/templates.py +186 -0
  186. evagix-0.1.0/evagix/text_diagnostics.py +33 -0
  187. evagix-0.1.0/evagix/thresholds.py +50 -0
  188. evagix-0.1.0/evagix/utils.py +86 -0
  189. evagix-0.1.0/evagix/validation/__init__.py +35 -0
  190. evagix-0.1.0/evagix/validation/audit.py +58 -0
  191. evagix-0.1.0/evagix/validation/audit_actions.py +37 -0
  192. evagix-0.1.0/evagix/validation/audit_rules.py +46 -0
  193. evagix-0.1.0/evagix/validation/checks.py +252 -0
  194. evagix-0.1.0/evagix/validation/doctor.py +228 -0
  195. evagix-0.1.0/evagix/validation/generated_context.py +253 -0
  196. evagix-0.1.0/evagix/validation/rendering.py +128 -0
  197. evagix-0.1.0/evagix/validation/scoring.py +197 -0
  198. evagix-0.1.0/evagix/validators.py +41 -0
  199. evagix-0.1.0/evagix.egg-info/PKG-INFO +454 -0
  200. evagix-0.1.0/evagix.egg-info/SOURCES.txt +204 -0
  201. evagix-0.1.0/evagix.egg-info/dependency_links.txt +1 -0
  202. evagix-0.1.0/evagix.egg-info/entry_points.txt +3 -0
  203. evagix-0.1.0/evagix.egg-info/requires.txt +14 -0
  204. evagix-0.1.0/evagix.egg-info/top_level.txt +1 -0
  205. evagix-0.1.0/pyproject.toml +96 -0
  206. evagix-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable user-facing changes to Evagix are documented here.
4
+
5
+ ## [0.1.0]
6
+
7
+ First public release.
8
+
9
+ ### Added
10
+
11
+ - Local-first repository classification, readiness checks, and explainable findings.
12
+ - README claim auditing against static repository evidence.
13
+ - Agent-context discovery, safety analysis, scoring, and generated context exports.
14
+ - Generated-context ownership, fingerprint, integrity, drift, and tamper checks.
15
+ - CI workflow generation, changed-file risk analysis, and PR-oriented reports.
16
+ - JSON, Markdown, SARIF, annotation, and machine-readable report formats.
17
+ - Python, Node.js, GitHub Actions, container, infrastructure, and AI/ML repository evidence.
18
+ - Packaged JSON schemas for stable machine-readable outputs.
19
+
20
+ ### Important behavior
21
+
22
+ - Scans are static and do not execute project commands, install dependencies, call model APIs, or upload repository content.
23
+ - Risky generated commands and unsafe output paths are rejected conservatively.
24
+ - Ambiguous evidence is reported for review rather than treated as verified truth.
25
+ - The package supports Python 3.11 through 3.14 and has no runtime dependencies.
26
+
27
+ [0.1.0]: https://github.com/tarekmasryo/Evagix/releases/tag/v0.1.0
evagix-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Tarek Masryo
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,11 @@
1
+ include README.md
2
+ include LICENSE
3
+ include CHANGELOG.md
4
+ include SECURITY.md
5
+ include evagix/py.typed
6
+ recursive-include evagix/schemas *.json
7
+
8
+ prune tests
9
+
10
+ global-exclude *.py[cod]
11
+ global-exclude CACHEDIR.TAG
evagix-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,454 @@
1
+ Metadata-Version: 2.4
2
+ Name: evagix
3
+ Version: 0.1.0
4
+ Summary: Local-first evidence gate for AI-assisted repositories.
5
+ Author: Tarek Masryo
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/tarekmasryo/Evagix
8
+ Project-URL: Repository, https://github.com/tarekmasryo/Evagix
9
+ Project-URL: Issues, https://github.com/tarekmasryo/Evagix/issues
10
+ Project-URL: Changelog, https://github.com/tarekmasryo/Evagix/blob/main/CHANGELOG.md
11
+ Project-URL: Security, https://github.com/tarekmasryo/Evagix/blob/main/SECURITY.md
12
+ Keywords: agents,ai-agents,repo-governance,context-engineering,evidence-gate,agent-context,cli,developer-tools,ci,repo-analysis
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Topic :: Software Development :: Documentation
23
+ Classifier: Topic :: Software Development :: Quality Assurance
24
+ Classifier: Topic :: Software Development :: Testing
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.11
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Provides-Extra: dev
30
+ Requires-Dist: setuptools==83.0.0; extra == "dev"
31
+ Requires-Dist: wheel==0.47.0; extra == "dev"
32
+ Requires-Dist: pytest==9.1.1; extra == "dev"
33
+ Requires-Dist: pytest-cov==7.1.0; extra == "dev"
34
+ Requires-Dist: ruff==0.15.20; extra == "dev"
35
+ Requires-Dist: mypy==2.1.0; extra == "dev"
36
+ Requires-Dist: build==1.5.0; extra == "dev"
37
+ Requires-Dist: twine==6.2.0; extra == "dev"
38
+ Requires-Dist: jsonschema==4.26.0; extra == "dev"
39
+ Provides-Extra: security
40
+ Requires-Dist: pip-audit==2.10.1; extra == "security"
41
+ Dynamic: license-file
42
+
43
+ <h1 align="center">Evagix</h1>
44
+
45
+ <p align="center">
46
+ <strong>Local-first evidence validation for AI-assisted repositories.</strong>
47
+ </p>
48
+
49
+ <p align="center">
50
+ Evagix checks repository claims, documented commands, agent-facing instructions,
51
+ and generated context against local evidence before humans or coding agents rely on them.
52
+ </p>
53
+
54
+ <p align="center">
55
+ <a href="https://pypi.org/project/evagix/">
56
+ <img alt="PyPI version" src="https://img.shields.io/pypi/v/evagix">
57
+ </a>
58
+ <a href="https://github.com/tarekmasryo/Evagix/actions/workflows/ci.yml">
59
+ <img alt="CI" src="https://github.com/tarekmasryo/Evagix/actions/workflows/ci.yml/badge.svg">
60
+ </a>
61
+ <img alt="Python" src="https://img.shields.io/badge/python-3.11--3.14-blue">
62
+ <img alt="Runtime dependencies" src="https://img.shields.io/badge/runtime%20dependencies-0-brightgreen">
63
+ <a href="https://github.com/tarekmasryo/Evagix/blob/main/LICENSE">
64
+ <img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue">
65
+ </a>
66
+ </p>
67
+
68
+ <p align="center">
69
+ <a href="#quick-start">Quick start</a>
70
+ ·
71
+ <a href="#core-commands">Commands</a>
72
+ ·
73
+ <a href="https://github.com/tarekmasryo/Evagix/tree/main/docs">Documentation</a>
74
+ ·
75
+ <a href="https://github.com/tarekmasryo/Evagix/blob/main/SECURITY.md">Security</a>
76
+ </p>
77
+
78
+ <p align="center">
79
+ Evagix v0.1.0 provides conservative local evidence checks and
80
+ CI-friendly repository validation.
81
+ </p>
82
+
83
+ ---
84
+
85
+ ## Why Evagix?
86
+
87
+ AI-assisted development increasingly depends on repository text: README files, agent instructions, CI notes, generated context, and documented commands.
88
+
89
+ Those instructions can drift away from the repository they describe.
90
+
91
+ ```text
92
+ README says: npm test
93
+ package.json has no matching test script
94
+ ```
95
+
96
+ ```text
97
+ README claims Docker support
98
+ no Dockerfile or Compose file exists
99
+ ```
100
+
101
+ ```text
102
+ AGENTS.md documents one test command
103
+ evagix.toml declares another
104
+ ```
105
+
106
+ Evagix treats repository instructions as evidence-backed artifacts rather than trusted prose.
107
+
108
+ ```text
109
+ repository evidence
110
+
111
+ rules + policy
112
+
113
+ findings + scoring
114
+
115
+ text / JSON / Markdown / SARIF
116
+ ```
117
+
118
+ It is intentionally focused: Evagix validates repository-facing evidence and instructions. It does not replace tests, CI, code review, SAST, secret scanning, or dependency auditing.
119
+
120
+ ---
121
+
122
+ ## Quick start
123
+
124
+ Install:
125
+
126
+ ```bash
127
+ python -m pip install evagix
128
+ ```
129
+
130
+ Run the main checks:
131
+
132
+ ```bash
133
+ evagix doctor . --strict --fail-under 80
134
+ evagix readme-audit . --strict --fail-on unsupported
135
+ evagix eval-context . --strict --fail-on high
136
+ evagix check .
137
+ ```
138
+
139
+ The shorter `evgx` command is also available:
140
+
141
+ ```bash
142
+ evgx doctor .
143
+ ```
144
+
145
+ ---
146
+
147
+ <!-- evagix:audit-ignore-start -->
148
+
149
+ ## Typical findings
150
+
151
+ | Finding | Why it matters |
152
+ | --- | --- |
153
+ | README claims Docker support, but no Dockerfile or Compose file was found. | Prevents unsupported setup claims from being treated as repository fact. |
154
+ | README documents `npm test`, but no matching package script exists. | Flags stale commands before humans or agents copy them. |
155
+ | `AGENTS.md` and `evagix.toml` disagree about the canonical test command. | Surfaces conflicting agent instructions. |
156
+ | Generated context fingerprint no longer matches repository facts. | Detects context drift. |
157
+ | Agent-facing docs instruct tools to read local environment files. | Flags risky guidance around local secrets. |
158
+ | CI is claimed in documentation, but no workflow evidence exists. | Prevents readiness claims from being inferred without evidence. |
159
+
160
+ <!-- evagix:audit-ignore-end -->
161
+
162
+ ---
163
+
164
+ ## Install
165
+
166
+ ### PyPI
167
+
168
+ ```bash
169
+ python -m pip install evagix
170
+ ```
171
+
172
+ For an isolated CLI installation:
173
+
174
+ ```bash
175
+ pipx install evagix
176
+ ```
177
+
178
+ Upgrade with:
179
+
180
+ ```bash
181
+ python -m pip install --upgrade evagix
182
+ ```
183
+
184
+ or:
185
+
186
+ ```bash
187
+ pipx upgrade evagix
188
+ ```
189
+
190
+ ### From source
191
+
192
+ ```bash
193
+ git clone https://github.com/tarekmasryo/Evagix.git
194
+ cd Evagix
195
+ python -m pip install -e ".[dev]"
196
+ ```
197
+
198
+ Check the CLI:
199
+
200
+ ```bash
201
+ evagix --version
202
+ evgx --version
203
+ ```
204
+
205
+ Evagix requires **Python 3.11 or newer** and has **zero runtime dependencies**.
206
+
207
+ The release CI matrix validates Python 3.11, 3.12, 3.13, and 3.14. Newer interpreter versions are considered supported only after they enter that matrix.
208
+
209
+ ---
210
+
211
+ ## What Evagix checks
212
+
213
+ Evagix works from repository-local evidence.
214
+
215
+ | Area | What it looks for |
216
+ | --- | --- |
217
+ | README evidence | Unsupported or weakly supported claims about tests, CI, Docker, packaging, deployment, typing, monitoring, and related capabilities |
218
+ | Commands | Install, test, lint, typecheck, build, eval, smoke, and application-run evidence |
219
+ | Agent context | `AGENTS.md`, supported tool-specific context files, conflicts, unsafe instructions, and missing canonical commands |
220
+ | Generated context | Missing, stale, unmanaged, tampered, truncated, or invalid generated targets |
221
+ | Safety signals | Dangerous shell guidance, credential-bearing commands, environment exposure, and context-poisoning patterns |
222
+ | Repository signals | Languages, tests, migrations, tooling, infrastructure markers, and related readiness evidence |
223
+ | CI / PR context | Workflow evidence and advisory changed-file risk signals |
224
+
225
+ Findings are designed to explain what was detected, what evidence supports it, why it matters, and what should be fixed or deliberately waived.
226
+
227
+ See the complete [`rule reference`](https://github.com/tarekmasryo/Evagix/blob/main/docs/rules-reference.md).
228
+
229
+ ---
230
+
231
+ ## Core commands
232
+
233
+ | Goal | Command |
234
+ | --- | --- |
235
+ | Repository readiness | `evagix doctor . --strict --fail-under 80` |
236
+ | README evidence audit | `evagix readme-audit . --strict --fail-on unsupported` |
237
+ | Agent-context evaluation | `evagix eval-context . --strict --fail-on high` |
238
+ | Generated-context verification | `evagix check .` |
239
+ | Generate context | `evagix compile . --force` |
240
+ | Preview synchronization | `evagix sync . --plan` |
241
+ | Repository audit | `evagix audit .` |
242
+ | PR risk signals | `evagix pr-risk . --base main` |
243
+ | Explain a finding | `evagix explain missing-ci` |
244
+ | Export a report | `evagix report .` |
245
+
246
+ Additional commands for baselines, scoped checks, context packs, evidence export, and automation are documented in [`docs/commands.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/commands.md).
247
+
248
+ `--strict` enables stricter gate behavior. Failure thresholds are controlled by command-specific options such as `--fail-under`, `--fail-on high`, and `--fail-on unsupported`.
249
+
250
+ `pr-risk` is advisory and does not replace repository checks, tests, CI, or human review.
251
+
252
+ ### Advanced commands
253
+
254
+ | Goal | Command |
255
+ | --- | --- |
256
+ | Baseline snapshot | `evagix baseline .` |
257
+ | Baseline diff | `evagix diff .` |
258
+ | Scoped checks | `evagix scoped .` |
259
+ | Context pack | `evagix context-pack .` |
260
+
261
+ ---
262
+
263
+ ## How it works
264
+
265
+ ```mermaid
266
+ flowchart LR
267
+ A[Repository files] --> B[Evidence collection]
268
+ B --> C[Rules and policy]
269
+ C --> D[Findings and scoring]
270
+ D --> E[Reports and generated context]
271
+
272
+ B --> B1[README claims]
273
+ B --> B2[Commands]
274
+ B --> B3[Agent context]
275
+ B --> B4[CI and repository signals]
276
+
277
+ E --> E1[Text]
278
+ E --> E2[JSON]
279
+ E --> E3[Markdown]
280
+ E --> E4[SARIF]
281
+ ```
282
+
283
+ Evagix does **not** execute project commands while scanning, install project dependencies, call model APIs, or upload the repository.
284
+
285
+ Static markers are evidence signals, not proof of high-impact claims such as `secure` or `production-ready`. When local evidence is insufficient, Evagix keeps the result weak, partial, unsupported, or subject to manual review instead of manufacturing certainty.
286
+
287
+ ---
288
+
289
+ ## Reports and outputs
290
+
291
+ ```bash
292
+ evagix doctor . --format json
293
+ evagix readme-audit . --format json
294
+ evagix eval-context . --format json
295
+ evagix report . --format sarif --output evagix.sarif --force
296
+ ```
297
+
298
+ | Format | Typical use |
299
+ | --- | --- |
300
+ | Text | Local review |
301
+ | JSON | Automation and CI parsing |
302
+ | Markdown | Human-readable reports |
303
+ | SARIF | Code-scanning style integrations where supported |
304
+
305
+ Evidence-sensitive reads are bounded. Truncated, unreadable, or invalid UTF-8 input is reported as incomplete rather than being treated as clean evidence.
306
+
307
+ ---
308
+
309
+ ## CI usage
310
+
311
+ A conservative CI gate can run:
312
+
313
+ ```bash
314
+ python -m evagix check .
315
+ python -m evagix doctor . --strict --fail-under 80
316
+ python -m evagix readme-audit . --strict --fail-on unsupported
317
+ python -m evagix eval-context . --strict --fail-on high
318
+ ```
319
+
320
+ For gradual adoption, start with reporting-only output, review the findings, then add strict thresholds when the repository policy is ready to enforce them.
321
+
322
+ ---
323
+
324
+ ## Configuration
325
+
326
+ `evagix.toml` defines canonical commands, generated targets, and policy thresholds.
327
+
328
+ ```toml
329
+ [policy]
330
+ fail_on_stale = true
331
+ fail_under = 80
332
+
333
+ [commands]
334
+ test = "python -m pytest"
335
+ lint = "python -m ruff check ."
336
+ typecheck = "python -m mypy evagix"
337
+ ```
338
+
339
+ Configuration is validated before it is trusted. Invalid keys, empty commands, unsafe target paths, literal command credentials, and high-risk shell commands are rejected at the relevant boundary.
340
+
341
+ README examples can be excluded from claim analysis, while intentionally waived real claims remain visible in results.
342
+
343
+ See [`docs/configuration.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/configuration.md).
344
+
345
+ ---
346
+
347
+ ## Generated context
348
+
349
+ Evagix can create opt-in agent-facing context for `AGENTS.md`-compatible workflows and supported tool-specific targets.
350
+
351
+ Neutral Evagix-managed context targets include:
352
+
353
+ ```text
354
+ .evagix/context.md
355
+ .evagix/context.json
356
+ ```
357
+
358
+ Generated context carries ownership and fingerprint information.
359
+
360
+ Evagix records integrity state separately in:
361
+
362
+ ```text
363
+ .evagix/integrity.json
364
+ ```
365
+
366
+ This allows `evagix check` to detect stale context and manual modification independently, and to report both when appropriate.
367
+
368
+ Tool-specific exports are generated only when explicitly requested or configured. Vendor names identify compatible target formats only; they do not imply affiliation, endorsement, or sponsorship.
369
+
370
+ ---
371
+
372
+ ## Conservative behavior
373
+
374
+ Evagix intentionally avoids turning missing evidence into confidence:
375
+
376
+ - External or missing agent context is unscored rather than receiving a positive structural score.
377
+ - Incomplete README reads do not become clean `100/100` results.
378
+ - Invalid UTF-8 and unsafe path conditions are surfaced instead of silently ignored.
379
+ - Generated context freshness and integrity are checked independently.
380
+ - Unsafe repository-internal symlink traversal is rejected.
381
+ - Policy waivers remain visible and do not create supporting evidence.
382
+
383
+ Exact semantics are documented in the [`rule reference`](https://github.com/tarekmasryo/Evagix/blob/main/docs/rules-reference.md).
384
+
385
+ ---
386
+
387
+ ## Supported environments
388
+
389
+ Evagix targets Python **3.11–3.14** through its release matrix.
390
+
391
+ It has zero runtime dependencies and does not require network access for repository scans.
392
+
393
+ Evagix can inspect repositories containing different languages and ecosystems, but it is not a deep language or framework analyzer.
394
+
395
+ ---
396
+
397
+ ## Scope
398
+
399
+ Evagix is not:
400
+
401
+ - a full security scanner;
402
+ - a secret scanner;
403
+ - a dependency vulnerability auditor;
404
+ - a semantic code analyzer;
405
+ - a test runner;
406
+ - a CI replacement;
407
+ - a release approval system.
408
+
409
+ It complements those tools by checking whether repository-facing instructions and claims are supported by local evidence available to humans and coding agents.
410
+
411
+ ---
412
+
413
+ ## Documentation
414
+
415
+ | Document | Purpose |
416
+ | --- | --- |
417
+ | [`docs/architecture.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/architecture.md) | Architecture boundaries and extension rules |
418
+ | [`docs/commands.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/commands.md) | Command guide and common workflows |
419
+ | [`docs/configuration.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/configuration.md) | Configuration reference |
420
+ | [`docs/rules.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/rules.md) | Rule overview |
421
+ | [`docs/rules-reference.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/rules-reference.md) | Complete rule reference |
422
+ | [`docs/schemas.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/schemas.md) | JSON schema notes |
423
+ | [`SECURITY.md`](https://github.com/tarekmasryo/Evagix/blob/main/SECURITY.md) | Security policy |
424
+ | [`CONTRIBUTING.md`](https://github.com/tarekmasryo/Evagix/blob/main/CONTRIBUTING.md) | Contribution workflow |
425
+
426
+ ---
427
+
428
+ ## Development
429
+
430
+ ```bash
431
+ python -m pip install -e ".[dev]"
432
+ python -m ruff check .
433
+ python -m ruff format --check .
434
+ python -m mypy evagix
435
+ python -m pytest --cov=evagix --cov-branch --cov-report=term-missing --cov-fail-under=80
436
+ ```
437
+
438
+ Architecture boundaries are documented in [`docs/architecture.md`](https://github.com/tarekmasryo/Evagix/blob/main/docs/architecture.md).
439
+
440
+ ---
441
+
442
+ ## Security
443
+
444
+ Evagix is designed to inspect repository evidence conservatively and avoid unnecessary access to known secret-bearing file types.
445
+
446
+ It does not intentionally read `.env` files or private-key formats as ordinary repository evidence.
447
+
448
+ For vulnerability reporting and security policy, see [`SECURITY.md`](https://github.com/tarekmasryo/Evagix/blob/main/SECURITY.md).
449
+
450
+ ---
451
+
452
+ ## License
453
+
454
+ Apache-2.0. See [`LICENSE`](https://github.com/tarekmasryo/Evagix/blob/main/LICENSE).