hypergumbo-tracker 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.
- hypergumbo_tracker-0.1.0/.gitignore +55 -0
- hypergumbo_tracker-0.1.0/CHANGELOG.md +24 -0
- hypergumbo_tracker-0.1.0/LICENSE +159 -0
- hypergumbo_tracker-0.1.0/PKG-INFO +267 -0
- hypergumbo_tracker-0.1.0/README.md +237 -0
- hypergumbo_tracker-0.1.0/pyproject.toml +72 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/__init__.py +42 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/cache.py +513 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/cli.py +1592 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/configure.py +380 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/embeddings.py +361 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/migration.py +767 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/models.py +701 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/setup.py +2075 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/stop_hook.py +376 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/store.py +2049 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/sync.py +868 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/trackerset.py +900 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/tui.py +3354 -0
- hypergumbo_tracker-0.1.0/src/hypergumbo_tracker/validation.py +809 -0
- hypergumbo_tracker-0.1.0/tests/__init__.py +0 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_compact_detail.svg +129 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_compact_list.svg +124 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_compact_with_status.svg +132 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_filter_panel.svg +160 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_standard_tree_view.svg +156 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_standard_two_pane.svg +158 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_too_small.svg +96 -0
- hypergumbo_tracker-0.1.0/tests/__snapshots__/test_tui_snapshots/TestTuiSnapshots.test_wide_layout.svg +246 -0
- hypergumbo_tracker-0.1.0/tests/conftest.py +97 -0
- hypergumbo_tracker-0.1.0/tests/helpers.py +157 -0
- hypergumbo_tracker-0.1.0/tests/permission/1_agent_setup.sh +335 -0
- hypergumbo_tracker-0.1.0/tests/permission/2_human_governance.sh +187 -0
- hypergumbo_tracker-0.1.0/tests/permission/3_agent_constrained.sh +182 -0
- hypergumbo_tracker-0.1.0/tests/permission/4_human_cleanup.sh +154 -0
- hypergumbo_tracker-0.1.0/tests/permission/README.md +134 -0
- hypergumbo_tracker-0.1.0/tests/test_cache.py +950 -0
- hypergumbo_tracker-0.1.0/tests/test_cli.py +2699 -0
- hypergumbo_tracker-0.1.0/tests/test_compile_properties.py +259 -0
- hypergumbo_tracker-0.1.0/tests/test_configure.py +686 -0
- hypergumbo_tracker-0.1.0/tests/test_embeddings.py +573 -0
- hypergumbo_tracker-0.1.0/tests/test_fork_workflow.py +234 -0
- hypergumbo_tracker-0.1.0/tests/test_git_integration.py +432 -0
- hypergumbo_tracker-0.1.0/tests/test_migration.py +1398 -0
- hypergumbo_tracker-0.1.0/tests/test_models.py +676 -0
- hypergumbo_tracker-0.1.0/tests/test_setup.py +3484 -0
- hypergumbo_tracker-0.1.0/tests/test_stop_hook.py +747 -0
- hypergumbo_tracker-0.1.0/tests/test_store.py +3533 -0
- hypergumbo_tracker-0.1.0/tests/test_sync.py +2307 -0
- hypergumbo_tracker-0.1.0/tests/test_trackerset.py +1272 -0
- hypergumbo_tracker-0.1.0/tests/test_tui.py +9095 -0
- hypergumbo_tracker-0.1.0/tests/test_tui_snapshots.py +210 -0
- hypergumbo_tracker-0.1.0/tests/test_validation.py +1649 -0
- hypergumbo_tracker-0.1.0/tests/test_yaml_roundtrip.py +460 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
dist/
|
|
6
|
+
build/
|
|
7
|
+
.venv/
|
|
8
|
+
.env
|
|
9
|
+
|
|
10
|
+
# tooling
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
.hypothesis/
|
|
15
|
+
|
|
16
|
+
# hypergumbo
|
|
17
|
+
.hypergumbo/
|
|
18
|
+
hypergumbo_capsule/
|
|
19
|
+
hypergumbo.results.json
|
|
20
|
+
hypergumbo.results.*.json
|
|
21
|
+
slice.json
|
|
22
|
+
|
|
23
|
+
# Agent configuration
|
|
24
|
+
**/*.local.json
|
|
25
|
+
**/*.local.md
|
|
26
|
+
**/.claude/cache/
|
|
27
|
+
**/.gemini/cache/
|
|
28
|
+
**/.cursor/state/
|
|
29
|
+
**/*-session/
|
|
30
|
+
AUTONOMOUS_MODE.txt
|
|
31
|
+
.agent/LOOP
|
|
32
|
+
.agent/disabled.LOOP
|
|
33
|
+
|
|
34
|
+
# Coverage
|
|
35
|
+
.coverage
|
|
36
|
+
.coverage.*
|
|
37
|
+
htmlcov/
|
|
38
|
+
coverage-report.txt
|
|
39
|
+
|
|
40
|
+
# Snapshot reports (pytest-textual-snapshot)
|
|
41
|
+
snapshot_report.html
|
|
42
|
+
|
|
43
|
+
# Node (bats testing)
|
|
44
|
+
node_modules/
|
|
45
|
+
package.json
|
|
46
|
+
package-lock.json
|
|
47
|
+
|
|
48
|
+
# Hypergumbo cache
|
|
49
|
+
.hypergumbo_cache/
|
|
50
|
+
.ci/pytest-output.log
|
|
51
|
+
|
|
52
|
+
# Tracker
|
|
53
|
+
**/config.yaml
|
|
54
|
+
!**/config.yaml.template
|
|
55
|
+
.agent/.cache-*.db
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog — hypergumbo-tracker
|
|
2
|
+
|
|
3
|
+
All notable changes to the `hypergumbo-tracker` package are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
|
+
|
|
5
|
+
This package is independently versioned from the main hypergumbo tool and licensed under MPL-2.0.
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.0] - 2026-03-01
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Append-only op-log storage**: YAML-backed structured tracker with nonce-on-every-line for git merge=union safety.
|
|
14
|
+
- **Content-hash IDs**: Proquint-encoded SHA-256 IDs for natural deduplication.
|
|
15
|
+
- **Lamport clock**: Cross-branch causal ordering via git cat-file --batch peek.
|
|
16
|
+
- **SimHash near-duplicate detection**: Embedding-based near-duplicate detection on `add()`.
|
|
17
|
+
- **SQLite read cache**: Per-tier incremental invalidation, write-through on mutations, corruption recovery.
|
|
18
|
+
- **TrackerSet**: Multi-tier unified view merging canonical, workspace, and stealth Stores with write routing, tier movement, and reconciliation.
|
|
19
|
+
- **Positional alias persistence**: Short aliases for tracker items survive across sessions.
|
|
20
|
+
- **Auto-sync**: Automatic commit/push/poll/merge when pending ops exceed threshold (40 lines).
|
|
21
|
+
- **Lock enforcement**: Human-locked fields reject agent writes, enforced cross-branch via Lamport peek.
|
|
22
|
+
- **CLI**: `scripts/tracker` shell wrapper with add, update, discuss, show, list, ready, count-todos, check-messages subcommands.
|
|
23
|
+
- **TUI**: Textual 7.x interface with three responsive layouts, 8 write-mode dialogs, SVG snapshot tests, unread discussion indicator.
|
|
24
|
+
- **Quick-start guide**: `docs/tracker-quickstart.md`.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
|
+
|
|
3
|
+
==================================
|
|
4
|
+
|
|
5
|
+
1. Definitions
|
|
6
|
+
|
|
7
|
+
--------------
|
|
8
|
+
|
|
9
|
+
1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
|
|
10
|
+
1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution.
|
|
11
|
+
1.3. "Contribution" means Covered Software of a particular Contributor.
|
|
12
|
+
1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
|
|
13
|
+
1.5. "Incompatible With Secondary Licenses" means
|
|
14
|
+
(a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
|
|
15
|
+
(b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
|
|
16
|
+
1.6. "Executable Form" means any form of the work other than Source Code Form.
|
|
17
|
+
1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
|
|
18
|
+
1.8. "License" means this document.
|
|
19
|
+
1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
|
|
20
|
+
1.10. "Modifications" means any of the following:
|
|
21
|
+
(a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
|
|
22
|
+
(b) any new file in Source Code Form that contains any Covered Software.
|
|
23
|
+
1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
|
|
24
|
+
1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
|
|
25
|
+
1.13. "Source Code Form" means the form of the work preferred for making modifications.
|
|
26
|
+
1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
|
|
27
|
+
2. License Grants and Conditions
|
|
28
|
+
|
|
29
|
+
--------------------------------
|
|
30
|
+
|
|
31
|
+
2.1. Grants
|
|
32
|
+
Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
|
|
33
|
+
|
|
34
|
+
(a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
|
|
35
|
+
(b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
|
|
36
|
+
2.2. Effective Date
|
|
37
|
+
The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
|
|
38
|
+
|
|
39
|
+
2.3. Limitations on Grant Scope
|
|
40
|
+
The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
|
|
41
|
+
|
|
42
|
+
(a) for any code that a Contributor has removed from Covered Software; or
|
|
43
|
+
(b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
|
|
44
|
+
(c) under Patent Claims infringed by Covered Software in the absence of its Contributions.
|
|
45
|
+
This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
|
|
46
|
+
|
|
47
|
+
2.4. Subsequent Licenses
|
|
48
|
+
No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
|
|
49
|
+
|
|
50
|
+
2.5. Representation
|
|
51
|
+
Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
|
|
52
|
+
|
|
53
|
+
2.6. Fair Use
|
|
54
|
+
This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
|
|
55
|
+
|
|
56
|
+
2.7. Conditions
|
|
57
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
|
|
58
|
+
|
|
59
|
+
3. Responsibilities
|
|
60
|
+
|
|
61
|
+
-------------------
|
|
62
|
+
|
|
63
|
+
3.1. Distribution of Source Form
|
|
64
|
+
All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form.
|
|
65
|
+
|
|
66
|
+
3.2. Distribution of Executable Form
|
|
67
|
+
If You distribute Covered Software in Executable Form then:
|
|
68
|
+
|
|
69
|
+
(a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
|
|
70
|
+
(b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License.
|
|
71
|
+
3.3. Distribution of a Larger Work
|
|
72
|
+
You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).
|
|
73
|
+
|
|
74
|
+
3.4. Notices
|
|
75
|
+
You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
|
|
76
|
+
|
|
77
|
+
3.5. Application of Additional Terms
|
|
78
|
+
You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.
|
|
79
|
+
|
|
80
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
81
|
+
|
|
82
|
+
---------------------------------------------------
|
|
83
|
+
|
|
84
|
+
If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
|
|
85
|
+
|
|
86
|
+
5. Termination
|
|
87
|
+
|
|
88
|
+
--------------
|
|
89
|
+
|
|
90
|
+
5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.
|
|
91
|
+
5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
|
|
92
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
|
|
93
|
+
************************************************************************
|
|
94
|
+
|
|
95
|
+
6. Disclaimer of Warranty
|
|
96
|
+
|
|
97
|
+
* ------------------------- *
|
|
98
|
+
|
|
99
|
+
Covered Software is provided under this License on an "as is" basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.
|
|
100
|
+
|
|
101
|
+
************************************************************************
|
|
102
|
+
|
|
103
|
+
************************************************************************
|
|
104
|
+
|
|
105
|
+
7. Limitation of Liability
|
|
106
|
+
|
|
107
|
+
* -------------------------- *
|
|
108
|
+
|
|
109
|
+
Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
|
|
110
|
+
|
|
111
|
+
************************************************************************
|
|
112
|
+
|
|
113
|
+
8. Litigation
|
|
114
|
+
|
|
115
|
+
-------------
|
|
116
|
+
|
|
117
|
+
Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims.
|
|
118
|
+
|
|
119
|
+
9. Miscellaneous
|
|
120
|
+
|
|
121
|
+
----------------
|
|
122
|
+
|
|
123
|
+
This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
|
|
124
|
+
|
|
125
|
+
10. Versions of the License
|
|
126
|
+
|
|
127
|
+
---------------------------
|
|
128
|
+
|
|
129
|
+
10.1. New Versions
|
|
130
|
+
Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
|
|
131
|
+
|
|
132
|
+
10.2. Effect of New Versions
|
|
133
|
+
You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
|
|
134
|
+
|
|
135
|
+
10.3. Modified Versions
|
|
136
|
+
If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
|
|
137
|
+
|
|
138
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
|
|
139
|
+
If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
|
|
140
|
+
|
|
141
|
+
Exhibit A - Source Code Form License Notice
|
|
142
|
+
|
|
143
|
+
-------------------------------------------
|
|
144
|
+
|
|
145
|
+
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
146
|
+
|
|
147
|
+
If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
|
|
148
|
+
|
|
149
|
+
You may add additional accurate notices of copyright ownership.
|
|
150
|
+
|
|
151
|
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
152
|
+
|
|
153
|
+
---------------------------------------------------------
|
|
154
|
+
|
|
155
|
+
This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
|
|
156
|
+
|
|
157
|
+
Standard License Header
|
|
158
|
+
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
159
|
+
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hypergumbo-tracker
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: YAML-backed structured tracker for agent governance
|
|
5
|
+
Author: Hypergumbo contributors
|
|
6
|
+
License: MPL-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: agent-governance,cli,tracker,yaml
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: proquint~=0.2.1
|
|
15
|
+
Requires-Dist: pyyaml~=6.0.3
|
|
16
|
+
Requires-Dist: rich~=14.3.2
|
|
17
|
+
Requires-Dist: ruamel-yaml>=0.18
|
|
18
|
+
Requires-Dist: textual~=7.5
|
|
19
|
+
Provides-Extra: dedup
|
|
20
|
+
Requires-Dist: onnxruntime~=1.17; extra == 'dedup'
|
|
21
|
+
Requires-Dist: tokenizers~=0.21; extra == 'dedup'
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: hypothesis~=6.100; extra == 'dev'
|
|
24
|
+
Requires-Dist: pytest-asyncio>=1.0; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest-cov~=7.0.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: pytest-textual-snapshot~=1.1; extra == 'dev'
|
|
27
|
+
Requires-Dist: pytest-xdist~=3.8.0; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest<10,>=8.0; extra == 'dev'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# hypergumbo-tracker
|
|
32
|
+
|
|
33
|
+
Structured work tracker for AI agent governance. Append-only YAML op-logs
|
|
34
|
+
that are git-merge-safe, causally ordered, and support field-level access
|
|
35
|
+
control. Agents get structured task selection; humans get locks, tier control,
|
|
36
|
+
and a TUI.
|
|
37
|
+
|
|
38
|
+
## Setup
|
|
39
|
+
|
|
40
|
+
### 1. Install
|
|
41
|
+
|
|
42
|
+
Install the tracker into your project's virtual environment:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# As either user (whoever owns the venv)
|
|
46
|
+
source .venv/bin/activate # or wherever your venv lives
|
|
47
|
+
pip install hypergumbo-tracker
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 2. Create an agent user (optional)
|
|
51
|
+
|
|
52
|
+
The tracker uses `os.getuid()` to distinguish agents from humans. For real
|
|
53
|
+
enforcement (not just convention), run the agent as a separate OS user:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# As the human user (needs sudo)
|
|
57
|
+
sudo useradd -m myproject_agent
|
|
58
|
+
sudo groupadd project-dev
|
|
59
|
+
sudo usermod -aG project-dev yourname
|
|
60
|
+
sudo usermod -aG project-dev myproject_agent
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Important:** Group membership doesn't take effect in existing shells. Either
|
|
64
|
+
log out and back in, or run `newgrp project-dev` in your current session.
|
|
65
|
+
|
|
66
|
+
If the repo lives under the agent's home directory, the human user also needs
|
|
67
|
+
traversal access:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# As the human user (needs sudo)
|
|
71
|
+
sudo chmod o+rx /home/myproject_agent
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Single-user works fine — governance becomes a social contract instead of
|
|
75
|
+
OS-enforced. If your username matches an agent pattern (e.g. `*_agent`),
|
|
76
|
+
edit `actor_resolution.agent_usernames` in `config.yaml`.
|
|
77
|
+
|
|
78
|
+
### 3. Run the wizard
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# As the human user (recommended — can auto-fix config ownership)
|
|
82
|
+
cd /path/to/your-repo # must be the repo root
|
|
83
|
+
htrac setup
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This creates directories, configures git plumbing (merge=union, textconv),
|
|
87
|
+
copies the config template, sets file permissions, and reports anything that
|
|
88
|
+
needs attention. It's idempotent — run it again anytime to diagnose issues.
|
|
89
|
+
|
|
90
|
+
The wizard handles common pitfalls automatically:
|
|
91
|
+
- **Running as agent?** Prompts to switch to the human user and prints
|
|
92
|
+
ready-to-paste setup commands (venv activation, `htrac setup`, group fixes).
|
|
93
|
+
- **Cross-user repo ownership?** Auto-adds `safe.directory` to git config.
|
|
94
|
+
- **`.git/config` not writable?** Falls back to `--global` for textconv.
|
|
95
|
+
- **Two-user group misconfigured?** Reports specific problems (missing
|
|
96
|
+
group-write, missing setgid, user not in group) with fix commands that
|
|
97
|
+
include the detected group name.
|
|
98
|
+
- **Config owned by wrong user?** Auto-fixes when run as human.
|
|
99
|
+
|
|
100
|
+
If you did step 2 (two-user setup), set group ownership on the directories
|
|
101
|
+
it created so both users can write to ops files:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# As the human user (needs sudo)
|
|
105
|
+
sudo chgrp -R project-dev .agent/tracker .agent/tracker-workspace
|
|
106
|
+
sudo chmod -R g+rws .agent/tracker/.ops .agent/tracker-workspace .agent/tracker-workspace/.ops .agent/tracker-workspace/stealth
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Verify the human user can write:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# As the human user (must have run newgrp project-dev or started a new session)
|
|
113
|
+
touch .agent/tracker-workspace/.ops/test && rm .agent/tracker-workspace/.ops/test
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
If you get "Permission denied", check that `newgrp project-dev` was run (or
|
|
117
|
+
start a new login session).
|
|
118
|
+
|
|
119
|
+
**Note:** Git does not track file ownership or group permissions. After a fresh
|
|
120
|
+
`git clone`, you must re-run `htrac setup` and repeat the `chgrp`/`chmod`
|
|
121
|
+
commands above.
|
|
122
|
+
|
|
123
|
+
You now have:
|
|
124
|
+
|
|
125
|
+
- **`htrac`** — CLI for agents (`htrac ready`, `htrac add`, `htrac update`, ...)
|
|
126
|
+
- **`htrac tui`** — interactive terminal UI for humans
|
|
127
|
+
- **`htrac setup`** — re-runnable setup wizard
|
|
128
|
+
|
|
129
|
+
## Permission testing
|
|
130
|
+
|
|
131
|
+
For two-user setups, verify the permission boundary end-to-end with the
|
|
132
|
+
[Permission Test Playbook](tests/permission/README.md). The playbook
|
|
133
|
+
exercises human-only operations (lock, stealth, delete), agent restrictions,
|
|
134
|
+
and filesystem permission checks. If tests fail, re-run `htrac setup` (see
|
|
135
|
+
[Run the wizard](#3-run-the-wizard) above) and follow its fix instructions.
|
|
136
|
+
|
|
137
|
+
## Agent usage
|
|
138
|
+
|
|
139
|
+
These commands are run **as the agent user** (e.g. `myproject_agent`). The
|
|
140
|
+
tracker records `by: agent` on each operation, and human-only commands
|
|
141
|
+
(`lock`, `stealth`, `discuss --clear`) are blocked.
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
htrac ready # What should I work on?
|
|
145
|
+
htrac update :1 --status in_progress # Claim the top item
|
|
146
|
+
htrac add --kind work_item --title "Add Dart analyzer" --priority 1
|
|
147
|
+
htrac update INV-lusab --status done --pr-ref "PR #42"
|
|
148
|
+
htrac show INV-lusab # Full item details
|
|
149
|
+
htrac list --status todo_hard # Filtered listing
|
|
150
|
+
htrac discuss INV-lusab "Root cause confirmed in parser.py"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Positional aliases:** `htrac ready` and `htrac list` assign shortcuts `:1`,
|
|
154
|
+
`:2`, etc. to their output rows. Use them in the next command (e.g.
|
|
155
|
+
`htrac update :1 --status in_progress`). Aliases reset after any non-list
|
|
156
|
+
command.
|
|
157
|
+
|
|
158
|
+
Use `htrac <command> --help` for all options. Use `--json` on any command for
|
|
159
|
+
machine-readable output.
|
|
160
|
+
|
|
161
|
+
## Human usage
|
|
162
|
+
|
|
163
|
+
These commands are run **as the human user** (e.g. `yourname`). The tracker
|
|
164
|
+
records `by: human` on each operation, enabling human-only commands that
|
|
165
|
+
agents cannot access.
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
htrac tui # Interactive terminal UI
|
|
169
|
+
htrac lock INV-lusab status # Prevent agent from changing status
|
|
170
|
+
htrac stealth WI-nipam # Hide item from git (human-only)
|
|
171
|
+
htrac discuss INV-lusab --clear # Clear discussion (human-only)
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
The TUI supports three layouts (compact/standard/wide) based on terminal size.
|
|
175
|
+
Keybindings: `q` quit, `f` filter, `d` discuss, `m` move tier, `n` new item,
|
|
176
|
+
`e` edit, `l` lock/unlock.
|
|
177
|
+
|
|
178
|
+
Both users can read all items — the access control only applies to writes.
|
|
179
|
+
|
|
180
|
+
## Core concepts
|
|
181
|
+
|
|
182
|
+
**Items** have an ID, kind, status (todo_hard → done), priority (0–4, lower =
|
|
183
|
+
higher), and optional fields, tags, and discussion.
|
|
184
|
+
|
|
185
|
+
**IDs** are content-hash proquints: `INV-lusab-bired`, `WI-nipam-fotil` —
|
|
186
|
+
deterministic, collision-resistant, pronounceable.
|
|
187
|
+
|
|
188
|
+
**Kinds** define item shape. Defaults: `invariant` (INV), `meta_invariant`
|
|
189
|
+
(META), `work_item` (WI). Add custom kinds in `config.yaml`.
|
|
190
|
+
|
|
191
|
+
**Tiers** control visibility:
|
|
192
|
+
|
|
193
|
+
| Tier | Path | Git-tracked | Purpose |
|
|
194
|
+
|------|------|-------------|---------|
|
|
195
|
+
| canonical | `.agent/tracker/.ops/` | Yes | Shared with upstream |
|
|
196
|
+
| workspace | `.agent/tracker-workspace/.ops/` | Yes | Fork-local |
|
|
197
|
+
| stealth | `.agent/tracker-workspace/stealth/` | No | Local-only |
|
|
198
|
+
|
|
199
|
+
Move items between tiers: `promote`, `demote`, `stealth`, `unstealth`.
|
|
200
|
+
|
|
201
|
+
**Dependencies:** `X.before = [Y]` means finish X before Y. The `ready`
|
|
202
|
+
command respects this.
|
|
203
|
+
|
|
204
|
+
## Stop hook integration
|
|
205
|
+
|
|
206
|
+
Three commands for autonomous-agent stop hooks:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
# Called by the stop hook (runs as the agent user)
|
|
210
|
+
htrac count-todos # Number of blocking items (0 = ok to stop)
|
|
211
|
+
htrac hash-todos # SHA-256 fingerprint (circuit-breaker detection)
|
|
212
|
+
htrac guidance # Generate guidance file for the agent
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Example hook snippet:
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
count=$(htrac count-todos 2>/dev/null || echo 0)
|
|
219
|
+
if [ "$count" -gt 0 ]; then
|
|
220
|
+
echo "BLOCKED: $count items remain"
|
|
221
|
+
exit 1
|
|
222
|
+
fi
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Pre-commit integration
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
# In .githooks/pre-commit:
|
|
229
|
+
staged_ops=$(git diff --cached --name-only -- '*.ops')
|
|
230
|
+
if [ -n "$staged_ops" ]; then
|
|
231
|
+
htrac validate $staged_ops --check-locks --strict || exit 1
|
|
232
|
+
fi
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
`htrac setup` also configures the git textconv driver so `git diff` shows
|
|
236
|
+
compiled item state instead of raw YAML.
|
|
237
|
+
|
|
238
|
+
## Configuration
|
|
239
|
+
|
|
240
|
+
Config loading order: `config.yaml` (gitignored, yours to edit) →
|
|
241
|
+
`config.yaml.template` (tracked, shared) → built-in defaults.
|
|
242
|
+
|
|
243
|
+
`htrac setup` copies the template to `config.yaml` if it doesn't exist and
|
|
244
|
+
ensures it's owned by the human user (governance settings shouldn't be
|
|
245
|
+
agent-writable). See the template file for the full schema. Key sections:
|
|
246
|
+
|
|
247
|
+
- **`kinds`** — item types with optional `fields_schema`
|
|
248
|
+
- **`statuses`** — lifecycle states
|
|
249
|
+
- **`stop_hook`** — which statuses block agent stopping, scope (all vs workspace)
|
|
250
|
+
- **`actor_resolution.agent_usernames`** — fnmatch patterns (default: `["*_agent"]`)
|
|
251
|
+
- **`lamport_branches`** — branches for clock sync and cross-branch locks
|
|
252
|
+
|
|
253
|
+
## Fork workflow
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
# As the agent user (in your fork)
|
|
257
|
+
htrac fork-setup # Sets scope to workspace-only
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
This makes `count-todos` and `hash-todos` ignore upstream canonical items so
|
|
261
|
+
they don't block your agent. Items you create default to workspace; the
|
|
262
|
+
upstream maintainer can `promote` them after merge.
|
|
263
|
+
|
|
264
|
+
## License
|
|
265
|
+
|
|
266
|
+
[Mozilla Public License 2.0](LICENSE). Other hypergumbo packages are
|
|
267
|
+
AGPL-3.0-or-later. See the repository root LICENSE and CONTRIBUTING.md.
|