android-agent-harness 1.2.2__tar.gz → 1.2.3__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 (258) hide show
  1. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/PKG-INFO +3 -3
  2. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/README.md +2 -2
  3. android_agent_harness-1.2.3/agents/VERSION +1 -0
  4. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/release_checksums.json +6 -6
  5. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_pm_selftest.py +107 -0
  6. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_public_commands.py +1 -1
  7. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/incident_reporter.py +56 -42
  8. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/universal_pm.py +34 -18
  9. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/self_heal.py +34 -5
  10. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/android_agent_harness.egg-info/PKG-INFO +3 -3
  11. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/pyproject.toml +1 -1
  12. android_agent_harness-1.2.2/agents/VERSION +0 -1
  13. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/LICENSE +0 -0
  14. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/.gitignore +0 -0
  15. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/check-strings.md.template +0 -0
  16. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/commit-msg.md.template +0 -0
  17. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/crash-triage.md.template +0 -0
  18. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/debug.md.template +0 -0
  19. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/deliver.md.template +0 -0
  20. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/doctor.md.template +0 -0
  21. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/new-feature.md.template +0 -0
  22. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/perf-audit.md.template +0 -0
  23. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/preflight.md.template +0 -0
  24. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/test-quality-audit.md.template +0 -0
  25. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/command-packs/zoho-sprints.md.template +0 -0
  26. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness.py +0 -0
  27. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness_shared/__init__.py +0 -0
  28. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness_shared/commands.py +0 -0
  29. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness_shared/integrity.py +0 -0
  30. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness_shared/paths.py +0 -0
  31. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/harness_shared/processes.py +0 -0
  32. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/hooks.json +0 -0
  33. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/mcp_config.json +0 -0
  34. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/pm/mcp_registration.jira.md +0 -0
  35. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/pm/mcp_registration.linear.md +0 -0
  36. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/rules/compose-context.md +0 -0
  37. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/rules/gradle-context.md +0 -0
  38. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/rules/harness-rules.md +0 -0
  39. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/rules/kmp-context.md +0 -0
  40. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_adb_core.py +0 -0
  41. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_adb_core_selftest.py +0 -0
  42. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_android_inspect_selftest.py +0 -0
  43. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_android_scenarios_selftest.py +0 -0
  44. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_android_ui_selftest.py +0 -0
  45. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_antigravity_stability_selftest.py +0 -0
  46. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_architecture_selftest.py +0 -0
  47. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_baseline_selftest.py +0 -0
  48. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_change_decision_selftest.py +0 -0
  49. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_critical_safety_selftest.py +0 -0
  50. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_daily_workflow_selftest.py +0 -0
  51. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_delivery_equivalence_selftest.py +0 -0
  52. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_efficiency_selftest.py +0 -0
  53. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_enforcement.py +0 -0
  54. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_env_codes.py +0 -0
  55. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_env_codes_selftest.py +0 -0
  56. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_environment.py +0 -0
  57. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_external_write_policy_selftest.py +0 -0
  58. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_gate_results.py +0 -0
  59. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_graph_core.py +0 -0
  60. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_graph_discovery_selftest.py +0 -0
  61. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_graph_selftest.py +0 -0
  62. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_hook_selftest.py +0 -0
  63. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_host_continuation_selftest.py +0 -0
  64. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_idempotency.py +0 -0
  65. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_installer_config.py +0 -0
  66. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_live_process.py +0 -0
  67. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_modules.py +0 -0
  68. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_performance_selftest.py +0 -0
  69. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_phase_review_v2_selftest.py +0 -0
  70. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_portability_selftest.py +0 -0
  71. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_product.py +0 -0
  72. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_project_architecture.py +0 -0
  73. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_project_intelligence_selftest.py +0 -0
  74. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_public_cli_selftest.py +0 -0
  75. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_release_safety_selftest.py +0 -0
  76. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_repo_files.py +0 -0
  77. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_review_models_selftest.py +0 -0
  78. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_security_selftest.py +0 -0
  79. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_source_outline.py +0 -0
  80. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_source_text.py +0 -0
  81. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_stabilization_v41_selftest.py +0 -0
  82. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_stabilization_v42_selftest.py +0 -0
  83. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_task_isolation_selftest.py +0 -0
  84. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_variants.py +0 -0
  85. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_verification_recipes.py +0 -0
  86. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_verification_value_selftest.py +0 -0
  87. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_vnext_common.py +0 -0
  88. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_vnext_selftest.py +0 -0
  89. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/__init__.py +0 -0
  90. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/engine.py +0 -0
  91. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/phase_routing.py +0 -0
  92. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/planning.py +0 -0
  93. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/router.py +0 -0
  94. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow/verification.py +0 -0
  95. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_workflow_insight_selftest.py +0 -0
  96. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/_worktree_handoff_selftest.py +0 -0
  97. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/android_inspect.py +0 -0
  98. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/android_ui.py +0 -0
  99. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/antigravity_contract.py +0 -0
  100. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/antigravity_runtime.py +0 -0
  101. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/antigravity_tools.py +0 -0
  102. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/architecture_drift.py +0 -0
  103. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/architecture_policy.py +0 -0
  104. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/architecture_resolver.py +0 -0
  105. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/artifact_set.py +0 -0
  106. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/baseline_capture.py +0 -0
  107. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/build_execution.py +0 -0
  108. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/capture_screen.py +0 -0
  109. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/cc_pre_tool_safety.py +0 -0
  110. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/change_classifier.py +0 -0
  111. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/change_decision.py +0 -0
  112. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/check_kit_update.py +0 -0
  113. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/check_strings.py +0 -0
  114. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/context_presentation.py +0 -0
  115. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/copilot_pre_tool_safety.py +0 -0
  116. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/delivery_equivalence.py +0 -0
  117. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/delivery_manifest.py +0 -0
  118. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/discovery_receipt.py +0 -0
  119. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/discovery_router.py +0 -0
  120. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/doctor/__init__.py +0 -0
  121. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/doctor/engine.py +0 -0
  122. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/doctor/models.py +0 -0
  123. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/ensure_hook_selftest.py +0 -0
  124. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/evidence_store.py +0 -0
  125. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/exported_component_guard.py +0 -0
  126. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/fast_kt_lint.py +0 -0
  127. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/final_verdict.py +0 -0
  128. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/final_verifier.py +0 -0
  129. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/generate_project_context.py +0 -0
  130. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/gradle_error_parser.py +0 -0
  131. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/harness_doctor.py +0 -0
  132. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/host_continuation.py +0 -0
  133. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/install_or_update.py +0 -0
  134. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/install_tool_adapters.py +0 -0
  135. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/__init__.py +0 -0
  136. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/base.py +0 -0
  137. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/external_write_policy.py +0 -0
  138. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/generic_mcp.py +0 -0
  139. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/registry.py +0 -0
  140. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/zoho_sprints/__init__.py +0 -0
  141. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/zoho_sprints/integration.py +0 -0
  142. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/integrations/zoho_sprints/policy.py +0 -0
  143. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/journey_runner.py +0 -0
  144. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/lifecycle.py +0 -0
  145. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/logcat_doctor.py +0 -0
  146. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/mutation_guard.py +0 -0
  147. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/new_feature_scaffold.py +0 -0
  148. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/perf_guard.py +0 -0
  149. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/phase_review.py +0 -0
  150. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/phone_e2e.py +0 -0
  151. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/plan_authority.py +0 -0
  152. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/plan_document.py +0 -0
  153. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/plan_notes.py +0 -0
  154. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/pm_discovery.py +0 -0
  155. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/pm_github.py +0 -0
  156. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/pm_policy.py +0 -0
  157. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/policy_vocab.py +0 -0
  158. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/post_tool_reconcile.py +0 -0
  159. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/pre_invocation_reminder.py +0 -0
  160. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/pre_tool_safety.py +0 -0
  161. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/preflight.py +0 -0
  162. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/preflight_check.py +0 -0
  163. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/project_context.py +0 -0
  164. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/project_graph.py +0 -0
  165. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/record_review.py +0 -0
  166. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/repair.py +0 -0
  167. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_budget.py +0 -0
  168. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_execution.py +0 -0
  169. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_fix_delta.py +0 -0
  170. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_models.py +0 -0
  171. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_orchestrator.py +0 -0
  172. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_package.py +0 -0
  173. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_policy.py +0 -0
  174. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_reasoning.py +0 -0
  175. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/review_sources.py +0 -0
  176. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/reviewer_host.py +0 -0
  177. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/room_guard.py +0 -0
  178. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/run_device.py +0 -0
  179. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/run_gradle_task.py +0 -0
  180. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/run_tests_gate.py +0 -0
  181. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/setup_wizard.py +0 -0
  182. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/skill_router.py +0 -0
  183. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/task_base.py +0 -0
  184. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/task_context.py +0 -0
  185. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/task_git_lineage.py +0 -0
  186. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/task_merge.py +0 -0
  187. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/task_metrics.py +0 -0
  188. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/verification_contract.py +0 -0
  189. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/verification_steps.py +0 -0
  190. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/wizard/__init__.py +0 -0
  191. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/wizard/discovery.py +0 -0
  192. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/wizard/i18n.py +0 -0
  193. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/wizard/questions.py +0 -0
  194. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/wizard/schema.py +0 -0
  195. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/workflow.py +0 -0
  196. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/zoho_grant.py +0 -0
  197. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/scripts/zoho_sync.py +0 -0
  198. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/settings.json +0 -0
  199. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/SKILL.md +0 -0
  200. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/architecture-guidelines.md +0 -0
  201. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/automated-skills.md +0 -0
  202. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/command-contract.md +0 -0
  203. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/daily-scenarios.md +0 -0
  204. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/database-and-persistence.md +0 -0
  205. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/performance-and-optimization.md +0 -0
  206. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/test-quality-guidelines.md +0 -0
  207. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-harness/references/ui-layout-and-theming.md +0 -0
  208. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/android-security-billing/SKILL.md +0 -0
  209. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/brainstorming/SKILL.md +0 -0
  210. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/compose-inspector/SKILL.md +0 -0
  211. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/git-pr-automator/SKILL.md +0 -0
  212. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/gradle-build-optimizer/SKILL.md +0 -0
  213. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/kotlin-coroutines-expert/SKILL.md +0 -0
  214. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/systematic-debugging/SKILL.md +0 -0
  215. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/skills/test-driven-development/SKILL.md +0 -0
  216. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/android-ui-expert-agent.json +0 -0
  217. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/arch-regression-reviewer-agent.json +0 -0
  218. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/bug-test-reviewer-agent.json +0 -0
  219. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/qa-diagnostics-agent.json +0 -0
  220. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/re-review-prompt.md +0 -0
  221. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/review-prompt.md +0 -0
  222. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/security-perf-reviewer-agent.json +0 -0
  223. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/subagents/spec-compliance-agent.json +0 -0
  224. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/AGENTS.md.template +0 -0
  225. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/CLAUDE.md.template +0 -0
  226. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/CODEX.md.template +0 -0
  227. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/GEMINI.md.template +0 -0
  228. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/QWEN.md.template +0 -0
  229. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/README.md +0 -0
  230. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/continue-android-harness.md.template +0 -0
  231. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/copilot-instructions.md.template +0 -0
  232. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/cursor-android-harness.mdc.template +0 -0
  233. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/gemini-runtime/android-harness-global.md.template +0 -0
  234. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/gemini-runtime/config.grants.example.json +0 -0
  235. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/gemini-runtime/mcp_config.template.json +0 -0
  236. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/github-instructions.md.template +0 -0
  237. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/pointer.md.template +0 -0
  238. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/tool-adapters/windsurf-android-harness.md.template +0 -0
  239. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/android-inspection.md +0 -0
  240. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/android-ui.md +0 -0
  241. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/check-strings.md +0 -0
  242. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/commit-msg.md +0 -0
  243. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/crash-triage.md +0 -0
  244. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/debug.md +0 -0
  245. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/deliver.md +0 -0
  246. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/efficient-context.md +0 -0
  247. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/new-feature.md +0 -0
  248. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/perf-audit.md +0 -0
  249. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/phone-e2e.md +0 -0
  250. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/preflight.md +0 -0
  251. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/test-quality-audit.md +0 -0
  252. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/agents/workflows/zoho-sprints.md +0 -0
  253. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/android_agent_harness.egg-info/SOURCES.txt +0 -0
  254. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/android_agent_harness.egg-info/dependency_links.txt +0 -0
  255. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/android_agent_harness.egg-info/entry_points.txt +0 -0
  256. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/android_agent_harness.egg-info/top_level.txt +0 -0
  257. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/harness_cli.py +0 -0
  258. {android_agent_harness-1.2.2 → android_agent_harness-1.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-agent-harness
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Approval-first, evidence-bound development harness for supported Gradle Android projects.
5
5
  Author: Rabee Elkholy
6
6
  License-Expression: MIT
@@ -192,7 +192,7 @@ Task A
192
192
  Open your Android project in your AI coding agent (Claude Code, Codex, Gemini CLI / Antigravity, Cursor, Windsurf, Roo Code, or Copilot) and provide this bootstrap prompt:
193
193
 
194
194
  ```text
195
- Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.2/docs/install-or-update-prompt.md and follow all instructions.
195
+ Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.3/docs/install-or-update-prompt.md and follow all instructions.
196
196
  ```
197
197
 
198
198
  The installer runs non-destructively: it inspects project Gradle modules, asks a few essential setup questions, presents an installation plan, installs the managed engine under `.agents/`, and runs environment diagnostics. The full harness kit source checkout lives outside the target application (`~/.android-harness/kit`), while your Android project receives only the managed harness runtime payload under `.agents/`.
@@ -215,7 +215,7 @@ android-harness doctor --repo /path/to/android-project --json
215
215
  Or run directly from a pinned source clone without global installation:
216
216
 
217
217
  ```bash
218
- git clone --depth 1 --branch v1.2.2 --single-branch \
218
+ git clone --depth 1 --branch v1.2.3 --single-branch \
219
219
  https://github.com/rabee-elkholy/android-agent-harness.git ~/.android-harness/kit
220
220
 
221
221
  python ~/.android-harness/kit/harness_cli.py init \
@@ -163,7 +163,7 @@ Task A
163
163
  Open your Android project in your AI coding agent (Claude Code, Codex, Gemini CLI / Antigravity, Cursor, Windsurf, Roo Code, or Copilot) and provide this bootstrap prompt:
164
164
 
165
165
  ```text
166
- Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.2/docs/install-or-update-prompt.md and follow all instructions.
166
+ Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.3/docs/install-or-update-prompt.md and follow all instructions.
167
167
  ```
168
168
 
169
169
  The installer runs non-destructively: it inspects project Gradle modules, asks a few essential setup questions, presents an installation plan, installs the managed engine under `.agents/`, and runs environment diagnostics. The full harness kit source checkout lives outside the target application (`~/.android-harness/kit`), while your Android project receives only the managed harness runtime payload under `.agents/`.
@@ -186,7 +186,7 @@ android-harness doctor --repo /path/to/android-project --json
186
186
  Or run directly from a pinned source clone without global installation:
187
187
 
188
188
  ```bash
189
- git clone --depth 1 --branch v1.2.2 --single-branch \
189
+ git clone --depth 1 --branch v1.2.3 --single-branch \
190
190
  https://github.com/rabee-elkholy/android-agent-harness.git ~/.android-harness/kit
191
191
 
192
192
  python ~/.android-harness/kit/harness_cli.py init \
@@ -0,0 +1 @@
1
+ 1.2.3
@@ -2,7 +2,7 @@
2
2
  "algorithm": "sha256",
3
3
  "files": {
4
4
  "agents/.gitignore": "8a0eaa7cc8e55d17da96f31f6863b5e9b5aba15bb03fd6e8fb07a8cb89e5715c",
5
- "agents/VERSION": "c62a5cc61ac4525935753f5ec284c0a052a4b1da4b3a3580dce2b7d77a2154ae",
5
+ "agents/VERSION": "d82f34ae9aa41bc4a0cb529a1ac0898fed09d6b479fb1cc44cb66c34f15ee84d",
6
6
  "agents/command-packs/check-strings.md.template": "688d464d69849d4b5bc68faae49bf79a196d882765ac5eaf9b829bd8df8b9c0b",
7
7
  "agents/command-packs/commit-msg.md.template": "cf8bd58a510a6953a66e2c705c8c9515f0369e4fa454af9bbc9c7f6b1805b80e",
8
8
  "agents/command-packs/crash-triage.md.template": "acea2311229cc8d4f7d1eae515a4d3f3b52246437df25ee75dfa40d3407dc69a",
@@ -58,13 +58,13 @@
58
58
  "agents/scripts/_modules.py": "23c3115d221277e661315788a529845e8613fd0ffc6750bde1850b04450be64f",
59
59
  "agents/scripts/_performance_selftest.py": "2d3e289623163f0638cec08cf3cb4bbeba025ec0a4964bb946a20456856b8ebe",
60
60
  "agents/scripts/_phase_review_v2_selftest.py": "10640da41da8dd11cc86411a8d0d3853831d2365921914690b4da99c58ba243a",
61
- "agents/scripts/_pm_selftest.py": "791550a9a732690e381d40c05401750dd58b21804c6ae17a9647b0c2949b44f3",
61
+ "agents/scripts/_pm_selftest.py": "9ac9e1d2987e628489c38b78a992b5eb65ec82091d7d63cddf6f74bf75710e0a",
62
62
  "agents/scripts/_portability_selftest.py": "85354e3e8483c46d81f7afc384cd99c5576f9150c86b376dc5cc4a46e736c353",
63
63
  "agents/scripts/_product.py": "87e1d4d6c138667f2e2f5b6b149d2a468ad32b52bcebe79565864dc38a04b0c2",
64
64
  "agents/scripts/_project_architecture.py": "e0776eb82fbe38722d5d6772c6bfd1eb0f8a5496ce62ed578f1243ada87d04a9",
65
65
  "agents/scripts/_project_intelligence_selftest.py": "0f8117e3d1c8ea6b74f584b557bf531fcb2482081d3f1078c99a6539ef8a8a9e",
66
66
  "agents/scripts/_public_cli_selftest.py": "23610078906c1cc7e035bfa954d99f42e8df40acaa62d155a4557318b6966f9d",
67
- "agents/scripts/_public_commands.py": "568905c2c42d6f995e5c65951a0eefb9c98861f2d1be785b4b4d2622c3fa781d",
67
+ "agents/scripts/_public_commands.py": "3aa974d2ce8907f49c5a437e8f3d6c70cd04942be0f09aa0a8ad6ac59a41dc5f",
68
68
  "agents/scripts/_release_safety_selftest.py": "9f9eccb55e7f584f43d2bb4c9d1c58d9f3ff3b4b3d13b4763d67d6c85e51072f",
69
69
  "agents/scripts/_repo_files.py": "69fab31be58f2fcef0dacb44d75b93b6a1f3192fcad1f514217ea2219b837818",
70
70
  "agents/scripts/_review_models_selftest.py": "264162e5e44d4acfa6432457924e7e2f8d41f66c1912eafb3d1bb242c7a713d5",
@@ -123,7 +123,7 @@
123
123
  "agents/scripts/gradle_error_parser.py": "964999526572f9ee37fb4f969b48faf1efd1b5f9af9077ef010f2623329b1703",
124
124
  "agents/scripts/harness_doctor.py": "88209e61202bf0a7d756b53a83b574f61f279f09dbb1e48a8bbd0baff91f066e",
125
125
  "agents/scripts/host_continuation.py": "462edf9849ce75b9308ab46a9b96ed5bcd36690bd4bf1aa225b8810bba29c918",
126
- "agents/scripts/incident_reporter.py": "86256dc930c1b947c1845071e6016373abbcf4510bd821333704b2d3015d49b9",
126
+ "agents/scripts/incident_reporter.py": "0dd66311456f4f9a61e724650b74b0e1543339b35338a6bd5115d079fc83c678",
127
127
  "agents/scripts/install_or_update.py": "8c5d14933819331b330b4693d7f531a997d3361702624eb00447466cba9fe2b7",
128
128
  "agents/scripts/install_tool_adapters.py": "6d07694a06f2eb63aacff4ae9078fc75b363864580668096bc566babb6c13052",
129
129
  "agents/scripts/integrations/__init__.py": "d3b716d27fe4c634c74932d0fb75b6c44f283d0acffcb492d22bcf5b4c2b4d65",
@@ -131,7 +131,7 @@
131
131
  "agents/scripts/integrations/external_write_policy.py": "06f9fbf8793d69b438197adbffb41887583d7652c12cb8c3f68f029110a69f1f",
132
132
  "agents/scripts/integrations/generic_mcp.py": "3cce5a464e3f4e6276578e34592adb23ef7b89a848f23e3145a0ba47f8e8444c",
133
133
  "agents/scripts/integrations/registry.py": "ad2dc4de459a6f32a3673f397f7f38d3fa63a0aba36c9db19d7afafe58115ef0",
134
- "agents/scripts/integrations/universal_pm.py": "208f58d3d9177873cd57edc6091f574e9d39a62add6c64ee27e8cfbb851c0067",
134
+ "agents/scripts/integrations/universal_pm.py": "950bca49a1a1212ad9e3f63523a5289704b3b52c64f4892a66206c06e5fe0fd7",
135
135
  "agents/scripts/integrations/zoho_sprints/__init__.py": "40078f60a56d7446f282d727779e32efefd98458cd033b9af5bccdd3701139a7",
136
136
  "agents/scripts/integrations/zoho_sprints/integration.py": "61d0bd4a052eaa083974b9a28d6aa62d2678ca40bb46ba7397f51e4e3b18cd23",
137
137
  "agents/scripts/integrations/zoho_sprints/policy.py": "723bde1567fbe7c5d4f7ef2625d2b773bdfca2528402f397bc519fb2848a1c24",
@@ -173,7 +173,7 @@
173
173
  "agents/scripts/run_device.py": "4f1d5a799197f750b025ba4e101cd400ffa16a326cbe030751ef1f0fb065a919",
174
174
  "agents/scripts/run_gradle_task.py": "171406ee3bf36bf3bf7fcf5cf2cfa10205da416edf65f4bbe170d4e3da8dea41",
175
175
  "agents/scripts/run_tests_gate.py": "827fff7b404921f1e3bf7399c3d10b6c45ef2d000357d6c46e63f9d869782b3b",
176
- "agents/scripts/self_heal.py": "73541cb962b282279faeae0e1ba1abdb3c8f9a5a49f5cbdcd9c27b91d1ff3852",
176
+ "agents/scripts/self_heal.py": "7f2dbf1d01e4c3d0a65938ba47f92447b29cf56e18c993bff8be8a375f892512",
177
177
  "agents/scripts/setup_wizard.py": "2df1acd7368f6231fe4862e5abb7aa64838ad37493c637c30639b64274f1aaf9",
178
178
  "agents/scripts/skill_router.py": "dc12fb729419e8ce3ee990ccb3fe0b681931e65b16aad4e60337fb5e4ba4f8b8",
179
179
  "agents/scripts/task_base.py": "80638fd4224f4ad6f17b9ce371de7e613f6d4fdbdf7bd18dff31c46bba1d7f7c",
@@ -1270,6 +1270,7 @@ class PmLifecycleTests(unittest.TestCase):
1270
1270
  "ready_delivery_snapshot_sha256": "deadbeef",
1271
1271
  }
1272
1272
  plan["plan_sha256"] = canonical_sha256(plan_payload(plan))
1273
+ plan["approval"]["plan_sha256"] = plan["plan_sha256"]
1273
1274
  save_plan(tdir / "plan.json", plan)
1274
1275
  save_stable_snapshot(self.repo, tid, "ready_for_delivery", plan=plan)
1275
1276
  snap = load_stable_snapshot(self.repo, tid, "ready_for_delivery")
@@ -1284,5 +1285,111 @@ class PmLifecycleTests(unittest.TestCase):
1284
1285
  self.assertEqual(3, healed_plan["review_calls_used"])
1285
1286
 
1286
1287
 
1288
+ class ReviewRegressionTests(unittest.TestCase):
1289
+ def test_incident_export_excludes_free_text_in_all_submission_paths(self):
1290
+ import incident_reporter as ir
1291
+ from urllib.parse import unquote_plus
1292
+ from types import SimpleNamespace
1293
+ secret = "customer@example.test +201012345678 PrivateCustomerName"
1294
+ with tempfile.TemporaryDirectory() as td:
1295
+ repo = Path(td)
1296
+ incident = ir.record_incident(repo, code=secret, command=secret,
1297
+ message=secret, extra={secret: secret}, heal_action=secret,
1298
+ task_state=secret, traceback_text="ValueError: " + secret, auto_submit=False)
1299
+ incident.update(host=secret, os=secret, incident_id=secret, created_at=secret,
1300
+ issue_url="https://example.test/?private=" + secret)
1301
+ self.assertNotIn("customer@example.test", ir.format_issue_markdown(incident))
1302
+ self.assertNotIn("PrivateCustomerName", unquote_plus(ir.build_github_issue_url(incident)))
1303
+ preview = ir.submit_incident_to_github(repo, incident, dry_run=True)
1304
+ self.assertNotIn("PrivateCustomerName", json.dumps(preview))
1305
+ with mock.patch.object(ir.shutil, "which", return_value="gh"), mock.patch.object(
1306
+ ir.subprocess, "run", side_effect=[SimpleNamespace(returncode=0, stdout="[]"),
1307
+ SimpleNamespace(returncode=0, stdout="https://github.com/example/issues/1")]) as run:
1308
+ ir.submit_incident_to_github(repo, incident)
1309
+ self.assertNotIn("PrivateCustomerName", str(run.call_args_list))
1310
+
1311
+ def test_snapshot_rejects_wrong_identity_schema_and_plan_hash(self):
1312
+ from self_heal import heal_task_state, load_stable_snapshot, save_stable_snapshot
1313
+ with tempfile.TemporaryDirectory() as td:
1314
+ repo = Path(td); tdir = repo / ".agents/state/tasks/task-a"
1315
+ plan = {"task_id": "task-a", "status": "CANCELLED", "requested_outcome": "test"}
1316
+ plan["plan_sha256"] = canonical_sha256(plan_payload(plan))
1317
+ save_plan(tdir / "plan.json", plan)
1318
+ self.assertIsNotNone(save_stable_snapshot(repo, "task-a", "cancelled"))
1319
+ good = load_stable_snapshot(repo, "task-a")
1320
+ self.assertIsNotNone(good)
1321
+ for mutate in (lambda x: x.update(task_id="task-b"),
1322
+ lambda x: x["plan"].update(task_id="task-b"),
1323
+ lambda x: x.update(schema_version=99),
1324
+ lambda x: x["plan"].update(requested_outcome="different")):
1325
+ bad = json.loads(json.dumps(good)); mutate(bad)
1326
+ atomic_write_json(tdir / "snapshots/stable-latest.json", bad)
1327
+ (tdir / "plan.json").write_text("{broken", encoding="utf-8")
1328
+ self.assertIsNone(load_stable_snapshot(repo, "task-a"))
1329
+ self.assertEqual("UNRECOVERABLE", heal_task_state(repo, "task-a")["status"])
1330
+ self.assertEqual("{broken", (tdir / "plan.json").read_text())
1331
+ self.assertIsNone(load_stable_snapshot(repo, "task-a", "../../../escape"))
1332
+ atomic_write_json(tdir / "snapshots/stable-latest.json", good)
1333
+ with mock.patch("incident_reporter.record_incident"):
1334
+ self.assertEqual("HEALED", heal_task_state(repo, "task-a")["status"])
1335
+ self.assertEqual("task-a", read_json(tdir / "plan.json")["task_id"])
1336
+
1337
+ def test_snapshot_requires_bound_approval_and_run_identity(self):
1338
+ from self_heal import save_stable_snapshot, load_stable_snapshot
1339
+ with tempfile.TemporaryDirectory() as td:
1340
+ repo = Path(td)
1341
+ plan = {"task_id": "task", "status": "IMPLEMENTING", "requested_outcome": "test",
1342
+ "execution_nonce": "nonce", "approval": {"single_use_nonce": "nonce"}}
1343
+ plan["plan_sha256"] = canonical_sha256(plan_payload(plan))
1344
+ self.assertIsNone(save_stable_snapshot(repo, "task", "implementing", plan=plan))
1345
+ plan["approval"]["plan_sha256"] = plan["plan_sha256"]
1346
+ self.assertIsNotNone(save_stable_snapshot(repo, "task", "implementing", plan=plan))
1347
+ self.assertIsNone(save_stable_snapshot(repo, "task", "implementing", plan=plan,
1348
+ current_run={"task_id": "other"}))
1349
+ self.assertIsNotNone(load_stable_snapshot(repo, "task"))
1350
+ plan["execution_nonce"] = "wrong"
1351
+ self.assertIsNone(save_stable_snapshot(repo, "task", "implementing", plan=plan))
1352
+
1353
+ def test_legacy_incident_url_is_rebuilt_on_load(self):
1354
+ import incident_reporter as ir
1355
+ with tempfile.TemporaryDirectory() as td:
1356
+ repo = Path(td)
1357
+ (repo / ".agents").mkdir()
1358
+ incident = ir.record_incident(repo, code="MANUAL_REPORT", command="test", auto_submit=False)
1359
+ incident["issue_url"] = "https://github.com/issues/new?body=private-customer"
1360
+ incident["message"] = "private-customer"
1361
+ atomic_write_json(repo / ".agents/state/incidents" / (incident["incident_id"] + ".json"), incident)
1362
+ for identifier in (None, incident["incident_id"]):
1363
+ self.assertNotIn("private-customer", ir.load_incident(repo, identifier)["issue_url"])
1364
+
1365
+ def test_pm_nested_named_terminal_states_and_provider_issue_names(self):
1366
+ from integrations.universal_pm import UniversalPmIntegration
1367
+ pm = UniversalPmIntegration()
1368
+ for container in ({"status_name": "Done"}, {"transition_name": "Closed"},
1369
+ {"status": {"name": "Done"}}, {"state": {"name": "Closed"}},
1370
+ {"fields": {"state": "Resolved"}}, {"fields": {"transition": {"name": "Done"}}}):
1371
+ with self.subTest(container=container):
1372
+ self.assertFalse(pm.validate_pm_mutation("jira", "update_issue", container, {}, {})[0])
1373
+ self.assertTrue(pm.validate_pm_mutation("jira", "update_issue", container, {}, {"allow_close": True})[0])
1374
+ for tool in ("editJiraIssue", "jira_update_issue", "linear_update_issue"):
1375
+ self.assertFalse(pm.validate_pm_mutation("jira", tool, {"fields": {"description": ""}}, {}, {})[0])
1376
+ self.assertTrue(pm.validate_pm_mutation("jira", "create_issue", {"description": ""}, {}, {})[0])
1377
+
1378
+ def test_pm_rejects_opaque_status_ids_and_empty_description(self):
1379
+ from integrations.universal_pm import UniversalPmIntegration
1380
+ pm = UniversalPmIntegration()
1381
+ for args in ({"transition": {"id": "31"}}, {"transition": {"id": "31", "name": "In Progress"}},
1382
+ {"status_id": "31"}, {"stateId": "abc-123"}, {"status": 31},
1383
+ {"fields": {"status": {"id": "31"}}}):
1384
+ with self.subTest(args=args):
1385
+ self.assertFalse(pm.validate_pm_mutation("jira", "transition_issue", args, {}, {"allow_close": False})[0])
1386
+ self.assertTrue(pm.validate_pm_mutation("jira", "transition_issue", args, {}, {"allow_close": True})[0])
1387
+ for value in ("", None, {}, []):
1388
+ for args in ({"description": value}, {"fields": {"description": value}}):
1389
+ self.assertFalse(pm.validate_pm_mutation("jira", "update_issue", args, {}, {"allow_close": True})[0])
1390
+ self.assertTrue(pm.validate_pm_mutation("jira", "add_comment", {"body": "test"}, {}, {})[0])
1391
+ self.assertTrue(pm.validate_pm_mutation("jira", "update_issue", {"status": "In Progress"}, {}, {})[0])
1392
+
1393
+
1287
1394
  if __name__ == "__main__":
1288
1395
  unittest.main(verbosity=2)
@@ -97,7 +97,7 @@ PUBLIC_COMMANDS: list[dict[str, Any]] = [
97
97
  "description": "Prepare a universal functional QA report and MCP call recipe for any discovered PM provider."},
98
98
  {"command": "report-issue", "read_only": False,
99
99
  "valid_states": ["ANY"], "required_inputs": [], "model_facing": True,
100
- "description": "List, record, or submit sanitized Zero-PII harness incident reports to GitHub Issues."},
100
+ "description": "Inspect local incident diagnostics or submit allowlisted metadata to GitHub Issues."},
101
101
  {"command": "task merge", "read_only": False,
102
102
  "valid_states": ["AWAITING_DEVELOPER_APPROVAL"],
103
103
  "required_inputs": ["task_id", "from_task_id"], "model_facing": True,
@@ -6,8 +6,8 @@ bundles under `.agents/state/incidents/` and optionally submits deduplicated
6
6
  GitHub Issues to `rabee-elkholy/android-agent-harness` via `gh` CLI (or emits a
7
7
  pre-filled GitHub Issue URL when `gh` is unavailable).
8
8
 
9
- Standard library Python only. Never includes project source code, user secrets,
10
- or unredacted absolute filesystem paths.
9
+ Standard library Python only. Public exports use allowlisted metadata only.
10
+ Local diagnostic text is best-effort redacted and may contain sensitive data.
11
11
  """
12
12
  from __future__ import annotations
13
13
 
@@ -121,8 +121,42 @@ def compute_incident_fingerprint(
121
121
  return canonical_sha256(payload)
122
122
 
123
123
 
124
+ def _public_incident(incident: dict[str, Any]) -> dict[str, Any]:
125
+ """Export only bounded diagnostic metadata, including for old local reports.
126
+
127
+ Redaction is best-effort for local logs; arbitrary strings never belong in
128
+ automatic public reports. Rebuild the URL too: legacy URLs contain raw text.
129
+ """
130
+ def choice(key, allowed, default="unknown"):
131
+ value = incident.get(key)
132
+ return value if isinstance(value, str) and value in allowed else default
133
+
134
+ def version(key):
135
+ value = incident.get(key)
136
+ return value if isinstance(value, str) and re.fullmatch(r"[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}", value) else "unknown"
137
+
138
+ fp = incident.get("fingerprint_sha256")
139
+ if not isinstance(fp, str) or not re.fullmatch(r"[0-9a-f]{64}", fp):
140
+ fp = "unknown"
141
+ os_name = str(incident.get("os") or "").split("-", 1)[0]
142
+ return {
143
+ "fingerprint_sha256": fp,
144
+ "harness_version": version("harness_version"),
145
+ "python_version": version("python_version"),
146
+ "host": choice("host", {"antigravity", "claude", "codex", "cli", "gemini"}),
147
+ "os": os_name if os_name in {"Linux", "Windows", "Darwin"} else "unknown",
148
+ "code": choice("code", {"HARNESS_CONTRADICTION", "AUTO_HEAL_TRIGGERED", "HARNESS_INCIDENT",
149
+ "UNEXPECTED_EXCEPTION", "MANUAL_REPORT"}, "HARNESS_INCIDENT"),
150
+ "task_state": choice("task_state", {"DRAFT", "PENDING_APPROVAL", "APPROVED", "IMPLEMENTING",
151
+ "VERIFYING", "READY_FOR_DELIVERY", "DELIVERED", "CANCELLED"}, "UNKNOWN"),
152
+ "healed": incident.get("healed") is True,
153
+ "command": "harness",
154
+ }
155
+
156
+
124
157
  def build_github_issue_url(incident: dict[str, Any], target_repo: str = UPSTREAM_REPO) -> str:
125
158
  """Construct a pre-filled GitHub Issue URL for one-click developer or agent reporting."""
159
+ incident = _public_incident(incident)
126
160
  fp_short = str(incident.get("fingerprint_sha256") or "")[:10]
127
161
  code = str(incident.get("code") or "INCIDENT")
128
162
  version = str(incident.get("harness_version") or "unknown")
@@ -139,44 +173,18 @@ def build_github_issue_url(incident: dict[str, Any], target_repo: str = UPSTREAM
139
173
 
140
174
  def format_issue_markdown(incident: dict[str, Any]) -> str:
141
175
  """Render a clean, sanitized Markdown report suitable for GitHub Issues."""
142
- fp = str(incident.get("fingerprint_sha256") or "")
143
- lines = [
144
- "### Automated Harness Incident Report",
145
- "",
146
- f"- **Fingerprint**: `fingerprint:{fp}`",
147
- f"- **Incident ID**: `{incident.get('incident_id', '')}`",
148
- f"- **Harness Version**: `{incident.get('harness_version', 'unknown')}`",
149
- f"- **Host / OS / Python**: `{incident.get('host', 'unknown')}` / `{incident.get('os', 'unknown')}` / `{incident.get('python_version', 'unknown')}`",
150
- f"- **Code**: `{incident.get('code', 'UNKNOWN')}`",
151
- f"- **Command**: `{incident.get('command', '')}`",
152
- f"- **Task State**: `{incident.get('task_state', 'NONE')}`",
153
- f"- **Auto-Healed**: `{incident.get('healed', False)}` ({incident.get('heal_action', 'none')})",
154
- f"- **Recorded At (UTC)**: `{incident.get('created_at', '')}`",
155
- "",
156
- "#### Diagnostic Summary",
157
- "```text",
158
- str(incident.get("message") or "").strip()[:1500],
159
- "```",
160
- ]
161
- frames = incident.get("engine_frames") or []
162
- if frames:
163
- lines.extend([
164
- "",
165
- "#### Sanitized Engine Frames",
166
- "```text",
167
- "\n".join(str(f) for f in frames[:15]),
168
- "```",
169
- ])
170
- extra = incident.get("extra")
171
- if isinstance(extra, dict) and extra:
172
- lines.extend([
173
- "",
174
- "#### Additional Context",
175
- "```json",
176
- json.dumps(extra, indent=2, ensure_ascii=False)[:1500],
177
- "```",
178
- ])
179
- return "\n".join(lines) + "\n"
176
+ public = _public_incident(incident)
177
+ return "\n".join([
178
+ "### Harness Incident Metadata", "",
179
+ f"- **Fingerprint**: `fingerprint:{public['fingerprint_sha256']}`",
180
+ f"- **Harness Version**: `{public['harness_version']}`",
181
+ f"- **Host / OS / Python**: `{public['host']}` / `{public['os']}` / `{public['python_version']}`",
182
+ f"- **Code**: `{public['code']}`",
183
+ f"- **Task State**: `{public['task_state']}`",
184
+ f"- **Auto-Healed**: `{public['healed']}`", "",
185
+ "Free-text diagnostics, command arguments, paths, timestamps and extra data remain local.",
186
+ "Local logs may contain sensitive information; review them before sharing.", "",
187
+ ])
180
188
 
181
189
 
182
190
  def _is_test_or_ci_environment() -> bool:
@@ -238,6 +246,7 @@ def record_incident(
238
246
  try:
239
247
  existing_payload = read_json(existing_file)
240
248
  existing_payload["status"] = "DUPLICATE"
249
+ existing_payload["issue_url"] = build_github_issue_url(existing_payload)
241
250
  return existing_payload
242
251
  except (OSError, ValueError):
243
252
  pass
@@ -325,6 +334,7 @@ def submit_incident_to_github(
325
334
  timeout_seconds: float = 8.0,
326
335
  ) -> dict[str, Any]:
327
336
  """Submit an incident to GitHub Issues via `gh` CLI with fingerprint deduplication."""
337
+ incident = _public_incident(incident)
328
338
  inc_dir = _incidents_dir(repo)
329
339
  reported_path = inc_dir / "reported-index.json"
330
340
  try:
@@ -456,7 +466,9 @@ def load_incident(repo: Path, incident_id: str | None = None) -> dict[str, Any]
456
466
  candidate = inc_dir / (incident_id if incident_id.endswith(".json") else f"{incident_id}.json")
457
467
  if candidate.is_file():
458
468
  try:
459
- return read_json(candidate)
469
+ incident = read_json(candidate)
470
+ incident["issue_url"] = build_github_issue_url(incident)
471
+ return incident
460
472
  except (OSError, ValueError):
461
473
  return None
462
474
  items = list_incidents(repo)
@@ -466,7 +478,9 @@ def load_incident(repo: Path, incident_id: str | None = None) -> dict[str, Any]
466
478
  latest_path = inc_dir / str(latest_entry.get("path") or f"{latest_entry.get('incident_id')}.json")
467
479
  if latest_path.is_file():
468
480
  try:
469
- return read_json(latest_path)
481
+ incident = read_json(latest_path)
482
+ incident["issue_url"] = build_github_issue_url(incident)
483
+ return incident
470
484
  except (OSError, ValueError):
471
485
  return None
472
486
  return None
@@ -12,6 +12,8 @@ Asana, Trello, and any schema-discovered PM MCP in Antigravity):
12
12
  """
13
13
  from __future__ import annotations
14
14
 
15
+ import re
16
+
15
17
  from typing import Any, Mapping
16
18
  from integrations.base import ExternalIntegration
17
19
  from pm_discovery import BUILTIN_PM_CATALOG, classify_pm_tool, identify_pm_provider
@@ -108,22 +110,34 @@ class UniversalPmIntegration(ExternalIntegration):
108
110
  allow_close = bool(grant and grant.get("allow_close"))
109
111
 
110
112
  # 1. Terminal Status Protection (Done / Closed / Solved / Resolved)
111
- status_candidates = [
112
- str(args.get(k) or "").strip().lower()
113
- for k in ("status", "status_name", "transition_name", "state")
114
- if args.get(k)
115
- ]
116
- # Also inspect nested fields (e.g. Jira fields={"status": {"name": "Done"}} or transition={"name": "Done"})
113
+ status_candidates = []
117
114
  fields_obj = args.get("fields")
118
- if isinstance(fields_obj, Mapping):
119
- st_obj = fields_obj.get("status")
120
- if isinstance(st_obj, Mapping) and st_obj.get("name"):
121
- status_candidates.append(str(st_obj.get("name")).strip().lower())
122
- elif isinstance(st_obj, str):
123
- status_candidates.append(st_obj.strip().lower())
124
- trans_obj = args.get("transition")
125
- if isinstance(trans_obj, Mapping) and trans_obj.get("name"):
126
- status_candidates.append(str(trans_obj.get("name")).strip().lower())
115
+
116
+ # Names supplied alongside an ID are not trusted provider metadata. An
117
+ # opaque target needs explicit close authority until the adapter can
118
+ # establish its nonterminal meaning from authoritative provider state.
119
+ opaque = False
120
+ for container in (args, fields_obj if isinstance(fields_obj, Mapping) else {}):
121
+ for key, value in container.items():
122
+ normalized = str(key).replace("_", "").lower()
123
+ if normalized in {"statusid", "stateid", "transitionid"}:
124
+ opaque = True
125
+ elif normalized in {"status", "state", "transition", "statusname", "statename", "transitionname"}:
126
+ if isinstance(value, Mapping):
127
+ if isinstance(value.get("name"), str):
128
+ status_candidates.append(value["name"].strip().lower())
129
+ if "id" in value or not isinstance(value.get("name"), str):
130
+ opaque = True
131
+ elif isinstance(value, str):
132
+ status_candidates.append(value.strip().lower())
133
+ if not value.strip() or value.strip().isdigit() or re.fullmatch(r"[0-9a-fA-F-]{32,36}", value.strip()):
134
+ opaque = True
135
+ else:
136
+ opaque = True
137
+ if not allow_close and (opaque or (tool_class == "UPDATE_STATUS" and not status_candidates)):
138
+ return False, ("PM_STATUS_UNVERIFIED: The target status/transition is opaque. "
139
+ "Use a supported named nonterminal status or obtain explicit developer close authority; "
140
+ "a caller-supplied name alongside an ID does not prove its meaning.")
127
141
 
128
142
  for st in status_candidates:
129
143
  if st in TERMINAL_STATUS_VALUES and not allow_close:
@@ -153,11 +167,13 @@ class UniversalPmIntegration(ExternalIntegration):
153
167
 
154
168
  is_bug_update = (
155
169
  tl in ("zohoprojects_update_issue", "update_issue", "update_bug")
170
+ or ("issue" in tl and any(verb in tl for verb in ("update", "edit"))
171
+ and "create" not in tl and "comment" not in tl)
156
172
  or (item_type in ("bug", "defect", "issue") and tool_class in ("UPDATE_DESCRIPTION", "WRITE") and "create" not in tl and "comment" not in tl)
157
173
  )
158
- has_desc_override = bool(
159
- args.get("description")
160
- or (isinstance(fields_obj, Mapping) and fields_obj.get("description"))
174
+ has_desc_override = (
175
+ "description" in args
176
+ or (isinstance(fields_obj, Mapping) and "description" in fields_obj)
161
177
  )
162
178
  if is_bug_update and has_desc_override:
163
179
  return (
@@ -16,6 +16,7 @@ from __future__ import annotations
16
16
 
17
17
  import argparse
18
18
  import json
19
+ import re
19
20
  import sys
20
21
  from pathlib import Path
21
22
  from typing import Any
@@ -33,11 +34,13 @@ from _vnext_common import ( # noqa: E402
33
34
  task_dir,
34
35
  utc_now,
35
36
  )
36
- from plan_authority import save_plan # noqa: E402
37
+ from plan_authority import save_plan, validate_plan_hash # noqa: E402
37
38
 
38
39
 
39
40
  def _snapshots_dir(repo: Path, task_id: str) -> Path:
40
41
  d = task_dir(repo, task_id) / "snapshots"
42
+ if d.is_symlink() or not d.resolve().is_relative_to(task_dir(repo, task_id).resolve()):
43
+ raise ValidationError("snapshot directory escapes task storage")
41
44
  d.mkdir(parents=True, exist_ok=True)
42
45
  return d
43
46
 
@@ -77,25 +80,51 @@ def save_stable_snapshot(
77
80
  "phase_state": phase_state,
78
81
  "current_run": current_run,
79
82
  }
83
+ if not re.fullmatch(r"[a-z0-9][a-z0-9-]{0,63}", clean_stage) or not _valid_snapshot(payload, task_id):
84
+ return None
80
85
  stage_path = snap_dir / f"stable-{clean_stage}.json"
81
86
  atomic_write_json(stage_path, payload)
82
87
  atomic_write_json(snap_dir / "stable-latest.json", payload)
83
88
  return stage_path
84
- except (OSError, ValueError, ValidationError):
89
+ except (OSError, ValueError, TypeError, KeyError, AttributeError, ValidationError):
85
90
  return None
86
91
 
87
92
 
93
+ def _valid_snapshot(data: Any, task_id: str) -> bool:
94
+ if not isinstance(data, dict) or type(data.get("schema_version")) is not int or data["schema_version"] != 1:
95
+ return False
96
+ plan = data.get("plan")
97
+ if data.get("task_id") != task_id or not isinstance(plan, dict) or plan.get("task_id") != task_id:
98
+ return False
99
+ if not validate_plan_hash(plan)[0]:
100
+ return False
101
+ approval = plan.get("approval")
102
+ if plan.get("status") in {"APPROVED", "IMPLEMENTING", "VERIFYING", "READY_FOR_DELIVERY"}:
103
+ if not isinstance(approval, dict) or approval.get("plan_sha256") != plan.get("plan_sha256"):
104
+ return False
105
+ nonce = approval.get("single_use_nonce")
106
+ if not nonce or (plan.get("status") != "APPROVED" and plan.get("execution_nonce") != nonce):
107
+ return False
108
+ for key in ("phase_state", "current_run"):
109
+ value = data.get(key)
110
+ if value is not None and (not isinstance(value, dict) or value.get("task_id") != task_id):
111
+ return False
112
+ return True
113
+
114
+
88
115
  def load_stable_snapshot(repo: Path, task_id: str, stage: str = "latest") -> dict[str, Any] | None:
89
116
  """Load a saved stable state checkpoint if present and valid."""
90
117
  try:
91
118
  snap_dir = task_dir(repo, task_id) / "snapshots"
92
119
  clean_stage = str(stage or "latest").strip().lower().replace("_", "-")
93
120
  target = snap_dir / f"stable-{clean_stage}.json"
94
- if not target.is_file():
121
+ if (not re.fullmatch(r"[a-z0-9][a-z0-9-]{0,63}", clean_stage)
122
+ or target.is_symlink() or not target.resolve().is_relative_to(task_dir(repo, task_id).resolve())
123
+ or not target.is_file() or target.stat().st_size > 4 * 1024 * 1024):
95
124
  return None
96
125
  data = read_json(target)
97
- return data if isinstance(data, dict) and isinstance(data.get("plan"), dict) else None
98
- except (OSError, ValueError, ValidationError):
126
+ return data if _valid_snapshot(data, task_id) else None
127
+ except (OSError, ValueError, TypeError, KeyError, AttributeError, ValidationError):
99
128
  return None
100
129
 
101
130
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-agent-harness
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Approval-first, evidence-bound development harness for supported Gradle Android projects.
5
5
  Author: Rabee Elkholy
6
6
  License-Expression: MIT
@@ -192,7 +192,7 @@ Task A
192
192
  Open your Android project in your AI coding agent (Claude Code, Codex, Gemini CLI / Antigravity, Cursor, Windsurf, Roo Code, or Copilot) and provide this bootstrap prompt:
193
193
 
194
194
  ```text
195
- Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.2/docs/install-or-update-prompt.md and follow all instructions.
195
+ Read https://raw.githubusercontent.com/rabee-elkholy/android-agent-harness/v1.2.3/docs/install-or-update-prompt.md and follow all instructions.
196
196
  ```
197
197
 
198
198
  The installer runs non-destructively: it inspects project Gradle modules, asks a few essential setup questions, presents an installation plan, installs the managed engine under `.agents/`, and runs environment diagnostics. The full harness kit source checkout lives outside the target application (`~/.android-harness/kit`), while your Android project receives only the managed harness runtime payload under `.agents/`.
@@ -215,7 +215,7 @@ android-harness doctor --repo /path/to/android-project --json
215
215
  Or run directly from a pinned source clone without global installation:
216
216
 
217
217
  ```bash
218
- git clone --depth 1 --branch v1.2.2 --single-branch \
218
+ git clone --depth 1 --branch v1.2.3 --single-branch \
219
219
  https://github.com/rabee-elkholy/android-agent-harness.git ~/.android-harness/kit
220
220
 
221
221
  python ~/.android-harness/kit/harness_cli.py init \
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "android-agent-harness"
7
- version = "1.2.2"
7
+ version = "1.2.3"
8
8
  description = "Approval-first, evidence-bound development harness for supported Gradle Android projects."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1 +0,0 @@
1
- 1.2.2