gigai 0.1.2__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 (51) hide show
  1. gigai-0.1.2/LICENSE +201 -0
  2. gigai-0.1.2/MANIFEST.in +4 -0
  3. gigai-0.1.2/PKG-INFO +337 -0
  4. gigai-0.1.2/README.md +313 -0
  5. gigai-0.1.2/pyproject.toml +51 -0
  6. gigai-0.1.2/setup.cfg +4 -0
  7. gigai-0.1.2/src/gigai/__init__.py +1 -0
  8. gigai-0.1.2/src/gigai/adapters/__init__.py +23 -0
  9. gigai-0.1.2/src/gigai/adapters/capabilities.py +18 -0
  10. gigai-0.1.2/src/gigai/adapters/deterministic.py +48 -0
  11. gigai-0.1.2/src/gigai/adapters/factory.py +97 -0
  12. gigai-0.1.2/src/gigai/adapters/http.py +64 -0
  13. gigai-0.1.2/src/gigai/adapters/normalization.py +39 -0
  14. gigai-0.1.2/src/gigai/adapters/openai_api.py +73 -0
  15. gigai-0.1.2/src/gigai/adapters/openrouter_api.py +67 -0
  16. gigai-0.1.2/src/gigai/adapters/port.py +102 -0
  17. gigai-0.1.2/src/gigai/canonical.py +433 -0
  18. gigai-0.1.2/src/gigai/cli.py +1117 -0
  19. gigai-0.1.2/src/gigai/config.py +748 -0
  20. gigai-0.1.2/src/gigai/credentials.py +82 -0
  21. gigai-0.1.2/src/gigai/data/__init__.py +1 -0
  22. gigai-0.1.2/src/gigai/data/standard-pack.json +1 -0
  23. gigai-0.1.2/src/gigai/diagnostics.py +660 -0
  24. gigai-0.1.2/src/gigai/index.py +220 -0
  25. gigai-0.1.2/src/gigai/journal.py +835 -0
  26. gigai-0.1.2/src/gigai/lifecycle.py +909 -0
  27. gigai-0.1.2/src/gigai/model_targets.py +36 -0
  28. gigai-0.1.2/src/gigai/project_binding.py +226 -0
  29. gigai-0.1.2/src/gigai/registry.py +792 -0
  30. gigai-0.1.2/src/gigai/schemas/README.md +187 -0
  31. gigai-0.1.2/src/gigai/schemas/SHA256SUMS +8 -0
  32. gigai-0.1.2/src/gigai/schemas/__init__.py +1 -0
  33. gigai-0.1.2/src/gigai/schemas/active-gig-version.schema.json +29 -0
  34. gigai-0.1.2/src/gigai/schemas/common.schema.json +206 -0
  35. gigai-0.1.2/src/gigai/schemas/gig-proposal.schema.json +63 -0
  36. gigai-0.1.2/src/gigai/schemas/goal-graph.schema.json +207 -0
  37. gigai-0.1.2/src/gigai/schemas/handoff-frontmatter.schema.json +114 -0
  38. gigai-0.1.2/src/gigai/schemas/run-brief-frontmatter.schema.json +99 -0
  39. gigai-0.1.2/src/gigai/schemas/run-details.schema.json +170 -0
  40. gigai-0.1.2/src/gigai/schemas/run-manifest.schema.json +81 -0
  41. gigai-0.1.2/src/gigai/setup.py +201 -0
  42. gigai-0.1.2/src/gigai/standard_pack.py +81 -0
  43. gigai-0.1.2/src/gigai/target_binding.py +647 -0
  44. gigai-0.1.2/src/gigai/validators.py +787 -0
  45. gigai-0.1.2/src/gigai/workpad.py +653 -0
  46. gigai-0.1.2/src/gigai.egg-info/PKG-INFO +337 -0
  47. gigai-0.1.2/src/gigai.egg-info/SOURCES.txt +49 -0
  48. gigai-0.1.2/src/gigai.egg-info/dependency_links.txt +1 -0
  49. gigai-0.1.2/src/gigai.egg-info/entry_points.txt +2 -0
  50. gigai-0.1.2/src/gigai.egg-info/requires.txt +8 -0
  51. gigai-0.1.2/src/gigai.egg-info/top_level.txt +1 -0
