arqux 0.3.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 (80) hide show
  1. arqux-0.3.0/LICENSE +201 -0
  2. arqux-0.3.0/PKG-INFO +209 -0
  3. arqux-0.3.0/README.md +174 -0
  4. arqux-0.3.0/pyproject.toml +93 -0
  5. arqux-0.3.0/setup.cfg +4 -0
  6. arqux-0.3.0/src/arqux/__init__.py +28 -0
  7. arqux-0.3.0/src/arqux/__main__.py +6 -0
  8. arqux-0.3.0/src/arqux/cli.py +196 -0
  9. arqux-0.3.0/src/arqux/constants.py +185 -0
  10. arqux-0.3.0/src/arqux/cortex_out.py +124 -0
  11. arqux-0.3.0/src/arqux/formats.py +784 -0
  12. arqux-0.3.0/src/arqux/handlers/__init__.py +992 -0
  13. arqux-0.3.0/src/arqux/handlers/blueprint.py +1583 -0
  14. arqux-0.3.0/src/arqux/handlers/cortex.py +661 -0
  15. arqux-0.3.0/src/arqux/handlers/cycle.py +340 -0
  16. arqux-0.3.0/src/arqux/handlers/evidence.py +117 -0
  17. arqux-0.3.0/src/arqux/handlers/project.py +382 -0
  18. arqux-0.3.0/src/arqux/handlers/protocol.py +128 -0
  19. arqux-0.3.0/src/arqux/handlers/session.py +382 -0
  20. arqux-0.3.0/src/arqux/handlers/skill.py +513 -0
  21. arqux-0.3.0/src/arqux/handlers/task.py +382 -0
  22. arqux-0.3.0/src/arqux/handlers/workspace.py +178 -0
  23. arqux-0.3.0/src/arqux/identities/alfred.cortex +111 -0
  24. arqux-0.3.0/src/arqux/identities/auditor.cortex +47 -0
  25. arqux-0.3.0/src/arqux/identities/executor.cortex +49 -0
  26. arqux-0.3.0/src/arqux/identities/governor.cortex +53 -0
  27. arqux-0.3.0/src/arqux/identities/heimdall.cortex +77 -0
  28. arqux-0.3.0/src/arqux/identities/jarvis.cortex +82 -0
  29. arqux-0.3.0/src/arqux/identities/seshat.cortex +73 -0
  30. arqux-0.3.0/src/arqux/learning.py +408 -0
  31. arqux-0.3.0/src/arqux/permissions.py +151 -0
  32. arqux-0.3.0/src/arqux/plantuml.py +156 -0
  33. arqux-0.3.0/src/arqux/plantuml_server.py +243 -0
  34. arqux-0.3.0/src/arqux/pulse.py +178 -0
  35. arqux-0.3.0/src/arqux/server.py +153 -0
  36. arqux-0.3.0/src/arqux/sessions.py +124 -0
  37. arqux-0.3.0/src/arqux/skills/cortex.skill.md +252 -0
  38. arqux-0.3.0/src/arqux/skills/diagram.skill.md +138 -0
  39. arqux-0.3.0/src/arqux/skills/learning.skill.md +85 -0
  40. arqux-0.3.0/src/arqux/skills/mcp-handlers.skill.md +193 -0
  41. arqux-0.3.0/src/arqux/skills/protocol.skill.md +117 -0
  42. arqux-0.3.0/src/arqux/skills/workflows.skill.md +45 -0
  43. arqux-0.3.0/src/arqux/state.py +1045 -0
  44. arqux-0.3.0/src/arqux/sync.py +236 -0
  45. arqux-0.3.0/src/arqux/templates/AGENTS.md +112 -0
  46. arqux-0.3.0/src/arqux/templates/BLP_TEMPLATE.md +244 -0
  47. arqux-0.3.0/src/arqux/templates/CYCLE_MANIFEST_TEMPLATE.md +128 -0
  48. arqux-0.3.0/src/arqux/templates/brain.cortex +43 -0
  49. arqux-0.3.0/src/arqux/templates/brain.md +46 -0
  50. arqux-0.3.0/src/arqux/templates/learn-policies.cortex +36 -0
  51. arqux-0.3.0/src/arqux/templates/meta-brain.cortex +22 -0
  52. arqux-0.3.0/src/arqux/templates/meta-brain.md +24 -0
  53. arqux-0.3.0/src/arqux.egg-info/PKG-INFO +209 -0
  54. arqux-0.3.0/src/arqux.egg-info/SOURCES.txt +78 -0
  55. arqux-0.3.0/src/arqux.egg-info/dependency_links.txt +1 -0
  56. arqux-0.3.0/src/arqux.egg-info/entry_points.txt +2 -0
  57. arqux-0.3.0/src/arqux.egg-info/requires.txt +12 -0
  58. arqux-0.3.0/src/arqux.egg-info/top_level.txt +1 -0
  59. arqux-0.3.0/tests/test_blueprint_learning.py +208 -0
  60. arqux-0.3.0/tests/test_cortex_crud.py +122 -0
  61. arqux-0.3.0/tests/test_cortex_out.py +83 -0
  62. arqux-0.3.0/tests/test_cycle.py +74 -0
  63. arqux-0.3.0/tests/test_entry_handlers.py +104 -0
  64. arqux-0.3.0/tests/test_evidence.py +75 -0
  65. arqux-0.3.0/tests/test_gate.py +118 -0
  66. arqux-0.3.0/tests/test_learn_trigger.py +112 -0
  67. arqux-0.3.0/tests/test_learning.py +119 -0
  68. arqux-0.3.0/tests/test_mode_live.py +105 -0
  69. arqux-0.3.0/tests/test_permissions.py +49 -0
  70. arqux-0.3.0/tests/test_project.py +107 -0
  71. arqux-0.3.0/tests/test_protocol.py +44 -0
  72. arqux-0.3.0/tests/test_registry.py +69 -0
  73. arqux-0.3.0/tests/test_rename.py +179 -0
  74. arqux-0.3.0/tests/test_server_auth.py +24 -0
  75. arqux-0.3.0/tests/test_session.py +109 -0
  76. arqux-0.3.0/tests/test_skill_section_replace.py +123 -0
  77. arqux-0.3.0/tests/test_sync_brain.py +154 -0
  78. arqux-0.3.0/tests/test_task.py +115 -0
  79. arqux-0.3.0/tests/test_validate_file.py +46 -0
  80. arqux-0.3.0/tests/test_workspace.py +52 -0
