lanegate 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. lanegate-1.0.0/.gitignore +26 -0
  2. lanegate-1.0.0/.lanegate.yml.example +243 -0
  3. lanegate-1.0.0/CHANGELOG.md +42 -0
  4. lanegate-1.0.0/LICENSE +202 -0
  5. lanegate-1.0.0/NOTICE +14 -0
  6. lanegate-1.0.0/PKG-INFO +859 -0
  7. lanegate-1.0.0/README.md +606 -0
  8. lanegate-1.0.0/docs/ARCHITECTURE.md +252 -0
  9. lanegate-1.0.0/docs/agent-tooling.md +4 -0
  10. lanegate-1.0.0/docs/agent-tools.md +75 -0
  11. lanegate-1.0.0/docs/assets/demo.gif +0 -0
  12. lanegate-1.0.0/docs/assets/demo.tape +83 -0
  13. lanegate-1.0.0/docs/config-reference.md +1077 -0
  14. lanegate-1.0.0/docs/demo-walkthrough.md +277 -0
  15. lanegate-1.0.0/docs/executor-capabilities.md +188 -0
  16. lanegate-1.0.0/docs/migration-vyuha-to-lanegate.md +33 -0
  17. lanegate-1.0.0/docs/release-smoke-gate.md +45 -0
  18. lanegate-1.0.0/docs/security-model.md +170 -0
  19. lanegate-1.0.0/docs/spec-compatibility.md +508 -0
  20. lanegate-1.0.0/docs/troubleshooting.md +335 -0
  21. lanegate-1.0.0/docs/tui-plan.md +427 -0
  22. lanegate-1.0.0/docs/v2-interface-boundaries.md +729 -0
  23. lanegate-1.0.0/lanegate/__init__.py +4 -0
  24. lanegate-1.0.0/lanegate/__main__.py +6 -0
  25. lanegate-1.0.0/lanegate/agent_tools.py +120 -0
  26. lanegate-1.0.0/lanegate/analyze.py +2183 -0
  27. lanegate-1.0.0/lanegate/api.py +963 -0
  28. lanegate-1.0.0/lanegate/board.py +988 -0
  29. lanegate-1.0.0/lanegate/claim_file.py +123 -0
  30. lanegate-1.0.0/lanegate/cli.py +1538 -0
  31. lanegate-1.0.0/lanegate/companion.py +243 -0
  32. lanegate-1.0.0/lanegate/concurrency.py +352 -0
  33. lanegate-1.0.0/lanegate/config.py +1824 -0
  34. lanegate-1.0.0/lanegate/context_log.py +1236 -0
  35. lanegate-1.0.0/lanegate/create.py +183 -0
  36. lanegate-1.0.0/lanegate/deploy.py +130 -0
  37. lanegate-1.0.0/lanegate/doctor.py +439 -0
  38. lanegate-1.0.0/lanegate/executor.py +1522 -0
  39. lanegate-1.0.0/lanegate/executor_events.py +510 -0
  40. lanegate-1.0.0/lanegate/flags.py +139 -0
  41. lanegate-1.0.0/lanegate/ghsync.py +123 -0
  42. lanegate-1.0.0/lanegate/git.py +107 -0
  43. lanegate-1.0.0/lanegate/lifecycle/__init__.py +1795 -0
  44. lanegate-1.0.0/lanegate/lifecycle/hibernate.py +549 -0
  45. lanegate-1.0.0/lanegate/lifecycle/touches.py +179 -0
  46. lanegate-1.0.0/lanegate/logs.py +172 -0
  47. lanegate-1.0.0/lanegate/mcp.py +638 -0
  48. lanegate-1.0.0/lanegate/notify.py +30 -0
  49. lanegate-1.0.0/lanegate/notify_watch.py +330 -0
  50. lanegate-1.0.0/lanegate/orchestrate/__init__.py +7 -0
  51. lanegate-1.0.0/lanegate/orchestrate/audit.py +593 -0
  52. lanegate-1.0.0/lanegate/orchestrate/autofix.py +660 -0
  53. lanegate-1.0.0/lanegate/orchestrate/batch.py +330 -0
  54. lanegate-1.0.0/lanegate/orchestrate/guards.py +699 -0
  55. lanegate-1.0.0/lanegate/orchestrate/loop.py +3320 -0
  56. lanegate-1.0.0/lanegate/orchestrate/pool.py +1006 -0
  57. lanegate-1.0.0/lanegate/orchestrate/review.py +870 -0
  58. lanegate-1.0.0/lanegate/orchestrate/run_report.py +1134 -0
  59. lanegate-1.0.0/lanegate/orchestrate/run_summary.py +185 -0
  60. lanegate-1.0.0/lanegate/orchestrate/status.py +293 -0
  61. lanegate-1.0.0/lanegate/pidutil.py +84 -0
  62. lanegate-1.0.0/lanegate/projects.py +81 -0
  63. lanegate-1.0.0/lanegate/promote.py +190 -0
  64. lanegate-1.0.0/lanegate/prompts.py +610 -0
  65. lanegate-1.0.0/lanegate/reconciliation.py +206 -0
  66. lanegate-1.0.0/lanegate/resume_watch.py +648 -0
  67. lanegate-1.0.0/lanegate/reviewer.py +719 -0
  68. lanegate-1.0.0/lanegate/safeguards.py +433 -0
  69. lanegate-1.0.0/lanegate/skills/implement.md +113 -0
  70. lanegate-1.0.0/lanegate/skills/integrate.md +33 -0
  71. lanegate-1.0.0/lanegate/skills/next-ticket.md +7 -0
  72. lanegate-1.0.0/lanegate/skills/orchestrate.md +434 -0
  73. lanegate-1.0.0/lanegate/skills/tickets.md +7 -0
  74. lanegate-1.0.0/lanegate/stats.py +123 -0
  75. lanegate-1.0.0/lanegate/templates/__init__.py +0 -0
  76. lanegate-1.0.0/lanegate/templates/prompts/__init__.py +0 -0
  77. lanegate-1.0.0/lanegate/templates/prompts/analyze.md +32 -0
  78. lanegate-1.0.0/lanegate/templates/prompts/drift_check.md +13 -0
  79. lanegate-1.0.0/lanegate/templates/prompts/fix.md +12 -0
  80. lanegate-1.0.0/lanegate/templates/prompts/implement.md +8 -0
  81. lanegate-1.0.0/lanegate/templates/prompts/review.md +27 -0
  82. lanegate-1.0.0/lanegate/templates/scripts/__init__.py +0 -0
  83. lanegate-1.0.0/lanegate/templates/scripts/pre-deploy-check.sh +16 -0
  84. lanegate-1.0.0/lanegate/templates/scripts/run-tests.sh +14 -0
  85. lanegate-1.0.0/lanegate/ticket.py +998 -0
  86. lanegate-1.0.0/lanegate/tui.py +183 -0
  87. lanegate-1.0.0/lanegate/update_docs.py +294 -0
  88. lanegate-1.0.0/lanegate/watch.py +231 -0
  89. lanegate-1.0.0/lanegate/worktree.py +109 -0
  90. lanegate-1.0.0/pyproject.toml +125 -0
  91. lanegate-1.0.0/tests/__init__.py +0 -0
  92. lanegate-1.0.0/tests/conftest.py +89 -0
  93. lanegate-1.0.0/tests/fixtures/captured_output/tick-346-monthly-spend-limit.txt +10 -0
  94. lanegate-1.0.0/tests/fixtures/captured_output/tick-348-weekly-limit.txt +10 -0
  95. lanegate-1.0.0/tests/fixtures/captured_output/tick-349-nested-brace-review.txt +162 -0
  96. lanegate-1.0.0/tests/fixtures/runtime_spike/README.md +11 -0
  97. lanegate-1.0.0/tests/fixtures/spec_artifacts/README.md +113 -0
  98. lanegate-1.0.0/tests/fixtures/tui_contracts/README.md +79 -0
  99. lanegate-1.0.0/tests/fixtures/tui_contracts/blocked/blocked_empty.json +3 -0
  100. lanegate-1.0.0/tests/fixtures/tui_contracts/blocked/blocked_queue.json +30 -0
  101. lanegate-1.0.0/tests/fixtures/tui_contracts/blocked/changes_requested_queue.json +16 -0
  102. lanegate-1.0.0/tests/fixtures/tui_contracts/board/board_basic.json +104 -0
  103. lanegate-1.0.0/tests/fixtures/tui_contracts/board/board_empty.json +4 -0
  104. lanegate-1.0.0/tests/fixtures/tui_contracts/board/board_hidden_and_blocked.json +36 -0
  105. lanegate-1.0.0/tests/fixtures/tui_contracts/board/tickets_flat.json +63 -0
  106. lanegate-1.0.0/tests/fixtures/tui_contracts/diff/diff_binary_file.json +19 -0
  107. lanegate-1.0.0/tests/fixtures/tui_contracts/diff/diff_empty.json +12 -0
  108. lanegate-1.0.0/tests/fixtures/tui_contracts/diff/diff_many_files.json +44 -0
  109. lanegate-1.0.0/tests/fixtures/tui_contracts/diff/diff_small.json +19 -0
  110. lanegate-1.0.0/tests/fixtures/tui_contracts/diff/diff_truncated_patch.json +19 -0
  111. lanegate-1.0.0/tests/fixtures/tui_contracts/errors/error_missing_ticket.json +3 -0
  112. lanegate-1.0.0/tests/fixtures/tui_contracts/pools/pools_basic.json +27 -0
  113. lanegate-1.0.0/tests/fixtures/tui_contracts/pools/pools_empty.json +3 -0
  114. lanegate-1.0.0/tests/fixtures/tui_contracts/run/events_basic.sse +12 -0
  115. lanegate-1.0.0/tests/fixtures/tui_contracts/run/events_reconnect.sse +24 -0
  116. lanegate-1.0.0/tests/fixtures/tui_contracts/run/events_worker_error.sse +12 -0
  117. lanegate-1.0.0/tests/fixtures/tui_contracts/run/executor_events_historical.json +16 -0
  118. lanegate-1.0.0/tests/fixtures/tui_contracts/run/executor_events_live.json +99 -0
  119. lanegate-1.0.0/tests/fixtures/tui_contracts/run/raw_audit_page.json +7 -0
  120. lanegate-1.0.0/tests/fixtures/tui_contracts/run/resume_watch_absent.json +23 -0
  121. lanegate-1.0.0/tests/fixtures/tui_contracts/run/resume_watch_gave_up.json +27 -0
  122. lanegate-1.0.0/tests/fixtures/tui_contracts/run/resume_watch_waiting.json +27 -0
  123. lanegate-1.0.0/tests/fixtures/tui_contracts/run/run_active.json +41 -0
  124. lanegate-1.0.0/tests/fixtures/tui_contracts/run/run_completed.json +27 -0
  125. lanegate-1.0.0/tests/fixtures/tui_contracts/run/run_idle.json +22 -0
  126. lanegate-1.0.0/tests/fixtures/tui_contracts/settings/settings_basic.json +30 -0
  127. lanegate-1.0.0/tests/fixtures/tui_contracts/settings/settings_missing_optional.json +20 -0
  128. lanegate-1.0.0/tests/fixtures/tui_contracts/settings/settings_multi_executor.json +51 -0
  129. lanegate-1.0.0/tests/fixtures/tui_contracts/ticket_detail/ticket_changes_requested.json +40 -0
  130. lanegate-1.0.0/tests/fixtures/tui_contracts/ticket_detail/ticket_in_review.json +18 -0
  131. lanegate-1.0.0/tests/fixtures/tui_contracts/ticket_detail/ticket_missing_optional_fields.json +18 -0
  132. lanegate-1.0.0/tests/fixtures/tui_contracts/ticket_detail/ticket_ready.json +19 -0
  133. lanegate-1.0.0/tests/orchestrate/__init__.py +0 -0
  134. lanegate-1.0.0/tests/orchestrate/conftest.py +325 -0
  135. lanegate-1.0.0/tests/orchestrate/test_autofix.py +1465 -0
  136. lanegate-1.0.0/tests/orchestrate/test_batch.py +1212 -0
  137. lanegate-1.0.0/tests/orchestrate/test_guards.py +2739 -0
  138. lanegate-1.0.0/tests/orchestrate/test_loop.py +2057 -0
  139. lanegate-1.0.0/tests/orchestrate/test_pool.py +3680 -0
  140. lanegate-1.0.0/tests/orchestrate/test_reconciliation.py +1375 -0
  141. lanegate-1.0.0/tests/orchestrate/test_review.py +1764 -0
  142. lanegate-1.0.0/tests/orchestrate/test_scope_recovery.py +77 -0
  143. lanegate-1.0.0/tests/test_analyze.py +2359 -0
  144. lanegate-1.0.0/tests/test_api.py +962 -0
  145. lanegate-1.0.0/tests/test_board.py +1163 -0
  146. lanegate-1.0.0/tests/test_claim_file.py +187 -0
  147. lanegate-1.0.0/tests/test_cli.py +745 -0
  148. lanegate-1.0.0/tests/test_companion.py +135 -0
  149. lanegate-1.0.0/tests/test_concurrency.py +707 -0
  150. lanegate-1.0.0/tests/test_config.py +2548 -0
  151. lanegate-1.0.0/tests/test_context_log.py +1871 -0
  152. lanegate-1.0.0/tests/test_create.py +457 -0
  153. lanegate-1.0.0/tests/test_deploy.py +202 -0
  154. lanegate-1.0.0/tests/test_doctor.py +609 -0
  155. lanegate-1.0.0/tests/test_e2e_lifecycle.py +356 -0
  156. lanegate-1.0.0/tests/test_executor.py +1560 -0
  157. lanegate-1.0.0/tests/test_executor_events.py +204 -0
  158. lanegate-1.0.0/tests/test_flags.py +217 -0
  159. lanegate-1.0.0/tests/test_git.py +77 -0
  160. lanegate-1.0.0/tests/test_lifecycle.py +3956 -0
  161. lanegate-1.0.0/tests/test_mcp.py +127 -0
  162. lanegate-1.0.0/tests/test_notify.py +46 -0
  163. lanegate-1.0.0/tests/test_notify_watch.py +295 -0
  164. lanegate-1.0.0/tests/test_pidutil.py +43 -0
  165. lanegate-1.0.0/tests/test_projects.py +326 -0
  166. lanegate-1.0.0/tests/test_promote.py +298 -0
  167. lanegate-1.0.0/tests/test_prompts.py +1383 -0
  168. lanegate-1.0.0/tests/test_reconciliation.py +272 -0
  169. lanegate-1.0.0/tests/test_resume_watch.py +1027 -0
  170. lanegate-1.0.0/tests/test_reviewer.py +1304 -0
  171. lanegate-1.0.0/tests/test_run_report.py +543 -0
  172. lanegate-1.0.0/tests/test_run_summary.py +183 -0
  173. lanegate-1.0.0/tests/test_safeguards.py +1354 -0
  174. lanegate-1.0.0/tests/test_ticket.py +1209 -0
  175. lanegate-1.0.0/tests/test_tui.py +167 -0
  176. lanegate-1.0.0/tests/test_update_docs.py +304 -0
  177. lanegate-1.0.0/tests/test_watch.py +371 -0
  178. lanegate-1.0.0/tests/test_worktree.py +108 -0