gigai-0.1.2/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 [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ # Repository tests depend on research evidence and scenario support that are
2
+ # intentionally not part of the source distribution. Do not publish a partial,
3
+ # non-runnable test tree.
4
+ prune tests
gigai-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,337 @@
1
+ Metadata-Version: 2.4
2
+ Name: gigai
3
+ Version: 0.1.2
4
+ Summary: Contract-first foundations for a local, user-controlled agent runtime
5
+ License-Expression: Apache-2.0
6
+ Classifier: Development Status :: 2 - Pre-Alpha
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Python: >=3.11
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: click>=8.1
17
+ Requires-Dist: httpx>=0.27
18
+ Requires-Dist: jsonschema>=4.23
19
+ Requires-Dist: referencing>=0.36
20
+ Provides-Extra: test
21
+ Requires-Dist: pydantic>=2.10; extra == "test"
22
+ Requires-Dist: pytest>=8.3; extra == "test"
23
+ Dynamic: license-file
24
+
25
+ # GigAI
26
+
27
+ GigAI is a contract-first exploration of a local, user-controlled runtime for
28
+ turning goals into reviewable, finite execution graphs.
29
+
30
+ > **Status: pre-alpha contracts and executable research.** The installed
31
+ > distribution implements local `setup`, offline `doctor`, idempotent target
32
+ > `init`, the offline proposal lifecycle (`create`, `feedback`, `revise`,
33
+ > `approve`, and `reject`), and read/open operations over private workpads.
34
+ > It does not run a scheduler or provide a production execution runtime.
35
+ > The package also exposes versioned pre-release serialized contracts and
36
+ > canonical identity primitives. Their immutable release regime begins at
37
+ > GigAI's deliberately declared first public release.
38
+ > Commands beyond the implemented surface remain planned interfaces, not
39
+ > product behavior.
40
+
41
+ ## Why this exists
42
+
43
+ Agent systems often blur three different decisions: what should happen, who
44
+ approved it, and what is authorized to execute. GigAI keeps them separate:
45
+
46
+ ~~~text
47
+ create or improve -> non-executable proposal
48
+ operator approval -> immutable Gig version
49
+ run -> authority for one execution
50
+ ~~~
51
+
52
+ A Gig is a finite, user-owned Goal Graph. Its private workpad is authoritative;
53
+ indexes are rebuildable; provider calls are explicit exposure; and imported user
54
+ content is hashed as exact bytes rather than silently normalized.
55
+
56
+ ## What is implemented
57
+
58
+ - Eight versioned JSON Schema Draft 2020-12 contracts.
59
+ - One production implementation of restricted canonical JSON, owned-text
60
+ bytes, exact imported-byte digests, prefixed UUIDv4 IDs, and explicit version
61
+ selection.
62
+ - One installed `gigai` command exposing truthful package help and version,
63
+ idempotent local setup, structured offline diagnostics, target binding, the
64
+ non-executable proposal lifecycle, and offline read/open operations.
65
+ - A strict versioned `config.toml` containing structured editor argv,
66
+ credential references rather than values, one deterministic offline
67
+ endpoint and target, one default profile, and the authoritative workpad
68
+ mount.
69
+ - An immutable content-addressed standard pack and fixture-backed offline
70
+ adapter. Setup and doctor prove atomic replacement and real two-process
71
+ exclusion on the configured mount without network or token use.
72
+ - A strict path-free `.gigai/project.toml` binding for Git targets, one
73
+ idempotent `/.gigai/` local exclude entry, and a versioned private
74
+ `registry.sqlite` that owns canonical target and workpad locators. The exact
75
+ v1 registry migrates transactionally to v2 after retaining a private,
76
+ validated v1 backup. Explicit non-Git targets are registry-only and receive
77
+ no implicit target tree.
78
+ - An internal caller-ID-only workpad primitive that atomically publishes an
79
+ empty, unborn, local-only Git repository under the configured mount. It sets
80
+ repository-local identity and ownership markers, configures no remote, and
81
+ creates no Gig proposal, semantic file, commit, or active selection.
82
+ - One offline proposal lifecycle that allocates a Gig, provisions its private
83
+ workpad, records semantic local-Git handoffs, and may approve an immutable
84
+ version without starting a Run.
85
+ - Installed `gigs`, `proposals`, `status`, `show`, `history`, `plan`, `workpad
86
+ path`, and `open` commands over explicit or active registered workpads.
87
+ `state.sqlite` is rebuilt from committed journal authority when needed.
88
+ - A reusable black-box scenario harness for isolated homes, target and workpad
89
+ manifests, Git state, subprocess recording, and fail-closed effect checks.
90
+ - Exact-byte golden vectors that the production implementation must preserve.
91
+ - Executable evidence for schema instances, graph semantics, canonicalization,
92
+ concurrent journal sequencing, and bounded Phase 0 feasibility questions.
93
+ - A source suite covering canonical bytes, CLI/process isolation, setup,
94
+ binding, workpads, journal recovery, proposal lifecycle, contract validators,
95
+ model-port boundaries, and rebuildable index semantics.
96
+ - A wheel-level verifier that proves the exact eight schema resources and their
97
+ SHA-256 identities survived packaging.
98
+
99
+ The [V14 implementation plan](docs/architecture/v14-implementation-plan.md)
100
+ defines the intended product. The [command sheet](docs/reference/command-sheet.md)
101
+ contains both the implemented surface and planned design; this README and
102
+ installed help state what works today. The
103
+ [cheat sheet](docs/reference/cheat-sheet.md) is the copy-paste guide for the
104
+ current installation and local workflow.
105
+
106
+ ## Install the published release
107
+
108
+ GigAI's first production pre-alpha release is `0.1.2`. Once it is published, install
109
+ the exact reviewed release on a clean macOS or Linux machine without cloning
110
+ this repository:
111
+
112
+ ~~~bash
113
+ uv tool install "gigai==0.1.2"
114
+ gigai --version
115
+ gigai --help
116
+ ~~~
117
+
118
+ Choose every update deliberately by replacing the pinned version after reading
119
+ its release notes; GigAI does not self-update:
120
+
121
+ ~~~bash
122
+ uv tool install --reinstall "gigai==0.1.2"
123
+ ~~~
124
+
125
+ ## Verify the source evidence
126
+
127
+ Python 3.11 or newer is required. Compatibility is continuously tested rather
128
+ than capped without evidence; see
129
+ [ADR 0001](docs/adr/0001-python-version-range.md).
130
+
131
+ ~~~bash
132
+ uv sync --extra test
133
+ uv run pytest
134
+ ~~~
135
+
136
+ All configured source tests must pass.
137
+
138
+ ## Configure, diagnose, bind, and inspect existing workpads
139
+
140
+ GigAI v1 currently supports macOS and Linux. Interactive setup reviews the
141
+ selected machine-state directory, authoritative workpad mount, and structured
142
+ editor command before applying anything:
143
+
144
+ ~~~bash
145
+ gigai setup
146
+ gigai doctor
147
+ gigai doctor --json
148
+ ~~~
149
+
150
+ For automation, `gigai setup --non-interactive` accepts explicit `--home`,
151
+ `--workpad-root`, `--editor`, and repeated `--editor-arg` values. Credential
152
+ configuration accepts references such as
153
+ `--credential-ref provider=environment:PROVIDER_API_TOKEN`; it never accepts
154
+ or copies the referenced value. Run `gigai setup --help` for the complete
155
+ current contract.
156
+
157
+ After setup, bind the current Git repository without changing tracked content:
158
+
159
+ ~~~bash
160
+ cd /path/to/repository
161
+ gigai init
162
+ gigai init --json
163
+ ~~~
164
+
165
+ Git init writes only the ignored `.gigai/project.toml` binding and the
166
+ user-local registry, while adding one `/.gigai/` entry to
167
+ `.git/info/exclude`. Existing dirty status and file bytes are preserved. An
168
+ explicit non-Git directory is supported without creating `.gigai` inside it:
169
+
170
+ ~~~bash
171
+ gigai init --target /path/to/non-git-directory
172
+ ~~~
173
+
174
+ `init` does not create a Gig, workpad, journal, or remote. The offline
175
+ `create` lifecycle owns Gig-ID allocation and invokes G05's private substrate;
176
+ there is deliberately no standalone public provision or activate command.
177
+
178
+ Create and review a non-executable proposal locally:
179
+
180
+ ~~~bash
181
+ gigai create research-gigai
182
+ gigai feedback <proposal-id> --text "clarify the verification"
183
+ gigai revise <proposal-id> --change "clarify the verification"
184
+ gigai approve <proposal-id>
185
+ ~~~
186
+
187
+ Creation, feedback, revision, approval, and rejection write only the private
188
+ workpad journal. Approval starts no Run and no target mutation.
189
+
190
+ The current offline read/open surface is:
191
+
192
+ ~~~bash
193
+ gigai workpad path <gig-id>
194
+ gigai open <gig-id>
195
+ gigai open <gig-id> --with-target
196
+ gigai open --target
197
+ gigai gigs --json
198
+ gigai proposals <gig-id> --json
199
+ gigai status <gig-id> --json
200
+ gigai history <gig-id> --json
201
+ gigai plan <gig-id> --json
202
+ ~~~
203
+
204
+ Without an explicit Gig ID, `workpad path` and `open` resolve the active private
205
+ workpad. They return typed `no_active_gig` only when the bound target has no
206
+ active Gig.
207
+
208
+ ## Canonical identity API
209
+
210
+ The shipped [gigai.canonical](src/gigai/canonical.py) module is the only product
211
+ implementation of canonical rendering and SHA-256 identity. Its API keeps
212
+ owned and imported bytes visibly separate:
213
+
214
+ ~~~python
215
+ from gigai.canonical import (
216
+ canonical_json_bytes,
217
+ canonical_json_digest,
218
+ canonicalize_owned_text,
219
+ digest_imported_bytes,
220
+ )
221
+ ~~~
222
+
223
+ `canonicalize_owned_text()` applies GigAI's UTF-8/LF/final-newline contract.
224
+ `digest_imported_bytes()` accepts bytes only and hashes them exactly as read;
225
+ it never performs implicit decoding, encoding, or normalization. The same
226
+ module owns canonical front matter, prefixed UUIDv4 IDs, and explicit active or
227
+ requested Gig-version resolution.
228
+
229
+ ## Verify the built artifact
230
+
231
+ The wheel verifier is deliberately separate from the source test suite. Tests
232
+ are not shipped in the wheel.
233
+
234
+ ~~~bash
235
+ rm -rf dist
236
+ uv build
237
+ uv venv --python 3.11 .wheel-venv
238
+ version="$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
239
+ set -- "dist/gigai-${version}-"*.whl
240
+ if [ "$#" -ne 1 ] || [ ! -f "$1" ]; then
241
+ echo "expected exactly one built GigAI wheel for version ${version}" >&2
242
+ exit 1
243
+ fi
244
+ uv pip install --python .wheel-venv/bin/python "$1"
245
+ .wheel-venv/bin/python tools/verify_installed_schemas.py
246
+ .wheel-venv/bin/python tools/verify_installed_canonical.py
247
+ .wheel-venv/bin/python tools/verify_installed_cli.py
248
+ .wheel-venv/bin/python tools/verify_installed_g03.py
249
+ .wheel-venv/bin/python tools/verify_installed_g04.py
250
+ .wheel-venv/bin/python tools/verify_installed_g05.py
251
+ .wheel-venv/bin/python tools/verify_installed_g06.py
252
+ .wheel-venv/bin/python tools/verify_installed_g07.py
253
+ .wheel-venv/bin/python tools/verify_installed_g08.py
254
+ .wheel-venv/bin/python tools/verify_installed_g09.py
255
+ .wheel-venv/bin/python tools/verify_installed_g11.py
256
+ ~~~
257
+
258
+ Expected result:
259
+
260
+ ~~~text
261
+ verified 8 installed GigAI schemas
262
+ verified installed GigAI canonical identity API
263
+ verified installed GigAI CLI: help, version, setup, doctor, init, create, feedback, revise, approve, reject, gigs, proposals, status, show, history, plan, workpad path, check, and open only
264
+ verified installed GigAI G03 setup, idempotency, pack, and offline doctor
265
+ verified installed GigAI G04 Git and non-Git target binding
266
+ verified installed GigAI G05 private unborn workpad and read/open surface
267
+ verified installed GigAI G06 journal locking and recovery
268
+ verified installed GigAI G07 contract validators
269
+ verified installed GigAI G08 offline proposal lifecycle
270
+ verified installed GigAI G09 rebuildable index and read commands
271
+ verified installed GigAI G11 model invocation foundation
272
+ ~~~
273
+
274
+ The lockfile is committed. CI and release verification use uv with
275
+ `--locked`. A standards-based fallback remains available:
276
+
277
+ ~~~bash
278
+ python -m venv .venv
279
+ source .venv/bin/activate
280
+ python -m pip install -e ".[test]"
281
+ python -m pytest
282
+ ~~~
283
+
284
+ ## Repository map
285
+
286
+ | Path | Purpose | Shipped |
287
+ |---|---|---|
288
+ | src/gigai/cli.py | Installed setup, diagnostics, binding, offline lifecycle, read, and open surface | yes |
289
+ | src/gigai/canonical.py | Sole canonical byte, digest, ID, and version implementation | yes |
290
+ | src/gigai/config.py | Strict versioned typed machine configuration | yes |
291
+ | src/gigai/setup.py | Idempotent setup orchestration and mount preflight | yes |
292
+ | src/gigai/diagnostics.py | Structured offline installation and mount checks | yes |
293
+ | src/gigai/project_binding.py | Strict path-free Git target binding contract | yes |
294
+ | src/gigai/registry.py | Strict v2 private project/workpad registry and v1 migration | yes |
295
+ | src/gigai/target_binding.py | Git/non-Git identity, reconciliation, and init effects | yes |
296
+ | src/gigai/workpad.py | Caller-ID-only private Git substrate, resolution, active authority, and editor boundary | yes |
297
+ | src/gigai/adapters/ | Deterministic fixture-backed offline adapter | yes |
298
+ | src/gigai/data/ | Immutable built-in standard-pack resources | yes |
299
+ | src/gigai/schemas/ | Single canonical source for versioned serialized contracts | yes |
300
+ | tests/scenarios/ | Installed-process isolation and observation harness | no |
301
+ | research/contract_spike/ | Executable contract and concurrency proof | no |
302
+ | research/phase0_spike/ | Bounded feasibility evidence | no |
303
+ | research/experiments/ | Supporting experiments and sanitized fixtures | no |
304
+ | docs/architecture/ | Approved product and authority design | no |
305
+ | docs/reference/ | Planned operator-facing command contract | no |
306
+ | docs/research/ | Research records and maturity boundaries | no |
307
+ | tools/ | Maintained repository and artifact verification | no |
308
+
309
+ The [schema README](src/gigai/schemas/README.md) documents canonical bytes,
310
+ identifiers, version selection, journal ordering, and validation beyond JSON
311
+ Schema.
312
+
313
+ ## Non-negotiable boundaries
314
+
315
+ - Proposals do not execute and cannot approve themselves.
316
+ - Approval creates an immutable version and starts no run.
317
+ - A run invocation grants authority for exactly one run.
318
+ - Workpads remain local and are never published by GigAI.
319
+ - SQLite is rebuildable; committed workpad records are authoritative.
320
+ - GigAI has no hosted history, background sync, or telemetry service.
321
+ - Provider and tool calls are explicit user-authorized exposure.
322
+
323
+ ## Roadmap
324
+
325
+ The next product work follows the canonical [Phase 1 G00-G11 development goal
326
+ graph](docs/development/goals/phase-1/README.md), derived from the V14 plan.
327
+ Product modules enter src/gigai/ only through an explicit implementation goal
328
+ and acceptance tests. The installed entry point exposes only behavior that
329
+ exists; planned command names are not shipped as placeholders for appearances.
330
+
331
+ ## Contributing and security
332
+
333
+ See [CONTRIBUTING.md](CONTRIBUTING.md) before changing contracts or research
334
+ evidence. Report vulnerabilities according to [SECURITY.md](SECURITY.md).
335
+ Participation is governed by [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
336
+
337
+ Licensed under the [Apache License 2.0](LICENSE).