arqux-0.3.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 Arqux Authors
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.
arqux-0.3.0/PKG-INFO ADDED
@@ -0,0 +1,209 @@
1
+ Metadata-Version: 2.4
2
+ Name: arqux
3
+ Version: 0.3.0
4
+ Summary: Enterprise Agent Infrastructure. Governance framework for AI agents with behavioral contracts, identity handoff, and automatic knowledge elevation.
5
+ Author: arqux Maintainers
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/FidelErnesto03/arqux
8
+ Project-URL: Repository, https://github.com/FidelErnesto03/arqux
9
+ Project-URL: Issues, https://github.com/FidelErnesto03/arqux/issues
10
+ Keywords: ai-agents,governance,mcp,agent-orchestration,cortex,llm
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: mcp>=1.0.0
24
+ Requires-Dist: codec-cortex>=0.3.0
25
+ Requires-Dist: pydantic>=2.0.0
26
+ Requires-Dist: click>=8.1.0
27
+ Requires-Dist: rich>=13.0.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
30
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
31
+ Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
32
+ Requires-Dist: ruff>=0.4.0; extra == "dev"
33
+ Requires-Dist: mypy>=1.5.0; extra == "dev"
34
+ Dynamic: license-file
35
+
36
+ # ⬡ ArqUX v1.0
37
+
38
+ **Enterprise Agent Infrastructure.**
39
+
40
+ [![Version](https://img.shields.io/badge/version-1.0.0-blue)](https://github.com/nousresearch/arqux)
41
+ [![License](https://img.shields.io/badge/license-MPL--2.0-green)](LICENSE)
42
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
43
+ [![BLPs](https://img.shields.io/badge/BLPs-22%20in%20CYCLE--01-orange)](https://github.com/nousresearch/arqux)
44
+ [![Handlers](https://img.shields.io/badge/MCP%20Handlers-71-purple)](https://github.com/nousresearch/arqux)
45
+ [![Agents](https://img.shields.io/badge/agents-4-red)](https://github.com/nousresearch/arqux)
46
+ [![Status](https://img.shields.io/badge/status-production--ready-brightgreen)](https://github.com/nousresearch/arqux)
47
+
48
+ **Tags:** `ai-governance` `agent-orchestration` `llm-framework` `enterprise-ai` `mcp-server` `multi-agent` `audit-trail` `behavioral-contracts` `knowledge-management` `cortex-format`
49
+
50
+ ArqUX is the first governance infrastructure purpose-built for **AI agents in enterprise environments**. It defines how an agent thinks, acts, learns, and accounts for its decisions — all under binding behavioral contracts that no command can override.
51
+
52
+ Built on a radical principle: **the agent is the interface.**
53
+
54
+ ---
55
+
56
+ ## 🔍 Use Cases
57
+
58
+ | Scenario | How ArqUX Helps |
59
+ |---|---|
60
+ | **AI agent in production** | Traces every decision, enforces role separation, persists institutional memory |
61
+ | **Multi-agent team** | Each identity has its own behavioral contract (AXM, LIM, FCS); hot handoff between them |
62
+ | **Compliance & audit** | Every handoff, state transition, and mutation is recorded as verifiable evidence in brain.cortex |
63
+ | **Knowledge retention** | Lessons auto-elevate from individual → project → organization level without manual intervention |
64
+ | **Agent governance** | The framework governs itself (dogfooding) — every feature is a governed Blueprint |
65
+ | **Enterprise deployment** | 71 MCP handlers, structured decision maps (18-section Blueprints), session resilience |
66
+
67
+ ---
68
+
69
+ ## ⚡ Quick Start
70
+
71
+ ```bash
72
+ pip install arqux
73
+ cd your-workspace
74
+ arqux init
75
+ ```
76
+
77
+ The agent reads `AGENTS.md`, discovers context, and is operational. Everything else it learns on the fly.
78
+
79
+ ---
80
+
81
+ ## 🏛️ Architecture
82
+
83
+ ![ArqUX Architecture — identity management, governance layer, and learning pipeline](docs/diagrams/arquitectura.svg)
84
+
85
+ | Component | Purpose |
86
+ |---|---|
87
+ | **Active Identity** | Agent operating under a behavioral contract (AXM, LIM, FCS) |
88
+ | **Handoff Manager** | Switches identities via greeting or request |
89
+ | **MCP Handlers** | 71 handlers for governance operations |
90
+ | **brain.cortex** | Project shared memory (decisions, lessons, state) |
91
+ | **meta-brain** | Consolidated workspace state across projects |
92
+ | **Skills Library** | Reusable workflows across agents and projects |
93
+
94
+ ---
95
+
96
+ ## 🆔 Agent Identities — The Team
97
+
98
+ ArqUX replaces "one agent" with a **team of specialized identities**, each with its own binding behavioral contract.
99
+
100
+ | Identity | Role | Scope |
101
+ |---|---|---|
102
+ | **⬡ Alfred** | Governor | Cycles, BLPs, tasks, approvals |
103
+ | **⬡ Jarvis** | Technical executor | Assigned tasks (claim, complete, evidence) |
104
+ | **⬡ Seshat** | Scribe | Documentation, diagrams, presentations |
105
+ | **⬡ Heimdall** | Guardian | Audit, monitoring, reporting |
106
+
107
+ The Architect switches between identities with natural fluency:
108
+
109
+ > *"Hello Jarvis"* → starts as technical executor
110
+ > *"Switch to Seshat"* → handoff to documentation
111
+ > *"Back to Alfred"* → resumes governance
112
+
113
+ Each identity has hard limits (LIM) that even the Architect cannot violate without an explicit handoff.
114
+
115
+ ---
116
+
117
+ ## 📋 Blueprints — The Decision Map
118
+
119
+ A Blueprint (BLP) captures **every dimension of a design decision** in 18 sections that the agent synthesizes autonomously after a single inquiry conversation.
120
+
121
+ ```
122
+ §1 Problem → §2 Objective → §3 Preconditions → §4 Guiding Principle
123
+ §5 Context → §6 Scope → §7 Rules → §8 Technical Design
124
+ §9 Operational Design → §10 Contracts → §11 Work Procedure
125
+ §12 Acceptance Criteria → §13 Validations → §14 Tasks
126
+ §15 Risks → §16 Blocking Rule → §17 Expected Output → §18 Quality
127
+ ```
128
+
129
+ ### Lifecycle
130
+
131
+ ![Blueprint Lifecycle — state machine from draft to done](docs/diagrams/blp-lifecycle.svg)
132
+
133
+ ```
134
+ create → mature (inquiry + synthesis) → ready → claim
135
+ → execution (checkpoint per task) → complete → verify → approve
136
+ ```
137
+
138
+ ---
139
+
140
+ ## 🧠 Continuous Learning
141
+
142
+ Every lesson follows an automatic elevation pipeline:
143
+
144
+ ![Learning Pipeline — behavioral to contextual to procedural knowledge](docs/diagrams/learning-pipeline.svg)
145
+
146
+ | Level | Description | Persists in |
147
+ |---|---|---|
148
+ | **BEHAVIORAL** | Individual agent lesson | `identity.record()` → agent .cortex file |
149
+ | **CONTEXTUAL** | Project-level knowledge | `brain.cortex` KNW |
150
+ | **PROCEDURAL** | Reusable workflow | Skill in `.arqux/skills/` |
151
+
152
+ A lesson learned by one agent in one project can become a skill for **every agent in the organization**, without manual intervention.
153
+
154
+ ---
155
+
156
+ ## 🎯 Who ArqUX Is For
157
+
158
+ ArqUX is designed for organizations where:
159
+
160
+ - ✅ **Compliance is not optional.** Every action must be auditable.
161
+ - ✅ **Agents operate continuously** and must maintain coherence across sessions.
162
+ - ✅ **Role separation is critical.** Not every identity can do everything.
163
+ - ✅ **Institutional knowledge must persist** beyond ephemeral model memory.
164
+ - ✅ **The cost of failure justifies investment in governance.**
165
+
166
+ Not for afternoon experiments. For teams putting AI agents into production with real responsibilities.
167
+
168
+ ---
169
+
170
+ ## 🗺️ Roadmap
171
+
172
+ ### v1.0 — Foundation (current)
173
+ - Governance framework with 71 MCP handlers and 22 BLPs in CYCLE-01
174
+ - CORTEX format with sigils, validation, and automatic elevation
175
+ - Multi-identity model with binding behavioral contracts
176
+ - Hot handoff between identities via greeting or request
177
+ - Autonomous Blueprint synthesis (inquiry → batch of 18 sections)
178
+ - Learning pipeline: BEHAVIORAL → CONTEXTUAL → PROCEDURAL
179
+ - Structural markers `<!-- BLP:N -->` for precise section replacement
180
+ - Full dogfooding — ArqUX governs itself
181
+
182
+ ### v1.1 — Operational maturity
183
+ - Native HCORTEX ↔ CORTEX translation
184
+ - Self-healing structural inconsistencies
185
+ - Consolidated workspace dashboard
186
+ - Quick-response tasks for lightweight actions
187
+
188
+ ### v2.0 — Enterprise scale
189
+ - Progressive mode: from basic operation to full governance
190
+ - Institutional skills marketplace
191
+ - CODEC-CORTEX as standalone library
192
+ - Interoperability with enterprise agent ecosystems
193
+ - Visual governance and audit interface
194
+
195
+ ---
196
+
197
+ ## 📚 Documentation
198
+
199
+ | Resource | Description |
200
+ |---|---|
201
+ | `AGENTS.md` | Agent entry point — one file to start |
202
+ | `protocol.skill.md` | Session protocol, handoff, and decision-making |
203
+ | `w08-blueprint-lifecycle.md` | Complete Blueprint lifecycle |
204
+ | `w10-identity-handoff.md` | Hot identity handoff workflow |
205
+ | `cortex.skill.md` | CORTEX format and HCORTEX reference |
206
+
207
+ ---
208
+
209
+ *⬡ ArqUX — The agent is the interface.*
arqux-0.3.0/README.md ADDED
@@ -0,0 +1,174 @@
1
+ # ⬡ ArqUX v1.0
2
+
3
+ **Enterprise Agent Infrastructure.**
4
+
5
+ [![Version](https://img.shields.io/badge/version-1.0.0-blue)](https://github.com/nousresearch/arqux)
6
+ [![License](https://img.shields.io/badge/license-MPL--2.0-green)](LICENSE)
7
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
8
+ [![BLPs](https://img.shields.io/badge/BLPs-22%20in%20CYCLE--01-orange)](https://github.com/nousresearch/arqux)
9
+ [![Handlers](https://img.shields.io/badge/MCP%20Handlers-71-purple)](https://github.com/nousresearch/arqux)
10
+ [![Agents](https://img.shields.io/badge/agents-4-red)](https://github.com/nousresearch/arqux)
11
+ [![Status](https://img.shields.io/badge/status-production--ready-brightgreen)](https://github.com/nousresearch/arqux)
12
+
13
+ **Tags:** `ai-governance` `agent-orchestration` `llm-framework` `enterprise-ai` `mcp-server` `multi-agent` `audit-trail` `behavioral-contracts` `knowledge-management` `cortex-format`
14
+
15
+ ArqUX is the first governance infrastructure purpose-built for **AI agents in enterprise environments**. It defines how an agent thinks, acts, learns, and accounts for its decisions — all under binding behavioral contracts that no command can override.
16
+
17
+ Built on a radical principle: **the agent is the interface.**
18
+
19
+ ---
20
+
21
+ ## 🔍 Use Cases
22
+
23
+ | Scenario | How ArqUX Helps |
24
+ |---|---|
25
+ | **AI agent in production** | Traces every decision, enforces role separation, persists institutional memory |
26
+ | **Multi-agent team** | Each identity has its own behavioral contract (AXM, LIM, FCS); hot handoff between them |
27
+ | **Compliance & audit** | Every handoff, state transition, and mutation is recorded as verifiable evidence in brain.cortex |
28
+ | **Knowledge retention** | Lessons auto-elevate from individual → project → organization level without manual intervention |
29
+ | **Agent governance** | The framework governs itself (dogfooding) — every feature is a governed Blueprint |
30
+ | **Enterprise deployment** | 71 MCP handlers, structured decision maps (18-section Blueprints), session resilience |
31
+
32
+ ---
33
+
34
+ ## ⚡ Quick Start
35
+
36
+ ```bash
37
+ pip install arqux
38
+ cd your-workspace
39
+ arqux init
40
+ ```
41
+
42
+ The agent reads `AGENTS.md`, discovers context, and is operational. Everything else it learns on the fly.
43
+
44
+ ---
45
+
46
+ ## 🏛️ Architecture
47
+
48
+ ![ArqUX Architecture — identity management, governance layer, and learning pipeline](docs/diagrams/arquitectura.svg)
49
+
50
+ | Component | Purpose |
51
+ |---|---|
52
+ | **Active Identity** | Agent operating under a behavioral contract (AXM, LIM, FCS) |
53
+ | **Handoff Manager** | Switches identities via greeting or request |
54
+ | **MCP Handlers** | 71 handlers for governance operations |
55
+ | **brain.cortex** | Project shared memory (decisions, lessons, state) |
56
+ | **meta-brain** | Consolidated workspace state across projects |
57
+ | **Skills Library** | Reusable workflows across agents and projects |
58
+
59
+ ---
60
+
61
+ ## 🆔 Agent Identities — The Team
62
+
63
+ ArqUX replaces "one agent" with a **team of specialized identities**, each with its own binding behavioral contract.
64
+
65
+ | Identity | Role | Scope |
66
+ |---|---|---|
67
+ | **⬡ Alfred** | Governor | Cycles, BLPs, tasks, approvals |
68
+ | **⬡ Jarvis** | Technical executor | Assigned tasks (claim, complete, evidence) |
69
+ | **⬡ Seshat** | Scribe | Documentation, diagrams, presentations |
70
+ | **⬡ Heimdall** | Guardian | Audit, monitoring, reporting |
71
+
72
+ The Architect switches between identities with natural fluency:
73
+
74
+ > *"Hello Jarvis"* → starts as technical executor
75
+ > *"Switch to Seshat"* → handoff to documentation
76
+ > *"Back to Alfred"* → resumes governance
77
+
78
+ Each identity has hard limits (LIM) that even the Architect cannot violate without an explicit handoff.
79
+
80
+ ---
81
+
82
+ ## 📋 Blueprints — The Decision Map
83
+
84
+ A Blueprint (BLP) captures **every dimension of a design decision** in 18 sections that the agent synthesizes autonomously after a single inquiry conversation.
85
+
86
+ ```
87
+ §1 Problem → §2 Objective → §3 Preconditions → §4 Guiding Principle
88
+ §5 Context → §6 Scope → §7 Rules → §8 Technical Design
89
+ §9 Operational Design → §10 Contracts → §11 Work Procedure
90
+ §12 Acceptance Criteria → §13 Validations → §14 Tasks
91
+ §15 Risks → §16 Blocking Rule → §17 Expected Output → §18 Quality
92
+ ```
93
+
94
+ ### Lifecycle
95
+
96
+ ![Blueprint Lifecycle — state machine from draft to done](docs/diagrams/blp-lifecycle.svg)
97
+
98
+ ```
99
+ create → mature (inquiry + synthesis) → ready → claim
100
+ → execution (checkpoint per task) → complete → verify → approve
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 🧠 Continuous Learning
106
+
107
+ Every lesson follows an automatic elevation pipeline:
108
+
109
+ ![Learning Pipeline — behavioral to contextual to procedural knowledge](docs/diagrams/learning-pipeline.svg)
110
+
111
+ | Level | Description | Persists in |
112
+ |---|---|---|
113
+ | **BEHAVIORAL** | Individual agent lesson | `identity.record()` → agent .cortex file |
114
+ | **CONTEXTUAL** | Project-level knowledge | `brain.cortex` KNW |
115
+ | **PROCEDURAL** | Reusable workflow | Skill in `.arqux/skills/` |
116
+
117
+ A lesson learned by one agent in one project can become a skill for **every agent in the organization**, without manual intervention.
118
+
119
+ ---
120
+
121
+ ## 🎯 Who ArqUX Is For
122
+
123
+ ArqUX is designed for organizations where:
124
+
125
+ - ✅ **Compliance is not optional.** Every action must be auditable.
126
+ - ✅ **Agents operate continuously** and must maintain coherence across sessions.
127
+ - ✅ **Role separation is critical.** Not every identity can do everything.
128
+ - ✅ **Institutional knowledge must persist** beyond ephemeral model memory.
129
+ - ✅ **The cost of failure justifies investment in governance.**
130
+
131
+ Not for afternoon experiments. For teams putting AI agents into production with real responsibilities.
132
+
133
+ ---
134
+
135
+ ## 🗺️ Roadmap
136
+
137
+ ### v1.0 — Foundation (current)
138
+ - Governance framework with 71 MCP handlers and 22 BLPs in CYCLE-01
139
+ - CORTEX format with sigils, validation, and automatic elevation
140
+ - Multi-identity model with binding behavioral contracts
141
+ - Hot handoff between identities via greeting or request
142
+ - Autonomous Blueprint synthesis (inquiry → batch of 18 sections)
143
+ - Learning pipeline: BEHAVIORAL → CONTEXTUAL → PROCEDURAL
144
+ - Structural markers `<!-- BLP:N -->` for precise section replacement
145
+ - Full dogfooding — ArqUX governs itself
146
+
147
+ ### v1.1 — Operational maturity
148
+ - Native HCORTEX ↔ CORTEX translation
149
+ - Self-healing structural inconsistencies
150
+ - Consolidated workspace dashboard
151
+ - Quick-response tasks for lightweight actions
152
+
153
+ ### v2.0 — Enterprise scale
154
+ - Progressive mode: from basic operation to full governance
155
+ - Institutional skills marketplace
156
+ - CODEC-CORTEX as standalone library
157
+ - Interoperability with enterprise agent ecosystems
158
+ - Visual governance and audit interface
159
+
160
+ ---
161
+
162
+ ## 📚 Documentation
163
+
164
+ | Resource | Description |
165
+ |---|---|
166
+ | `AGENTS.md` | Agent entry point — one file to start |
167
+ | `protocol.skill.md` | Session protocol, handoff, and decision-making |
168
+ | `w08-blueprint-lifecycle.md` | Complete Blueprint lifecycle |
169
+ | `w10-identity-handoff.md` | Hot identity handoff workflow |
170
+ | `cortex.skill.md` | CORTEX format and HCORTEX reference |
171
+
172
+ ---
173
+
174
+ *⬡ ArqUX — The agent is the interface.*
@@ -0,0 +1,93 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "arqux"
7
+ version = "0.3.0"
8
+ description = "Enterprise Agent Infrastructure. Governance framework for AI agents with behavioral contracts, identity handoff, and automatic knowledge elevation."
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE"]
12
+ authors = [
13
+ { name = "arqux Maintainers" }
14
+ ]
15
+ requires-python = ">=3.10"
16
+ keywords = ["ai-agents", "governance", "mcp", "agent-orchestration", "cortex", "llm"]
17
+ classifiers = [
18
+ "Development Status :: 4 - Beta",
19
+ "Intended Audience :: Developers",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Software Development :: Libraries :: Python Modules",
26
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
27
+ ]
28
+ dependencies = [
29
+ # MCP runtime — Model Context Protocol server primitives.
30
+ "mcp>=1.0.0",
31
+ # CODEC-CORTEX — information codec for AI agents (CORTEX/HCORTEX, learning engine).
32
+ # If codec-cortex is not yet published to PyPI at the required version,
33
+ # install from source:
34
+ # pip install git+https://github.com/FidelErnesto03/codec-cortex.git
35
+ "codec-cortex>=0.3.0",
36
+ # Utilities.
37
+ "pydantic>=2.0.0",
38
+ "click>=8.1.0",
39
+ "rich>=13.0.0",
40
+ ]
41
+
42
+ [project.optional-dependencies]
43
+ dev = [
44
+ "pytest>=7.0.0",
45
+ "pytest-asyncio>=0.21.0",
46
+ "pytest-cov>=4.0.0",
47
+ "ruff>=0.4.0",
48
+ "mypy>=1.5.0",
49
+ ]
50
+
51
+ [project.scripts]
52
+ arqux = "arqux.cli:main"
53
+
54
+ [project.urls]
55
+ Homepage = "https://github.com/FidelErnesto03/arqux"
56
+ Repository = "https://github.com/FidelErnesto03/arqux"
57
+ Issues = "https://github.com/FidelErnesto03/arqux/issues"
58
+
59
+ [tool.setuptools.packages.find]
60
+ where = ["src"]
61
+
62
+ [tool.setuptools.package-data]
63
+ "arqux" = [
64
+ "templates/*.cortex",
65
+ "templates/*.md",
66
+ "templates/*.cortex.tmpl",
67
+ "templates/*.md.tmpl",
68
+ "identities/*.cortex",
69
+ "identities/*.md",
70
+ "skills/*.skill.md",
71
+ ]
72
+
73
+ [tool.pytest.ini_options]
74
+ testpaths = ["tests"]
75
+ asyncio_mode = "auto"
76
+ addopts = "-ra --strict-markers"
77
+ markers = [
78
+ "slow: marks tests as slow",
79
+ "integration: marks integration tests",
80
+ ]
81
+
82
+ [tool.ruff]
83
+ line-length = 100
84
+ target-version = "py310"
85
+
86
+ [tool.ruff.lint]
87
+ select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
88
+ ignore = ["E501"]
89
+
90
+ [tool.mypy]
91
+ python_version = "3.10"
92
+ strict = true
93
+ warn_unused_configs = true
arqux-0.3.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+