awgit 1.2.0__tar.gz → 1.4.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.
- {awgit-1.2.0 → awgit-1.4.0}/PKG-INFO +99 -1
- awgit-1.4.0/README.md +347 -0
- awgit-1.4.0/awgit/__main__.py +31 -0
- awgit-1.4.0/awgit/_doctor.py +139 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/cli.py +211 -94
- {awgit-1.2.0 → awgit-1.4.0}/awgit/evidence.py +0 -20
- {awgit-1.2.0 → awgit-1.4.0}/awgit/guard.py +117 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/hooks/post-commit.d/vcs-capture +8 -1
- awgit-1.4.0/awgit/hooks/pre-commit.d/vcs-lease-check +22 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/hooks/prepare-commit-msg.d/awgit-change-id +8 -1
- {awgit-1.2.0 → awgit-1.4.0}/awgit/leases.py +10 -8
- {awgit-1.2.0 → awgit-1.4.0}/awgit/owners.py +1 -1
- {awgit-1.2.0 → awgit-1.4.0}/awgit/plugins.py +18 -17
- awgit-1.4.0/awgit/scratch.py +381 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/worktree.py +1 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/PKG-INFO +99 -1
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/SOURCES.txt +5 -0
- {awgit-1.2.0 → awgit-1.4.0}/pyproject.toml +1 -1
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_lease_release_accepts_paths.py +1 -1
- awgit-1.4.0/tests/test_ls_index_chunks_argv.py +100 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_owners_and_proof.py +3 -3
- awgit-1.4.0/tests/test_tabular.py +273 -0
- awgit-1.2.0/README.md +0 -249
- awgit-1.2.0/awgit/hooks/pre-commit.d/vcs-lease-check +0 -15
- {awgit-1.2.0 → awgit-1.4.0}/LICENSE +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/__init__.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/absorb.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/bodies.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/bridge.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/capture.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/changeid.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/code.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/commands.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/data_root.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/diff.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/git.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/graph.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/hooks/chain.sh +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/hooks/pre-commit.d/vcs-mass-delete-guard +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/hooks/pre-push.d/ci-gate-parity +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/identity.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/lazy.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/lease_requests.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/ledger.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/mcp.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/merge.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/nodeid.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/oplog.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/outcomes.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/parser.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/prove.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/push.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/repowise_parser.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/review.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/schema.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/stack.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/staging.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/staging_selftest.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/sync.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit/tabular.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/dependency_links.txt +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/entry_points.txt +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/requires.txt +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/awgit.egg-info/top_level.txt +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/setup.cfg +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_absorb_routes_by_node.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_awgit_standalone.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_changeid_survives_history_rewrite.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_documented_commands_run.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_lazy_clone_is_verified.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_lease_requests.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_multilang_identity.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_outcome_tracking.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_push_is_the_pull_request.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_restack_repairs_orphans.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_review_threads_survive_moves.py +0 -0
- {awgit-1.2.0 → awgit-1.4.0}/tests/test_worktree_zombie_detection.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awgit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: Aither World-Graph git — semantic version control on top of git: edit-ops keyed on stable node ids, content-addressed bodies, differential sync.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://github.com/Aitherium/awgit
|
|
@@ -17,6 +17,16 @@ Dynamic: license-file
|
|
|
17
17
|
|
|
18
18
|
# awgit — the git that knows a function from a line
|
|
19
19
|
|
|
20
|
+
<!-- aither-header:start GENERATED from the ecosystem registry. Edits here are overwritten; change the registry instead. -->
|
|
21
|
+
|
|
22
|
+
**[Docs](https://aitherium.github.io/awgit/)** · [Source](https://github.com/Aitherium/awgit) · `pip install awgit` · [The Aither World](https://aitherium.github.io/)
|
|
23
|
+
|
|
24
|
+
> **The Aither World** is an operating system for agents — a Linux you can hand to one, the runtimes it works in, and the tools it works with. [awnix](https://github.com/Aitherium/awnix) is the Linux underneath it; **awgit** is one of its 33 bricks — each installs on its own, runs offline, and needs no account.
|
|
25
|
+
>
|
|
26
|
+
> **Start here:** Take a lease on a file before you edit it in a shared checkout.
|
|
27
|
+
|
|
28
|
+
<!-- aither-header:end -->
|
|
29
|
+
|
|
20
30
|
Git has no world model. It knows which lines moved, not what a function is — so
|
|
21
31
|
"which commit owns this edit", "did this change conflict with mine", and "is
|
|
22
32
|
this the same change I pushed before" are all answered by heuristics over text.
|
|
@@ -264,3 +274,91 @@ cd awgit && python -m pytest tests/ -q
|
|
|
264
274
|
## License
|
|
265
275
|
|
|
266
276
|
Apache-2.0. Built by Aitherium — the git that scales to agents.
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
<!-- aither-ecosystem:start GENERATED from the ecosystem registry. Edits here are overwritten; change the registry instead. -->
|
|
281
|
+
|
|
282
|
+
## The aw family
|
|
283
|
+
|
|
284
|
+
Standalone tools that share one idea: **replace something you would otherwise have to _trust_ with something you can _check_.**
|
|
285
|
+
|
|
286
|
+
Each installs on its own, works offline, and needs no account.
|
|
287
|
+
|
|
288
|
+
| | instead of trusting | you check |
|
|
289
|
+
|---|---|---|
|
|
290
|
+
| [awdk](https://github.com/Aitherium/awdk) | a framework's idea of how your agents should run | one loop you can read, pointed at a backend you already pay for |
|
|
291
|
+
| [awskills](https://github.com/Aitherium/awskills) | that an agent knows your procedure | the procedure written down, versioned, and loadable by any agent |
|
|
292
|
+
| [awm](https://github.com/Aitherium/awm) | that memory stayed in its lane | tenant:user:project scopes, so a write cannot cross a boundary |
|
|
293
|
+
| [awnode](https://github.com/Aitherium/awnode) | a vendor's cloud with every prompt | a local gateway routing to backends you chose |
|
|
294
|
+
| [awgraph](https://github.com/Aitherium/awgraph) | that grep found everything | an AST + tree-sitter call graph an agent can traverse |
|
|
295
|
+
| **awgit** _(you are here)_ | that no one else is editing this file | a lease, refused at commit time if you do not hold it |
|
|
296
|
+
| [awseal](https://github.com/Aitherium/awseal) | that the artifact came from who you think | an Ed25519 seal — the key that verifies is not the key that forges |
|
|
297
|
+
| [awshare](https://github.com/Aitherium/awshare) | that the download is intact | content-addressed bundles, verified on fetch |
|
|
298
|
+
| [awnest](https://github.com/Aitherium/awnest) | that there is a person on the other end | a verdict with evidence, where "we could not tell" is not "yes" |
|
|
299
|
+
| [awnboard](https://github.com/Aitherium/awnboard) | a share link anyone who sees it can use | an invitation addressed to one person, for one gate, revocable |
|
|
300
|
+
| [awnix](https://github.com/Aitherium/awnix) | that the box is what you left it as | an immutable image you built, with atomic rollback |
|
|
301
|
+
| [awrecover](https://github.com/Aitherium/awrecover) | that the restore worked | a restore that fully lands or does not land at all |
|
|
302
|
+
| [awkno](https://github.com/Aitherium/awkno) | that the docs site is up, or that you remember the family | the whole ecosystem in your terminal, with no network at all |
|
|
303
|
+
| [awrelay](https://github.com/Aitherium/awrelay) | a SaaS in the middle of your agents | findings, alerts and coordination over your own transport |
|
|
304
|
+
| [awmail](https://github.com/Aitherium/awmail) | a mailbox somebody else can read | mail your agents send and receive over your own server |
|
|
305
|
+
| [awfind](https://github.com/Aitherium/awfind) | one vendor's idea of the web | results from whichever providers you configured |
|
|
306
|
+
| [awbrowse](https://github.com/Aitherium/awbrowse) | that the page said what you were told | the render, the DOM and the requests it made |
|
|
307
|
+
| [aitherkvcache](https://github.com/Aitherium/aitherkvcache) | a vendor's quantisation defaults | sub-byte KV cache kernels you can benchmark yourself |
|
|
308
|
+
| [AitherZero](https://github.com/Aitherium/AitherZero) | a pile of scripts nobody has numbered | numbered, discoverable automation with declarative playbooks |
|
|
309
|
+
| [AitherConnect](https://github.com/Aitherium/AitherConnect) | what a page tells your browser to do | a federated search and desktop bridge you host |
|
|
310
|
+
| [awreason](https://github.com/Aitherium/awreason) | a confident paragraph | the phases it went through, and every tool call it made to get there |
|
|
311
|
+
| [awrecurse](https://github.com/Aitherium/awrecurse) | that everything you pasted in was actually read | which slices it opened, and what it concluded from each |
|
|
312
|
+
| [awprism](https://github.com/Aitherium/awprism) | the first explanation that fits | the ranked alternatives, and the observation that separates them |
|
|
313
|
+
| [awrepl](https://github.com/Aitherium/awrepl) | what the agent believes the value is | the value, printed from the live session |
|
|
314
|
+
| [awresearch](https://github.com/Aitherium/awresearch) | a summary of pages nobody opened | every claim against the source it came from |
|
|
315
|
+
| [awpredict](https://github.com/Aitherium/awpredict) | a model because it trained without erroring | its prediction against a self-updating lookup, on the rows that are actually novel |
|
|
316
|
+
| [awkno](https://github.com/Aitherium/awkno) | that the docs site is up, or that you remember the family | the whole ecosystem in your terminal, with no network at all |
|
|
317
|
+
|
|
318
|
+
[**awnix**](https://github.com/Aitherium/awnix) is the ground floor — A Linux you can hand to an agent — immutable base, capabilities included.
|
|
319
|
+
|
|
320
|
+
## The Aitherium ecosystem
|
|
321
|
+
|
|
322
|
+
Every repository here is public. Each publishes an `aither-manifest.json` beside its page, so any surface can read every sibling's — the network is browsable from any node in it.
|
|
323
|
+
|
|
324
|
+
| repo | what it is | pages |
|
|
325
|
+
|---|---|---|
|
|
326
|
+
| [awdk](https://github.com/Aitherium/awdk) | Build AI agent fleets — 3 lines, any backend, local or cloud | [docs](https://aitherium.github.io/awdk/) |
|
|
327
|
+
| [awskills](https://github.com/Aitherium/awskills) | Portable agent skills — self-contained procedures an agent loads on demand | [docs](https://aitherium.github.io/awskills/) |
|
|
328
|
+
| [awm](https://github.com/Aitherium/awm) | A portable, scoped agent memory | [docs](https://aitherium.github.io/awm/) |
|
|
329
|
+
| [awnode](https://github.com/Aitherium/awnode) | A lightweight local gateway — bridges your apps to the AI backends you chose | [docs](https://aitherium.github.io/awnode/) |
|
|
330
|
+
| [awrun](https://github.com/Aitherium/awrun) | A priority-aware queue and dispatcher for agentic runs and ad-hoc CI builds | [docs](https://aitherium.github.io/awrun/) |
|
|
331
|
+
| [awgraph](https://github.com/Aitherium/awgraph) | A semantic code graph for agents — AST + tree-sitter, call graphs | [docs](https://aitherium.github.io/awgraph/) |
|
|
332
|
+
| **awgit** _(you are here)_ | Semantic version control on top of git — edit-ops and leases | [docs](https://aitherium.github.io/awgit/) |
|
|
333
|
+
| [awseal](https://github.com/Aitherium/awseal) | Sign an artifact so a stranger can verify it | [docs](https://aitherium.github.io/awseal/) |
|
|
334
|
+
| [awshare](https://github.com/Aitherium/awshare) | Publish an artifact and fetch it back verified | [docs](https://aitherium.github.io/awshare/) |
|
|
335
|
+
| [awdit](https://github.com/Aitherium/awdit) | An append-only audit trail whose gaps are DETECTABLE | [docs](https://aitherium.github.io/awdit/) |
|
|
336
|
+
| [awbac](https://github.com/Aitherium/awbac) | Role-based access control that fails closed and explains itself | [docs](https://aitherium.github.io/awbac/) |
|
|
337
|
+
| [awiam](https://github.com/Aitherium/awiam) | Who is this caller? A directory and session store that fails honestly | [docs](https://aitherium.github.io/awiam/) |
|
|
338
|
+
| [awtunnel](https://github.com/Aitherium/awtunnel) | Reach a service that has no public address | [docs](https://aitherium.github.io/awtunnel/) |
|
|
339
|
+
| [awnest](https://github.com/Aitherium/awnest) | Prove there is a human before you let them into the nest | [docs](https://aitherium.github.io/awnest/) |
|
|
340
|
+
| [awnboard](https://github.com/Aitherium/awnboard) | A front gate you can put in front of anything, and hand someone the key to | [docs](https://aitherium.github.io/awnboard/) |
|
|
341
|
+
| [awnix](https://github.com/Aitherium/awnix) | A Linux you can hand to an agent — immutable base, capabilities included | [docs](https://aitherium.github.io/awnix/) |
|
|
342
|
+
| [awrecover](https://github.com/Aitherium/awrecover) | Labelled snapshots with an all-or-nothing restore | [docs](https://aitherium.github.io/awrecover/) |
|
|
343
|
+
| [awkno](https://github.com/Aitherium/awkno) | The man page for the Aither World — every brick, stack and law, offline | [docs](https://aitherium.github.io/awkno/) |
|
|
344
|
+
| [awrelay](https://github.com/Aitherium/awrelay) | Portable agent messaging — findings, alerts, coordination | [docs](https://aitherium.github.io/awrelay/) |
|
|
345
|
+
| [awmail](https://github.com/Aitherium/awmail) | Give an agent an email address — send, and actually receive | [docs](https://aitherium.github.io/awmail/) |
|
|
346
|
+
| [awnet](https://github.com/Aitherium/awnet) | The agentic web — agents host a mesh, and agents join one | [docs](https://aitherium.github.io/awnet/) |
|
|
347
|
+
| [awfind](https://github.com/Aitherium/awfind) | A portable search client — query, results, ranking | [docs](https://aitherium.github.io/awfind/) |
|
|
348
|
+
| [awbrowse](https://github.com/Aitherium/awbrowse) | A portable browser client — navigate, console, network, DOM, screenshot | [docs](https://aitherium.github.io/awbrowse/) |
|
|
349
|
+
| [awknowledge](https://github.com/Aitherium/awknowledge) | How to run a coding agent so the result survives — the laws, with evidence | [docs](https://aitherium.github.io/awknowledge/) |
|
|
350
|
+
| [aitherkvcache](https://github.com/Aitherium/aitherkvcache) | Near-optimal KV cache quantization for LLM inference — sub-byte compression | [docs](https://aitherium.github.io/aitherkvcache/) |
|
|
351
|
+
| [AitherZero](https://github.com/Aitherium/AitherZero) | PowerShell 7+ automation framework — numbered, self-describing scripts | [docs](https://aitherium.github.io/AitherZero/) |
|
|
352
|
+
| [AitherConnect](https://github.com/Aitherium/AitherConnect) | Browser extension — federated AI search, page context, and the Living OS overlay | [docs](https://aitherium.github.io/AitherConnect/) |
|
|
353
|
+
| [awreason](https://github.com/Aitherium/awreason) | A portable reasoning client — sessions, phases, thoughts, and the chain that produced the answer | [docs](https://aitherium.github.io/awreason/) |
|
|
354
|
+
| [awrecurse](https://github.com/Aitherium/awrecurse) | Answer a question over a context far larger than the window — recursively, with the trace kept | [docs](https://aitherium.github.io/awrecurse/) |
|
|
355
|
+
| [awprism](https://github.com/Aitherium/awprism) | Turn a failure into ranked hypotheses — and say what would confirm each one | [docs](https://aitherium.github.io/awprism/) |
|
|
356
|
+
| [awrepl](https://github.com/Aitherium/awrepl) | A REPL an agent can actually use — state that survives between turns | [docs](https://aitherium.github.io/awrepl/) |
|
|
357
|
+
| [awresearch](https://github.com/Aitherium/awresearch) | Ask a research question, get a cited report you can check | [docs](https://aitherium.github.io/awresearch/) |
|
|
358
|
+
| [awpredict](https://github.com/Aitherium/awpredict) | Predict what your environment does next, and how surprised you were | [docs](https://aitherium.github.io/awpredict/) |
|
|
359
|
+
| [awkno](https://github.com/Aitherium/awkno) | The man page for the Aither World — every brick, stack and law, offline | [docs](https://aitherium.github.io/awkno/) |
|
|
360
|
+
|
|
361
|
+
<div id="aither-constellation" data-self="awgit"></div>
|
|
362
|
+
<script src="aither-constellation.js"></script>
|
|
363
|
+
|
|
364
|
+
<!-- aither-ecosystem:end -->
|
awgit-1.4.0/README.md
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# awgit — the git that knows a function from a line
|
|
2
|
+
|
|
3
|
+
<!-- aither-header:start GENERATED from the ecosystem registry. Edits here are overwritten; change the registry instead. -->
|
|
4
|
+
|
|
5
|
+
**[Docs](https://aitherium.github.io/awgit/)** · [Source](https://github.com/Aitherium/awgit) · `pip install awgit` · [The Aither World](https://aitherium.github.io/)
|
|
6
|
+
|
|
7
|
+
> **The Aither World** is an operating system for agents — a Linux you can hand to one, the runtimes it works in, and the tools it works with. [awnix](https://github.com/Aitherium/awnix) is the Linux underneath it; **awgit** is one of its 33 bricks — each installs on its own, runs offline, and needs no account.
|
|
8
|
+
>
|
|
9
|
+
> **Start here:** Take a lease on a file before you edit it in a shared checkout.
|
|
10
|
+
|
|
11
|
+
<!-- aither-header:end -->
|
|
12
|
+
|
|
13
|
+
Git has no world model. It knows which lines moved, not what a function is — so
|
|
14
|
+
"which commit owns this edit", "did this change conflict with mine", and "is
|
|
15
|
+
this the same change I pushed before" are all answered by heuristics over text.
|
|
16
|
+
|
|
17
|
+
**awgit rides on top of git** (git stays the byte-truth, the transport, the
|
|
18
|
+
history) and adds the layer above it: a **world model as the database**,
|
|
19
|
+
**semantic edit-ops as transactions**, **stacked commits with one pull request
|
|
20
|
+
each**, **verified identity**, and **leases** so several agents can work in one
|
|
21
|
+
tree without overwriting each other.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install awgit
|
|
25
|
+
awgit init # verify the actor, install the capture hooks
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Needs Python 3.10+ and `git`. `gh` (the GitHub CLI) is needed for `push` and
|
|
29
|
+
`pr`, and for the verified identity — everything else works without it.
|
|
30
|
+
|
|
31
|
+
## The model in one screen
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
awgit stack # your commits above trunk — one PR each
|
|
35
|
+
awgit commit -m "fix parser" # git commit, lease-checked and captured
|
|
36
|
+
awgit push # one pull request per commit (dry run; --apply)
|
|
37
|
+
awgit absorb # route pending edits into the commits they belong to
|
|
38
|
+
awgit pr wait 42 --for merged
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
There is no `awgit pr create`. **Push is how a pull request is opened**, and
|
|
42
|
+
pushing again after `commit --amend` adds a REVISION to the same PR rather than
|
|
43
|
+
opening a second one.
|
|
44
|
+
|
|
45
|
+
## Stacked commits
|
|
46
|
+
|
|
47
|
+
Work is a stack of commits between trunk and HEAD, each one a reviewable change
|
|
48
|
+
that becomes its own pull request, diffed against the commit below it. A
|
|
49
|
+
reviewer reads one logical change instead of a 900-line branch, and the bottom
|
|
50
|
+
of a stack can land while the top is still being argued about.
|
|
51
|
+
|
|
52
|
+
| | |
|
|
53
|
+
|---|---|
|
|
54
|
+
| `awgit stack` / `awgit sl` | the stack, newest first, with each commit's Change-Id |
|
|
55
|
+
| `awgit prev` / `awgit next` | move down / up the stack |
|
|
56
|
+
| `awgit push` | publish it — one PR per commit |
|
|
57
|
+
| `awgit absorb` | fold pending edits into the commits that own them |
|
|
58
|
+
| `awgit uncommit` | undo the last commit, keep its changes |
|
|
59
|
+
| `awgit restack` / `awgit pull` | rebase onto trunk (`pull` fetches first) |
|
|
60
|
+
| `awgit worktree new` (also `list`, `rm`) | a checkout of your own |
|
|
61
|
+
|
|
62
|
+
### Identity that survives a rewrite
|
|
63
|
+
|
|
64
|
+
Every commit carries an `Awgit-Change-Id` trailer, written once by a
|
|
65
|
+
`prepare-commit-msg` hook. A sha identifies a *snapshot*; the Change-Id
|
|
66
|
+
identifies the *change*, and it survives `--amend`, `rebase` and `cherry-pick` —
|
|
67
|
+
which is what lets `push` find the pull request you already opened instead of
|
|
68
|
+
opening another one.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
awgit change-id show # this commit's change id
|
|
72
|
+
awgit change-id find I3f2a… # every commit carrying it
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### absorb routes by node, not by line
|
|
76
|
+
|
|
77
|
+
git answers "which commit owns this change" per LINE, so reindenting a function
|
|
78
|
+
makes every line blame the reformat. awgit asks which commit last changed **this
|
|
79
|
+
node**, so the answer survives reindentation and line movement, and a rename
|
|
80
|
+
within a file. (A function moved to a *different* file gets a new node id —
|
|
81
|
+
capture's rename detection is per-file — so absorb sees a delete and an add.)
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
awgit absorb # show the routing
|
|
85
|
+
awgit absorb --apply # create the fixups and autosquash
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Generated and minified files are skipped and reported — they have no node
|
|
89
|
+
identity, and one bundle can stall a parser indefinitely.
|
|
90
|
+
|
|
91
|
+
## Review that survives the code moving
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
awgit review show # threads on this change
|
|
95
|
+
awgit review comment --node <id> -b "needs a bound" # a DRAFT
|
|
96
|
+
awgit review submit # publish them all at once
|
|
97
|
+
awgit review resolve <thread>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
A comment is anchored to a **node**, not to a line. The line number is computed
|
|
101
|
+
each time from where the node is now, so a thread follows the function down the
|
|
102
|
+
file as code is inserted above it, survives a rebase and a reformat, and is
|
|
103
|
+
re-found when the function moves to another file. A thread whose node was
|
|
104
|
+
DELETED is shown as `[orphaned]` with its text intact — "the function you
|
|
105
|
+
objected to is gone" is a review outcome, not a reason to hide the objection.
|
|
106
|
+
|
|
107
|
+
Comments are drafts until `submit`, so you can read a whole diff and publish
|
|
108
|
+
once. **Unresolved threads block `awgit pr merge`**: "merge and follow up" is
|
|
109
|
+
how an objection becomes a TODO nobody files.
|
|
110
|
+
|
|
111
|
+
Node ids come from capture, so comment on a node the diff showed you
|
|
112
|
+
(`awgit diff <a> <b> --json`).
|
|
113
|
+
|
|
114
|
+
## Big repositories
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
awgit clone <url> <dest> --paths AitherOS/lib # history now, contents on demand
|
|
118
|
+
awgit sparse add apps/web # materialise more
|
|
119
|
+
awgit sparse status # is this clone ACTUALLY lazy?
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`awgit clone` uses git's own partial clone (`--filter=blob:none`) with a cone
|
|
123
|
+
sparse-checkout: history and trees arrive immediately, file content is fetched
|
|
124
|
+
the first time something reads it, and the working tree holds only the
|
|
125
|
+
directories you asked for.
|
|
126
|
+
|
|
127
|
+
This is deliberately not a virtual filesystem. A VFS means FUSE on Linux and
|
|
128
|
+
ProjFS on Windows — and Microsoft, who wrote both ProjFS and VFSforGit, retired
|
|
129
|
+
that approach in favour of exactly this pair. Reimplementing what its own author
|
|
130
|
+
walked away from would trade a supported git feature for a kernel-adjacent
|
|
131
|
+
dependency on the platform where it is least reliable.
|
|
132
|
+
|
|
133
|
+
**`sparse status` reads the repository, not the flag you passed.**
|
|
134
|
+
`git clone --filter` succeeds and warns when a server declines to filter — you
|
|
135
|
+
get a full clone and exit 0. awgit reports lazy only when the filter is really
|
|
136
|
+
in the config and a promisor remote really exists to backfill from.
|
|
137
|
+
|
|
138
|
+
## Landing it: evidence, ownership, the queue
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
awgit prove # what this change touched, and what checked it
|
|
142
|
+
awgit owners <path> # who owns it — declared AND measured
|
|
143
|
+
awgit code def <symbol> # where it is defined
|
|
144
|
+
awgit queue enqueue 42 # GitHub's merge queue
|
|
145
|
+
awgit ci status
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**`awgit prove` is proof-carrying review.** A pull request normally arrives as a
|
|
149
|
+
diff and an assertion; "all checks passed" and "no checks ran" render almost
|
|
150
|
+
identically. `prove` attaches the nodes the change touched and what each gate
|
|
151
|
+
actually returned — and it never reports success without evidence: a gate that
|
|
152
|
+
exits 1 is a violation, a gate that exits 2 *could not judge*, and no gates at
|
|
153
|
+
all is **not proved** (exit 2), because "nothing verified this" must not be
|
|
154
|
+
spelled the same way as "verified". `--markdown` renders it as a PR comment.
|
|
155
|
+
|
|
156
|
+
Your gate runner attaches through the plugin seam, so awgit never has to know
|
|
157
|
+
what your checks are:
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
from awgit import plugins
|
|
161
|
+
plugins.register(plugins.GATES, lambda paths: [{"name": "ruff", "status": "ok"}])
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**`awgit owners` shows both answers.** CODEOWNERS says who *should* review;
|
|
165
|
+
the op-log knows who actually changed those nodes, weighted so ownership decays
|
|
166
|
+
(someone who last touched a module a year ago is not who you want reviewing it).
|
|
167
|
+
When the two disagree, that is the useful part — usually the file is stale.
|
|
168
|
+
|
|
169
|
+
`awgit queue` drives **GitHub's** merge queue rather than reimplementing one: it
|
|
170
|
+
already rebases, re-tests and lands, and a second implementation would be a
|
|
171
|
+
service that disagrees with it.
|
|
172
|
+
|
|
173
|
+
## Working next to other people (and other agents)
|
|
174
|
+
|
|
175
|
+
A lease says "I am editing this". Take one **before** you edit: the baseline it
|
|
176
|
+
captures is what lets `stage-mine` separate your work from a peer's.
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
awgit lease list # who holds what right now
|
|
180
|
+
awgit lease acquire <paths> # claim files, TTL-renewed
|
|
181
|
+
awgit stage-mine <path> # stage only YOUR edits to a shared file
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
History rewrites (`absorb`, `uncommit`, `restack`, `pull`) refuse when another
|
|
185
|
+
actor holds a lease in the same worktree, and point you at `awgit worktree new`.
|
|
186
|
+
A solo checkout has no other actors and rewrites freely; set
|
|
187
|
+
`AWGIT_ALLOW_UNSAFE_REWRITE=1` to override.
|
|
188
|
+
|
|
189
|
+
## The world model
|
|
190
|
+
|
|
191
|
+
Every commit is captured as an `EditOp`: which functions/classes/methods
|
|
192
|
+
changed, their old and new bodies by content address, the actor, the parent
|
|
193
|
+
chain. Ops key on **stable node ids** that survive renames and moves.
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
awgit status # op-log status
|
|
197
|
+
awgit diff <sha> <sha> # NODE-level diff (not a text diff — see below)
|
|
198
|
+
awgit graph --format mermaid # the op-log as a graph
|
|
199
|
+
awgit ledger --sha <sha> # who changed what, under a verified identity
|
|
200
|
+
awgit evidence # the measurable claim, from your own op-log
|
|
201
|
+
awgit bodies --get <sha> # read a body from the content-addressed store
|
|
202
|
+
awgit dedupe --scan <trees> # quantify duplication; --reclaim to hard-link
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- **Merge** at node granularity: disjoint node sets merge clean by
|
|
206
|
+
construction, and a genuine collision escalates naming the exact function
|
|
207
|
+
(`awgit merge-preview`, `awgit merge-conflicts`, `awgit resolve-conflict`).
|
|
208
|
+
- **Differential sync**: `awgit sync export` emits the ops a peer is missing
|
|
209
|
+
plus the bodies they reference; `awgit sync import` applies idempotently.
|
|
210
|
+
|
|
211
|
+
## It speaks git
|
|
212
|
+
|
|
213
|
+
Everyday verbs forward to git untouched — `awgit log`, `awgit add`,
|
|
214
|
+
`awgit show`, `awgit rebase`, and about twenty more — and `awgit git -- <args>`
|
|
215
|
+
runs anything else.
|
|
216
|
+
|
|
217
|
+
**No verb is repurposed.** `awgit diff` has always meant a node-level diff and
|
|
218
|
+
still does; git's own diff is `awgit git diff`. `awgit status` reports the
|
|
219
|
+
op-log. Silently changing what an existing command returns would break callers
|
|
220
|
+
in ways that surface far from the change.
|
|
221
|
+
|
|
222
|
+
## For agents
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
awgit commands --json # the entire CLI as JSON: every command, flag and type
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Read it once instead of scraping `--help`. It is introspected from the live
|
|
229
|
+
parser, so a command cannot be described unless it exists. Every read-only
|
|
230
|
+
command takes `--json`.
|
|
231
|
+
|
|
232
|
+
`awgit pr wait <n> --for merged` exits **0** when the condition holds and
|
|
233
|
+
**124** on timeout, so a loop can tell "it happened" from "I gave up".
|
|
234
|
+
|
|
235
|
+
## Set up
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
awgit init # verify the actor, install hooks, report the store
|
|
239
|
+
awgit hooks install # chained hooks — preserves any you already have
|
|
240
|
+
# post-commit -> `awgit capture` (records the op)
|
|
241
|
+
# pre-commit -> `awgit lease-check` (the lease gate)
|
|
242
|
+
# prepare-commit-msg -> stamps the Change-Id
|
|
243
|
+
awgit hooks uninstall # restore them
|
|
244
|
+
awgit version --json
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
The durable store lives **outside** the git tree at `~/.aither/awgit/data`
|
|
248
|
+
(override with `VCS_DATA_ROOT`), so the op-log and body store never pollute your
|
|
249
|
+
repository or your clones.
|
|
250
|
+
|
|
251
|
+
## Tests
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
cd awgit && python -m pytest tests/ -q
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## License
|
|
258
|
+
|
|
259
|
+
Apache-2.0. Built by Aitherium — the git that scales to agents.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
<!-- aither-ecosystem:start GENERATED from the ecosystem registry. Edits here are overwritten; change the registry instead. -->
|
|
264
|
+
|
|
265
|
+
## The aw family
|
|
266
|
+
|
|
267
|
+
Standalone tools that share one idea: **replace something you would otherwise have to _trust_ with something you can _check_.**
|
|
268
|
+
|
|
269
|
+
Each installs on its own, works offline, and needs no account.
|
|
270
|
+
|
|
271
|
+
| | instead of trusting | you check |
|
|
272
|
+
|---|---|---|
|
|
273
|
+
| [awdk](https://github.com/Aitherium/awdk) | a framework's idea of how your agents should run | one loop you can read, pointed at a backend you already pay for |
|
|
274
|
+
| [awskills](https://github.com/Aitherium/awskills) | that an agent knows your procedure | the procedure written down, versioned, and loadable by any agent |
|
|
275
|
+
| [awm](https://github.com/Aitherium/awm) | that memory stayed in its lane | tenant:user:project scopes, so a write cannot cross a boundary |
|
|
276
|
+
| [awnode](https://github.com/Aitherium/awnode) | a vendor's cloud with every prompt | a local gateway routing to backends you chose |
|
|
277
|
+
| [awgraph](https://github.com/Aitherium/awgraph) | that grep found everything | an AST + tree-sitter call graph an agent can traverse |
|
|
278
|
+
| **awgit** _(you are here)_ | that no one else is editing this file | a lease, refused at commit time if you do not hold it |
|
|
279
|
+
| [awseal](https://github.com/Aitherium/awseal) | that the artifact came from who you think | an Ed25519 seal — the key that verifies is not the key that forges |
|
|
280
|
+
| [awshare](https://github.com/Aitherium/awshare) | that the download is intact | content-addressed bundles, verified on fetch |
|
|
281
|
+
| [awnest](https://github.com/Aitherium/awnest) | that there is a person on the other end | a verdict with evidence, where "we could not tell" is not "yes" |
|
|
282
|
+
| [awnboard](https://github.com/Aitherium/awnboard) | a share link anyone who sees it can use | an invitation addressed to one person, for one gate, revocable |
|
|
283
|
+
| [awnix](https://github.com/Aitherium/awnix) | that the box is what you left it as | an immutable image you built, with atomic rollback |
|
|
284
|
+
| [awrecover](https://github.com/Aitherium/awrecover) | that the restore worked | a restore that fully lands or does not land at all |
|
|
285
|
+
| [awkno](https://github.com/Aitherium/awkno) | that the docs site is up, or that you remember the family | the whole ecosystem in your terminal, with no network at all |
|
|
286
|
+
| [awrelay](https://github.com/Aitherium/awrelay) | a SaaS in the middle of your agents | findings, alerts and coordination over your own transport |
|
|
287
|
+
| [awmail](https://github.com/Aitherium/awmail) | a mailbox somebody else can read | mail your agents send and receive over your own server |
|
|
288
|
+
| [awfind](https://github.com/Aitherium/awfind) | one vendor's idea of the web | results from whichever providers you configured |
|
|
289
|
+
| [awbrowse](https://github.com/Aitherium/awbrowse) | that the page said what you were told | the render, the DOM and the requests it made |
|
|
290
|
+
| [aitherkvcache](https://github.com/Aitherium/aitherkvcache) | a vendor's quantisation defaults | sub-byte KV cache kernels you can benchmark yourself |
|
|
291
|
+
| [AitherZero](https://github.com/Aitherium/AitherZero) | a pile of scripts nobody has numbered | numbered, discoverable automation with declarative playbooks |
|
|
292
|
+
| [AitherConnect](https://github.com/Aitherium/AitherConnect) | what a page tells your browser to do | a federated search and desktop bridge you host |
|
|
293
|
+
| [awreason](https://github.com/Aitherium/awreason) | a confident paragraph | the phases it went through, and every tool call it made to get there |
|
|
294
|
+
| [awrecurse](https://github.com/Aitherium/awrecurse) | that everything you pasted in was actually read | which slices it opened, and what it concluded from each |
|
|
295
|
+
| [awprism](https://github.com/Aitherium/awprism) | the first explanation that fits | the ranked alternatives, and the observation that separates them |
|
|
296
|
+
| [awrepl](https://github.com/Aitherium/awrepl) | what the agent believes the value is | the value, printed from the live session |
|
|
297
|
+
| [awresearch](https://github.com/Aitherium/awresearch) | a summary of pages nobody opened | every claim against the source it came from |
|
|
298
|
+
| [awpredict](https://github.com/Aitherium/awpredict) | a model because it trained without erroring | its prediction against a self-updating lookup, on the rows that are actually novel |
|
|
299
|
+
| [awkno](https://github.com/Aitherium/awkno) | that the docs site is up, or that you remember the family | the whole ecosystem in your terminal, with no network at all |
|
|
300
|
+
|
|
301
|
+
[**awnix**](https://github.com/Aitherium/awnix) is the ground floor — A Linux you can hand to an agent — immutable base, capabilities included.
|
|
302
|
+
|
|
303
|
+
## The Aitherium ecosystem
|
|
304
|
+
|
|
305
|
+
Every repository here is public. Each publishes an `aither-manifest.json` beside its page, so any surface can read every sibling's — the network is browsable from any node in it.
|
|
306
|
+
|
|
307
|
+
| repo | what it is | pages |
|
|
308
|
+
|---|---|---|
|
|
309
|
+
| [awdk](https://github.com/Aitherium/awdk) | Build AI agent fleets — 3 lines, any backend, local or cloud | [docs](https://aitherium.github.io/awdk/) |
|
|
310
|
+
| [awskills](https://github.com/Aitherium/awskills) | Portable agent skills — self-contained procedures an agent loads on demand | [docs](https://aitherium.github.io/awskills/) |
|
|
311
|
+
| [awm](https://github.com/Aitherium/awm) | A portable, scoped agent memory | [docs](https://aitherium.github.io/awm/) |
|
|
312
|
+
| [awnode](https://github.com/Aitherium/awnode) | A lightweight local gateway — bridges your apps to the AI backends you chose | [docs](https://aitherium.github.io/awnode/) |
|
|
313
|
+
| [awrun](https://github.com/Aitherium/awrun) | A priority-aware queue and dispatcher for agentic runs and ad-hoc CI builds | [docs](https://aitherium.github.io/awrun/) |
|
|
314
|
+
| [awgraph](https://github.com/Aitherium/awgraph) | A semantic code graph for agents — AST + tree-sitter, call graphs | [docs](https://aitherium.github.io/awgraph/) |
|
|
315
|
+
| **awgit** _(you are here)_ | Semantic version control on top of git — edit-ops and leases | [docs](https://aitherium.github.io/awgit/) |
|
|
316
|
+
| [awseal](https://github.com/Aitherium/awseal) | Sign an artifact so a stranger can verify it | [docs](https://aitherium.github.io/awseal/) |
|
|
317
|
+
| [awshare](https://github.com/Aitherium/awshare) | Publish an artifact and fetch it back verified | [docs](https://aitherium.github.io/awshare/) |
|
|
318
|
+
| [awdit](https://github.com/Aitherium/awdit) | An append-only audit trail whose gaps are DETECTABLE | [docs](https://aitherium.github.io/awdit/) |
|
|
319
|
+
| [awbac](https://github.com/Aitherium/awbac) | Role-based access control that fails closed and explains itself | [docs](https://aitherium.github.io/awbac/) |
|
|
320
|
+
| [awiam](https://github.com/Aitherium/awiam) | Who is this caller? A directory and session store that fails honestly | [docs](https://aitherium.github.io/awiam/) |
|
|
321
|
+
| [awtunnel](https://github.com/Aitherium/awtunnel) | Reach a service that has no public address | [docs](https://aitherium.github.io/awtunnel/) |
|
|
322
|
+
| [awnest](https://github.com/Aitherium/awnest) | Prove there is a human before you let them into the nest | [docs](https://aitherium.github.io/awnest/) |
|
|
323
|
+
| [awnboard](https://github.com/Aitherium/awnboard) | A front gate you can put in front of anything, and hand someone the key to | [docs](https://aitherium.github.io/awnboard/) |
|
|
324
|
+
| [awnix](https://github.com/Aitherium/awnix) | A Linux you can hand to an agent — immutable base, capabilities included | [docs](https://aitherium.github.io/awnix/) |
|
|
325
|
+
| [awrecover](https://github.com/Aitherium/awrecover) | Labelled snapshots with an all-or-nothing restore | [docs](https://aitherium.github.io/awrecover/) |
|
|
326
|
+
| [awkno](https://github.com/Aitherium/awkno) | The man page for the Aither World — every brick, stack and law, offline | [docs](https://aitherium.github.io/awkno/) |
|
|
327
|
+
| [awrelay](https://github.com/Aitherium/awrelay) | Portable agent messaging — findings, alerts, coordination | [docs](https://aitherium.github.io/awrelay/) |
|
|
328
|
+
| [awmail](https://github.com/Aitherium/awmail) | Give an agent an email address — send, and actually receive | [docs](https://aitherium.github.io/awmail/) |
|
|
329
|
+
| [awnet](https://github.com/Aitherium/awnet) | The agentic web — agents host a mesh, and agents join one | [docs](https://aitherium.github.io/awnet/) |
|
|
330
|
+
| [awfind](https://github.com/Aitherium/awfind) | A portable search client — query, results, ranking | [docs](https://aitherium.github.io/awfind/) |
|
|
331
|
+
| [awbrowse](https://github.com/Aitherium/awbrowse) | A portable browser client — navigate, console, network, DOM, screenshot | [docs](https://aitherium.github.io/awbrowse/) |
|
|
332
|
+
| [awknowledge](https://github.com/Aitherium/awknowledge) | How to run a coding agent so the result survives — the laws, with evidence | [docs](https://aitherium.github.io/awknowledge/) |
|
|
333
|
+
| [aitherkvcache](https://github.com/Aitherium/aitherkvcache) | Near-optimal KV cache quantization for LLM inference — sub-byte compression | [docs](https://aitherium.github.io/aitherkvcache/) |
|
|
334
|
+
| [AitherZero](https://github.com/Aitherium/AitherZero) | PowerShell 7+ automation framework — numbered, self-describing scripts | [docs](https://aitherium.github.io/AitherZero/) |
|
|
335
|
+
| [AitherConnect](https://github.com/Aitherium/AitherConnect) | Browser extension — federated AI search, page context, and the Living OS overlay | [docs](https://aitherium.github.io/AitherConnect/) |
|
|
336
|
+
| [awreason](https://github.com/Aitherium/awreason) | A portable reasoning client — sessions, phases, thoughts, and the chain that produced the answer | [docs](https://aitherium.github.io/awreason/) |
|
|
337
|
+
| [awrecurse](https://github.com/Aitherium/awrecurse) | Answer a question over a context far larger than the window — recursively, with the trace kept | [docs](https://aitherium.github.io/awrecurse/) |
|
|
338
|
+
| [awprism](https://github.com/Aitherium/awprism) | Turn a failure into ranked hypotheses — and say what would confirm each one | [docs](https://aitherium.github.io/awprism/) |
|
|
339
|
+
| [awrepl](https://github.com/Aitherium/awrepl) | A REPL an agent can actually use — state that survives between turns | [docs](https://aitherium.github.io/awrepl/) |
|
|
340
|
+
| [awresearch](https://github.com/Aitherium/awresearch) | Ask a research question, get a cited report you can check | [docs](https://aitherium.github.io/awresearch/) |
|
|
341
|
+
| [awpredict](https://github.com/Aitherium/awpredict) | Predict what your environment does next, and how surprised you were | [docs](https://aitherium.github.io/awpredict/) |
|
|
342
|
+
| [awkno](https://github.com/Aitherium/awkno) | The man page for the Aither World — every brick, stack and law, offline | [docs](https://aitherium.github.io/awkno/) |
|
|
343
|
+
|
|
344
|
+
<div id="aither-constellation" data-self="awgit"></div>
|
|
345
|
+
<script src="aither-constellation.js"></script>
|
|
346
|
+
|
|
347
|
+
<!-- aither-ecosystem:end -->
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""`python -m awgit` — the invocation that still works when the console shim does not.
|
|
2
|
+
|
|
3
|
+
WHY THIS EXISTS
|
|
4
|
+
|
|
5
|
+
Measured 2026-08-21: `awgit.exe` on this host exits 126 from bash and, asked directly,
|
|
6
|
+
PowerShell says why -- "An Application Control policy has blocked this file". WDAC blocks
|
|
7
|
+
the freshly generated shim, so `pip install -e` cannot repair it: reinstalling regenerates
|
|
8
|
+
the same blocked binary.
|
|
9
|
+
|
|
10
|
+
That matters more than a broken convenience. The pre-commit lease gate is invoked as
|
|
11
|
+
`awgit lease acquire <file>`, so with the shim blocked EVERY commit in this repo either
|
|
12
|
+
fails the gate or has to be talked around one file at a time -- while `pip show`, `import
|
|
13
|
+
awgit` and `shutil.which('awgit')` all report the tool perfectly healthy. That is the
|
|
14
|
+
"looks installed, fails on first real use" shape the tooling checker was written for, one
|
|
15
|
+
level below where it was looking; ATI006 now asserts the shim actually RUNS.
|
|
16
|
+
|
|
17
|
+
A module entry point needs no shim, no new executable and no security-policy exception:
|
|
18
|
+
`python -m awgit ...` goes through the interpreter, which is already trusted. Anything
|
|
19
|
+
that shells the console script keeps working unchanged where the policy allows it.
|
|
20
|
+
|
|
21
|
+
Kept to a delegation on purpose -- the CLI lives in `cli.py` and having two entry points
|
|
22
|
+
that can disagree about argument handling is its own defect.
|
|
23
|
+
"""
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
import sys
|
|
27
|
+
|
|
28
|
+
from awgit.cli import main
|
|
29
|
+
|
|
30
|
+
if __name__ == "__main__":
|
|
31
|
+
sys.exit(main())
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"""Stack-aware `doctor` for awgit.
|
|
2
|
+
|
|
3
|
+
GENERATED BY gen_aw_doctor.py -- DO NOT EDIT.
|
|
4
|
+
Regenerate it with the generator named above; a hand-edit here is reverted by
|
|
5
|
+
the next run and fails the parity gate.
|
|
6
|
+
|
|
7
|
+
Why a doctor exists at all: the aw* bricks are designed to COMPOSE, so the
|
|
8
|
+
interesting failures live BETWEEN them. "awgit is installed" is not the useful
|
|
9
|
+
fact -- "awgit is installed and the thing it pairs with is not" is. This reports
|
|
10
|
+
the whole stack, not just itself.
|
|
11
|
+
|
|
12
|
+
stdlib only, on purpose: a diagnostic that cannot run because a dependency is
|
|
13
|
+
missing is worthless precisely when you need it.
|
|
14
|
+
"""
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import importlib.util
|
|
18
|
+
import os
|
|
19
|
+
import shutil
|
|
20
|
+
import sys
|
|
21
|
+
|
|
22
|
+
#: Frozen from AitherOS/config/ecosystem.yaml at generation time. A shipped
|
|
23
|
+
#: package cannot read the registry, and a doctor that guessed at the family
|
|
24
|
+
#: would go stale in silence. Regenerate to update.
|
|
25
|
+
SELF = 'awgit'
|
|
26
|
+
FAMILY = ['awask', 'awask', 'awbac', 'awbrowse', 'awdit', 'awevolve', 'awevolve', 'awfind', 'awgraph', 'awiam', 'awkno', 'awm', 'awmail', 'awnboard', 'awnest', 'awnet', 'awnode', 'awpredict', 'awprism', 'awreason', 'awrecover', 'awrecurse', 'awrelay', 'awrepl', 'awresearch', 'awrun', 'awseal', 'awshare', 'awtunnel']
|
|
27
|
+
PAIRS_WITH = ['awgraph', 'awrelay']
|
|
28
|
+
|
|
29
|
+
#: This brick's OWN config, read out of its source at generation time.
|
|
30
|
+
#: ENV_REQUIRED is `os.environ["X"]` -- absent, that is a KeyError the moment
|
|
31
|
+
#: the line runs. ENV_OPTIONAL is `os.getenv("X")`, which returns None and lets
|
|
32
|
+
#: the caller cope. Only this brick's namespace is listed: reporting the
|
|
33
|
+
#: platform-wide vars it also touches would be noise, and a doctor that floods
|
|
34
|
+
#: gets ignored.
|
|
35
|
+
ENV_REQUIRED = []
|
|
36
|
+
ENV_OPTIONAL = []
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _installed(mod: str) -> "str | None":
|
|
40
|
+
"""Version if importable, else None. Never raises -- a broken sibling must
|
|
41
|
+
not take the diagnostic down with it."""
|
|
42
|
+
try:
|
|
43
|
+
if importlib.util.find_spec(mod) is None:
|
|
44
|
+
return None
|
|
45
|
+
except (ImportError, ValueError):
|
|
46
|
+
return None
|
|
47
|
+
try:
|
|
48
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
49
|
+
try:
|
|
50
|
+
return version(mod)
|
|
51
|
+
except PackageNotFoundError:
|
|
52
|
+
return "installed"
|
|
53
|
+
except Exception:
|
|
54
|
+
return "installed"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def report(out=None) -> int:
|
|
58
|
+
"""Print the stack picture. 0 = this brick and its pairs are present."""
|
|
59
|
+
out = out or sys.stdout
|
|
60
|
+
print(f"{SELF} doctor", file=out)
|
|
61
|
+
|
|
62
|
+
mine = _installed(SELF)
|
|
63
|
+
print(f" self {SELF} {mine or 'NOT IMPORTABLE'}", file=out)
|
|
64
|
+
shim = shutil.which(SELF)
|
|
65
|
+
print(f" command {shim or 'not on PATH'}", file=out)
|
|
66
|
+
|
|
67
|
+
# The stack. Siblings this brick pairs with are called out separately,
|
|
68
|
+
# because a missing pair is a REASON, while a missing unrelated brick is
|
|
69
|
+
# just a fact about your machine.
|
|
70
|
+
missing_pairs, present = [], []
|
|
71
|
+
for name in FAMILY:
|
|
72
|
+
v = _installed(name)
|
|
73
|
+
if v:
|
|
74
|
+
present.append(name)
|
|
75
|
+
elif name in PAIRS_WITH:
|
|
76
|
+
missing_pairs.append(name)
|
|
77
|
+
print(f" stack {len(present)}/{len(FAMILY)} aw* packages installed",
|
|
78
|
+
file=out)
|
|
79
|
+
if present:
|
|
80
|
+
print(f" {' '.join(sorted(present))}", file=out)
|
|
81
|
+
|
|
82
|
+
missing_req = [v for v in ENV_REQUIRED if not os.environ.get(v)]
|
|
83
|
+
if ENV_REQUIRED or ENV_OPTIONAL:
|
|
84
|
+
have = sum(1 for v in ENV_REQUIRED + ENV_OPTIONAL if os.environ.get(v))
|
|
85
|
+
total = len(ENV_REQUIRED) + len(ENV_OPTIONAL)
|
|
86
|
+
print(f" config {have}/{total} of this brick's own vars set", file=out)
|
|
87
|
+
if missing_req:
|
|
88
|
+
# Not a preference. os.environ[...] raises the moment it runs.
|
|
89
|
+
print(f" MISSING REQUIRED: {' '.join(missing_req)}", file=out)
|
|
90
|
+
|
|
91
|
+
local = _local_checks()
|
|
92
|
+
for line in local:
|
|
93
|
+
print(f" {line}", file=out)
|
|
94
|
+
|
|
95
|
+
if mine is None:
|
|
96
|
+
print(f"\nverdict: {SELF} itself is not importable. Reinstall it before "
|
|
97
|
+
f"anything else here means much.", file=out)
|
|
98
|
+
return 1
|
|
99
|
+
if missing_req:
|
|
100
|
+
print(f"\nverdict: {SELF} is missing required config "
|
|
101
|
+
f"({', '.join(missing_req)}). Those are read with os.environ[...], "
|
|
102
|
+
f"so the code path that needs them raises rather than degrades.",
|
|
103
|
+
file=out)
|
|
104
|
+
return 1
|
|
105
|
+
if missing_pairs:
|
|
106
|
+
print(f"\nverdict: {SELF} works, but pairs with "
|
|
107
|
+
f"{', '.join(sorted(missing_pairs))} which "
|
|
108
|
+
f"{'is' if len(missing_pairs) == 1 else 'are'} not installed. "
|
|
109
|
+
f"That is a capability you are missing, not an error.", file=out)
|
|
110
|
+
return 0
|
|
111
|
+
print(f"\nverdict: {SELF} and everything it pairs with are present.", file=out)
|
|
112
|
+
return 0
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _local_checks() -> "list[str]":
|
|
116
|
+
"""Per-brick checks, if this package defines them.
|
|
117
|
+
|
|
118
|
+
Kept as a HOOK rather than generated guesses: the generator knows the family
|
|
119
|
+
from the registry, but it does not know what awgit needs at runtime, and a
|
|
120
|
+
doctor that invented config requirements would be confidently wrong. A
|
|
121
|
+
package supplies `_doctor_local()` returning display lines; absent, the
|
|
122
|
+
stack picture above still stands on its own.
|
|
123
|
+
"""
|
|
124
|
+
try:
|
|
125
|
+
mod = importlib.import_module(f"{SELF}.doctor_local")
|
|
126
|
+
except Exception:
|
|
127
|
+
return []
|
|
128
|
+
try:
|
|
129
|
+
return list(mod._doctor_local())
|
|
130
|
+
except Exception as exc: # noqa: BLE001
|
|
131
|
+
return [f"local checks raised {type(exc).__name__}: {exc}"]
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def main(argv: "list[str] | None" = None) -> int:
|
|
135
|
+
return report()
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
if __name__ == "__main__":
|
|
139
|
+
raise SystemExit(main())
|