tailtrail 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.
Files changed (788) hide show
  1. tailtrail/.claude/commands/tailtrail-start.md +34 -0
  2. tailtrail/.codex-plugin/plugin.json +14 -0
  3. tailtrail/.cursor/rules/tailtrail.mdc +49 -0
  4. tailtrail/.github/prompts/tailtrail-start.prompt.md +102 -0
  5. tailtrail/.openai/chatgpt-instructions.md +42 -0
  6. tailtrail/AGENTS.md +49 -0
  7. tailtrail/AIDLC.md +203 -0
  8. tailtrail/ARCHITECTURE.md +194 -0
  9. tailtrail/ASSISTANT-COMPATIBILITY.md +93 -0
  10. tailtrail/CLAUDE.md +47 -0
  11. tailtrail/COMPLETE-END-TO-END-WORKFLOW.md +657 -0
  12. tailtrail/DEPENDENCY-GATE.md +44 -0
  13. tailtrail/EVALUATION-HARNESS.md +2352 -0
  14. tailtrail/GOVERNANCE.md +40 -0
  15. tailtrail/GUARDRAILS.md +175 -0
  16. tailtrail/HOST-ADAPTERS.md +228 -0
  17. tailtrail/INSTALL.md +246 -0
  18. tailtrail/INSTALLER-LIFECYCLE.md +89 -0
  19. tailtrail/MCP-SERVER.md +301 -0
  20. tailtrail/NAVIGATOR-FALSE-STOP-REMEDIATION-PLAN.md +979 -0
  21. tailtrail/PACKAGE-CONTRACT.md +73 -0
  22. tailtrail/PRODUCT-MATURITY-IMPROVEMENT-PLAN.md +1674 -0
  23. tailtrail/PUBLIC-CLAIMS.md +134 -0
  24. tailtrail/README.md +224 -0
  25. tailtrail/REPOSITORY-ENFORCEMENT.md +88 -0
  26. tailtrail/ROADMAP.md +11920 -0
  27. tailtrail/SECURITY.md +79 -0
  28. tailtrail/SUPPLY-CHAIN.md +78 -0
  29. tailtrail/SUPPORT.md +162 -0
  30. tailtrail/TAILTRAIL-COMMANDS.md +2950 -0
  31. tailtrail/TAILTRAIL-STOP-RESUME-CONTROL-IMPLEMENTATION-PLAN.md +664 -0
  32. tailtrail/USER-GUIDE.md +3327 -0
  33. tailtrail/VERSIONING.md +93 -0
  34. tailtrail/__init__.py +18 -0
  35. tailtrail/__main__.py +7 -0
  36. tailtrail/adapters/README.md +85 -0
  37. tailtrail/adapters/chatgpt-instructions.md +42 -0
  38. tailtrail/adapters/claude.md +47 -0
  39. tailtrail/adapters/copilot-instructions.md +48 -0
  40. tailtrail/adapters/cursor.mdc +49 -0
  41. tailtrail/adapters/gemini.md +42 -0
  42. tailtrail/adapters/generated/claude-v1.md +147 -0
  43. tailtrail/adapters/generated/codex-v1.md +147 -0
  44. tailtrail/adapters/generated/copilot-v1.md +147 -0
  45. tailtrail/adapters/host-compatibility-v1.json +101 -0
  46. tailtrail/adapters/navigator-host-reasoning-scenarios-v1.json +48 -0
  47. tailtrail/adapters/navigator-scope-scenarios-v2.json +62 -0
  48. tailtrail/adapters/official-aidlc-field-ownership-v1.json +50 -0
  49. tailtrail/adapters/prompts/chatgpt.md +44 -0
  50. tailtrail/adapters/prompts/claude.md +57 -0
  51. tailtrail/adapters/prompts/codex.md +59 -0
  52. tailtrail/adapters/prompts/copilot.md +57 -0
  53. tailtrail/adapters/prompts/cursor.md +44 -0
  54. tailtrail/adapters/prompts/gemini.md +44 -0
  55. tailtrail/adapters/requirement-routing-scenarios-v1.json +64 -0
  56. tailtrail/adapters/runtime-scenarios-v1.json +50 -0
  57. tailtrail/aidlc/extensions/security-baseline.md +17 -0
  58. tailtrail/aidlc/extensions/testing-baseline.md +15 -0
  59. tailtrail/aidlc/stages/README.md +21 -0
  60. tailtrail/aidlc/stages/build-test.md +24 -0
  61. tailtrail/aidlc/stages/design.md +31 -0
  62. tailtrail/aidlc/stages/handoff.md +30 -0
  63. tailtrail/aidlc/stages/implementation.md +25 -0
  64. tailtrail/aidlc/stages/operations.md +30 -0
  65. tailtrail/aidlc/stages/requirements.md +39 -0
  66. tailtrail/aidlc/stages/reverse-engineering.md +31 -0
  67. tailtrail/aidlc/stages/workflow-planning.md +25 -0
  68. tailtrail/aidlc/stages/workspace-detection.md +32 -0
  69. tailtrail/aidlc-docs/aidlc-state.md +410 -0
  70. tailtrail/aidlc-docs/aidlc-upstream-improvement-plan.md +198 -0
  71. tailtrail/aidlc-docs/audit.md +99 -0
  72. tailtrail/aidlc-docs/dry-run-evidence-log.md +80 -0
  73. tailtrail/aidlc-docs/implementation-plan.md +19 -0
  74. tailtrail/aidlc-docs/navigator-generic-graph-packet-implementation-plan.md +427 -0
  75. tailtrail/aidlc-docs/phase-e0-design.md +94 -0
  76. tailtrail/aidlc-docs/phase-e0-requirements.md +70 -0
  77. tailtrail/aidlc-docs/phase-e1-design.md +61 -0
  78. tailtrail/aidlc-docs/phase-e1-requirements.md +78 -0
  79. tailtrail/aidlc-docs/phase-e2-design.md +49 -0
  80. tailtrail/aidlc-docs/phase-e2-requirements.md +44 -0
  81. tailtrail/aidlc-docs/phase-e3-design.md +38 -0
  82. tailtrail/aidlc-docs/phase-e3-requirements.md +50 -0
  83. tailtrail/aidlc-docs/phase-e4-design.md +42 -0
  84. tailtrail/aidlc-docs/phase-e4-requirements.md +34 -0
  85. tailtrail/aidlc-docs/phase-e5-dependency-decision.md +10 -0
  86. tailtrail/aidlc-docs/phase-e5-design.md +5 -0
  87. tailtrail/aidlc-docs/phase-e5-requirements.md +11 -0
  88. tailtrail/aidlc-docs/phase-e6-design.md +7 -0
  89. tailtrail/aidlc-docs/phase-e6-requirements.md +11 -0
  90. tailtrail/aidlc-docs/phase-installation-experience-design.md +38 -0
  91. tailtrail/aidlc-docs/phase-installation-experience-requirements.md +38 -0
  92. tailtrail/aidlc-docs/phase-pm-7-design.md +23 -0
  93. tailtrail/aidlc-docs/phase-pm-7-requirements.md +23 -0
  94. tailtrail/aidlc-docs/phase-pm-l0-design.md +54 -0
  95. tailtrail/aidlc-docs/phase-pm-l0-requirements.md +44 -0
  96. tailtrail/aidlc-docs/phase-pm-l1-design.md +55 -0
  97. tailtrail/aidlc-docs/phase-pm-l1-requirements.md +41 -0
  98. tailtrail/aidlc-docs/phase-pm-l2-design.md +39 -0
  99. tailtrail/aidlc-docs/phase-pm-l2-requirements.md +25 -0
  100. tailtrail/aidlc-docs/phase-pm-l3-design.md +101 -0
  101. tailtrail/aidlc-docs/phase-pm-l3-requirements.md +60 -0
  102. tailtrail/aidlc-docs/phase-pm-l4-design.md +30 -0
  103. tailtrail/aidlc-docs/phase-pm-l4-requirements.md +16 -0
  104. tailtrail/aidlc-docs/phase-pm-l5-design.md +25 -0
  105. tailtrail/aidlc-docs/phase-pm-l5-requirements.md +20 -0
  106. tailtrail/aidlc-docs/phase10-requirements.md +20 -0
  107. tailtrail/aidlc-docs/phase10-threat-model.md +50 -0
  108. tailtrail/aidlc-docs/phase11-release-design.md +19 -0
  109. tailtrail/aidlc-docs/phase11-requirements.md +19 -0
  110. tailtrail/aidlc-docs/phase12-enterprise-design.md +28 -0
  111. tailtrail/aidlc-docs/phase12-requirements.md +29 -0
  112. tailtrail/aidlc-docs/requirements.md +12 -0
  113. tailtrail/aidlc-docs/session-work-phases.md +129 -0
  114. tailtrail/aidlc-docs/validation-handoff.md +65 -0
  115. tailtrail/aidlc-docs/workflow-plan.md +12 -0
  116. tailtrail/api.py +32 -0
  117. tailtrail/benchmarks/enterprise-conformance/v1.json +27 -0
  118. tailtrail/benchmarks/evaluation/adoption/v1.json +87 -0
  119. tailtrail/benchmarks/evaluation/learning-calibration/v1.json +80 -0
  120. tailtrail/benchmarks/evaluation/navigator-scope/fsr6-v1.json +103 -0
  121. tailtrail/benchmarks/evaluation/navigator-scope/installed-release-v1.json +63 -0
  122. tailtrail/benchmarks/evaluation/navigator-scope/language-profiles-v1.json +106 -0
  123. tailtrail/benchmarks/evaluation/navigator-scope/release-v1.json +53 -0
  124. tailtrail/benchmarks/evaluation/navigator-scope/v1.json +520 -0
  125. tailtrail/benchmarks/evaluation/real-portfolio/v1.json +25 -0
  126. tailtrail/benchmarks/product-maturity/pm-l2-retrieval-fixtures-v1.json +48 -0
  127. tailtrail/benchmarks/product-maturity/pm0-scenarios-v1.json +62 -0
  128. tailtrail/benchmarks/product-maturity/presentation-v1/closure-report.json +12 -0
  129. tailtrail/benchmarks/product-maturity/presentation-v1/debug-report.json +13 -0
  130. tailtrail/benchmarks/product-maturity/presentation-v1/plan-report.json +15 -0
  131. tailtrail/cli.py +118 -0
  132. tailtrail/context/TailTrail.map.md +29 -0
  133. tailtrail/context/cache-index.md +18 -0
  134. tailtrail/context/change-impact.md +29 -0
  135. tailtrail/context/code-graph-mapper.md +180 -0
  136. tailtrail/context/compression-policy.md +43 -0
  137. tailtrail/context/cross-repo-reference.md +77 -0
  138. tailtrail/context/flow-catalog.md +36 -0
  139. tailtrail/context/graph-aware-learning.md +40 -0
  140. tailtrail/context/guardrail-layers.md +148 -0
  141. tailtrail/context/intent-aliases.md +91 -0
  142. tailtrail/context/learning-agent.md +110 -0
  143. tailtrail/context/learning-refresh.md +42 -0
  144. tailtrail/context/navigator.md +450 -0
  145. tailtrail/context/project-map.md +55 -0
  146. tailtrail/context/prune-rules.md +34 -0
  147. tailtrail/context/quality-loop.md +72 -0
  148. tailtrail/context/review-lenses.md +23 -0
  149. tailtrail/context/slices.md +194 -0
  150. tailtrail/context/token-router.md +169 -0
  151. tailtrail/docs/arch/code-graphing.md +750 -0
  152. tailtrail/docs/arch/drift-analysis-implementation.md +327 -0
  153. tailtrail/docs/arch/navigator-pipeline-orchestration.md +81 -0
  154. tailtrail/docs/arch/navigator_aidlc_improvements.md +1328 -0
  155. tailtrail/docs/arch/sequential-worker-pipeline.md +88 -0
  156. tailtrail/docs/hosts/claude.md +29 -0
  157. tailtrail/docs/hosts/codex.md +28 -0
  158. tailtrail/docs/hosts/copilot.md +28 -0
  159. tailtrail/docs/workflow-enterprise-adapter.md +44 -0
  160. tailtrail/docs/workflow-release-migration.md +25 -0
  161. tailtrail/enterprise-closure-registry.json +1665 -0
  162. tailtrail/enterprise-closure-registry.schema.json +160 -0
  163. tailtrail/errors.py +13 -0
  164. tailtrail/examples/native-date-field.md +20 -0
  165. tailtrail/examples/preserve-guard.md +27 -0
  166. tailtrail/examples/shared-bug-fix.md +21 -0
  167. tailtrail/examples/stdlib-csv.md +24 -0
  168. tailtrail/examples/tailtrail-test-lab/DEMO-PLAYBOOK.md +60 -0
  169. tailtrail/examples/tailtrail-test-lab/FEATURE-COVERAGE-MATRIX.md +45 -0
  170. tailtrail/examples/tailtrail-test-lab/TAILTRAIL-DEMO-PROMPTS.md +825 -0
  171. tailtrail/examples/tailtrail-test-lab/tailtrail-meta/code-graph-cache.json +1038 -0
  172. tailtrail/examples/tailtrail-test-lab/test_demo_assets.py +176 -0
  173. tailtrail/hooks/README.md +72 -0
  174. tailtrail/hooks/guard-advisory-hook.py +57 -0
  175. tailtrail/hooks/learning-capture-hook.py +276 -0
  176. tailtrail/hooks/tailtrail-lifecycle-hook.py +166 -0
  177. tailtrail/hooks/token-autopilot-hook.py +56 -0
  178. tailtrail/hooks/token-router-hook.py +54 -0
  179. tailtrail/hosts/__init__.py +6 -0
  180. tailtrail/hosts/contracts.py +169 -0
  181. tailtrail/hosts/diagnostics.py +86 -0
  182. tailtrail/install/__init__.py +6 -0
  183. tailtrail/install/catalog.py +79 -0
  184. tailtrail/install/cli.py +178 -0
  185. tailtrail/install/engine.py +610 -0
  186. tailtrail/install/files.py +88 -0
  187. tailtrail/install/host_launcher.py +42 -0
  188. tailtrail/install/models.py +82 -0
  189. tailtrail/install/pathfix.py +109 -0
  190. tailtrail/kernel.py +51 -0
  191. tailtrail/migrations/__init__.py +20 -0
  192. tailtrail/package-integrity.json +766 -0
  193. tailtrail/package-manifest.json +281 -0
  194. tailtrail/package-manifest.schema.json +20 -0
  195. tailtrail/platform-release-contract.json +38 -0
  196. tailtrail/pyproject.toml +38 -0
  197. tailtrail/release-build-lock.json +12 -0
  198. tailtrail/release-channel-v1.json +15 -0
  199. tailtrail/release-manifest.json +458 -0
  200. tailtrail/release-manifest.schema.json +92 -0
  201. tailtrail/resources.py +71 -0
  202. tailtrail/schemas/adoption-improvement-decision.schema.json +29 -0
  203. tailtrail/schemas/adoption-validation-catalog.schema.json +54 -0
  204. tailtrail/schemas/adoption-validation-report.schema.json +50 -0
  205. tailtrail/schemas/adoption-validation-trial.schema.json +39 -0
  206. tailtrail/schemas/architecture-fitness.schema.json +1 -0
  207. tailtrail/schemas/behavior-harness.schema.json +1 -0
  208. tailtrail/schemas/canonical-requirement-set.schema.json +38 -0
  209. tailtrail/schemas/change-intent-anchor.schema.json +18 -0
  210. tailtrail/schemas/closure-correction.schema.json +23 -0
  211. tailtrail/schemas/closure-evaluation.schema.json +1 -0
  212. tailtrail/schemas/closure-finalizer.schema.json +25 -0
  213. tailtrail/schemas/closure-positive-learning.schema.json +1 -0
  214. tailtrail/schemas/closure-record.schema.json +23 -0
  215. tailtrail/schemas/completion-report.schema.json +65 -0
  216. tailtrail/schemas/context-continuity-advisory.schema.json +1 -0
  217. tailtrail/schemas/context-continuity-calibration.schema.json +1 -0
  218. tailtrail/schemas/context-continuity-intervention.schema.json +1 -0
  219. tailtrail/schemas/context-continuity-policy.schema.json +1 -0
  220. tailtrail/schemas/context-continuity-selector-policy.schema.json +1 -0
  221. tailtrail/schemas/context-continuity-state.schema.json +1 -0
  222. tailtrail/schemas/debug-completion-report.schema.json +40 -0
  223. tailtrail/schemas/debug-correction-packet.schema.json +69 -0
  224. tailtrail/schemas/debug-evaluation-report.schema.json +18 -0
  225. tailtrail/schemas/debug-experiment-proposal.schema.json +22 -0
  226. tailtrail/schemas/debug-experiment.schema.json +24 -0
  227. tailtrail/schemas/debug-governance.schema.json +18 -0
  228. tailtrail/schemas/debug-harness-convergence.schema.json +21 -0
  229. tailtrail/schemas/debug-host-diagnosis.schema.json +205 -0
  230. tailtrail/schemas/debug-hypothesis-ranking.schema.json +31 -0
  231. tailtrail/schemas/debug-intake.schema.json +36 -0
  232. tailtrail/schemas/debug-investigation-handoff.schema.json +40 -0
  233. tailtrail/schemas/debug-orientation.schema.json +53 -0
  234. tailtrail/schemas/debug-preflight.schema.json +112 -0
  235. tailtrail/schemas/debug-release-gate.schema.json +19 -0
  236. tailtrail/schemas/debug-reproduction-attempt-status.schema.json +99 -0
  237. tailtrail/schemas/debug-reproduction-attempt.schema.json +41 -0
  238. tailtrail/schemas/debug-reproduction-contract.schema.json +38 -0
  239. tailtrail/schemas/dependency-decision.schema.json +16 -0
  240. tailtrail/schemas/enterprise-conformance-report.schema.json +19 -0
  241. tailtrail/schemas/enterprise-target-policy.schema.json +17 -0
  242. tailtrail/schemas/evaluation-delivery-dataset.schema.json +1 -0
  243. tailtrail/schemas/evaluation-harness-event.schema.json +82 -0
  244. tailtrail/schemas/execution-evidence.schema.json +29 -0
  245. tailtrail/schemas/execution-failure.schema.json +101 -0
  246. tailtrail/schemas/execution-receipt.schema.json +42 -0
  247. tailtrail/schemas/failure-fingerprint.schema.json +21 -0
  248. tailtrail/schemas/git-readiness.schema.json +14 -0
  249. tailtrail/schemas/harness-checkpoint.schema.json +1 -0
  250. tailtrail/schemas/harness-control.schema.json +1 -0
  251. tailtrail/schemas/harness-convergence.schema.json +1 -0
  252. tailtrail/schemas/harness-result.schema.json +1 -0
  253. tailtrail/schemas/harness-template-selection.schema.json +1 -0
  254. tailtrail/schemas/host-adapter-contract.schema.json +35 -0
  255. tailtrail/schemas/host-decision.schema.json +31 -0
  256. tailtrail/schemas/host-requirement-routing-conformance.schema.json +42 -0
  257. tailtrail/schemas/host-runtime-receipt.schema.json +40 -0
  258. tailtrail/schemas/host-scope-conformance.schema.json +38 -0
  259. tailtrail/schemas/host-scope-reasoning-conformance.schema.json +32 -0
  260. tailtrail/schemas/host-workspace-resolution.schema.json +17 -0
  261. tailtrail/schemas/hypothesis-ledger.schema.json +54 -0
  262. tailtrail/schemas/input-role-registry.schema.json +30 -0
  263. tailtrail/schemas/install-journal-event.schema.json +14 -0
  264. tailtrail/schemas/install-ownership-manifest.schema.json +36 -0
  265. tailtrail/schemas/install-plan.schema.json +36 -0
  266. tailtrail/schemas/intent-envelope.schema.json +79 -0
  267. tailtrail/schemas/learning-calibration-catalog.schema.json +78 -0
  268. tailtrail/schemas/learning-calibration-projection.schema.json +16 -0
  269. tailtrail/schemas/learning-calibration-report.schema.json +32 -0
  270. tailtrail/schemas/learning-governance-event.schema.json +32 -0
  271. tailtrail/schemas/learning-use-proposal.schema.json +81 -0
  272. tailtrail/schemas/learning-use-receipt-event.schema.json +142 -0
  273. tailtrail/schemas/learning-v3-record.schema.json +122 -0
  274. tailtrail/schemas/maintainability-baseline.schema.json +19 -0
  275. tailtrail/schemas/maintainability-harness.schema.json +22 -0
  276. tailtrail/schemas/maintainability-inventory.schema.json +17 -0
  277. tailtrail/schemas/navigator-graph-lifecycle.schema.json +44 -0
  278. tailtrail/schemas/navigator-host-scope-packet-v2.schema.json +131 -0
  279. tailtrail/schemas/navigator-host-scope-proposal.schema.json +124 -0
  280. tailtrail/schemas/navigator-installed-release-proof.schema.json +207 -0
  281. tailtrail/schemas/navigator-run-mapping-index.schema.json +33 -0
  282. tailtrail/schemas/navigator-scope-baseline.schema.json +223 -0
  283. tailtrail/schemas/navigator-scope-calibration-catalog.schema.json +115 -0
  284. tailtrail/schemas/navigator-scope-calibration-report.schema.json +149 -0
  285. tailtrail/schemas/navigator-scope-evidence.schema.json +359 -0
  286. tailtrail/schemas/navigator-scope-migration-report.schema.json +51 -0
  287. tailtrail/schemas/navigator-scope-quality.schema.json +83 -0
  288. tailtrail/schemas/navigator-scope-release-policy.schema.json +26 -0
  289. tailtrail/schemas/navigator-scope-release-proof.schema.json +50 -0
  290. tailtrail/schemas/official-aidlc-bridge.schema.json +25 -0
  291. tailtrail/schemas/official-aidlc-pack.schema.json +40 -0
  292. tailtrail/schemas/official-aidlc-run-state.schema.json +23 -0
  293. tailtrail/schemas/official-aidlc-sanitized-reference.schema.json +17 -0
  294. tailtrail/schemas/official-aidlc-session.schema.json +30 -0
  295. tailtrail/schemas/official-aidlc-transition-receipt.schema.json +33 -0
  296. tailtrail/schemas/orchestrated-question-set.schema.json +46 -0
  297. tailtrail/schemas/planning-aidlc-mode-switch.schema.json +19 -0
  298. tailtrail/schemas/planning-authority-route.schema.json +26 -0
  299. tailtrail/schemas/planning-conversation.schema.json +37 -0
  300. tailtrail/schemas/planning-investigation.schema.json +38 -0
  301. tailtrail/schemas/planning-lock.schema.json +24 -0
  302. tailtrail/schemas/planning-revision.schema.json +27 -0
  303. tailtrail/schemas/platform-qualification-receipt.schema.json +53 -0
  304. tailtrail/schemas/presentation-report.schema.json +31 -0
  305. tailtrail/schemas/product-maturity-baseline.schema.json +43 -0
  306. tailtrail/schemas/product-maturity-learning-inventory.schema.json +109 -0
  307. tailtrail/schemas/program-plan.schema.json +1 -0
  308. tailtrail/schemas/program-state.schema.json +1 -0
  309. tailtrail/schemas/question-context.schema.json +42 -0
  310. tailtrail/schemas/real-evaluation-portfolio.schema.json +31 -0
  311. tailtrail/schemas/recovery-reconciliation.schema.json +1 -0
  312. tailtrail/schemas/release-channel.schema.json +19 -0
  313. tailtrail/schemas/release-evidence.schema.json +34 -0
  314. tailtrail/schemas/release-publication-receipt.schema.json +22 -0
  315. tailtrail/schemas/repository-enforcement-policy.schema.json +22 -0
  316. tailtrail/schemas/repository-enforcement-report.schema.json +17 -0
  317. tailtrail/schemas/repository-enforcement-suppression.schema.json +8 -0
  318. tailtrail/schemas/reproduction-contract.schema.json +24 -0
  319. tailtrail/schemas/requirement-evidence-assistance.schema.json +102 -0
  320. tailtrail/schemas/requirement-evidence.schema.json +21 -0
  321. tailtrail/schemas/requirement-impact-map.schema.json +1 -0
  322. tailtrail/schemas/requirement-intake.schema.json +112 -0
  323. tailtrail/schemas/requirement-interpretation.schema.json +103 -0
  324. tailtrail/schemas/requirement-recovery-manifest.schema.json +1 -0
  325. tailtrail/schemas/requirement-sufficiency.schema.json +113 -0
  326. tailtrail/schemas/run-event.schema.json +181 -0
  327. tailtrail/schemas/spec-kit-amendment.schema.json +22 -0
  328. tailtrail/schemas/spec-kit-convergence.schema.json +16 -0
  329. tailtrail/schemas/spec-kit-import.schema.json +16 -0
  330. tailtrail/schemas/spec-kit-mapping.schema.json +15 -0
  331. tailtrail/schemas/spec-kit-source.schema.json +16 -0
  332. tailtrail/schemas/tailtrail-session-attachment.schema.json +53 -0
  333. tailtrail/schemas/target-resolution-receipt.schema.json +18 -0
  334. tailtrail/schemas/task-recovery-boundary.schema.json +13 -0
  335. tailtrail/schemas/task-recovery-plan.schema.json +13 -0
  336. tailtrail/schemas/testing-profile.schema.json +1 -0
  337. tailtrail/schemas/token-harness-bridge-input.schema.json +109 -0
  338. tailtrail/schemas/token-harness-bridge-output.schema.json +93 -0
  339. tailtrail/schemas/validation-evidence-receipt.schema.json +24 -0
  340. tailtrail/schemas/workflow-action.schema.json +5 -0
  341. tailtrail/schemas/workflow-adapter-input.schema.json +33 -0
  342. tailtrail/schemas/workflow-adapter-output.schema.json +24 -0
  343. tailtrail/schemas/workflow-approval-record.schema.json +39 -0
  344. tailtrail/schemas/workflow-assurance-report.schema.json +17 -0
  345. tailtrail/schemas/workflow-capability-plan.schema.json +20 -0
  346. tailtrail/schemas/workflow-ci-continuation.schema.json +18 -0
  347. tailtrail/schemas/workflow-ci-policy.schema.json +24 -0
  348. tailtrail/schemas/workflow-ci-receipt.schema.json +32 -0
  349. tailtrail/schemas/workflow-code-change-reservation.schema.json +5 -0
  350. tailtrail/schemas/workflow-compatibility-report.schema.json +12 -0
  351. tailtrail/schemas/workflow-compiler-plan.schema.json +14 -0
  352. tailtrail/schemas/workflow-compiler-policy.schema.json +1 -0
  353. tailtrail/schemas/workflow-completion-contract.schema.json +5 -0
  354. tailtrail/schemas/workflow-completion-receipt.schema.json +1 -0
  355. tailtrail/schemas/workflow-context-receipt.schema.json +5 -0
  356. tailtrail/schemas/workflow-correction-packet.schema.json +10 -0
  357. tailtrail/schemas/workflow-dashboard.schema.json +1 -0
  358. tailtrail/schemas/workflow-denial-audit.schema.json +22 -0
  359. tailtrail/schemas/workflow-enterprise-access-review.schema.json +10 -0
  360. tailtrail/schemas/workflow-enterprise-backup.schema.json +11 -0
  361. tailtrail/schemas/workflow-enterprise-binding.schema.json +13 -0
  362. tailtrail/schemas/workflow-enterprise-conformance.schema.json +10 -0
  363. tailtrail/schemas/workflow-enterprise-entry.schema.json +10 -0
  364. tailtrail/schemas/workflow-enterprise-event.schema.json +13 -0
  365. tailtrail/schemas/workflow-enterprise-lease.schema.json +11 -0
  366. tailtrail/schemas/workflow-enterprise-link.schema.json +11 -0
  367. tailtrail/schemas/workflow-enterprise-migration.schema.json +10 -0
  368. tailtrail/schemas/workflow-enterprise-observability.schema.json +11 -0
  369. tailtrail/schemas/workflow-enterprise-policy.schema.json +48 -0
  370. tailtrail/schemas/workflow-enterprise-replay.schema.json +10 -0
  371. tailtrail/schemas/workflow-enterprise-restore-validation.schema.json +9 -0
  372. tailtrail/schemas/workflow-enterprise-support-bundle-verification.schema.json +8 -0
  373. tailtrail/schemas/workflow-enterprise-support-bundle.schema.json +9 -0
  374. tailtrail/schemas/workflow-evaluation-event.schema.json +1 -0
  375. tailtrail/schemas/workflow-evidence-record.schema.json +5 -0
  376. tailtrail/schemas/workflow-evidence.schema.json +1 -0
  377. tailtrail/schemas/workflow-freshness-assessment.schema.json +11 -0
  378. tailtrail/schemas/workflow-instance.schema.json +5 -0
  379. tailtrail/schemas/workflow-learning-link.schema.json +1 -0
  380. tailtrail/schemas/workflow-meta-harness-signal.schema.json +1 -0
  381. tailtrail/schemas/workflow-operational-checkpoint.schema.json +19 -0
  382. tailtrail/schemas/workflow-ownership.schema.json +22 -0
  383. tailtrail/schemas/workflow-preapproval.schema.json +13 -0
  384. tailtrail/schemas/workflow-projection.schema.json +5 -0
  385. tailtrail/schemas/workflow-real-run-proof.schema.json +18 -0
  386. tailtrail/schemas/workflow-release-gate.schema.json +12 -0
  387. tailtrail/schemas/workflow-release-scenario.schema.json +15 -0
  388. tailtrail/schemas/workflow-retention-cleanup.schema.json +17 -0
  389. tailtrail/schemas/workflow-retention-plan.schema.json +18 -0
  390. tailtrail/schemas/workflow-retention-policy.schema.json +19 -0
  391. tailtrail/schemas/workflow-retirement-decision.schema.json +11 -0
  392. tailtrail/schemas/workflow-retry-attempts.schema.json +12 -0
  393. tailtrail/schemas/workflow-risk-authority.schema.json +16 -0
  394. tailtrail/schemas/workflow-runtime-event.schema.json +5 -0
  395. tailtrail/schemas/workflow-stage-approvals.schema.json +15 -0
  396. tailtrail/schemas/workflow-stage-result.schema.json +50 -0
  397. tailtrail/schemas/workflow-stage.schema.json +5 -0
  398. tailtrail/schemas/workflow-storage-event.schema.json +5 -0
  399. tailtrail/schemas/workflow-task-scope.schema.json +5 -0
  400. tailtrail/schemas/workflow-template-execution.schema.json +21 -0
  401. tailtrail/schemas/workflow-token-telemetry.schema.json +1 -0
  402. tailtrail/schemas/workflow-transition-table-v1.json +5 -0
  403. tailtrail/schemas/workflow-transition.schema.json +5 -0
  404. tailtrail/scripts/__init__.py +5 -0
  405. tailtrail/scripts/_resume_check_extractor.py +33 -0
  406. tailtrail/scripts/adoption-validation.py +777 -0
  407. tailtrail/scripts/advanced-runtime.py +53 -0
  408. tailtrail/scripts/aidlc-check.py +94 -0
  409. tailtrail/scripts/aidlc-init.py +116 -0
  410. tailtrail/scripts/aidlc-official-bridge.py +214 -0
  411. tailtrail/scripts/aidlc-official-detect.py +216 -0
  412. tailtrail/scripts/aidlc-official-host.py +188 -0
  413. tailtrail/scripts/aidlc-official-install.py +172 -0
  414. tailtrail/scripts/aidlc-requirements.py +285 -0
  415. tailtrail/scripts/analyze-benchmark.py +397 -0
  416. tailtrail/scripts/architecture-fitness.py +74 -0
  417. tailtrail/scripts/architecture_planning.py +355 -0
  418. tailtrail/scripts/ast-map.py +1208 -0
  419. tailtrail/scripts/behavior-harness.py +34 -0
  420. tailtrail/scripts/behaviour_planning.py +575 -0
  421. tailtrail/scripts/benchmark-tailtrail.py +210 -0
  422. tailtrail/scripts/bootstrap-snapshot.py +531 -0
  423. tailtrail/scripts/cache-summary.py +140 -0
  424. tailtrail/scripts/capture_hooks.py +171 -0
  425. tailtrail/scripts/change-intent-anchor.py +188 -0
  426. tailtrail/scripts/check-tailtrail.py +957 -0
  427. tailtrail/scripts/ci-evidence-ingest.py +32 -0
  428. tailtrail/scripts/ci-summary.py +149 -0
  429. tailtrail/scripts/closure-close.py +192 -0
  430. tailtrail/scripts/closure-contract.py +220 -0
  431. tailtrail/scripts/closure-correction.py +172 -0
  432. tailtrail/scripts/closure-evaluation.py +95 -0
  433. tailtrail/scripts/closure-finalizer.py +354 -0
  434. tailtrail/scripts/closure-learning.py +238 -0
  435. tailtrail/scripts/closure-recorder.py +213 -0
  436. tailtrail/scripts/code-graph-mapper.py +1638 -0
  437. tailtrail/scripts/code_graph_cache.py +671 -0
  438. tailtrail/scripts/code_graph_inventory.py +54 -0
  439. tailtrail/scripts/code_relationships.py +699 -0
  440. tailtrail/scripts/commit_prompt.py +230 -0
  441. tailtrail/scripts/completion-report.py +1389 -0
  442. tailtrail/scripts/completion-review.py +36 -0
  443. tailtrail/scripts/context-continuity.py +405 -0
  444. tailtrail/scripts/context-receipt.py +10 -0
  445. tailtrail/scripts/context_receipt.py +396 -0
  446. tailtrail/scripts/cross-repo-reference.py +355 -0
  447. tailtrail/scripts/debug-completion.py +224 -0
  448. tailtrail/scripts/debug-correction.py +234 -0
  449. tailtrail/scripts/debug-evaluation.py +170 -0
  450. tailtrail/scripts/debug-governance.py +82 -0
  451. tailtrail/scripts/debug-harness-convergence.py +174 -0
  452. tailtrail/scripts/debug-host-diagnosis.py +924 -0
  453. tailtrail/scripts/debug-hypothesis.py +538 -0
  454. tailtrail/scripts/debug-intake.py +199 -0
  455. tailtrail/scripts/debug-orientation.py +203 -0
  456. tailtrail/scripts/debug-preflight.py +1346 -0
  457. tailtrail/scripts/debug-privacy.py +43 -0
  458. tailtrail/scripts/debug-reproduction.py +801 -0
  459. tailtrail/scripts/delivery-orchestrator.py +30 -0
  460. tailtrail/scripts/dependency-decision.py +168 -0
  461. tailtrail/scripts/drift_analysis.py +450 -0
  462. tailtrail/scripts/efficacy-benchmark.py +394 -0
  463. tailtrail/scripts/efficacy-run.py +849 -0
  464. tailtrail/scripts/enterprise-conformance.py +193 -0
  465. tailtrail/scripts/enterprise-readiness.py +795 -0
  466. tailtrail/scripts/enterprise-target-policy.py +162 -0
  467. tailtrail/scripts/evaluation-audit.py +389 -0
  468. tailtrail/scripts/evaluation-dataset.py +142 -0
  469. tailtrail/scripts/evaluation-harness.py +759 -0
  470. tailtrail/scripts/evidence-metrics.py +18 -0
  471. tailtrail/scripts/evidence-tiers.py +57 -0
  472. tailtrail/scripts/execution-evidence.py +340 -0
  473. tailtrail/scripts/execution-failure.py +597 -0
  474. tailtrail/scripts/expand-intent.py +876 -0
  475. tailtrail/scripts/export-release.py +116 -0
  476. tailtrail/scripts/first-run.py +103 -0
  477. tailtrail/scripts/flaky-test-tracker.py +22 -0
  478. tailtrail/scripts/git-readiness.py +54 -0
  479. tailtrail/scripts/graph-learning.py +576 -0
  480. tailtrail/scripts/graph_builder.py +223 -0
  481. tailtrail/scripts/guardrail-check.py +558 -0
  482. tailtrail/scripts/guardrail-precision.py +247 -0
  483. tailtrail/scripts/harness-checkpoint.py +111 -0
  484. tailtrail/scripts/harness-controls.py +65 -0
  485. tailtrail/scripts/harness-convergence.py +34 -0
  486. tailtrail/scripts/harness-feedback.py +28 -0
  487. tailtrail/scripts/harness-review.py +1130 -0
  488. tailtrail/scripts/harness-template.py +31 -0
  489. tailtrail/scripts/higher-tier-testing.py +107 -0
  490. tailtrail/scripts/host-adapter-conformance.py +321 -0
  491. tailtrail/scripts/host-decision.py +142 -0
  492. tailtrail/scripts/host-reply-validate.py +185 -0
  493. tailtrail/scripts/host-runtime-conformance.py +359 -0
  494. tailtrail/scripts/host-workspace-adapter.py +120 -0
  495. tailtrail/scripts/install-copilot.py +923 -0
  496. tailtrail/scripts/install-launcher.py +194 -0
  497. tailtrail/scripts/install-local.py +461 -0
  498. tailtrail/scripts/install_surfaces.py +214 -0
  499. tailtrail/scripts/installation-qualification.py +162 -0
  500. tailtrail/scripts/installer.py +19 -0
  501. tailtrail/scripts/learning-agent.py +697 -0
  502. tailtrail/scripts/learning-calibration.py +624 -0
  503. tailtrail/scripts/learning-governance.py +550 -0
  504. tailtrail/scripts/learning-refresh.py +1020 -0
  505. tailtrail/scripts/learning-retrieval.py +506 -0
  506. tailtrail/scripts/learning-review.py +418 -0
  507. tailtrail/scripts/learning-use-receipt.py +784 -0
  508. tailtrail/scripts/learning-v3.py +868 -0
  509. tailtrail/scripts/learnings.py +102 -0
  510. tailtrail/scripts/maintainability-harness.py +313 -0
  511. tailtrail/scripts/maintainability_planning.py +218 -0
  512. tailtrail/scripts/mcp-server.py +2101 -0
  513. tailtrail/scripts/meta-harness-analyze.py +1038 -0
  514. tailtrail/scripts/meta-harness-propose.py +640 -0
  515. tailtrail/scripts/metrics_extractor.py +862 -0
  516. tailtrail/scripts/module_resolution.py +365 -0
  517. tailtrail/scripts/navigator-installed-release-proof.py +502 -0
  518. tailtrail/scripts/navigator-scope-calibration.py +790 -0
  519. tailtrail/scripts/navigator-scope-release.py +497 -0
  520. tailtrail/scripts/navigator-scope.py +86 -0
  521. tailtrail/scripts/navigator.py +2253 -0
  522. tailtrail/scripts/navigator_core.py +809 -0
  523. tailtrail/scripts/navigator_discovery.py +368 -0
  524. tailtrail/scripts/navigator_graph_lifecycle.py +409 -0
  525. tailtrail/scripts/navigator_render.py +664 -0
  526. tailtrail/scripts/navigator_scope.py +4581 -0
  527. tailtrail/scripts/official-aidlc-checkpoint.py +253 -0
  528. tailtrail/scripts/official-aidlc-requirements.py +264 -0
  529. tailtrail/scripts/official-aidlc-runtime.py +309 -0
  530. tailtrail/scripts/official-aidlc-sanitize.py +265 -0
  531. tailtrail/scripts/official-aidlc-state.py +266 -0
  532. tailtrail/scripts/orchestration/__init__.py +2 -0
  533. tailtrail/scripts/orchestration/run_resolution.py +65 -0
  534. tailtrail/scripts/orchestration_facade.py +201 -0
  535. tailtrail/scripts/outcome-telemetry.py +348 -0
  536. tailtrail/scripts/package-release-proof.py +90 -0
  537. tailtrail/scripts/phase8-advanced.py +75 -0
  538. tailtrail/scripts/pipeline_judge.py +73 -0
  539. tailtrail/scripts/pipeline_manager.py +107 -0
  540. tailtrail/scripts/pipeline_orchestrator.py +202 -0
  541. tailtrail/scripts/plan_render.py +337 -0
  542. tailtrail/scripts/planning-aidlc-question.py +206 -0
  543. tailtrail/scripts/planning-discussion.py +778 -0
  544. tailtrail/scripts/planning-feature-controls.py +163 -0
  545. tailtrail/scripts/planning-investigation.py +327 -0
  546. tailtrail/scripts/planning-revision.py +1056 -0
  547. tailtrail/scripts/planning_lock.py +2258 -0
  548. tailtrail/scripts/platform-qualification.py +222 -0
  549. tailtrail/scripts/policy-check.py +244 -0
  550. tailtrail/scripts/presentation.py +178 -0
  551. tailtrail/scripts/product-maintainability.py +123 -0
  552. tailtrail/scripts/product-maturity.py +885 -0
  553. tailtrail/scripts/program-checkpoint.py +23 -0
  554. tailtrail/scripts/program-plan.py +51 -0
  555. tailtrail/scripts/prompt-profile.py +10 -0
  556. tailtrail/scripts/prompt_profile.py +120 -0
  557. tailtrail/scripts/prune-context.py +123 -0
  558. tailtrail/scripts/public-benchmark.py +229 -0
  559. tailtrail/scripts/public-doc-audit.py +88 -0
  560. tailtrail/scripts/quality-loop.py +535 -0
  561. tailtrail/scripts/quality-run.py +212 -0
  562. tailtrail/scripts/quality-scan.py +166 -0
  563. tailtrail/scripts/question-orchestrator.py +320 -0
  564. tailtrail/scripts/real-evaluation-portfolio.py +299 -0
  565. tailtrail/scripts/recovery-diagnostician.py +27 -0
  566. tailtrail/scripts/recovery-reconcile.py +144 -0
  567. tailtrail/scripts/registry-drift.py +249 -0
  568. tailtrail/scripts/release-check.py +97 -0
  569. tailtrail/scripts/release-confidence.py +56 -0
  570. tailtrail/scripts/release-info.py +41 -0
  571. tailtrail/scripts/release-publication.py +75 -0
  572. tailtrail/scripts/release_manifest.py +126 -0
  573. tailtrail/scripts/repository-enforcement.py +517 -0
  574. tailtrail/scripts/requirement-completion.py +36 -0
  575. tailtrail/scripts/requirement-impact-map.py +52 -0
  576. tailtrail/scripts/requirement-interpretation-draft.py +336 -0
  577. tailtrail/scripts/requirement-interpretation-scaffold.py +33 -0
  578. tailtrail/scripts/requirement-recovery-manifest.py +89 -0
  579. tailtrail/scripts/requirement_discovery.py +1307 -0
  580. tailtrail/scripts/requirement_evidence.py +218 -0
  581. tailtrail/scripts/requirement_intake.py +691 -0
  582. tailtrail/scripts/review-graph.py +438 -0
  583. tailtrail/scripts/review-run.py +637 -0
  584. tailtrail/scripts/route-context.py +383 -0
  585. tailtrail/scripts/run-ledger.py +331 -0
  586. tailtrail/scripts/run-tests.py +396 -0
  587. tailtrail/scripts/scanner-graph-overlay.py +838 -0
  588. tailtrail/scripts/session-control.py +84 -0
  589. tailtrail/scripts/session_control.py +424 -0
  590. tailtrail/scripts/setup-scan.py +506 -0
  591. tailtrail/scripts/shell_quote.py +22 -0
  592. tailtrail/scripts/slice-context.py +112 -0
  593. tailtrail/scripts/smoke-test.py +110 -0
  594. tailtrail/scripts/sonar-summary.py +130 -0
  595. tailtrail/scripts/spec-kit-amendment.py +210 -0
  596. tailtrail/scripts/spec-kit-bridge.py +108 -0
  597. tailtrail/scripts/spec-kit-ci-gate.py +42 -0
  598. tailtrail/scripts/spec-kit-converge.py +107 -0
  599. tailtrail/scripts/spec-kit-detect.py +167 -0
  600. tailtrail/scripts/spec-kit-evidence.py +126 -0
  601. tailtrail/scripts/spec-kit-import.py +177 -0
  602. tailtrail/scripts/spec-kit-integration.py +33 -0
  603. tailtrail/scripts/spec-kit-observability.py +90 -0
  604. tailtrail/scripts/spec-kit-policy.py +116 -0
  605. tailtrail/scripts/spec-kit-slices.py +140 -0
  606. tailtrail/scripts/start_posture.py +383 -0
  607. tailtrail/scripts/summarize-output.py +120 -0
  608. tailtrail/scripts/supply-chain.py +211 -0
  609. tailtrail/scripts/sync-adapters.py +115 -0
  610. tailtrail/scripts/sync-governance.py +315 -0
  611. tailtrail/scripts/tailtrail-registry.py +619 -0
  612. tailtrail/scripts/tailtrail-report.py +1225 -0
  613. tailtrail/scripts/tailtrail.py +1495 -0
  614. tailtrail/scripts/target_workspace.py +733 -0
  615. tailtrail/scripts/task-next.py +289 -0
  616. tailtrail/scripts/task-recovery-boundary.py +149 -0
  617. tailtrail/scripts/task-recovery.py +90 -0
  618. tailtrail/scripts/task-start.py +7004 -0
  619. tailtrail/scripts/team-init.py +104 -0
  620. tailtrail/scripts/test-precision.py +530 -0
  621. tailtrail/scripts/test-tier-selector.py +27 -0
  622. tailtrail/scripts/test_scope.py +18 -0
  623. tailtrail/scripts/testing-profile.py +32 -0
  624. tailtrail/scripts/token-auto.py +225 -0
  625. tailtrail/scripts/token-budget-coach.py +10 -0
  626. tailtrail/scripts/token-harness-bridge.py +471 -0
  627. tailtrail/scripts/token-harness-ledger.py +338 -0
  628. tailtrail/scripts/token-harness-proof.py +326 -0
  629. tailtrail/scripts/token-harness-reduce.py +513 -0
  630. tailtrail/scripts/token-harness.py +414 -0
  631. tailtrail/scripts/token-savings.py +484 -0
  632. tailtrail/scripts/token-telemetry.py +10 -0
  633. tailtrail/scripts/token_budget_coach.py +410 -0
  634. tailtrail/scripts/token_telemetry.py +461 -0
  635. tailtrail/scripts/ui-consistency.py +129 -0
  636. tailtrail/scripts/ui_planning.py +438 -0
  637. tailtrail/scripts/update-copilot.py +310 -0
  638. tailtrail/scripts/update-tailtrail.py +59 -0
  639. tailtrail/scripts/upgrade-tailtrail.py +15 -0
  640. tailtrail/scripts/validation-receipt.py +21 -0
  641. tailtrail/scripts/validation-summary.py +128 -0
  642. tailtrail/scripts/visual_requirement.py +374 -0
  643. tailtrail/scripts/vulnerability-run.py +200 -0
  644. tailtrail/scripts/vulnerability-scan.py +156 -0
  645. tailtrail/scripts/vulnerability-summary.py +556 -0
  646. tailtrail/scripts/workflow-dashboard.py +165 -0
  647. tailtrail/scripts/workflow-runtime.py +327 -0
  648. tailtrail/scripts/workflow_runtime/__init__.py +6 -0
  649. tailtrail/scripts/workflow_runtime/adapter_catalog.py +135 -0
  650. tailtrail/scripts/workflow_runtime/adapters.py +165 -0
  651. tailtrail/scripts/workflow_runtime/approvals.py +282 -0
  652. tailtrail/scripts/workflow_runtime/assurance.py +59 -0
  653. tailtrail/scripts/workflow_runtime/capabilities.py +266 -0
  654. tailtrail/scripts/workflow_runtime/ci.py +163 -0
  655. tailtrail/scripts/workflow_runtime/compiler.py +289 -0
  656. tailtrail/scripts/workflow_runtime/context.py +110 -0
  657. tailtrail/scripts/workflow_runtime/contracts.py +193 -0
  658. tailtrail/scripts/workflow_runtime/correction.py +88 -0
  659. tailtrail/scripts/workflow_runtime/denials.py +69 -0
  660. tailtrail/scripts/workflow_runtime/enterprise.py +160 -0
  661. tailtrail/scripts/workflow_runtime/enterprise_recovery.py +155 -0
  662. tailtrail/scripts/workflow_runtime/enterprise_transport.py +140 -0
  663. tailtrail/scripts/workflow_runtime/evidence.py +272 -0
  664. tailtrail/scripts/workflow_runtime/evidence_completion.py +75 -0
  665. tailtrail/scripts/workflow_runtime/executor.py +229 -0
  666. tailtrail/scripts/workflow_runtime/freshness.py +204 -0
  667. tailtrail/scripts/workflow_runtime/mcp_bridge.py +239 -0
  668. tailtrail/scripts/workflow_runtime/outcomes.py +87 -0
  669. tailtrail/scripts/workflow_runtime/ownership.py +224 -0
  670. tailtrail/scripts/workflow_runtime/projection.py +127 -0
  671. tailtrail/scripts/workflow_runtime/reason_codes.py +50 -0
  672. tailtrail/scripts/workflow_runtime/release.py +172 -0
  673. tailtrail/scripts/workflow_runtime/resume.py +29 -0
  674. tailtrail/scripts/workflow_runtime/retention.py +68 -0
  675. tailtrail/scripts/workflow_runtime/retry.py +139 -0
  676. tailtrail/scripts/workflow_runtime/stage_results.py +116 -0
  677. tailtrail/scripts/workflow_runtime/start_integration.py +273 -0
  678. tailtrail/scripts/workflow_runtime/state.py +240 -0
  679. tailtrail/scripts/workflow_runtime/storage.py +240 -0
  680. tailtrail/scripts/workflow_runtime/task_scope.py +220 -0
  681. tailtrail/scripts/workflow_runtime/templates.py +134 -0
  682. tailtrail/scripts/workflow_runtime/transitions.py +129 -0
  683. tailtrail/scripts/workflow_runtime/vertical.py +91 -0
  684. tailtrail/scripts/write_guardian.py +125 -0
  685. tailtrail/skills/tailtrail/SKILL.md +48 -0
  686. tailtrail/skills/tailtrail-review/SKILL.md +92 -0
  687. tailtrail/skills/tailtrail-start/SKILL.md +32 -0
  688. tailtrail/tailtrail/__init__.py +18 -0
  689. tailtrail/tailtrail/__main__.py +7 -0
  690. tailtrail/tailtrail/api.py +32 -0
  691. tailtrail/tailtrail/cli.py +118 -0
  692. tailtrail/tailtrail/errors.py +13 -0
  693. tailtrail/tailtrail/hosts/__init__.py +6 -0
  694. tailtrail/tailtrail/hosts/contracts.py +169 -0
  695. tailtrail/tailtrail/hosts/diagnostics.py +86 -0
  696. tailtrail/tailtrail/install/__init__.py +6 -0
  697. tailtrail/tailtrail/install/catalog.py +79 -0
  698. tailtrail/tailtrail/install/cli.py +178 -0
  699. tailtrail/tailtrail/install/engine.py +610 -0
  700. tailtrail/tailtrail/install/files.py +88 -0
  701. tailtrail/tailtrail/install/host_launcher.py +42 -0
  702. tailtrail/tailtrail/install/models.py +82 -0
  703. tailtrail/tailtrail/install/pathfix.py +109 -0
  704. tailtrail/tailtrail/kernel.py +51 -0
  705. tailtrail/tailtrail/migrations/__init__.py +20 -0
  706. tailtrail/tailtrail/resources.py +71 -0
  707. tailtrail/tailtrail/upgrade.py +147 -0
  708. tailtrail/tailtrail-enforcement-baseline.json +7 -0
  709. tailtrail/tailtrail-enforcement-policy.json +24 -0
  710. tailtrail/tailtrail-enforcement-suppressions.json +87 -0
  711. tailtrail/tailtrail-meta/document-owners-v1.json +14 -0
  712. tailtrail/tailtrail-meta/maintainability-inventory-v1.json +2022 -0
  713. tailtrail/tailtrail-meta/navigator-scope-baseline-v1.json +208 -0
  714. tailtrail/tailtrail-meta/product-maturity-baseline-v1.json +1632 -0
  715. tailtrail/tailtrail-meta/product-maturity-learning-inventory-v1.json +784 -0
  716. tailtrail/tailtrail-meta/product-maturity-policy-v1.json +162 -0
  717. tailtrail/tailtrail-policy.example.md +148 -0
  718. tailtrail/tailtrail-registry.json +3319 -0
  719. tailtrail/tailtrail-registry.schema.json +234 -0
  720. tailtrail/templates/aidlc-audit.md +21 -0
  721. tailtrail/templates/aidlc-state.md +33 -0
  722. tailtrail/templates/behavior-analysis.md +44 -0
  723. tailtrail/templates/benchmark-result.md +23 -0
  724. tailtrail/templates/change-brief.md +29 -0
  725. tailtrail/templates/change-intent-anchor.md +15 -0
  726. tailtrail/templates/ci-summary.md +36 -0
  727. tailtrail/templates/code-graph-map.md +49 -0
  728. tailtrail/templates/command-result.md +26 -0
  729. tailtrail/templates/context-brief.md +25 -0
  730. tailtrail/templates/context-continuity-advisory-proposal.example.json +10 -0
  731. tailtrail/templates/context-continuity-policy.example.json +18 -0
  732. tailtrail/templates/context-continuity-selector-policy.example.json +12 -0
  733. tailtrail/templates/dependency-decision.example.json +15 -0
  734. tailtrail/templates/diff-handoff.md +29 -0
  735. tailtrail/templates/efficacy-result.md +26 -0
  736. tailtrail/templates/enterprise-report.md +79 -0
  737. tailtrail/templates/enterprise-target-policy.example.json +20 -0
  738. tailtrail/templates/evaluation-result.md +30 -0
  739. tailtrail/templates/evidence-note.md +25 -0
  740. tailtrail/templates/graph-learning.md +31 -0
  741. tailtrail/templates/guardrail-finding.md +18 -0
  742. tailtrail/templates/harness-checkpoint.md +12 -0
  743. tailtrail/templates/harness-feedback.md +13 -0
  744. tailtrail/templates/harness-templates.example.json +11 -0
  745. tailtrail/templates/impact-brief.md +23 -0
  746. tailtrail/templates/implementation-plan.md +23 -0
  747. tailtrail/templates/intent-overrides.json +23 -0
  748. tailtrail/templates/learning-refresh-report.md +30 -0
  749. tailtrail/templates/learning-signal.md +27 -0
  750. tailtrail/templates/learnings.md +40 -0
  751. tailtrail/templates/meta-harness-proposal.md +34 -0
  752. tailtrail/templates/official-aidlc-pack.manifest.example.json +23 -0
  753. tailtrail/templates/operations-notes.md +23 -0
  754. tailtrail/templates/outcome-event.md +29 -0
  755. tailtrail/templates/policy-overrides.json +47 -0
  756. tailtrail/templates/quality-event.md +37 -0
  757. tailtrail/templates/quality-review.md +42 -0
  758. tailtrail/templates/quality-run.md +27 -0
  759. tailtrail/templates/quality-scan.md +23 -0
  760. tailtrail/templates/question-file.md +28 -0
  761. tailtrail/templates/requirements.md +21 -0
  762. tailtrail/templates/review-finding.md +11 -0
  763. tailtrail/templates/review-graph.md +34 -0
  764. tailtrail/templates/review-result.md +50 -0
  765. tailtrail/templates/risk-callout.md +23 -0
  766. tailtrail/templates/router-decision.md +25 -0
  767. tailtrail/templates/sonar-summary.md +36 -0
  768. tailtrail/templates/spec-kit-bridge-policy.example.json +32 -0
  769. tailtrail/templates/stage-gate.md +25 -0
  770. tailtrail/templates/tailtrail-gitignore.md +80 -0
  771. tailtrail/templates/testing-profile.example.yml +7 -0
  772. tailtrail/templates/token-savings-report.md +21 -0
  773. tailtrail/templates/token-usage-example.jsonl +2 -0
  774. tailtrail/templates/tool-summary.md +23 -0
  775. tailtrail/templates/validation-handoff.md +23 -0
  776. tailtrail/templates/value-report.csv +1 -0
  777. tailtrail/templates/vulnerability-remediation.md +44 -0
  778. tailtrail/templates/vulnerability-summary.md +38 -0
  779. tailtrail/templates/workflow-plan.md +23 -0
  780. tailtrail/templates/workflow-recommendation.md +74 -0
  781. tailtrail/upgrade.py +147 -0
  782. tailtrail-1.0.0.dist-info/METADATA +236 -0
  783. tailtrail-1.0.0.dist-info/RECORD +788 -0
  784. tailtrail-1.0.0.dist-info/WHEEL +5 -0
  785. tailtrail-1.0.0.dist-info/entry_points.txt +2 -0
  786. tailtrail-1.0.0.dist-info/licenses/LICENSE +64 -0
  787. tailtrail-1.0.0.dist-info/licenses/NOTICE.md +10 -0
  788. tailtrail-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,34 @@