@@ -0,0 +1,26 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ *.egg
6
+ dist/
7
+ build/
8
+ venv/
9
+ .venv/
10
+
11
+ # LaneGate local state
12
+ .lanegate/*
13
+ !.lanegate/tickets/
14
+ !.lanegate/tickets/*
15
+ .lanegate/executor-runs/
16
+ !.lanegate/notes/
17
+ .lanegate/notes/*
18
+ !.lanegate/notes/.gitkeep
19
+ worktrees/
20
+ *-context-log.jsonl
21
+
22
+ # Go TUI compiled binary (go build -o lanegate-tui ./tui/cmd/lanegate-tui, run from repo root)
23
+ /lanegate-tui
24
+
25
+ # Claude Code local overrides (personal, never shared)
26
+ .claude/settings.local.json
@@ -0,0 +1,243 @@
1
+ # .lanegate.yml — project configuration for lanegate
2
+ # Copy this file to .lanegate.yml in your repo root and edit to taste.
3
+ # Or run `lanegate init` to generate a config interactively.
4
+
5
+ ticket_prefix: TICK # TICK-NNN, FEAT-NNN, BUG-NNN, TASK-NNN, etc.
6
+ tickets_dir: .lanegate/tickets
7
+ worktrees_dir: .lanegate/worktrees
8
+
9
+ # Legacy shorthand: who writes the code when `steps.implement.driver` is not set.
10
+ executor: claude # claude | claude-subagent | claude-process | aider | openhands | codex | ollama
11
+
12
+ # Legacy shorthand: who reviews the code when `steps.review.driver` is not set
13
+ # (optional — defaults to executor if omitted).
14
+ # Set to a different executor for model review, or `human` when you want a
15
+ # person to record each review verdict.
16
+ # For a batch-level human gate without changing the reviewer, run:
17
+ # lanegate orchestrate --human-review final
18
+ # For per-ticket human verdicts, uncomment `reviewer: human` and run:
19
+ # lanegate orchestrate --human-review per_ticket
20
+ # reviewer: human
21
+
22
+ # --- Multi-agent dispatch (optional) ---
23
+ #
24
+ # Define named driver instances. Each driver is an invocation of an agent type
25
+ # with specific settings. Use driver names in `steps:` or per-ticket
26
+ # `executor:` / `reviewer:` frontmatter.
27
+ drivers:
28
+ # Claude via subprocess — good for high-quality review.
29
+ claude-main:
30
+ type: claude-process
31
+ model: claude-sonnet-4-6
32
+
33
+ # Ollama REST driver — text-only, no file-editing/commit capability of its
34
+ # own (Ollama is a model server, not a coding agent). Only useful for
35
+ # text-only steps like analyze. For local *coding*, use aider-local below.
36
+ ollama-qwen:
37
+ type: ollama
38
+ model: qwen2.5-coder:32b
39
+ base_url: http://localhost:11434 # default; omit if using the standard port
40
+
41
+ # Aider with a local model — no hosted rate limits; useful for bulk
42
+ # implementation. This is the validated local/offline coding path, since
43
+ # Aider applies and commits edits itself. ollama_chat/ (not ollama/) is the
44
+ # recommended prefix for instruct-tuned coding models.
45
+ aider-local:
46
+ type: aider
47
+ model: ollama_chat/qwen2.5-coder:14b
48
+ provider: ollama
49
+ context_window_tokens: 32768 # local models have a finite context window
50
+ flags: ["--no-pretty", "--no-stream", "--yes-always", "--no-check-update",
51
+ "--no-analytics", "--no-show-model-warnings"]
52
+
53
+ # Aider on a rented/remote GPU box, reached through an SSH tunnel rather
54
+ # than exposing Ollama's (unauthenticated) API port publicly:
55
+ # ssh -N -L 11435:localhost:11434 <user>@<remote-host>
56
+ # export OLLAMA_API_BASE=http://localhost:11435 # aider reads this directly
57
+ # Route to it with a ticket-level `executor: aider-remote` override rather
58
+ # than the global `executor:` default or a pool — a single local model
59
+ # instance isn't necessarily the right tier for every ticket.
60
+ aider-remote:
61
+ type: aider
62
+ model: ollama_chat/qwen3-coder:30b-a3b-q4_K_M
63
+ provider: ollama
64
+ context_window_tokens: 32768
65
+
66
+ # OpenAI Codex CLI.
67
+ codex-cloud:
68
+ type: codex
69
+ model: o4-mini
70
+
71
+ # Route each pipeline step to a specific driver.
72
+ # Omit this block to use the top-level legacy `executor:` / `reviewer:` fields.
73
+ steps:
74
+ analyze:
75
+ driver: claude-main # strong model for ticket analysis
76
+ implement:
77
+ driver: aider-local # local model handles bulk coding
78
+ review:
79
+ driver: claude-main # Claude reviews for quality
80
+
81
+ # Legacy shorthand: max tickets the orchestrator runs in parallel.
82
+ # Effective batch = min(touch-disjoint candidates, max_parallel)
83
+ max_parallel: 2
84
+
85
+ # What to do when the executor hits a rate limit / quota error mid-run.
86
+ # halt (default) — hibernate the ticket, print instructions, stop the run.
87
+ # You re-run `lanegate orchestrate` manually once the limit clears.
88
+ # resume — same hibernate, but also spawns a detached `lanegate resume-watch`
89
+ # daemon that polls with capped exponential backoff and re-runs
90
+ # `lanegate orchestrate` automatically once the limit clears.
91
+ on_rate_limit: halt
92
+
93
+ # Backoff settings for the resume-watch daemon (only used when on_rate_limit: resume).
94
+ # ceiling_s: null polls forever; set it (e.g. 21600 for 6h) to give up after that
95
+ # many total seconds and fall back to printing manual-resume instructions instead.
96
+ rate_limit_resume:
97
+ initial_backoff_s: 300 # first retry after 5 minutes
98
+ max_backoff_s: 7200 # backoff never grows past 2 hours between retries
99
+ ceiling_s: null
100
+
101
+ # Chain a ticket's pipeline steps onto one CLI session via --resume (Claude
102
+ # subprocess executors only) instead of every step starting cold. The
103
+ # per-invocation fixed bootstrap cost (system prompt/tools) only needs to be
104
+ # cache-written once per session, not once per process — a measured ~9x cost
105
+ # reduction on a resumed call vs a cold one (see
106
+ # docs/session-usage-investigation.md). implement resumes analyze's session;
107
+ # fix resumes implement's (or a prior fix pass's, on a second autofix cycle);
108
+ # drift_check resumes fix's. Gated per-resume by max_session_age_s/
109
+ # max_session_tokens using real step_costs data, since a resume past the
110
+ # server's prompt-cache TTL re-pays cache-write price for the whole
111
+ # accumulated session instead of just the fixed bootstrap — potentially
112
+ # costing *more* than a cold dispatch would have.
113
+ session_chaining:
114
+ enabled: true # master switch
115
+ # Review stays independent (cold, no --resume) by default — a reviewer
116
+ # that inherits the implementer's exact reasoning trail undermines the
117
+ # point of an independent check. Opt in only if you want the cost saving
118
+ # more than that independence.
119
+ chain_review: false
120
+ max_session_age_s: 2700 # don't resume past this (45 min; safety
121
+ # margin under the CLI's 1h cache TTL)
122
+ max_session_tokens: 150000 # don't resume past this either — dispatch
123
+ # fresh instead once a session has grown this large
124
+
125
+ # Phone alert (via ntfy.sh) when `lanegate orchestrate` looks stuck: dead process,
126
+ # stale executor heartbeat, or the loop halted with tickets still waiting in
127
+ # needs_review/blocked/failed/hibernated. Also used by resume-watch to push on
128
+ # rate-limit hit / give-up / resumed. Set ntfy_topic and run `lanegate notify-watch`
129
+ # (see docs/config-reference.md#phone-alerts-for-stuck-runs-notify-watch).
130
+ # ntfy_topic is credential-like (anyone who knows it can read/post to your
131
+ # channel) — if this file is git-tracked, leave it null here and set the
132
+ # LANEGATE_NTFY_TOPIC env var instead; it overrides this value when set.
133
+ notify:
134
+ ntfy_topic: null # null = log only, no pushes sent
135
+ poll_seconds: 60
136
+ heartbeat_stale_seconds: 180
137
+
138
+ # Legacy shorthand: per-executor overrides (replace the global, not additive).
139
+ # `flags` are prepended to the executor command when dispatching a ticket.
140
+ # The flags below enable headless/autonomous operation — remove them if you
141
+ # want the executor to prompt for approval on each action (supervised mode).
142
+ # `claude` shown here uses the scoped default (`lanegate init` writes this
143
+ # automatically): it auto-approves only the tool categories orchestrate needs
144
+ # and leaves everything else (WebFetch, WebSearch, MCP tools, ...) gated. The
145
+ # fully-open alternative, flags: ["--dangerously-skip-permissions"], disables
146
+ # every permission check process-wide — a valid choice for setups like a
147
+ # disposable CI container, but not the default. See
148
+ # docs/security-model.md#headless-permission-options-for-the-claude-executor.
149
+ executors:
150
+ claude: { max_parallel: 3, flags: ["--allowedTools", "Bash,Edit,Write,Read,Glob,Grep"] }
151
+ aider: { max_parallel: 1, flags: ["--yes-always"] }
152
+ codex: { max_parallel: 3, flags: ["--approval-policy=never"] }
153
+ ollama: { max_parallel: 1, models: { analyze: llama3.1 } } # text-only; see drivers: above for local coding
154
+
155
+ # Optional: distribute tickets across more than one account of the same
156
+ # executor type (see "Named executor instances" + "Executor pools" in
157
+ # docs/config-reference.md). Uncomment and define named instances under
158
+ # executors: (each needs its own `type:` and usually its own `api_key_env:`)
159
+ # before enabling a pool that references them.
160
+ # pools:
161
+ # default:
162
+ # executors: [claude-1, claude-2]
163
+ # strategy: least-loaded # or round-robin
164
+ # default_pool: default
165
+
166
+ # Files/patterns where overlapping tickets cannot run in parallel.
167
+ # Leave empty if your project has no shared core files.
168
+ core_files: []
169
+ core_patterns: []
170
+
171
+ # Visual verification for UI-facing tickets. LaneGate does not run a browser or
172
+ # a dev server itself — this only tells the implement/review prompts (a) which
173
+ # touched files count as "UI" so the visual-verification instructions get
174
+ # added, and (b) how to reach the running app. The agent still needs its own
175
+ # browser/screenshot tooling (e.g. a Playwright MCP server, an in-session
176
+ # browser subagent) configured on the executor side — that's outside LaneGate.
177
+ # `groups` is a list because a monorepo can have several distinct UI areas
178
+ # (separate frontend apps, or e.g. an AEM ui.frontend clientlib vs. the AEM
179
+ # author/publish instance itself) each reachable at a different dev
180
+ # server/URL. Leave groups empty (the default) to disable this entirely.
181
+ verification:
182
+ groups: []
183
+ # groups:
184
+ # - patterns: ["apps/web/**", "**/*.tsx"]
185
+ # dev_server: "npm run dev"
186
+ # url: "http://localhost:3000"
187
+ # - patterns: ["apps/admin/**"]
188
+ # dev_server: "npm run dev:admin"
189
+ # url: "http://localhost:4000"
190
+
191
+ # Repo-local coding practices to include in analyze/implement/review prompts.
192
+ # By default LaneGate also discovers common files like AGENTS.md, CLAUDE.md,
193
+ # .github/copilot-instructions.md, .cursorrules, and CONTRIBUTING.md.
194
+ # Set `project_guidance: false` to disable this prompt context.
195
+ project_guidance:
196
+ include_defaults: true
197
+ files: []
198
+ max_bytes: 20000
199
+
200
+ # Statuses during which a ticket's `touches` stay locked (held until merge).
201
+ lock_statuses: [in_progress, code_complete, in_review]
202
+
203
+ # Deterministic checks before lifecycle transitions.
204
+ # A failing command blocks the transition.
205
+ # Supported examples include: pytest, npm test, cargo test, go test, make lint,
206
+ # and executable scripts such as scripts/run-tests.sh.
207
+ safeguards:
208
+ pre_complete:
209
+ - pytest
210
+ pre_merge:
211
+ - pytest
212
+ # Runs from the merged control checkout during `lanegate validate`.
213
+ # When configured, `lanegate done` requires validation first.
214
+ post_merge:
215
+ - pytest
216
+
217
+ # ── Feature flags (optional) ─────────────────────────────────────────────────
218
+ # Remove this section if you do not use feature flags.
219
+ flag_file: ~/.lanegate/feature_flags.json
220
+
221
+ # ── Deployment pipeline (optional) ───────────────────────────────────────────
222
+ # Remove this section for projects with no deployment pipeline (libraries,
223
+ # research, open-source). Add one entry per environment in promotion order.
224
+ environments:
225
+ - name: staging
226
+ branch: staging
227
+ from: main # base branch for pending-diff + promotion
228
+ trigger: manual # manual | auto (auto = hook-driven, lanegate reports only)
229
+ sync: ff-only # ff-only | merge-no-ff
230
+ guard_script: null # path to script; exit 1 blocks promote
231
+ pre_promote: [] # scripts to run before promote
232
+ post_promote: [] # scripts to run after promote
233
+ flag_file: ~/.lanegate/staging.feature_flags.json
234
+
235
+ - name: production
236
+ branch: production
237
+ from: main
238
+ trigger: manual
239
+ sync: ff-only
240
+ guard_script: null
241
+ pre_promote: []
242
+ post_promote: []
243
+ flag_file: ~/.lanegate/feature_flags.json
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ All notable changes to LaneGate are logged here. Dates are the day a change merged to `main`.
4
+
5
+ ## v1.0.0 (2026-08-03) — first public release
6
+
7
+ ### Renamed from Vyuha to LaneGate
8
+
9
+ The project was renamed to LaneGate before this release (TICK-384/385) after a direct
10
+ domain/naming conflict with an unrelated company. The Python package is now `lanegate`,
11
+ the CLI is `lanegate` (short alias `lgt`), and the config filename/state directory follow
12
+ from that (`.lanegate.yml`, `.lanegate/`). If you have an existing repo initialized with
13
+ an older `vyuha` install, see `docs/migration-vyuha-to-lanegate.md` for the one-time
14
+ manual move.
15
+
16
+ ### Defaults changed from earlier development
17
+
18
+ Two behaviors that used to require opt-in are now the default for new `lanegate init`
19
+ projects:
20
+
21
+ - **Independent review by default.** Review no longer silently self-reviews; it runs a
22
+ genuinely separate reviewer (a different tool instance, a different model, or a
23
+ different account, in that preference order) before falling back to self-review only
24
+ when nothing else is available.
25
+ - **Ticket evidence is git-tracked by default.** Ticket files land under version control
26
+ out of the box instead of being gitignored, so ticket history survives the same way
27
+ the rest of the repo's history does.
28
+
29
+ ### Known gaps not yet run — read before relying on this release
30
+
31
+ This release has **not** had the following checks run against it. They don't block
32
+ day-to-day use, but you should know they're outstanding rather than assume full coverage:
33
+
34
+ - **No `mypy` pass has been run against the tree** (tracked as TICK-365, deferred to v1.6).
35
+ - **No systematic sweep for drifted duplicate logic has been run.** A handful of instances
36
+ were found incidentally during development and fixed as they were found, but a
37
+ deliberate grep-driven sweep across module boundaries has not happened (tracked as
38
+ TICK-366, deferred to v1.6, and should run *before* 365).
39
+
40
+ A few smaller items are also explicitly deferred to v1.6 and tracked as open tickets
41
+ (TICK-378, TICK-379, TICK-383) — none are launch blockers, all are pre-existing scope
42
+ decisions, not omissions discovered late.
lanegate-1.0.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Sudheer Donaboina (github.com/sudheerdvn)
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
lanegate-1.0.0/NOTICE ADDED
@@ -0,0 +1,14 @@
1
+ LaneGate
2
+ Copyright 2026 Sudheer Donaboina (github.com/sudheerdvn)
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.