gator-command 1.0.0__py3-none-any.whl
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.
- gator_command/__init__.py +2 -0
- gator_command/cli.py +137 -0
- gator_command/scripts/crawler.py +633 -0
- gator_command/scripts/dashboard/dashboard.css +982 -0
- gator_command/scripts/dashboard/dashboard.html +84 -0
- gator_command/scripts/dashboard/dashboard.js +419 -0
- gator_command/scripts/dashboard/views/audit.js +270 -0
- gator_command/scripts/dashboard/views/fleet.js +307 -0
- gator_command/scripts/dashboard/views/repo.js +599 -0
- gator_command/scripts/dashboard/views/settings.js +173 -0
- gator_command/scripts/dashboard/views/updates.js +308 -0
- gator_command/scripts/enforcer-prompt.md +22 -0
- gator_command/scripts/extract-claude-sessions.py +489 -0
- gator_command/scripts/extract-codex-sessions.py +477 -0
- gator_command/scripts/extract-gemini-sessions.py +410 -0
- gator_command/scripts/gator-audit.py +956 -0
- gator_command/scripts/gator-charter-draft.py +919 -0
- gator_command/scripts/gator-charter-lint.py +427 -0
- gator_command/scripts/gator-charter-verify.py +606 -0
- gator_command/scripts/gator-dashboard.py +1271 -0
- gator_command/scripts/gator-deploy.py +916 -0
- gator_command/scripts/gator-drift.py +569 -0
- gator_command/scripts/gator-enforce.py +82 -0
- gator_command/scripts/gator-fleet-intel.py +460 -0
- gator_command/scripts/gator-fleet-report.py +615 -0
- gator_command/scripts/gator-init-command-post.py +315 -0
- gator_command/scripts/gator-init.py +434 -0
- gator_command/scripts/gator-machine-id.py +153 -0
- gator_command/scripts/gator-policy-status.py +631 -0
- gator_command/scripts/gator-pulse.py +459 -0
- gator_command/scripts/gator-repo-status.py +649 -0
- gator_command/scripts/gator-session-common.py +372 -0
- gator_command/scripts/gator-session-sink.py +831 -0
- gator_command/scripts/gator-sessions.py +1244 -0
- gator_command/scripts/gator-update.py +615 -0
- gator_command/scripts/gator-version.py +38 -0
- gator_command/scripts/gator_core.py +489 -0
- gator_command/scripts/gator_remote.py +381 -0
- gator_command/scripts/gator_runtime.py +142 -0
- gator_command/scripts/gatorize-actions.sh +989 -0
- gator_command/scripts/gatorize-lib.sh +166 -0
- gator_command/scripts/gatorize-post.sh +394 -0
- gator_command/scripts/gatorize.py +1163 -0
- gator_command/scripts/gatorize.sh +185 -0
- gator_command/scripts/generate_markdown.py +212 -0
- gator_command/scripts/generate_wiki.py +424 -0
- gator_command/scripts/graph_health.py +780 -0
- gator_command/scripts/memex-lint.py +286 -0
- gator_command/scripts/memex-lint.sh +205 -0
- gator_command/scripts/memex.py +1472 -0
- gator_command/scripts/memex_formatters.py +191 -0
- gator_command/scripts/memex_state.py +236 -0
- gator_command/scripts/spawn.py +650 -0
- gator_command/templates/gator-starter/blueprints/README.md +32 -0
- gator_command/templates/gator-starter/charterignore +53 -0
- gator_command/templates/gator-starter/charters/README.md +178 -0
- gator_command/templates/gator-starter/charters/_template.md +31 -0
- gator_command/templates/gator-starter/commands/commit.md +33 -0
- gator_command/templates/gator-starter/commands/init.md +11 -0
- gator_command/templates/gator-starter/commands/update.md +5 -0
- gator_command/templates/gator-starter/constitution.md +165 -0
- gator_command/templates/gator-starter/field-guides/README.md +25 -0
- gator_command/templates/gator-starter/gator-start-up.md +119 -0
- gator_command/templates/gator-starter/procedures/charter-alignment.md +83 -0
- gator_command/templates/gator-starter/procedures/enforcer-review.md +317 -0
- gator_command/templates/gator-starter/procedures/field-guide-generation.md +176 -0
- gator_command/templates/gator-starter/procedures/knowledge-capture.md +57 -0
- gator_command/templates/gator-starter/procedures/significance-check.md +69 -0
- gator_command/templates/gator-starter/reference-notes/concierge-responses.md +535 -0
- gator_command/templates/gator-starter/reference-notes/dangerous-patterns.md +91 -0
- gator_command/templates/gator-starter/reference-notes/dashboard-operations.md +22 -0
- gator_command/templates/gator-starter/reference-notes/enforcer-configuration.md +232 -0
- gator_command/templates/gator-starter/reference-notes/example-project.md +289 -0
- gator_command/templates/gator-starter/reference-notes/failure-modes-and-self-correction.md +72 -0
- gator_command/templates/gator-starter/reference-notes/git-workflow.md +60 -0
- gator_command/templates/gator-starter/reference-notes/identity-and-ownership.md +37 -0
- gator_command/templates/gator-starter/reference-notes/refactor-approach.md +155 -0
- gator_command/templates/gator-starter/reference-notes/what-gator-requires-from-a-model.md +108 -0
- gator_command/templates/gator-starter/reference-notes/why-navigation-coding-feels-different.md +99 -0
- gator_command/templates/gator-starter/reference-notes/workflow-profiles.md +155 -0
- gator_command/templates/gator-starter/scripts/__pycache__/enforcer-review.cpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/__pycache__/gator-approve.cpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/__pycache__/gator-init.cpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/__pycache__/gator-pre-commit.cpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/__pycache__/gator-update.cpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/enforcer-prompt.md +55 -0
- gator_command/templates/gator-starter/scripts/enforcer-review.py +1551 -0
- gator_command/templates/gator-starter/scripts/gator-approve.py +139 -0
- gator_command/templates/gator-starter/scripts/gator-enforce.py +82 -0
- gator_command/templates/gator-starter/scripts/gator-init.py +434 -0
- gator_command/templates/gator-starter/scripts/gator-pre-commit.py +2670 -0
- gator_command/templates/gator-starter/scripts/gator-pulse.py +459 -0
- gator_command/templates/gator-starter/scripts/gator-update.py +615 -0
- gator_command/templates/gator-starter/scripts/gator-version.py +38 -0
- gator_command/templates/gator-starter/scripts/gator_core.py +487 -0
- gator_command/templates/gator-starter/scripts/hooks/__pycache__/commit-msgcpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/hooks/__pycache__/post-commitcpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/hooks/__pycache__/pre-commitcpython-313.pyc +0 -0
- gator_command/templates/gator-starter/scripts/hooks/commit-msg +5 -0
- gator_command/templates/gator-starter/scripts/hooks/post-commit +7 -0
- gator_command/templates/gator-starter/scripts/hooks/pre-commit +5 -0
- gator_command/templates/gator-starter/sessions/.gitignore +7 -0
- gator_command/templates/gator-starter/vault/.gitkeep +0 -0
- gator_command/templates/gator-starter/whiteboard.md +5 -0
- gator_command-1.0.0.dist-info/METADATA +122 -0
- gator_command-1.0.0.dist-info/RECORD +110 -0
- gator_command-1.0.0.dist-info/WHEEL +5 -0
- gator_command-1.0.0.dist-info/entry_points.txt +2 -0
- gator_command-1.0.0.dist-info/licenses/LICENSE +21 -0
- gator_command-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Workflow Profiles
|
|
2
|
+
|
|
3
|
+
Different projects need different levels of governance. A solo weekend project doesn't need the same rigor as a team production codebase. This reference note describes workflow profiles from lightest to heaviest, so the primary agent can suggest the right one for the Architect's context.
|
|
4
|
+
|
|
5
|
+
## How to Use This
|
|
6
|
+
|
|
7
|
+
At bootstrap or when the Architect asks about process, suggest a profile that matches their situation. The Architect can change profiles at any time — or mix and match. These are suggestions, not rules.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Profile 1: Light — Solo, Low-Risk
|
|
12
|
+
|
|
13
|
+
**Best for**: Personal projects, prototyping, learning, early exploration.
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Architect gives instruction
|
|
17
|
+
→ Agent reads charters
|
|
18
|
+
→ Agent codes + updates charters
|
|
19
|
+
→ Significance check (if triggered)
|
|
20
|
+
→ Mechanical lint (Layer 1)
|
|
21
|
+
→ Commit
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- Significance check runs automatically when a change touches public API, TRIPWIREs, cross-module invariants, or security-relevant code
|
|
25
|
+
- Mechanical lint runs before every commit (instant, free, catches secrets and SQL dangers)
|
|
26
|
+
- No charter-grounded model review by default
|
|
27
|
+
- Architect can still ask for a full enforcer review anytime
|
|
28
|
+
- Charters still update with every code change — the loop is non-negotiable
|
|
29
|
+
|
|
30
|
+
**What you give up**: Charter-grounded independent verification. The agent is judge of its own architectural work. Fine when the stakes are low and the Architect is reading the diffs. You still get deterministic safety checks.
|
|
31
|
+
|
|
32
|
+
**Strongly discouraged**: Skipping charter updates entirely. That's vibe coding — the map goes stale, comprehension decays, and the agent starts generating code from assumptions. Even at the lightest profile, the loop matters.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Profile 2: Standard — Solo or Small Team, Moderate Risk
|
|
37
|
+
|
|
38
|
+
**Best for**: Most projects. Solo work on real codebases, small teams, projects that matter but aren't mission-critical.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Architect gives instruction
|
|
42
|
+
→ Agent reads charters, proposes plan
|
|
43
|
+
→ Architect reviews plan, adjusts
|
|
44
|
+
→ Agent codes + updates charters
|
|
45
|
+
→ Significance check (if triggered)
|
|
46
|
+
→ Mechanical lint (Layer 1, automatic)
|
|
47
|
+
→ Charter-grounded enforcer review
|
|
48
|
+
→ Architect reviews whiteboard, directs fixes
|
|
49
|
+
→ Commit
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- Significance check runs automatically for architecturally significant changes (steelman + compatibility)
|
|
53
|
+
- Mechanical lint runs automatically before commit
|
|
54
|
+
- Post-code charter-grounded enforcer review before commit
|
|
55
|
+
- Architect sees findings via whiteboard.md and decides what to act on
|
|
56
|
+
- Plan discussion is conversational — agent proposes, Architect adjusts, no formal gate
|
|
57
|
+
|
|
58
|
+
**This is the default recommendation.** It catches mistakes without slowing the work significantly.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Profile 3: Careful — Team, Production, or High-Stakes
|
|
63
|
+
|
|
64
|
+
**Best for**: Team repos, production codebases, public APIs, anything where a mistake is expensive.
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Architect gives instruction
|
|
68
|
+
→ Agent reads charters, proposes plan
|
|
69
|
+
→ OPTIONAL: Pre-code enforcer review of the plan
|
|
70
|
+
→ Architect/agent discussion, revise plan
|
|
71
|
+
→ Agent codes + updates charters
|
|
72
|
+
→ Significance check (steelman + compatibility)
|
|
73
|
+
→ Post-code enforcer review
|
|
74
|
+
→ Architect reviews whiteboard, directs fixes
|
|
75
|
+
→ Commit
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- **Pre-code review**: Before writing code, the enforcer reviews the plan against charters. "Does this plan violate any boundaries? Does it touch TRIPWIREs? Are there cross-cutting implications?" This catches architectural mistakes before they become code.
|
|
79
|
+
- **Significance check**: Agent generates steelman and flags compatibility implications for architecturally significant changes. Architect hears counter-arguments before committing.
|
|
80
|
+
- **Post-code review**: Standard review of the diff against charters.
|
|
81
|
+
- Architect is actively engaged at all checkpoints.
|
|
82
|
+
|
|
83
|
+
**Pre-code review examples** (via CLI enforcer):
|
|
84
|
+
```bash
|
|
85
|
+
.gator/scripts/enforcer-run.sh codex review "Read all charters in .gator/charters/. Here is the proposed plan: [plan]. Does this plan violate any charter boundaries, TRIPWIREs, or cross-cutting patterns? Report concerns."
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Profile 4: Rigorous — Critical Systems, Compliance, High-Trust Requirements
|
|
91
|
+
|
|
92
|
+
**Best for**: Regulated industries, security-sensitive code, infrastructure, anything where auditability matters.
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
Architect gives instruction
|
|
96
|
+
→ Agent reads charters, proposes plan
|
|
97
|
+
→ Pre-code enforcer review of plan
|
|
98
|
+
→ Architect/agent discussion, revise plan
|
|
99
|
+
→ Agent codes + updates charters
|
|
100
|
+
→ Significance check (steelman + compatibility + semver)
|
|
101
|
+
→ Post-code enforcer review (full, cross-vendor)
|
|
102
|
+
→ Architect reviews whiteboard independently
|
|
103
|
+
→ Second enforcer (different model) if warranted
|
|
104
|
+
→ Architect directs fixes
|
|
105
|
+
→ Final lint before commit
|
|
106
|
+
→ Commit
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
- Significance check with full steelman and semver assessment
|
|
110
|
+
- Multiple enforcer reviews — pre-code and post-code
|
|
111
|
+
- Cross-vendor review recommended (e.g., Claude primary, Codex enforcer, Gemini second opinion)
|
|
112
|
+
- Architect reads whiteboard independently (not relying on agent summary)
|
|
113
|
+
- Mechanical lint as a final gate before commit
|
|
114
|
+
- Commit draft entries include full attribution and decision tags
|
|
115
|
+
|
|
116
|
+
**This is rare.** Most projects don't need this. But when they do, the infrastructure supports it.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Choosing a Profile
|
|
121
|
+
|
|
122
|
+
| Situation | Profile |
|
|
123
|
+
|-----------|---------|
|
|
124
|
+
| Weekend project, learning, prototyping | **Light** |
|
|
125
|
+
| Solo project that matters | **Standard** |
|
|
126
|
+
| Small team, shared repo | **Standard** or **Careful** |
|
|
127
|
+
| Production codebase, real users | **Careful** |
|
|
128
|
+
| Touching auth, payments, data migration | **Careful** (at minimum) |
|
|
129
|
+
| Regulated industry, compliance requirements | **Rigorous** |
|
|
130
|
+
| "I just want to move fast" | **Standard** — the loop is fast; skipping it is where slowdowns come from later |
|
|
131
|
+
|
|
132
|
+
The Architect can escalate or de-escalate at any time. "This change touches the payment module — let's go careful for this one" is perfectly valid even if the project normally runs at Standard.
|
|
133
|
+
|
|
134
|
+
## What Never Changes
|
|
135
|
+
|
|
136
|
+
Regardless of profile, these are constant:
|
|
137
|
+
|
|
138
|
+
- **The loop**: Read charters → change code → update charters immediately (before the next file). Every profile. Every time.
|
|
139
|
+
- **Charter updates are part of the edit, not the commit**: Update the charter right after editing the code file. If you wait until commit time, you will forget. The pre-commit hook catches this, but being caught is a failure — not a workflow.
|
|
140
|
+
- **Mechanical lint before commit**: Layer 1 runs by default across all profiles. It's instant, free, and catches things that should never be committed. The Architect can override this, but the default is always-on.
|
|
141
|
+
- **Architect authority**: The Architect decides the profile, the cadence, and what to act on.
|
|
142
|
+
- **Enforcer findings go to the Architect**: The agent presents and asks, never auto-fixes.
|
|
143
|
+
- **Knowledge lives in the repo**: Not in model memory. Across all profiles.
|
|
144
|
+
|
|
145
|
+
## Pre-Code Review: When and Why
|
|
146
|
+
|
|
147
|
+
Pre-code enforcer review is the biggest difference between profiles. It asks: "before I write this code, does the *plan* make sense given what the charters say?"
|
|
148
|
+
|
|
149
|
+
This catches:
|
|
150
|
+
- **Boundary violations before they happen**: "The plan puts validation logic in the store module, but the store charter says it doesn't own validation."
|
|
151
|
+
- **TRIPWIRE awareness**: "This plan changes the retry logic, but there's a TRIPWIRE about intentional failure signals."
|
|
152
|
+
- **Cross-cutting implications**: "This plan touches the auth flow, which has synchronized implementations in three modules."
|
|
153
|
+
- **Scope creep**: "This plan adds features the charter's 'Does Not Own' section explicitly excludes."
|
|
154
|
+
|
|
155
|
+
Pre-code review is cheap — it's reviewing a text plan, not a full diff. The enforcer reads the charters and the plan and flags concerns in 30 seconds. Fixing a plan is cheaper than fixing code.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Enforcer Review
|
|
2
|
+
|
|
3
|
+
You are the **enforcer** — an independent auditor reviewing code changes against the project's knowledge layer. You are **read-only**. Do not edit any files. Produce a report.
|
|
4
|
+
|
|
5
|
+
## Your Task
|
|
6
|
+
|
|
7
|
+
1. Read `.gator/constitution.md` to understand the governance rules
|
|
8
|
+
2. Read all charter files in `.gator/charters/` (start with `INDEX.md`, then read each charter)
|
|
9
|
+
3. Read the git diff (uncommitted changes, or the diff provided to you)
|
|
10
|
+
4. Review the changes against the charters
|
|
11
|
+
|
|
12
|
+
## What to Check
|
|
13
|
+
|
|
14
|
+
### Charter Compliance
|
|
15
|
+
- Does the code change respect charter **"Does not own"** boundaries?
|
|
16
|
+
- Are any **TRIPWIRE** patterns violated or weakened?
|
|
17
|
+
- Did the charter updates (if any) accurately reflect the code changes?
|
|
18
|
+
- Are there functions added, removed, or renamed without corresponding charter updates?
|
|
19
|
+
- Are there new cross-module dependencies not captured in `←` / `→` annotations?
|
|
20
|
+
|
|
21
|
+
### Blast Radius
|
|
22
|
+
- Do changes touch patterns flagged in the cross-cutting charter?
|
|
23
|
+
- Are synchronized implementations still synchronized?
|
|
24
|
+
- Are data flow changes reflected in cross-cutting docs?
|
|
25
|
+
|
|
26
|
+
### Hygiene
|
|
27
|
+
- Hardcoded secrets, API keys, or credentials in source
|
|
28
|
+
- SQL injection risks (string concatenation in queries)
|
|
29
|
+
- Dangerous operations (`eval()`, `shell=True`, `os.system()`)
|
|
30
|
+
- `.env` files that shouldn't be committed
|
|
31
|
+
|
|
32
|
+
## Output Format
|
|
33
|
+
|
|
34
|
+
Write your findings as a structured report. For each finding:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
[SEVERITY] File: <path>
|
|
38
|
+
<description of the issue>
|
|
39
|
+
Charter reference: <which charter or rule is affected>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Severity levels:
|
|
43
|
+
- **CRITICAL** — security risk, data loss potential
|
|
44
|
+
- **HIGH** — charter violation, TRIPWIRE breach, boundary violation
|
|
45
|
+
- **MEDIUM** — missing charter update, undocumented dependency
|
|
46
|
+
- **LOW** — hygiene issue, marker comment, style
|
|
47
|
+
|
|
48
|
+
If no issues found, say so clearly: "Enforcer review: clean. No findings."
|
|
49
|
+
|
|
50
|
+
## Important
|
|
51
|
+
|
|
52
|
+
- You are a different model than the primary agent. That's the point — different training, different blind spots.
|
|
53
|
+
- Be specific. Cite the charter entry or TRIPWIRE that applies.
|
|
54
|
+
- Don't suggest improvements or refactors. Only flag violations and risks.
|
|
55
|
+
- Don't edit files. Your output is a report. The primary agent and Architect decide what to act on.
|