1
+ # TailTrail Start
2
+
3
+ This command is activated only by the **current user message**. A prior chat
4
+ mention, pasted **error output**, log, stack trace, or follow-up debugging
5
+ request must not create a **new Planning Lock**. Reuse an awaiting-approval run
6
+ ID; continue an approved in-scope run without another Start approval.
7
+
8
+ Run the atomic TailTrail Start flow for: `$ARGUMENTS`
9
+
10
+ Create one persisted Planning Lock and return the complete TailTrail Start
11
+ Report with its run ID. If the request is hands-free or end-to-end, include the
12
+ program requirements, dependency order, first active slice, and approval gate.
13
+ Copy the complete Start Report verbatim and stop; it must appear in the normal
14
+ assistant response, outside any collapsible terminal/tool-result panel. Do not
15
+ append an implementation plan, steps, analysis, or guidance.
16
+ Exception for a saved Standard or Full official-AIDLC stage with
17
+ `official-aidlc-host-generation-required`: read its pinned official
18
+ Requirements Analysis and question-format rules, generate and record the
19
+ official questions/options with TailTrail advisory recommendation and reasoning,
20
+ then return that same run's complete Official AI-DLC Requirements report. Do this in the same turn: for an official run, never end the turn at the Start Report — read the rules, generate and record the questions, and return the Requirements report before stopping. Do not
21
+ inspect source or implement work.
22
+ Do not implement, edit source, run tests/scanners/Terraform, or mutate Git.
23
+
24
+ For an awaiting-approval AIDLC run, use `tailtrail planning aidlc-question
25
+ clarify --run-id <id> --question-id Q5` when the user asks to explain or
26
+ rephrase a numbered question. Explain only from saved AIDLC evidence and make
27
+ no plan change. If the user says the question, options, or reasoning is wrong,
28
+ create a sanitized `aidlc-question challenge`; the active AIDLC authority must
29
+ generate the replacement, then TailTrail records it and requires explicit
30
+ `aidlc-question approve`. Standard/Full replacements must follow the pinned
31
+ official AIDLC Requirements rules.
32
+
33
+ ---
34
+ _TailTrail instructions revision: `2f9de47578c1` — quote this line if asked whether instructions are current._
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "tailtrail",
3
+ "version": "1.0.0",
4
+ "description": "TailTrail local development guidance for Codex with native plugin skills and review prompts.",
5
+ "license": "Apache-2.0",
6
+ "skills": "./skills/",
7
+ "interface": {
8
+ "defaultPrompt": [
9
+ "You are TailTrail, a Codex plugin for local development guidance and review.",
10
+ "Use @tailtrail for implementation tasks and @tailtrail-review for review tasks.",
11
+ "Keep changes small, reuse existing project patterns, preserve safeguards, and use strict mode for reviews."
12
+ ]
13
+ }
14
+ }
@@ -0,0 +1,49 @@
1
+ ---
2
+ description: TailTrail guidance for small, reuse-first local development changes.
3
+ globs:
4
+ - "**/*"
5
+ alwaysApply: true
6
+ ---
7
+
8
+ # TailTrail For Cursor
9
+
10
+ Use TailTrail when editing, reviewing, refactoring, or planning code in this workspace.
11
+
12
+ ## Core — follow exactly, do not skim
13
+
14
+ - Navigator-first workflow for non-trivial tasks; ask for approval before implementation. `tailtrail start` is planning-only: never implement, edit, run project/scanner/Terraform/Git commands after planning without a separate explicit `approve` (`looks good` / `go ahead` never approve).
15
+ - MCP first (default path): if the TailTrail MCP server is configured, call the single `tailtrail_start` tool once with `approved: true` — one atomic call, do not split lock/report, nothing to retype. Else if this host can run project commands, run `tailtrail start "<goal>"` (CLI fallback). Else state the plan is not persisted and give the exact command. Return the tool/CLI output as the complete Start Report verbatim (starts `# TailTrail Start Plan`, includes the run ID) outside any collapsible terminal/tool-result panel, then stop. Never synthesize a substitute plan or task list. Verify `Planning Lock`, `Scope`, `Requirements`, `Selected TailTrail features`, `Plan`, `Focused validation`, `Approval`; the selected-features table is mandatory — never replace it with `Next step`. Preserve fences, table pipes, backticks, spacing; never retype, normalize, or HTML-escape. If a section is missing, paste stdout again. For official runs, never end the turn at the Start Report: generate and record questions, then return the Requirements report in the same turn.
16
+ - Before sending any Start, closure, or hello reply: verify the run ID, `text` fence, and required headings are all present; if anything is missing, paste the stdout again instead of sending a partial reply.
17
+ - Current-turn Start boundary: evaluate Start only from the current user message. A prior mention, pasted error output, log, stack trace, or follow-up is not a new Planning Lock. Reuse an awaiting-approval run ID; with no active run and no explicit Start, use guide routing.
18
+ - Natural TailTrail requests and read-only questions (tell me / what are / list / describe / explain / graph / summary, no change verb): run `tailtrail intent "<words>"` first, follow its briefing, use the guide flow, and never create a Planning Lock. `looks good`, `go ahead`, and similar wording never approve; approval requires an explicit `approve`. `tailtrail intent resolve "<words>"` / MCP `intent_resolve` is read-only and grants no authority.
19
+ - Requirement interpretation is exact-goal-bound: send no private reasoning. Pass artifacts via `requirement_artifact` (SHA-256 bound) before scope; bind clauses with source IDs, keep quoted literals in `quoted`, build requirements from outcome / constraint / scope only, keep questions open. An attached image the host can see but has not bound is a material open question, not a silent drop: include what must be specified from it as a `question` clause. Missing or unreadable artifacts stop before scope and Planning Lock.
20
+ - Scope evidence v2 host boundary: consume the fingerprint plus owner / inspection / proof / excluded roles; never reclassify paths or promote unresolved scope. Scope work happens before Planning Lock persistence; unresolved Build scope creates no lock.
21
+ - Requirement-before-scope host boundary: consume MCP `requirement_route` directly (`deferred` forbids graph work and Planning Lock creation; only `eligible` permits bounded scope work). Requirement-routing negative assurance: a missing or deferred route combined with scope or run authority is a conformance failure — report it, never reinterpret; scope availability cannot preempt requirement intake.
22
+ - Evidence-first scope: when the packet route is `requested`, return one schema-v2 proposal bound to the exact packet, decision, target, hashes, and edge IDs via `navigator_scope_proposal_record`. Invented paths, stale hash, or rejected proposals create no run.
23
+ - Interactive Plan Mode host boundary: while a plan is awaiting approval, answer only from saved planning evidence (`planning explain` / `discuss` / `revise`); never start implementation. After Debug reproduction or revision transitions, return the canonical `Next actions` and `Route to a code fix` guidance; an `awaiting-reproduction-input` request keeps hypotheses and correction blocked. See `DEBUG-HARNESS.md` for the full lifecycle.
24
+ - `tailtrail stop` is the highest-priority control; `tailtrail resume --run-id <exact-run-id>` only reattaches (never approves or advances). Rejected plan: do not inspect source, tests, scanners, or Git and do not create a new run; return the `feedback-template` blank form for the same run ID (`AIDLC Requirements mode` on second material rejection).
25
+ - Activated run: retain `execution_handoff`, obey `closure.command`; never substitute a generic summary. Lite/Off `approved-plan-auto-grant` continues internally; Standard/Full and Intent Bridge show the defensive handoff. Close with `completion-report` plus `closure finalize`, returning stdout verbatim.
26
+ - `hello tailtrail` variants: run `tailtrail hello`, return the ASCII TailTrail banner plus result verbatim as the complete response, preserve the command-emitted `text` fence, no narration, no todo/status update, never suggest `doctor` after it.
27
+ - Staleness check: when asked whether instructions are current, quote the `TailTrail instructions revision` line verbatim.
28
+ - After changes: post-change review; scanner approval before heavy commands; learnings as advisory (source / tests / CI / scanners / policy / guardrails / user win); token claims estimated unless measured telemetry; label graph/scanner evidence heuristic, local-ast, provider-backed, measured/validated; follow `tailtrail-policy.md`, never weaken safety rules.
29
+
30
+ ## Pointers — load on demand, never paste detail from memory
31
+
32
+ - Intent: `scripts/expand-intent.py` or `tailtrail intent ...`; fallback `context/intent-aliases.md` (+ `.tailtrail/intent-overrides.json`).
33
+ - Commands and flows: `TAILTRAIL-COMMANDS.md`; lifecycle: `AIDLC.md` + `aidlc-docs/aidlc-state.md`; bugs: `DEBUG-HARNESS.md`; risks: `GUARDRAILS.md` + `context/guardrail-layers.md`; deps: `DEPENDENCY-GATE.md`.
34
+ - Portable commands: quote for the host shell (POSIX single-quotes break `cmd.exe`; `list2cmdline` quoting on Windows); prefer `sys.executable -m ...` proofs that run on sh, cmd, and PowerShell.
35
+
36
+ <!-- tailtrail-governance:start -->
37
+ - Read relevant source, callers, tests, configuration, and policy before changing code.
38
+ - Reuse existing helpers, types, conventions, validation style, and project patterns before adding new abstractions.
39
+ - Prefer standard library, platform-native behavior, framework capabilities, and already-installed dependencies before adding packages.
40
+ - Make the smallest maintainable change that solves the root problem without unrelated rewrites or formatting churn.
41
+ - Preserve safeguards: authentication, authorization, validation, escaping, accessibility, data integrity, privacy, logging, auditability, error handling, data-loss prevention, and explicit user requirements.
42
+ - Do not claim tests, builds, scans, pushes, deployments, merges, or approvals succeeded unless they actually ran and succeeded.
43
+ - Preserve exact source, diffs, configs, commands, file paths, IDs, hashes, dependency names and versions, security rules, policy text, and logs when exactness affects the task.
44
+ - Token saving must not hide material facts or make validation, policy, security, dependency, or source evidence lossy.
45
+ - Use `tailtrail-policy.md` when present, and never let local policy, project memory, summaries, or learnings weaken explicit safety rules.
46
+ <!-- tailtrail-governance:end -->
47
+
48
+ ---
49
+ _TailTrail instructions revision: `9ee83a1d9d86` — quote this line if asked whether instructions are current._
@@ -0,0 +1,102 @@
1
+ ---
2
+ description: Create a persisted TailTrail Start plan without implementing work.
3
+ ---
4
+
5
+ Run the atomic TailTrail Start flow for this request:
6
+
7
+ ${input:goal:Describe the task to plan}
8
+
9
+ This prompt creates a **Planning Lock** only when the **current user message**
10
+ explicitly invokes it. A prior chat mention, pasted **error output**, log, stack
11
+ trace, or follow-up debugging request must not create a **new Planning Lock**. Reuse an
12
+ awaiting-approval run ID; continue an approved in-scope run without another
13
+ Start approval.
14
+
15
+ If the local TailTrail MCP server is configured, call the single
16
+ `tailtrail_start` tool with `approved: true` and the goal above.
17
+ Otherwise run: `{{TAILTRAIL_START_COMMAND}}` and return its output.
18
+
19
+ If the user includes `--verbose`, treat it as a TailTrail flag, not part of the
20
+ goal: pass `verbose: true` to `tailtrail_start`, or append `--verbose` to the
21
+ CLI command. The returned report must then include every verbose heading.
22
+
23
+ **The complete and only normal assistant response must be the exact Start Report
24
+ stdout (starting `# TailTrail Start Plan` and including its returned run ID). Copy the
25
+ complete Start Report verbatim outside any collapsible terminal/tool-result panel.
26
+ Stop immediately after it.
27
+ Never synthesize a substitute plan or task list. Do not write `Steps`, `in-progress`,
28
+ `Next I'll`, `shall I proceed`, or implementation/testing/PR/documentation work. If
29
+ stdout is unavailable, state only that the command report could not be copied; do not
30
+ reconstruct a plan from the goal.**
31
+
32
+ **Official AIDLC exception:** if the saved Start report has
33
+ `aidlc_requirements.state = official-aidlc-host-generation-required`, do not stop
34
+ at a local substitute. Read the pinned official Requirements Analysis and
35
+ question-format rules plus the saved Question Orchestrator context referenced by
36
+ the report. Generate only material official questions and options; include
37
+ requirement IDs, decision class and impact, known context, evidence references,
38
+ and attach a TailTrail advisory recommendation and evidence-grounded reasoning to each,
39
+ record them with `tailtrail planning official-aidlc-questions`, and return the
40
+ complete `TailTrail Official AI-DLC Requirements` report for the same run. Do this in the same turn: for an official run, never end the turn at the Start Report — read the rules, generate and record the questions, and return the Requirements report before stopping. Do not inspect project source, present inventory hypotheses as confirmed source
41
+ behavior, implement work, or claim the recommendations are
42
+ official-pack text; the user may choose any option or Other with detail.
43
+
44
+ Before sending the report, verify it includes every required heading: `Planning Lock`,
45
+ `Scope`, `Requirements`, `Selected TailTrail features`, `Plan`, `Focused validation`,
46
+ and `Approval`. The selected-features table is mandatory. Do not shorten, rename, or
47
+ replace it with `Next step`; paste the CLI stdout again if any section is missing.
48
+
49
+ If the request includes `--verbose`, return the full CLI verbose report verbatim.
50
+ Verify it includes `Planning Lock`, `Start Here`, `Navigator Decision`, `Selected
51
+ TailTrail features`, `Deferred TailTrail features`, `Guided delivery`, `Validation`,
52
+ `Evidence posture`, and `Approval`. Never replace those sections with a summary.
53
+
54
+ For `hands-free` or `end-to-end` work, the Program Delivery plan is part of
55
+ the Start Report itself — do not generate a separate one.
56
+ If the user rejects or declines this awaiting-approval plan, do **not** inspect
57
+ project files, offer inspection, run tests/scanners, edit source, run Git, or
58
+ create another Start run. Read only the saved Planning Lock and Start report,
59
+ then run `tailtrail planning feedback-template --run-id <active-run-id>` and
60
+ return its blank feedback form. Never invent a rejection decision or comment.
61
+ The user may review every requirement with an `approve` or `reject — <reason>`
62
+ decision, say `Reject all — <reason>`, or say `Use AIDLC Requirements mode`.
63
+ For AIDLC, run `tailtrail planning aidlc-cycle --run-id <active-run-id>`
64
+ and return its complete `TailTrail AIDLC Requirements` report, including the
65
+ current requirement boundary, focused questions, and next response format.
66
+ Keep the same run ID.
67
+ On the first material rejection, ask targeted questions or offer AIDLC
68
+ Requirements mode; on the second, use AIDLC Requirements mode before another
69
+ material proposal.
70
+
71
+ When the user answers an active AIDLC Requirements report, record every answer
72
+ with `tailtrail planning aidlc-cycle --run-id <active-run-id> --answers '<json>'`
73
+ and return the resulting revised boundary for approval. When the user approves
74
+ that boundary, run `tailtrail planning aidlc-cycle --run-id <active-run-id>
75
+ --approved` and retain the internal Execution Handoff. For Lite/Off
76
+ `approved-plan-auto-grant`, continue safe implementation immediately without
77
+ returning the handoff as a stopping response. Standard/Full and Intent Bridge
78
+ retain the visible defensive handoff and material gate.
79
+
80
+ On Windows native shells, use `--answers-base64 <base64-utf8-json>` in place of
81
+ `--answers` so native argument quoting cannot corrupt the JSON.
82
+
83
+ After the user has approved this run and implementation has completed, run
84
+ `tailtrail completion-report --root . --run-id <active-run-id>` after the selected
85
+ review and validation steps. Return its complete stdout rather than a generic
86
+ implementation summary. It reports requirement delivery and TailTrail controls
87
+ separately; actual model tokens remain unavailable unless linked host/provider
88
+ telemetry identifies this exact run ID.
89
+
90
+ When plan approval returns an `execution_handoff`, retain its run ID and obey
91
+ `closure.command`. Lite/Off `approved-plan-auto-grant` consumes that handoff
92
+ internally and continues implementation; Standard/Full and Intent Bridge show
93
+ it because a material authority gate remains. Before any final response after
94
+ a source edit, execute closure and return its stdout verbatim, including the
95
+ recorded execution-authority route. A `Changes made`, `Validation`, or next-step
96
+ narrative is never a substitute for the Completion Report.
97
+
98
+ Until the Start plan or revised AIDLC boundary is explicitly approved, do not
99
+ edit source, run project commands, scanners, tests, Terraform, or Git mutations.
100
+
101
+ ---
102
+ _TailTrail instructions revision: `0940fb0fe7a8` — quote this line if asked whether instructions are current._
@@ -0,0 +1,42 @@
1
+ # TailTrail For ChatGPT
2
+
3
+ Use this file when ChatGPT is working with this repository or when these instructions are uploaded as project context.
4
+
5
+ ## Core — follow exactly, do not skim
6
+
7
+ - Navigator-first workflow for non-trivial tasks; ask for approval before implementation. `tailtrail start` is planning-only: never implement, edit, run project/scanner/Terraform/Git commands after planning without a separate explicit `approve` (`looks good` / `go ahead` never approve).
8
+ - MCP first (default path): if the TailTrail MCP server is configured, call the single `tailtrail_start` tool once with `approved: true` — one atomic call, do not split lock/report, nothing to retype. Else if this host can run project commands, run `tailtrail start "<goal>"` (CLI fallback). Else state the plan is not persisted and give the exact command. Return the tool/CLI output as the complete Start Report verbatim (starts `# TailTrail Start Plan`, includes the run ID) outside any collapsible terminal/tool-result panel, then stop. Never synthesize a substitute plan or task list. Verify `Planning Lock`, `Scope`, `Requirements`, `Selected TailTrail features`, `Plan`, `Focused validation`, `Approval`; the selected-features table is mandatory — never replace it with `Next step`. Preserve fences, table pipes, backticks, spacing; never retype, normalize, or HTML-escape. If a section is missing, paste stdout again. For official runs, never end the turn at the Start Report: generate and record questions, then return the Requirements report in the same turn.
9
+ - Before sending any Start, closure, or hello reply: verify the run ID, `text` fence, and required headings are all present; if anything is missing, paste the stdout again instead of sending a partial reply.
10
+ - Current-turn Start boundary: evaluate Start only from the current user message. A prior mention, pasted error output, log, stack trace, or follow-up is not a new Planning Lock. Reuse an awaiting-approval run ID; with no active run and no explicit Start, use guide routing.
11
+ - Natural TailTrail requests and read-only questions (tell me / what are / list / describe / explain / graph / summary, no change verb): run `tailtrail intent "<words>"` first, follow its briefing, use the guide flow, and never create a Planning Lock. `looks good`, `go ahead`, and similar wording never approve; approval requires an explicit `approve`. `tailtrail intent resolve "<words>"` / MCP `intent_resolve` is read-only and grants no authority.
12
+ - Requirement interpretation is exact-goal-bound: send no private reasoning. Pass artifacts via `requirement_artifact` (SHA-256 bound) before scope; bind clauses with source IDs, keep quoted literals in `quoted`, build requirements from outcome / constraint / scope only, keep questions open. An attached image the host can see but has not bound is a material open question, not a silent drop: include what must be specified from it as a `question` clause. Missing or unreadable artifacts stop before scope and Planning Lock.
13
+ - Scope evidence v2 host boundary: consume the fingerprint plus owner / inspection / proof / excluded roles; never reclassify paths or promote unresolved scope. Scope work happens before Planning Lock persistence; unresolved Build scope creates no lock.
14
+ - Requirement-before-scope host boundary: consume MCP `requirement_route` directly (`deferred` forbids graph work and Planning Lock creation; only `eligible` permits bounded scope work). Requirement-routing negative assurance: a missing or deferred route combined with scope or run authority is a conformance failure — report it, never reinterpret; scope availability cannot preempt requirement intake.
15
+ - Evidence-first scope: when the packet route is `requested`, return one schema-v2 proposal bound to the exact packet, decision, target, hashes, and edge IDs via `navigator_scope_proposal_record`. Invented paths, stale hash, or rejected proposals create no run.
16
+ - Interactive Plan Mode host boundary: while a plan is awaiting approval, answer only from saved planning evidence (`planning explain` / `discuss` / `revise`); never start implementation. After Debug reproduction or revision transitions, return the canonical `Next actions` and `Route to a code fix` guidance; an `awaiting-reproduction-input` request keeps hypotheses and correction blocked. See `DEBUG-HARNESS.md` for the full lifecycle.
17
+ - `tailtrail stop` is the highest-priority control; `tailtrail resume --run-id <exact-run-id>` only reattaches (never approves or advances). Rejected plan: do not inspect source, tests, scanners, or Git and do not create a new run; return the `feedback-template` blank form for the same run ID (`AIDLC Requirements mode` on second material rejection).
18
+ - Activated run: retain `execution_handoff`, obey `closure.command`; never substitute a generic summary. Lite/Off `approved-plan-auto-grant` continues internally; Standard/Full and Intent Bridge show the defensive handoff. Close with `completion-report` plus `closure finalize`, returning stdout verbatim.
19
+ - `hello tailtrail` variants: run `tailtrail hello`, return the ASCII TailTrail banner plus result verbatim as the complete response, preserve the command-emitted `text` fence, no narration, no todo/status update, never suggest `doctor` after it.
20
+ - Staleness check: when asked whether instructions are current, quote the `TailTrail instructions revision` line verbatim.
21
+ - After changes: post-change review; scanner approval before heavy commands; learnings as advisory (source / tests / CI / scanners / policy / guardrails / user win); token claims estimated unless measured telemetry; label graph/scanner evidence heuristic, local-ast, provider-backed, measured/validated; follow `tailtrail-policy.md`, never weaken safety rules.
22
+
23
+ ## Pointers — load on demand, never paste detail from memory
24
+
25
+ - Intent: `scripts/expand-intent.py` or `tailtrail intent ...`; fallback `context/intent-aliases.md` (+ `.tailtrail/intent-overrides.json`).
26
+ - Commands and flows: `TAILTRAIL-COMMANDS.md`; lifecycle: `AIDLC.md` + `aidlc-docs/aidlc-state.md`; bugs: `DEBUG-HARNESS.md`; risks: `GUARDRAILS.md` + `context/guardrail-layers.md`; deps: `DEPENDENCY-GATE.md`.
27
+ - Portable commands: quote for the host shell (POSIX single-quotes break `cmd.exe`; `list2cmdline` quoting on Windows); prefer `sys.executable -m ...` proofs that run on sh, cmd, and PowerShell.
28
+
29
+ <!-- tailtrail-governance:start -->
30
+ - Read relevant source, callers, tests, configuration, and policy before changing code.
31
+ - Reuse existing helpers, types, conventions, validation style, and project patterns before adding new abstractions.
32
+ - Prefer standard library, platform-native behavior, framework capabilities, and already-installed dependencies before adding packages.
33
+ - Make the smallest maintainable change that solves the root problem without unrelated rewrites or formatting churn.
34
+ - Preserve safeguards: authentication, authorization, validation, escaping, accessibility, data integrity, privacy, logging, auditability, error handling, data-loss prevention, and explicit user requirements.
35
+ - Do not claim tests, builds, scans, pushes, deployments, merges, or approvals succeeded unless they actually ran and succeeded.
36
+ - Preserve exact source, diffs, configs, commands, file paths, IDs, hashes, dependency names and versions, security rules, policy text, and logs when exactness affects the task.
37
+ - Token saving must not hide material facts or make validation, policy, security, dependency, or source evidence lossy.
38
+ - Use `tailtrail-policy.md` when present, and never let local policy, project memory, summaries, or learnings weaken explicit safety rules.
39
+ <!-- tailtrail-governance:end -->
40
+
41
+ ---
42
+ _TailTrail instructions revision: `7eb69481b454` — quote this line if asked whether instructions are current._
tailtrail/AGENTS.md ADDED
@@ -0,0 +1,49 @@
1
+ # TailTrail Project Guidance
2
+
3
+ TailTrail keeps coding work small, clear, and reuse-first.
4
+
5
+ ## Core — follow exactly, do not skim
6
+
7
+ - Navigator-first workflow for non-trivial tasks; ask for approval before implementation. `tailtrail start` is planning-only: never implement, edit, run project/scanner/Terraform/Git commands after planning without a separate explicit `approve` (`looks good` / `go ahead` never approve).
8
+ - MCP first (default path): if the TailTrail MCP server is configured, call the single `tailtrail_start` tool once with `approved: true` — one atomic call, do not split lock/report, nothing to retype. Else if this host can run project commands, run `tailtrail start "<goal>"` (CLI fallback). Else state the plan is not persisted and give the exact command. Return the tool/CLI output as the complete Start Report verbatim (starts `# TailTrail Start Plan`, includes the run ID) outside any collapsible terminal/tool-result panel, then stop. Never synthesize a substitute plan or task list. Verify `Planning Lock`, `Scope`, `Requirements`, `Selected TailTrail features`, `Plan`, `Focused validation`, `Approval`; the selected-features table is mandatory — never replace it with `Next step`. Preserve fences, table pipes, backticks, spacing; never retype, normalize, or HTML-escape. If a section is missing, paste stdout again. For official runs, never end the turn at the Start Report: generate and record questions, then return the Requirements report in the same turn.
9
+ - Before sending any Start, closure, or hello reply: verify the run ID, `text` fence, and required headings are all present; if anything is missing, paste the stdout again instead of sending a partial reply.
10
+ - Current-turn Start boundary: evaluate Start only from the current user message. A prior mention, pasted error output, log, stack trace, or follow-up is not a new Planning Lock. Reuse an awaiting-approval run ID; with no active run and no explicit Start, use guide routing.
11
+ - Natural TailTrail requests and read-only questions (tell me / what are / list / describe / explain / graph / summary, no change verb): run `tailtrail intent "<words>"` first, follow its briefing, use the guide flow, and never create a Planning Lock. `looks good`, `go ahead`, and similar wording never approve; approval requires an explicit `approve`. `tailtrail intent resolve "<words>"` / MCP `intent_resolve` is read-only and grants no authority.
12
+ - Requirement interpretation is exact-goal-bound: send no private reasoning. Pass artifacts via `requirement_artifact` (SHA-256 bound) before scope; bind clauses with source IDs, keep quoted literals in `quoted`, build requirements from outcome / constraint / scope only, keep questions open. An attached image the host can see but has not bound is a material open question, not a silent drop: include what must be specified from it as a `question` clause. Missing or unreadable artifacts stop before scope and Planning Lock.
13
+ - Scope evidence v2 host boundary: consume the fingerprint plus owner / inspection / proof / excluded roles; never reclassify paths or promote unresolved scope. Scope work happens before Planning Lock persistence; unresolved Build scope creates no lock.
14
+ - Requirement-before-scope host boundary: consume MCP `requirement_route` directly (`deferred` forbids graph work and Planning Lock creation; only `eligible` permits bounded scope work). Requirement-routing negative assurance: a missing or deferred route combined with scope or run authority is a conformance failure — report it, never reinterpret; scope availability cannot preempt requirement intake.
15
+ - Evidence-first scope: when the packet route is `requested`, return one schema-v2 proposal bound to the exact packet, decision, target, hashes, and edge IDs via `navigator_scope_proposal_record`. Invented paths, stale hash, or rejected proposals create no run.
16
+ - Interactive Plan Mode host boundary: while a plan is awaiting approval, answer only from saved planning evidence (`planning explain` / `discuss` / `revise`); never start implementation. After Debug reproduction or revision transitions, return the canonical `Next actions` and `Route to a code fix` guidance; an `awaiting-reproduction-input` request keeps hypotheses and correction blocked. See `DEBUG-HARNESS.md` for the full lifecycle.
17
+
18
+ <!-- tailtrail-debug-host:start -->
19
+ - Debug Start records command-free orientation only and must not spawn project, test, graph-helper, scanner, package-manager, external-provider, or Git commands. Preserve the same run, workflow, and requirement IDs across Start approval, reproduction draft, approved host execution, experiment proposal, root-cause proof, separately approved correction, canonical closure finalize, and the unified Completion Report.
20
+ - Diagnose only through the `tailtrail-host-debug-diagnosis` contract and return only its closed typed `proposal`; MCP operations only record supplied authority or factual evidence. TailTrail-managed state, including every `.tailtrail/**` path, is never application ownership evidence; reproduction and correction approvals remain mandatory.
21
+ <!-- tailtrail-debug-host:end -->
22
+ - `tailtrail stop` is the highest-priority control; `tailtrail resume --run-id <exact-run-id>` only reattaches (never approves or advances). Rejected plan: do not inspect source, tests, scanners, or Git and do not create a new run; return the `feedback-template` blank form for the same run ID (`AIDLC Requirements mode` on second material rejection).
23
+ - Activated run: retain `execution_handoff`, obey `closure.command`; never substitute a generic summary. Lite/Off `approved-plan-auto-grant` continues internally; Standard/Full and Intent Bridge show the defensive handoff. Close with `completion-report` plus `closure finalize`, returning stdout verbatim.
24
+ - `hello tailtrail` variants: run `tailtrail hello`, return the ASCII TailTrail banner plus result verbatim as the complete response, preserve the command-emitted `text` fence, no narration, no todo/status update, never suggest `doctor` after it.
25
+ - Staleness check: when asked whether instructions are current, quote the `TailTrail instructions revision` line verbatim.
26
+ - After changes: post-change review; scanner approval before heavy commands; learnings as advisory (source / tests / CI / scanners / policy / guardrails / user win); token claims estimated unless measured telemetry; label graph/scanner evidence heuristic, local-ast, provider-backed, measured/validated; follow `tailtrail-policy.md`, never weaken safety rules.
27
+
28
+ ## Pointers — load on demand, never paste detail from memory
29
+
30
+ - Intent: `scripts/expand-intent.py` or `tailtrail intent ...`; fallback `context/intent-aliases.md` (+ `.tailtrail/intent-overrides.json`).
31
+ - Commands and flows: `TAILTRAIL-COMMANDS.md`; lifecycle: `AIDLC.md` + `aidlc-docs/aidlc-state.md`; bugs: `DEBUG-HARNESS.md`; risks: `GUARDRAILS.md` + `context/guardrail-layers.md`; deps: `DEPENDENCY-GATE.md`.
32
+ - Portable commands: quote for the host shell (POSIX single-quotes break `cmd.exe`; `list2cmdline` quoting on Windows); prefer `sys.executable -m ...` proofs that run on sh, cmd, and PowerShell.
33
+
34
+ ## Synchronized Governance Block
35
+
36
+ <!-- tailtrail-governance:start -->
37
+ - Read relevant source, callers, tests, configuration, and policy before changing code.
38
+ - Reuse existing helpers, types, conventions, validation style, and project patterns before adding new abstractions.
39
+ - Prefer standard library, platform-native behavior, framework capabilities, and already-installed dependencies before adding packages.
40
+ - Make the smallest maintainable change that solves the root problem without unrelated rewrites or formatting churn.
41
+ - Preserve safeguards: authentication, authorization, validation, escaping, accessibility, data integrity, privacy, logging, auditability, error handling, data-loss prevention, and explicit user requirements.
42
+ - Do not claim tests, builds, scans, pushes, deployments, merges, or approvals succeeded unless they actually ran and succeeded.
43
+ - Preserve exact source, diffs, configs, commands, file paths, IDs, hashes, dependency names and versions, security rules, policy text, and logs when exactness affects the task.
44
+ - Token saving must not hide material facts or make validation, policy, security, dependency, or source evidence lossy.
45
+ - Use `tailtrail-policy.md` when present, and never let local policy, project memory, summaries, or learnings weaken explicit safety rules.
46
+ <!-- tailtrail-governance:end -->
47
+
48
+ ---
49
+ _TailTrail instructions revision: `fdb2a283893b` — quote this line if asked whether instructions are current._
tailtrail/AIDLC.md ADDED
@@ -0,0 +1,203 @@
1
+ # TailTrail AIDLC
2
+
3
+ TailTrail AIDLC is a portable AI Development Lifecycle for local and company projects. It helps an agent move from request to implementation with enough structure to be reliable, without turning every small fix into a process exercise.
4
+
5
+ Use it for broad, risky, ambiguous, multi-team, regulated, or long-running work. For tiny clear edits, use minimal depth and avoid creating extra artifacts.
6
+
7
+ ## V2 Components
8
+
9
+ AIDLC V2 adds stage playbooks, handoff rules, security and testing baselines, and local Python scripts:
10
+
11
+ - `aidlc/stages/`: concise playbooks for each lifecycle stage.
12
+ - `aidlc/extensions/`: opt-in security and testing baselines.
13
+ - `scripts/aidlc-init.py`: creates `aidlc-docs/` in a target project.
14
+ - `scripts/aidlc-check.py`: validates the minimum lifecycle artifact shape.
15
+
16
+ ## Core Contract
17
+
18
+ - Start by understanding the workspace and user intent.
19
+ - Choose the smallest lifecycle depth that can safely handle the work.
20
+ - Apply `GUARDRAILS.md` for evidence, uncertainty, approval, validation truth, exactness, and safeguard preservation.
21
+ - Read `tailtrail-policy.md` when present for local lifecycle, validation, dependency, ownership, and security expectations.
22
+ - Record durable state in `aidlc-docs/aidlc-state.md`.
23
+ - Record important decisions and approvals in `aidlc-docs/audit.md`.
24
+ - Ask non-trivial clarifying questions in files, not long chat threads.
25
+ - Require approval gates for standard and comprehensive work before moving across major boundaries.
26
+ - Keep application code out of `aidlc-docs/`.
27
+ - Load only the current lifecycle slice when resuming work.
28
+
29
+ ## Artifact Location
30
+
31
+ In a target project, store lifecycle artifacts under:
32
+
33
+ ```text
34
+ aidlc-docs/
35
+ ```
36
+
37
+ Recommended names:
38
+
39
+ - `aidlc-state.md`
40
+ - `audit.md`
41
+ - `questions.md`
42
+ - `requirements.md`
43
+ - `workflow-plan.md`
44
+ - `implementation-plan.md`
45
+ - `diff-handoff.md`
46
+ - `validation-handoff.md`
47
+ - `operations-notes.md`
48
+
49
+ Use fewer files for minimal work. Use more files only when they reduce ambiguity, risk, or handoff cost.
50
+
51
+ To initialize a target project:
52
+
53
+ ```bash
54
+ python3 scripts/aidlc-init.py --root /path/to/project --depth standard
55
+ python3 scripts/aidlc-check.py --root /path/to/project
56
+ ```
57
+
58
+ Use strict answer validation only after question files should be complete:
59
+
60
+ ```bash
61
+ python3 scripts/aidlc-check.py --root /path/to/project --strict-answers
62
+ ```
63
+
64
+ ## Depth Levels
65
+
66
+ | Depth | Use When | Artifact Style |
67
+ |---|---|---|
68
+ | `minimal` | Clear, low-risk, small-scope work | Update state, capture the request, run focused validation, hand off briefly. |
69
+ | `standard` | Normal feature, bug, or refactor work | Create requirements, workflow plan, implementation handoff, validation handoff, and approval gates. |
70
+ | `comprehensive` | High-risk, multi-team, regulated, production-sensitive, or system-wide work | Add deeper requirements, questions, design notes, risk/NFR notes, operations notes, and explicit approvals. |
71
+
72
+ Depth changes detail level, not discipline. Minimal work still preserves security, validation, data integrity, accessibility, and explicit user requirements.
73
+
74
+ ## Phases
75
+
76
+ ### 1. Inception
77
+
78
+ Purpose: understand the work before choosing implementation shape.
79
+
80
+ Always consider:
81
+
82
+ - workspace detection
83
+ - request and requirement analysis
84
+ - risk and ambiguity
85
+ - workflow planning
86
+
87
+ Use conditionally:
88
+
89
+ - reverse engineering for brownfield systems
90
+ - user stories for stakeholder-heavy work
91
+ - design notes for new boundaries or changed architecture
92
+ - NFR notes for performance, reliability, privacy, security, compliance, observability, or operability risk
93
+
94
+ Outputs:
95
+
96
+ - `aidlc-docs/aidlc-state.md`
97
+ - `aidlc-docs/audit.md`
98
+ - `aidlc-docs/questions.md` when needed
99
+ - `aidlc-docs/requirements.md`
100
+ - `aidlc-docs/workflow-plan.md`
101
+
102
+ Gate for standard or comprehensive depth: requirements and workflow plan approved.
103
+
104
+ ### 2. Construction
105
+
106
+ Purpose: implement approved units of work with a clear validation path.
107
+
108
+ Always consider:
109
+
110
+ - implementation plan for non-trivial work
111
+ - exact source files and tests
112
+ - dependency gate before adding packages
113
+ - focused validation
114
+ - build/test output slicing for noisy logs
115
+
116
+ Use conditionally:
117
+
118
+ - per-unit design for multi-unit work
119
+ - NFR design notes for high-risk requirements
120
+ - migration or data notes when state changes
121
+ - rollback notes when production impact exists
122
+
123
+ Outputs:
124
+
125
+ - `aidlc-docs/implementation-plan.md`
126
+ - code changes in the application repo
127
+ - `aidlc-docs/diff-handoff.md`
128
+ - `aidlc-docs/validation-handoff.md`
129
+
130
+ Gate for standard or comprehensive depth: implementation plan approved before coding; validation handoff approved before closeout.
131
+
132
+ ### 3. Operations
133
+
134
+ Purpose: capture what must be known after code changes ship or move toward production.
135
+
136
+ Use when deployment, support, monitoring, rollback, migration, or production readiness is in scope.
137
+
138
+ Outputs:
139
+
140
+ - `aidlc-docs/operations-notes.md`
141
+
142
+ Gate for standard or comprehensive depth: operations notes approved before production handoff.
143
+
144
+ ## Question Files
145
+
146
+ Use `templates/question-file.md` when ambiguity affects scope, safety, data, ownership, user experience, or approval. Keep questions specific and answerable.
147
+
148
+ Question rules:
149
+
150
+ - Use file-based questions for non-trivial ambiguity.
151
+ - Include meaningful choices.
152
+ - Put `Other` as the final option.
153
+ - Include one recommended option after each question.
154
+ - Add concise reasoning for the recommendation so the user can review the tradeoff.
155
+ - State any assumption behind the recommendation instead of presenting it as fact.
156
+ - Leave `[Answer]:` for the user to fill in.
157
+ - After answers are provided, check for contradictions before proceeding.
158
+
159
+ ## Approval Gates
160
+
161
+ Use `templates/stage-gate.md` for standard and comprehensive work.
162
+
163
+ Required gates:
164
+
165
+ - requirements to workflow planning
166
+ - workflow planning to implementation planning
167
+ - implementation planning to coding
168
+ - validation handoff to closeout
169
+ - operations readiness when production handoff is involved
170
+
171
+ Minimal work can use a short inline approval note in `aidlc-docs/aidlc-state.md` if the user clearly asked to proceed.
172
+
173
+ ## Resume Rule
174
+
175
+ When resuming AIDLC work:
176
+
177
+ 1. Read `aidlc-docs/aidlc-state.md` first.
178
+ 2. Read only artifacts needed for the current phase and stage.
179
+ 3. Use `context/slices.md` and the `aidlc` slice to avoid loading every lifecycle file.
180
+ 4. Refresh stale facts when source files, requirements, approvals, commands, or policies changed.
181
+ 5. Update state and audit after meaningful progress.
182
+
183
+ ## Handoff Rule
184
+
185
+ Handoff is the compact transfer package for the next developer, reviewer, agent, or operations owner. Use `aidlc/stages/handoff.md` and the active handoff template when work changes owner, moves to review, finishes validation, or goes toward production.
186
+
187
+ Handoff must say:
188
+
189
+ - what changed
190
+ - what was reused
191
+ - what was intentionally skipped
192
+ - what validation ran
193
+ - what risk remains
194
+ - what exact files, diffs, commands, or logs can be reopened
195
+ - what approval or next action is needed
196
+
197
+ ## Dependency Rule
198
+
199
+ Before adding a dependency, use `DEPENDENCY-GATE.md`. Prefer existing project capabilities, standard libraries, platform-native features, and already-installed packages.
200
+
201
+ ## TailTrail Fit
202
+
203
+ AIDLC should make large work safer and easier to resume. It should not make small work heavy. If an artifact does not reduce ambiguity, risk, handoff cost, or validation effort, skip it and record why in state or handoff.