claude-dev-env 2.16.0 → 2.18.0
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.
- package/.agents/agents/AGENTS.md +6 -0
- package/.agents/skills/AGENTS.md +34 -35
- package/.agents/skills/_shared/pr-loop/AGENTS.md +22 -15
- package/.agents/skills/_shared/pr-loop/portable-driver.md +6 -7
- package/.agents/skills/_shared/pr-loop/prompts/AGENTS.md +2 -2
- package/.agents/skills/_shared/pr-loop/scripts/AGENTS.md +1 -1
- package/.agents/skills/_shared/pr-loop/scripts/portable_converge_driver.py +25 -16
- package/.agents/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/portable_driver_constants.py +1 -5
- package/.agents/skills/autoconverge/reference/convergence-gates.md +31 -0
- package/.agents/skills/autoconverge/reference/convergence.md +8 -10
- package/.agents/skills/autoconverge/reference/gotchas.md +1 -1
- package/.agents/skills/autoconverge/reference/stop-conditions.md +1 -1
- package/.agents/skills/autoconverge/workflow/converge.codex-gate.test.mjs +1 -1
- package/.agents/skills/autoconverge/workflow/converge.contract.test.mjs +1 -1
- package/.agents/skills/autoconverge/workflow/converge.mjs +3 -3
- package/.agents/skills/cert-classification-rule/SKILL.md +224 -0
- package/.agents/skills/cert-classification-rule/scripts/resort_cert_folders.py +158 -0
- package/.agents/skills/eli5/SKILL.md +128 -0
- package/.agents/skills/eli5/reference/task-seeds.md +11 -0
- package/.agents/skills/fresh-branch/scripts/test_create_fresh_branch.py +2 -3
- package/.agents/skills/name-by-capability-audit/SKILL.md +67 -0
- package/.agents/skills/name-by-capability-audit/reference/fetch-commands.md +29 -0
- package/.agents/skills/name-by-capability-audit/reference/offense-examples.md +32 -0
- package/.agents/skills/name-by-capability-audit/reference/report-template.md +29 -0
- package/.agents/skills/name-by-capability-audit/reference/rule-checklist.md +38 -0
- package/.agents/skills/name-by-capability-audit/reference/task-seeds.md +9 -0
- package/.agents/skills/orchestrator/SKILL.md +6 -4
- package/.agents/skills/orchestrator-refresh/SKILL.md +9 -5
- package/.agents/skills/pr-cleanup/SKILL.md +99 -0
- package/.agents/skills/prototype/reference/honest-limitations.md +1 -1
- package/.agents/skills/prototype/reference/promotion-tasks.md +1 -1
- package/.agents/skills/prototype/scripts/test_build_sandbox_settings.py +2 -2
- package/.agents/skills/prototype/workflows/promotion.md +2 -2
- package/.agents/skills/review-router/SKILL.md +51 -0
- package/.agents/skills/review-router/reference/route-policy.json +7 -0
- package/.agents/skills/review-router/reference/task-seeds.md +1 -0
- package/.agents/skills/review-router/scripts/conftest.py +4 -0
- package/.agents/skills/review-router/scripts/review_router.py +50 -0
- package/.agents/skills/review-router/scripts/review_router_cli.py +211 -0
- package/.agents/skills/review-router/scripts/review_router_constants/__init__.py +1 -0
- package/.agents/skills/review-router/scripts/review_router_constants/config/__init__.py +0 -0
- package/.agents/skills/review-router/scripts/review_router_constants/config/constants.py +13 -0
- package/.agents/skills/review-router/scripts/test_review_router.py +23 -0
- package/.agents/skills/review-router/scripts/test_review_router_cli.py +47 -0
- package/.agents/skills/review-tier/SKILL.md +56 -0
- package/.agents/skills/review-tier/reference/task-seeds.md +1 -0
- package/.agents/skills/review-tier/reference/tier-policy.json +9 -0
- package/.agents/skills/review-tier/scripts/conftest.py +4 -0
- package/.agents/skills/review-tier/scripts/review_tier.py +332 -0
- package/.agents/skills/review-tier/scripts/review_tier_constants/__init__.py +1 -0
- package/.agents/skills/review-tier/scripts/review_tier_constants/config/__init__.py +0 -0
- package/.agents/skills/review-tier/scripts/review_tier_constants/config/constants.py +29 -0
- package/.agents/skills/review-tier/scripts/test_generation.py +171 -0
- package/.agents/skills/review-tier/scripts/test_review_tier.py +33 -0
- package/.agents/skills/session-log/SKILL.md +1 -1
- package/.agents/skills/shared-extraction-audit/SKILL.md +160 -0
- package/.agents/skills/shared-extraction-audit/reference/examples.md +46 -0
- package/.agents/skills/shared-extraction-audit/reference/offense-taxonomy.md +100 -0
- package/.agents/skills/source-command-logifix/SKILL.md +29 -0
- package/.agents/skills/source-command-sr-loop/SKILL.md +58 -0
- package/.agents/skills/team-advisor/SKILL.md +5 -5
- package/.agents/skills-archived/AGENTS.md +45 -0
- package/.agents/{skills → skills-archived}/anthropic-plan/AGENTS.md +1 -1
- package/.agents/{skills → skills-archived}/bugteam/scripts/reflow_skill_md.py +3 -3
- package/.agents/{skills → skills-archived}/codex-review/test_skill_scaffold.py +1 -1
- package/.agents/{skills → skills-archived}/copilot-finding-triage/SKILL.md +1 -1
- package/.agents/{skills → skills-archived}/pr-converge/SKILL.md +6 -6
- package/.agents/{skills → skills-archived}/pr-converge/pr_converge_skill_constants/AGENTS.md +1 -1
- package/.agents/{skills → skills-archived}/pr-converge/pr_converge_skill_constants/constants.py +1 -1
- package/.agents/{skills → skills-archived}/pr-converge/reference/multi-pr-orchestration.md +1 -1
- package/.agents/{skills → skills-archived}/pr-converge/reference/per-tick.md +3 -3
- package/.agents/{skills → skills-archived}/pr-converge/scripts/reflow_skill_md.py +2 -2
- package/.agents/{skills → skills-archived}/pr-converge/test_portable_pacer_gate.py +6 -2
- package/.agents/{skills → skills-archived}/pr-converge/workflows/schedule-wakeup-loop.md +1 -1
- package/.agents/{skills → skills-archived}/split-pr/reference/proposal-format.md +1 -1
- package/AGENTS.md +34 -58
- package/_shared/AGENTS.md +2 -0
- package/_shared/advisor/AGENTS.md +5 -5
- package/_shared/advisor/advisor-protocol.md +54 -31
- package/_shared/advisor/reference/advisor-block.md +5 -1
- package/_shared/advisor/reference/consult-format.md +1 -1
- package/_shared/advisor/reference/identity.md +28 -0
- package/_shared/advisor/reference/lifecycle.md +8 -1
- package/_shared/advisor/reference/sol-rung.md +14 -9
- package/_shared/advisor/reference/spawn-walk-log.md +6 -5
- package/_shared/advisor/reference/third-party-bind.md +6 -7
- package/_shared/advisor/reference/warm-up.md +9 -2
- package/_shared/advisor/scripts/codex_sol_advisor.py +66 -11
- package/_shared/advisor/scripts/config/advisor_scripts_constants/advisor_route_constants.py +9 -0
- package/_shared/advisor/scripts/config/advisor_scripts_constants/model_tier_run_validator_constants.py +16 -4
- package/_shared/advisor/scripts/config/advisor_scripts_constants/sol_advisor_constants.py +11 -10
- package/_shared/advisor/scripts/model_tier_run_validator.py +50 -23
- package/_shared/advisor/scripts/tests/test_codex_sol_advisor.py +108 -3
- package/_shared/advisor/scripts/tests/test_model_tier_run_validator.py +171 -82
- package/_shared/advisor/scripts/tests/test_tier_model_ids.py +43 -0
- package/_shared/advisor/scripts/tier_model_ids.py +75 -7
- package/_shared/pr-loop/audit-reply-template.md +4 -0
- package/_shared/pr-loop/fix-protocol.md +7 -6
- package/_shared/pr-loop/gh-payloads.md +8 -6
- package/_shared/pr-loop/precatch-rubric.md +6 -5
- package/_shared/pr-loop/scripts/AGENTS.md +15 -0
- package/_shared/pr-loop/scripts/_pr_converge_path_setup.py +38 -0
- package/_shared/pr-loop/scripts/check_bugbot_ci.py +279 -0
- package/_shared/pr-loop/scripts/check_convergence.py +923 -0
- package/_shared/pr-loop/scripts/check_convergence_availability.py +275 -0
- package/_shared/pr-loop/scripts/check_convergence_gates.py +279 -0
- package/_shared/pr-loop/scripts/check_convergence_thread_gates.py +219 -0
- package/_shared/pr-loop/scripts/check_pending_reviews.py +154 -0
- package/_shared/pr-loop/scripts/codex_down_classifier.py +98 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/.claude/CLAUDE.md +1 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/AGENTS.md +18 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/__init__.py +1 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/classifier_constants.py +35 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/codex_usage_probe_constants.py +82 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/findings_constants.py +18 -0
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/run_constants.py +53 -0
- package/_shared/pr-loop/scripts/codex_usage_probe.py +570 -0
- package/_shared/pr-loop/scripts/conftest.py +43 -0
- package/_shared/pr-loop/scripts/fetch_copilot_reviews.py +134 -0
- package/_shared/pr-loop/scripts/fixtures/auth_failure_synthetic.txt +1 -0
- package/_shared/pr-loop/scripts/fixtures/config_load_failure_v0.125.0.txt +1 -0
- package/_shared/pr-loop/scripts/fixtures/freeform_findings_v0.144.3.txt +6 -0
- package/_shared/pr-loop/scripts/fixtures/model_rejection_v0.125.0.jsonl +5 -0
- package/_shared/pr-loop/scripts/fixtures/structured_findings.txt +13 -0
- package/_shared/pr-loop/scripts/fixtures/success_stream_v0.144.3.jsonl +6 -0
- package/_shared/pr-loop/scripts/fixtures/unknown_failure_synthetic.txt +1 -0
- package/_shared/pr-loop/scripts/fixtures/usage_limit_synthetic.txt +1 -0
- package/_shared/pr-loop/scripts/parse_codex_findings.py +207 -0
- package/_shared/pr-loop/scripts/post_fix_reply.py +168 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/.claude/CLAUDE.md +1 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/AGENTS.md +18 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/__init__.py +0 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/convergence_gate_constants.py +70 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/pr_converge_constants.py +118 -0
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/reflow_skill_md_constants.py +13 -0
- package/_shared/pr-loop/scripts/pr_converge_skill_constants/.claude/CLAUDE.md +1 -0
- package/_shared/pr-loop/scripts/pr_converge_skill_constants/AGENTS.md +26 -0
- package/_shared/pr-loop/scripts/pr_converge_skill_constants/__init__.py +0 -0
- package/_shared/pr-loop/scripts/pr_converge_skill_constants/constants.py +69 -0
- package/_shared/pr-loop/scripts/run_codex_review.py +609 -0
- package/_shared/pr-loop/scripts/test__pr_converge_path_setup.py +30 -0
- package/_shared/pr-loop/scripts/test_check_bugbot_ci.py +312 -0
- package/_shared/pr-loop/scripts/test_check_convergence.py +438 -0
- package/_shared/pr-loop/scripts/test_check_convergence_availability.py +391 -0
- package/_shared/pr-loop/scripts/test_check_convergence_codex.py +517 -0
- package/_shared/pr-loop/scripts/test_check_convergence_contract.py +400 -0
- package/_shared/pr-loop/scripts/test_check_convergence_fixture.py +179 -0
- package/_shared/pr-loop/scripts/test_check_convergence_gates.py +84 -0
- package/_shared/pr-loop/scripts/test_check_convergence_thread_gates.py +99 -0
- package/_shared/pr-loop/scripts/test_codex_down_classifier.py +143 -0
- package/_shared/pr-loop/scripts/test_codex_usage_probe.py +683 -0
- package/_shared/pr-loop/scripts/test_parse_codex_findings.py +130 -0
- package/_shared/pr-loop/scripts/test_run_codex_review.py +969 -0
- package/_shared/pr-loop/scripts/tests/test_claude_permissions_common.py +1 -1
- package/_shared/pr-loop/scripts/tests/test_code_rules_gate.py +1 -1
- package/_shared/pr-loop/scripts/tests/test_fix_hookspath.py +1 -1
- package/_shared/pr-loop/state-schema.md +20 -28
- package/_shared/pr-loop/worker-spawn.md +4 -3
- package/_shared/process-tree/AGENTS.md +3 -3
- package/bin/ever-shipped-skills.mjs +29 -1
- package/bin/install-constants.mjs +15 -6
- package/bin/install.agents-home.test.mjs +13 -0
- package/bin/install.cursor-rules.test.mjs +3 -3
- package/bin/install.mjs +80 -20
- package/bin/install.profile-root.test.mjs +1 -1
- package/bin/install.prune.test.mjs +23 -204
- package/bin/install.test.mjs +8 -5
- package/bin/resolve-install-root.mjs +21 -0
- package/bin/resolve-package-managed-directory.mjs +4 -4
- package/commands/AGENTS.md +2 -0
- package/commands/sr-loop.md +3 -0
- package/docs/references/prose-style-enforcement.md +3 -7
- package/docs/references/team-advisor-skill.md +2 -2
- package/hooks/AGENTS.md +0 -3
- package/hooks/blocking/AGENTS.md +0 -2
- package/hooks/blocking/ask_user_question_shape_blocker.py +83 -0
- package/hooks/blocking/pre_tool_use_dispatcher.py +2 -19
- package/hooks/blocking/state_description_blocker.py +1 -1
- package/hooks/blocking/test_ask_user_question_shape.py +69 -0
- package/hooks/blocking/test_pre_tool_use_dispatcher.py +17 -58
- package/hooks/blocking/test_pre_tool_use_dispatcher_native.py +9 -104
- package/hooks/blocking/test_state_description_blocker.py +1 -0
- package/hooks/blocking/test_stop_dispatcher.py +1 -26
- package/hooks/hooks.json +1 -1
- package/hooks/hooks_constants/AGENTS.md +0 -3
- package/hooks/hooks_constants/ask_user_question_shape.py +1 -1
- package/hooks/hooks_constants/ask_user_question_shape_constants.py +73 -0
- package/hooks/hooks_constants/bot_mention_comment_blocker_constants.py +1 -2
- package/hooks/hooks_constants/code_rules_path_utils_constants.py +0 -1
- package/hooks/hooks_constants/pre_tool_use_dispatcher_constants.py +0 -7
- package/hooks/hooks_constants/stop_dispatcher_constants.py +0 -1
- package/hooks/hooks_constants/test_ask_user_question_shape.py +1 -1
- package/hooks/hooks_constants/test_prose_metrics_parity.py +29 -107
- package/hooks/hooks_constants/test_stop_dispatcher_constants.py +0 -1
- package/hooks/hooks_constants/working_style_prompt_constants.py +9 -10
- package/hooks/session/AGENTS.md +4 -1
- package/hooks/session/test_working_style_prompt.py +8 -4
- package/hooks/session/working_style_prompt.py +4 -2
- package/package.json +1 -4
- package/rules/AGENTS.md +2 -5
- package/rules/asd-ste100-language.md +39 -0
- package/rules/ask-user-question-required.md +1 -1
- package/rules/long-horizon-autonomy.md +1 -1
- package/scripts/AGENTS.md +1 -0
- package/scripts/Show-Asset.ps1 +106 -0
- package/scripts/test_validate_instruction_pairs.py +30 -3
- package/scripts/tests/test_engine.py +4 -4
- package/scripts/tests/test_rules.py +5 -5
- package/system-prompts/AGENTS.md +8 -0
- package/system-prompts/software-engineer.xml +8 -3
- package/.agents/skills/grokify/evals/README.md +0 -72
- package/.agents/skills/grokify/evals/parse-payload.test.mjs +0 -171
- package/.agents/skills/grokify/evals/run-capability-evals.mjs +0 -545
- package/_shared/pr-loop/scripts/README.md +0 -21
- package/docs/imagegen.md +0 -22
- package/hooks/blocking/eli11_reply_enforcer.py +0 -436
- package/hooks/blocking/plain_language_blocker.py +0 -758
- package/hooks/blocking/test_eli11_reply_enforcer.py +0 -390
- package/hooks/blocking/test_plain_language_blocker.py +0 -683
- package/hooks/blocking/test_plain_language_blocker_allowlist.py +0 -228
- package/hooks/diagnostic/AGENTS.md +0 -75
- package/hooks/diagnostic/CLAUDE.md +0 -1
- package/hooks/diagnostic/hook_log_extractor.py +0 -875
- package/hooks/diagnostic/hook_log_init.py +0 -202
- package/hooks/diagnostic/hook_log_stop_wrapper.py +0 -26
- package/hooks/diagnostic/migrations/2026-04-25-drop-themes-hook-events.sql +0 -3
- package/hooks/diagnostic/migrations/AGENTS.md +0 -16
- package/hooks/diagnostic/migrations/CLAUDE.md +0 -1
- package/hooks/diagnostic/migrations/README.md +0 -76
- package/hooks/diagnostic/queries/AGENTS.md +0 -19
- package/hooks/diagnostic/queries/CLAUDE.md +0 -1
- package/hooks/diagnostic/queries/block_details_for_hook.sql +0 -26
- package/hooks/diagnostic/queries/blocks_by_category.sql +0 -10
- package/hooks/diagnostic/queries/blocks_by_tool.sql +0 -9
- package/hooks/diagnostic/queries/blocks_last_7_days.sql +0 -11
- package/hooks/diagnostic/queries/top_blockers_last_24_hours.sql +0 -12
- package/hooks/diagnostic/queries/top_blockers_overall.sql +0 -12
- package/hooks/diagnostic/requirements-hook-logs-dev.txt +0 -2
- package/hooks/diagnostic/requirements-hook-logs.txt +0 -1
- package/hooks/diagnostic/schema.sql +0 -51
- package/hooks/diagnostic/test_hook_log_extractor.py +0 -1518
- package/hooks/diagnostic/test_hook_log_init.py +0 -227
- package/hooks/diagnostic/test_hook_log_stop_wrapper.py +0 -17
- package/hooks/hooks_constants/eli11_reply_enforcer_constants.py +0 -94
- package/hooks/hooks_constants/hook_log_extractor_constants.py +0 -233
- package/hooks/hooks_constants/plain_language_blocker_constants.py +0 -366
- package/hooks/hooks_constants/test_hook_log_extractor_constants.py +0 -123
- package/rules/doc-prose-cuts.md +0 -58
- package/rules/eli11-replies.md +0 -36
- package/rules/opus5-communication-contract.md +0 -45
- package/rules/plain-language.md +0 -9
- /package/.agents/{skills → skills-archived}/anthropic-plan/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/anthropic_plan_scripts_constants/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/anthropic_plan_scripts_constants/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/anthropic_plan_scripts_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/anthropic_plan_scripts_constants/validate_packet_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/test_validate_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/scripts/validate_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/README.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/build-prompt.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/reuse-audit.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/source-map.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/templates/visual-plan.template.html +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/test_skill_contract.py +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/workflow/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/workflow/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/workflow/plan-packet.contract.test.mjs +0 -0
- /package/.agents/{skills → skills-archived}/anthropic-plan/workflow/plan-packet.mjs +0 -0
- /package/.agents/{skills → skills-archived}/auditing-claude-config/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/auditing-claude-config/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/auditing-claude-config/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/auditing-claude-config/reference/probe-hook.md +0 -0
- /package/.agents/{skills → skills-archived}/beat-sheet/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/beat-sheet/reference/visual-beats.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/CONSTRAINTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/EXAMPLES.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/PROMPTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/README.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/audit-and-teammates.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/copilot-gap-analysis.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/design-rationale.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/github-pr-reviews.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/audit-assign-ids.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/audit-capture-excerpts.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/audit-walk-categories.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/audit-write-xml.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-append-summary.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-apply-fixes.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-git-add-commit.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-git-push.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-post-reply.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-publish-summary.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-py-compile.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-read-files.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-resolve-thread.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-test-suite.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-violation-count.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/obstacles/fix-write-xml.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/reference/team-setup.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/README.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_code_rules_gate.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_fix_hookspath.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_preflight.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/probe_code_rules_enforcer_check_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/reflow_skill_md_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/bugteam_scripts_constants/windows_safe_rmtree_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/probe_code_rules_enforcer_check.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/test_bugteam_code_rules_gate.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/test_bugteam_fix_hookspath.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/test_bugteam_preflight.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/test_probe_code_rules_enforcer_check.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/test_windows_safe_rmtree.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/scripts/windows_safe_rmtree.py +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/sources.md +0 -0
- /package/.agents/{skills → skills-archived}/bugteam/test_skill_additions.py +0 -0
- /package/.agents/{skills → skills-archived}/closeout/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/closeout/reference/handoff-prompt-template.md +0 -0
- /package/.agents/{skills → skills-archived}/closeout/reference/pii-redaction-checklist.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/reference/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/reference/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/reference/cli-contract.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/reference/loop-integration.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_down_classifier.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/classifier_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/codex_usage_probe_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/findings_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_review_scripts_constants/run_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/codex_usage_probe.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/auth_failure_synthetic.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/config_load_failure_v0.125.0.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/freeform_findings_v0.144.3.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/model_rejection_v0.125.0.jsonl +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/structured_findings.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/success_stream_v0.144.3.jsonl +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/unknown_failure_synthetic.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/fixtures/usage_limit_synthetic.txt +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/parse_codex_findings.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/run_codex_review.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/test_codex_down_classifier.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/test_codex_usage_probe.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/test_parse_codex_findings.py +0 -0
- /package/.agents/{skills → skills-archived}/codex-review/scripts/test_run_codex_review.py +0 -0
- /package/.agents/{skills → skills-archived}/comments/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/condensing-instructions/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/reference/tier-rubric.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/conftest.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/copilot_finding_triage_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/copilot_finding_triage_constants/config/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/copilot_finding_triage_constants/config/notify_ntfy_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/notify_ntfy.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/scripts/test_notify_ntfy.py +0 -0
- /package/.agents/{skills → skills-archived}/copilot-finding-triage/templates/notification.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-review/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-review/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-review/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/copilot-review/templates/subagent-prompt.md +0 -0
- /package/.agents/{skills → skills-archived}/descriptions/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/emergencies/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/grokify/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/grokify/capability-claims.test.mjs +0 -0
- /package/.agents/{skills → skills-archived}/grokify/templates/handoff-template.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/final-validation-tasks.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/model-routing.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/packet-contract.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/packet-schema.json +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/process-inventory.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/review-loop.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/run-record.schema.json +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/self-audit-tasks.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/task-seeds.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/reference/task-ticket.md +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/config/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/config/constants.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/create_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/load_skill_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/test_create_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/test_validate_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/test_validate_protocol.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/test_validate_run.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/validate_packet.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/validate_protocol.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/scripts/validate_run.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/test_skill_contract.py +0 -0
- /package/.agents/{skills → skills-archived}/plan-to-pr/test_task_ticket_contract.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/pr_converge_skill_constants/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/pr_converge_skill_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/convergence-gates.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/examples.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/fix-protocol.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/ground-rules.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-post-replies.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-publish-summary.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-push.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-read-filelines.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-reset-state.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-resolve-threads.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-spawn-clean-coder.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-stage-commit.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-trigger-bugbot.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/obstacles/fix-write-test.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/progress-checklist.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/state-schema.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/reference/stop-conditions.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/README.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/_pr_converge_path_setup.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/caller-window-pid.ps1 +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_bugbot_ci.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_convergence.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_convergence_availability.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_convergence_gates.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_convergence_thread_gates.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/check_pending_reviews.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/conftest.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/cursor-agents-continue-caller.cmd +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/cursor-agents-continue-stop-others.ps1 +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/cursor-agents-continue.ahk +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/cursor-agents-continue.cmd +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/fetch_copilot_reviews.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/post_fix_reply.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/convergence_gate_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/pr_converge_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/pr_converge_scripts_constants/reflow_skill_md_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test__pr_converge_path_setup.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_bugbot_ci.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_availability.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_codex.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_contract.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_fixture.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_gates.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_check_convergence_thread_gates.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_cursor_agents_continue.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/scripts/test_reflow_skill_md.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/test_step5_host_branch.py +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/workflows/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-converge/workflows/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-fix-protocol/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-loop-cloud-transport/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-loop-cloud-transport/reference/identity-and-hooks.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-loop-cloud-transport/reference/substitution-matrix.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-loop-lifecycle/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/pr-loop-lifecycle/reference/teardown-publish-permissions.md +0 -0
- /package/.agents/{skills → skills-archived}/recall/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/recall/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/recall/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/release-notes-html/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/remember/.claude/CLAUDE.md +0 -0
- /package/.agents/{skills → skills-archived}/remember/AGENTS.md +0 -0
- /package/.agents/{skills → skills-archived}/remember/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/reviewer-gates/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/reviews/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/show/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/accessibility.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/art.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/charts.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/core-design.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/erds.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/flowcharts.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/host-and-html.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/illustrative-diagrams.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/interaction.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/mockups.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/quality-gates.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/structural-diagrams.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/subject-inventory.md +0 -0
- /package/.agents/{skills → skills-archived}/show/references/svg-contract.md +0 -0
- /package/.agents/{skills → skills-archived}/show/routing.yaml +0 -0
- /package/.agents/{skills → skills-archived}/show/samples/pr1262-v2.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/scripts/README.md +0 -0
- /package/.agents/{skills → skills-archived}/show/scripts/validate-artifact.py +0 -0
- /package/.agents/{skills → skills-archived}/show/scripts/validate-package.py +0 -0
- /package/.agents/{skills → skills-archived}/show/templates/html-widget.html +0 -0
- /package/.agents/{skills → skills-archived}/show/templates/svg-base.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/css-var.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/dead-ref.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/filled-glyph.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/inherited-fill.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/invalid.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/large-canvas.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/unfilled-connector.svg +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/fixtures/valid.html +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/test_validate-artifact.py +0 -0
- /package/.agents/{skills → skills-archived}/show/tests/test_validators.py +0 -0
- /package/.agents/{skills → skills-archived}/show/workflows/create-visual.md +0 -0
- /package/.agents/{skills → skills-archived}/show/workflows/review-visual.md +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/SKILL.md +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/reference/path-layers.md +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/reference/split-further-loop.md +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/reference/splitting-principles.md +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/analyze_pr.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/categorize_files.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/__init__.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/dependency_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/git_operations_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/packing_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/plan_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/config/split_pr_constants.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/execute_split_slices.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/pack_files_into_slices.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_dependency_graph.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_git_operations.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_layer_order.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_paginate.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_process_runner.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_script_types.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/split_pr_title.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_analyze_pr.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_categorize_files.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_categorize_files_packing.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_execute_split_slices.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_dependency_graph.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_git_operations.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_layer_order.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_paginate.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_script_types.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_split_pr_title.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_verify_dependency_graph.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_verify_plan.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_verify_plan_contract.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/test_verify_plan_path_normalization.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/verify_dependency_graph.py +0 -0
- /package/.agents/{skills → skills-archived}/split-pr/scripts/verify_plan.py +0 -0
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Opt-in live Grok capability evals (E1–E5).
|
|
4
|
-
*
|
|
5
|
-
* Never wired into package.json `test`. Requires GROK_CAPABILITY_EVALS=1 or --run.
|
|
6
|
-
*/
|
|
7
|
-
import { spawnSync } from 'node:child_process';
|
|
8
|
-
import {
|
|
9
|
-
existsSync,
|
|
10
|
-
mkdtempSync,
|
|
11
|
-
readFileSync,
|
|
12
|
-
rmSync,
|
|
13
|
-
writeFileSync,
|
|
14
|
-
} from 'node:fs';
|
|
15
|
-
import { tmpdir } from 'node:os';
|
|
16
|
-
import { join, resolve } from 'node:path';
|
|
17
|
-
import { fileURLToPath } from 'node:url';
|
|
18
|
-
|
|
19
|
-
const OPT_IN_ENV = 'GROK_CAPABILITY_EVALS';
|
|
20
|
-
const OPT_IN_VALUE = '1';
|
|
21
|
-
const RUN_FLAG = '--run';
|
|
22
|
-
const GROK_BINARY = process.env.GROK_BIN || 'grok';
|
|
23
|
-
const DEFAULT_MAX_TURNS = 12;
|
|
24
|
-
const SPAWN_MAX_TURNS = 20;
|
|
25
|
-
const SKILL_MAX_TURNS = 16;
|
|
26
|
-
const WRITE_MAX_TURNS = 12;
|
|
27
|
-
const WORKFLOW_MAX_TURNS = 8;
|
|
28
|
-
const PROBE_FILE_NAME = 'capability-probe-write.txt';
|
|
29
|
-
const PROBE_FILE_CONTENTS = 'capability-probe-ok';
|
|
30
|
-
const HOOKS_LOG_NAME = 'hooks.log';
|
|
31
|
-
const HOOKS_LOG_GLOBAL_SETTINGS_MARKER = 'global/settings';
|
|
32
|
-
const HOOKS_LOG_PRE_TOOL_USE_MARKER = 'pre_tool_use';
|
|
33
|
-
const SPAWN_MARKER = 'SPAWN_OK';
|
|
34
|
-
const SPAWN_SUBAGENT_TOOL = 'spawn_subagent';
|
|
35
|
-
const GROK_SPAWN_TIMEOUT_MS = 600000;
|
|
36
|
-
const SPAWN_MAX_BUFFER_BYTES = 20 * 1024 * 1024;
|
|
37
|
-
const WORKFLOW_RESULT_NO_TOOL = 'no_tool';
|
|
38
|
-
const SPAWN_TIMEOUT_ERROR_CODE = 'ETIMEDOUT';
|
|
39
|
-
const ENVELOPE_TEXT_FIELDS_BY_PRIORITY = ['result', 'text', 'message'];
|
|
40
|
-
const STREAM_EVENT_TEXT_FIELDS_BY_PRIORITY = ['result', 'text', 'content'];
|
|
41
|
-
|
|
42
|
-
const E1_PROMPT = `You are running a capability inventory. Do not edit files.
|
|
43
|
-
|
|
44
|
-
1. Inspect your available tools.
|
|
45
|
-
2. Check whether agents and skills directories exist under the user's Claude config (typical locations: ~/.claude/agents, ~/.claude/skills).
|
|
46
|
-
|
|
47
|
-
Reply with ONLY one JSON object and nothing else:
|
|
48
|
-
{
|
|
49
|
-
"can_spawn_subagent_tool": <true if a spawn_subagent tool is available>,
|
|
50
|
-
"tool_names": [<string tool names>],
|
|
51
|
-
"agents_dir_exists": <bool>,
|
|
52
|
-
"skills_dir_exists": <bool>
|
|
53
|
-
}`;
|
|
54
|
-
|
|
55
|
-
const E2_PROMPT = `You are measuring spawn_subagent.
|
|
56
|
-
|
|
57
|
-
1. Use spawn_subagent (or the equivalent agent-spawn tool) once.
|
|
58
|
-
2. Instruct the child to print exactly ${SPAWN_MARKER} on its first line, then list basenames from the agents directory under the user's Claude config (for example ~/.claude/agents).
|
|
59
|
-
3. Wait for the child to finish.
|
|
60
|
-
|
|
61
|
-
Reply with ONLY one JSON object and nothing else:
|
|
62
|
-
{
|
|
63
|
-
"spawn_succeeded": <true if the child ran and returned ${SPAWN_MARKER}>,
|
|
64
|
-
"child_excerpt": "<excerpt of child output that includes its first line>"
|
|
65
|
-
}`;
|
|
66
|
-
|
|
67
|
-
const E3_PROMPT = `You are measuring skill readability under an agent definition.
|
|
68
|
-
|
|
69
|
-
1. Read any one skill entrypoint under the user's Claude skills path (for example ~/.claude/skills/*/SKILL.md). Prefer a short file if several exist.
|
|
70
|
-
2. Confirm you loaded an agent definition for this run (this process was started with --agent).
|
|
71
|
-
|
|
72
|
-
Reply with ONLY one JSON object and nothing else:
|
|
73
|
-
{
|
|
74
|
-
"skill_read_ok": <true if you read a skill file's contents>,
|
|
75
|
-
"skill_path": "<path you read or empty string>",
|
|
76
|
-
"agent_definition_loaded": <true if an agent definition is active>
|
|
77
|
-
}`;
|
|
78
|
-
|
|
79
|
-
const E4_PROMPT = `You are measuring write capability in the current working directory.
|
|
80
|
-
|
|
81
|
-
1. Write a file named ${PROBE_FILE_NAME} in the current working directory with exact contents: ${PROBE_FILE_CONTENTS}
|
|
82
|
-
2. Do not write anything else.
|
|
83
|
-
|
|
84
|
-
Reply with ONLY one JSON object and nothing else:
|
|
85
|
-
{
|
|
86
|
-
"write_succeeded": <true if the write completed>,
|
|
87
|
-
"written_path": "<absolute or relative path written>"
|
|
88
|
-
}`;
|
|
89
|
-
|
|
90
|
-
const E5_PROMPT = `You are measuring whether a Claude/GSD Workflow tool is available.
|
|
91
|
-
|
|
92
|
-
Inspect your tool list. Do not invent a Workflow tool.
|
|
93
|
-
|
|
94
|
-
Reply with ONLY one JSON object and nothing else:
|
|
95
|
-
{
|
|
96
|
-
"has_workflow_tool": <true only if a Workflow tool is present>,
|
|
97
|
-
"result": <"has_tool" or "no_tool">
|
|
98
|
-
}`;
|
|
99
|
-
|
|
100
|
-
function isOptedIn(allArguments) {
|
|
101
|
-
if (allArguments.includes(RUN_FLAG)) {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
return process.env[OPT_IN_ENV] === OPT_IN_VALUE;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function printOptInHelp() {
|
|
108
|
-
console.log(
|
|
109
|
-
[
|
|
110
|
-
'Grok capability evals are opt-in only (not part of npm test / CI).',
|
|
111
|
-
'',
|
|
112
|
-
'Run with either:',
|
|
113
|
-
` ${OPT_IN_ENV}=${OPT_IN_VALUE} node skills/grokify/evals/run-capability-evals.mjs`,
|
|
114
|
-
' node skills/grokify/evals/run-capability-evals.mjs --run',
|
|
115
|
-
'',
|
|
116
|
-
'See skills/grokify/evals/README.md.',
|
|
117
|
-
].join('\n'),
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function mintLeaderSocketPath(runDirectory, evalName) {
|
|
122
|
-
return join(runDirectory, `leader-${evalName}.sock`);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function writePromptFile(runDirectory, evalName, promptText) {
|
|
126
|
-
const promptPath = join(runDirectory, `${evalName}-prompt.md`);
|
|
127
|
-
writeFileSync(promptPath, promptText, 'utf8');
|
|
128
|
-
return promptPath;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function buildGrokArguments({
|
|
132
|
-
promptPath,
|
|
133
|
-
workingDirectory,
|
|
134
|
-
leaderSocketPath,
|
|
135
|
-
maxTurns,
|
|
136
|
-
agentName,
|
|
137
|
-
}) {
|
|
138
|
-
const allArguments = [
|
|
139
|
-
'--prompt-file',
|
|
140
|
-
promptPath,
|
|
141
|
-
'--cwd',
|
|
142
|
-
workingDirectory,
|
|
143
|
-
'--output-format',
|
|
144
|
-
'json',
|
|
145
|
-
'--always-approve',
|
|
146
|
-
'--max-turns',
|
|
147
|
-
String(maxTurns),
|
|
148
|
-
'--permission-mode',
|
|
149
|
-
'bypassPermissions',
|
|
150
|
-
'--leader-socket',
|
|
151
|
-
leaderSocketPath,
|
|
152
|
-
];
|
|
153
|
-
if (agentName) {
|
|
154
|
-
allArguments.push('--agent', agentName);
|
|
155
|
-
}
|
|
156
|
-
return allArguments;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function runGrok({
|
|
160
|
-
promptPath,
|
|
161
|
-
workingDirectory,
|
|
162
|
-
leaderSocketPath,
|
|
163
|
-
maxTurns,
|
|
164
|
-
agentName,
|
|
165
|
-
}) {
|
|
166
|
-
const allArguments = buildGrokArguments({
|
|
167
|
-
promptPath,
|
|
168
|
-
workingDirectory,
|
|
169
|
-
leaderSocketPath,
|
|
170
|
-
maxTurns,
|
|
171
|
-
agentName,
|
|
172
|
-
});
|
|
173
|
-
const processResult = spawnSync(GROK_BINARY, allArguments, {
|
|
174
|
-
encoding: 'utf8',
|
|
175
|
-
cwd: workingDirectory,
|
|
176
|
-
maxBuffer: SPAWN_MAX_BUFFER_BYTES,
|
|
177
|
-
timeout: GROK_SPAWN_TIMEOUT_MS,
|
|
178
|
-
windowsHide: true,
|
|
179
|
-
});
|
|
180
|
-
return {
|
|
181
|
-
exitCode: processResult.status,
|
|
182
|
-
stdout: processResult.stdout || '',
|
|
183
|
-
stderr: processResult.stderr || '',
|
|
184
|
-
error: processResult.error || null,
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function isPlainObject(value) {
|
|
189
|
-
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function extractLastBalancedObject(text) {
|
|
193
|
-
const doubleQuote = '"';
|
|
194
|
-
const escapeCharacter = '\\';
|
|
195
|
-
let isInsideString = false;
|
|
196
|
-
let isNextCharacterEscaped = false;
|
|
197
|
-
let openBraceDepth = 0;
|
|
198
|
-
let objectStartIndex = -1;
|
|
199
|
-
let lastParsedObject = null;
|
|
200
|
-
for (let index = 0; index < text.length; index += 1) {
|
|
201
|
-
const character = text[index];
|
|
202
|
-
if (isInsideString) {
|
|
203
|
-
if (isNextCharacterEscaped) {
|
|
204
|
-
isNextCharacterEscaped = false;
|
|
205
|
-
} else if (character === escapeCharacter) {
|
|
206
|
-
isNextCharacterEscaped = true;
|
|
207
|
-
} else if (character === doubleQuote) {
|
|
208
|
-
isInsideString = false;
|
|
209
|
-
}
|
|
210
|
-
continue;
|
|
211
|
-
}
|
|
212
|
-
if (character === doubleQuote) {
|
|
213
|
-
isInsideString = true;
|
|
214
|
-
} else if (character === '{') {
|
|
215
|
-
if (openBraceDepth === 0) {
|
|
216
|
-
objectStartIndex = index;
|
|
217
|
-
}
|
|
218
|
-
openBraceDepth += 1;
|
|
219
|
-
} else if (character === '}' && openBraceDepth > 0) {
|
|
220
|
-
openBraceDepth -= 1;
|
|
221
|
-
if (openBraceDepth === 0) {
|
|
222
|
-
try {
|
|
223
|
-
const parsed = JSON.parse(text.slice(objectStartIndex, index + 1));
|
|
224
|
-
if (isPlainObject(parsed)) {
|
|
225
|
-
lastParsedObject = parsed;
|
|
226
|
-
}
|
|
227
|
-
} catch {
|
|
228
|
-
// not a JSON object; keep scanning for a later balanced candidate
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return lastParsedObject;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export function tryParseJsonObject(text) {
|
|
237
|
-
const trimmed = text.trim();
|
|
238
|
-
if (!trimmed) {
|
|
239
|
-
return null;
|
|
240
|
-
}
|
|
241
|
-
try {
|
|
242
|
-
const parsed = JSON.parse(trimmed);
|
|
243
|
-
if (isPlainObject(parsed)) {
|
|
244
|
-
return parsed;
|
|
245
|
-
}
|
|
246
|
-
} catch {
|
|
247
|
-
// fall through to balanced-object extraction
|
|
248
|
-
}
|
|
249
|
-
return extractLastBalancedObject(trimmed);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function extractStringField(parsedEnvelope, fieldName) {
|
|
253
|
-
if (!parsedEnvelope || typeof parsedEnvelope !== 'object') {
|
|
254
|
-
return null;
|
|
255
|
-
}
|
|
256
|
-
const fieldValue = parsedEnvelope[fieldName];
|
|
257
|
-
if (typeof fieldValue === 'string') {
|
|
258
|
-
return fieldValue;
|
|
259
|
-
}
|
|
260
|
-
return null;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
function pickStringFieldByPriority(candidate, fieldNames) {
|
|
264
|
-
for (const fieldName of fieldNames) {
|
|
265
|
-
const fieldValue = extractStringField(candidate, fieldName);
|
|
266
|
-
if (fieldValue !== null) {
|
|
267
|
-
return fieldValue;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export function extractResultText(stdout) {
|
|
274
|
-
const trimmed = stdout.trim();
|
|
275
|
-
if (!trimmed) {
|
|
276
|
-
return '';
|
|
277
|
-
}
|
|
278
|
-
try {
|
|
279
|
-
const parsed = JSON.parse(trimmed);
|
|
280
|
-
if (Array.isArray(parsed)) {
|
|
281
|
-
const resultEvent = parsed.findLast(
|
|
282
|
-
(eachEvent) =>
|
|
283
|
-
eachEvent &&
|
|
284
|
-
typeof eachEvent === 'object' &&
|
|
285
|
-
eachEvent.type === 'result' &&
|
|
286
|
-
typeof eachEvent.result === 'string',
|
|
287
|
-
);
|
|
288
|
-
if (resultEvent) {
|
|
289
|
-
return resultEvent.result;
|
|
290
|
-
}
|
|
291
|
-
const textChunks = [];
|
|
292
|
-
for (const eachEvent of parsed) {
|
|
293
|
-
if (!eachEvent || typeof eachEvent !== 'object') {
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
const eventText = pickStringFieldByPriority(
|
|
297
|
-
eachEvent,
|
|
298
|
-
STREAM_EVENT_TEXT_FIELDS_BY_PRIORITY,
|
|
299
|
-
);
|
|
300
|
-
if (eventText !== null) {
|
|
301
|
-
textChunks.push(eventText);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
if (textChunks.length > 0) {
|
|
305
|
-
return textChunks.join('\n');
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
if (parsed && typeof parsed === 'object') {
|
|
309
|
-
const envelopeText = pickStringFieldByPriority(
|
|
310
|
-
parsed,
|
|
311
|
-
ENVELOPE_TEXT_FIELDS_BY_PRIORITY,
|
|
312
|
-
);
|
|
313
|
-
if (envelopeText !== null) {
|
|
314
|
-
return envelopeText;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
} catch {
|
|
318
|
-
// stdout is plain text
|
|
319
|
-
}
|
|
320
|
-
return trimmed;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export function parsePayload(stdout) {
|
|
324
|
-
const resultText = extractResultText(stdout);
|
|
325
|
-
return tryParseJsonObject(resultText) || tryParseJsonObject(stdout);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
function assertCondition(condition, message) {
|
|
329
|
-
if (!condition) {
|
|
330
|
-
throw new Error(message);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
function resolveDefaultAgentName() {
|
|
335
|
-
return process.env.GROK_CAPABILITY_EVAL_AGENT || 'Explore';
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
function describeLaunchFailure(label, processResult) {
|
|
339
|
-
const launchError = processResult.error;
|
|
340
|
-
if (
|
|
341
|
-
launchError &&
|
|
342
|
-
typeof launchError === 'object' &&
|
|
343
|
-
launchError.code === SPAWN_TIMEOUT_ERROR_CODE
|
|
344
|
-
) {
|
|
345
|
-
return `${label}: grok timed out after ${GROK_SPAWN_TIMEOUT_MS}ms`;
|
|
346
|
-
}
|
|
347
|
-
if (launchError !== null) {
|
|
348
|
-
return `${label}: failed to launch grok: ${launchError}`;
|
|
349
|
-
}
|
|
350
|
-
return `${label}: grok exit ${processResult.exitCode}\n${processResult.stderr}\n${processResult.stdout}`;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
function launchEval(runDirectory, { evalName, promptText, maxTurns, agentName }) {
|
|
354
|
-
const label = evalName.toUpperCase();
|
|
355
|
-
const promptPath = writePromptFile(runDirectory, evalName, promptText);
|
|
356
|
-
const processResult = runGrok({
|
|
357
|
-
promptPath,
|
|
358
|
-
workingDirectory: runDirectory,
|
|
359
|
-
leaderSocketPath: mintLeaderSocketPath(runDirectory, evalName),
|
|
360
|
-
maxTurns,
|
|
361
|
-
agentName,
|
|
362
|
-
});
|
|
363
|
-
if (processResult.error !== null || processResult.exitCode !== 0) {
|
|
364
|
-
throw new Error(describeLaunchFailure(label, processResult));
|
|
365
|
-
}
|
|
366
|
-
const payload = parsePayload(processResult.stdout);
|
|
367
|
-
assertCondition(
|
|
368
|
-
payload !== null,
|
|
369
|
-
`${label}: could not parse JSON payload from grok output`,
|
|
370
|
-
);
|
|
371
|
-
return payload;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function runEvalOne(runDirectory) {
|
|
375
|
-
const payload = launchEval(runDirectory, {
|
|
376
|
-
evalName: 'e1',
|
|
377
|
-
promptText: E1_PROMPT,
|
|
378
|
-
maxTurns: DEFAULT_MAX_TURNS,
|
|
379
|
-
});
|
|
380
|
-
assertCondition(
|
|
381
|
-
payload.can_spawn_subagent_tool === true,
|
|
382
|
-
`E1: expected can_spawn_subagent_tool === true, got ${JSON.stringify(payload.can_spawn_subagent_tool)}`,
|
|
383
|
-
);
|
|
384
|
-
const allToolNames = Array.isArray(payload.tool_names)
|
|
385
|
-
? payload.tool_names.map(String)
|
|
386
|
-
: [];
|
|
387
|
-
assertCondition(
|
|
388
|
-
allToolNames.includes(SPAWN_SUBAGENT_TOOL),
|
|
389
|
-
`E1: expected tool_names to include ${SPAWN_SUBAGENT_TOOL}, got ${JSON.stringify(allToolNames)}`,
|
|
390
|
-
);
|
|
391
|
-
return payload;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
function runEvalTwo(runDirectory) {
|
|
395
|
-
const payload = launchEval(runDirectory, {
|
|
396
|
-
evalName: 'e2',
|
|
397
|
-
promptText: E2_PROMPT,
|
|
398
|
-
maxTurns: SPAWN_MAX_TURNS,
|
|
399
|
-
});
|
|
400
|
-
assertCondition(
|
|
401
|
-
payload.spawn_succeeded === true,
|
|
402
|
-
`E2: expected spawn_succeeded === true, got ${JSON.stringify(payload.spawn_succeeded)}`,
|
|
403
|
-
);
|
|
404
|
-
const childExcerpt =
|
|
405
|
-
typeof payload.child_excerpt === 'string' ? payload.child_excerpt : '';
|
|
406
|
-
assertCondition(
|
|
407
|
-
childExcerpt.includes(SPAWN_MARKER),
|
|
408
|
-
`E2: expected child_excerpt to include ${SPAWN_MARKER}, got ${JSON.stringify(payload.child_excerpt)}`,
|
|
409
|
-
);
|
|
410
|
-
return payload;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
function runEvalThree(runDirectory) {
|
|
414
|
-
const payload = launchEval(runDirectory, {
|
|
415
|
-
evalName: 'e3',
|
|
416
|
-
promptText: E3_PROMPT,
|
|
417
|
-
maxTurns: SKILL_MAX_TURNS,
|
|
418
|
-
agentName: resolveDefaultAgentName(),
|
|
419
|
-
});
|
|
420
|
-
assertCondition(
|
|
421
|
-
payload.skill_read_ok === true,
|
|
422
|
-
`E3: expected skill_read_ok === true, got ${JSON.stringify(payload.skill_read_ok)}`,
|
|
423
|
-
);
|
|
424
|
-
assertCondition(
|
|
425
|
-
payload.agent_definition_loaded === true,
|
|
426
|
-
`E3: expected agent_definition_loaded === true, got ${JSON.stringify(payload.agent_definition_loaded)}`,
|
|
427
|
-
);
|
|
428
|
-
return payload;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
function runEvalFour(runDirectory) {
|
|
432
|
-
const payload = launchEval(runDirectory, {
|
|
433
|
-
evalName: 'e4',
|
|
434
|
-
promptText: E4_PROMPT,
|
|
435
|
-
maxTurns: WRITE_MAX_TURNS,
|
|
436
|
-
});
|
|
437
|
-
const probePath = join(runDirectory, PROBE_FILE_NAME);
|
|
438
|
-
assertCondition(
|
|
439
|
-
existsSync(probePath),
|
|
440
|
-
`E4: probe file missing under the eval cwd (write_succeeded claim: ${JSON.stringify(payload.write_succeeded)})`,
|
|
441
|
-
);
|
|
442
|
-
const probeContents = readFileSync(probePath, 'utf8');
|
|
443
|
-
assertCondition(
|
|
444
|
-
probeContents.includes(PROBE_FILE_CONTENTS),
|
|
445
|
-
`E4: probe file contents mismatch: ${JSON.stringify(probeContents)}`,
|
|
446
|
-
);
|
|
447
|
-
const hooksLogPath = join(runDirectory, HOOKS_LOG_NAME);
|
|
448
|
-
let hooksNote = 'hooks.log not present (soft check skipped)';
|
|
449
|
-
if (existsSync(hooksLogPath)) {
|
|
450
|
-
const hooksLogText = readFileSync(hooksLogPath, 'utf8').toLowerCase();
|
|
451
|
-
const hasGlobalSettings = hooksLogText.includes(
|
|
452
|
-
HOOKS_LOG_GLOBAL_SETTINGS_MARKER,
|
|
453
|
-
);
|
|
454
|
-
const hasPreToolUse = hooksLogText.includes(HOOKS_LOG_PRE_TOOL_USE_MARKER);
|
|
455
|
-
hooksNote =
|
|
456
|
-
hasGlobalSettings && hasPreToolUse
|
|
457
|
-
? 'hooks.log contains global/settings and pre_tool_use'
|
|
458
|
-
: 'hooks.log present but missing expected markers (soft)';
|
|
459
|
-
}
|
|
460
|
-
return { payload, hooksNote };
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export function isWorkflowToolAbsent(payload) {
|
|
464
|
-
if (!payload || typeof payload !== 'object') {
|
|
465
|
-
return false;
|
|
466
|
-
}
|
|
467
|
-
return (
|
|
468
|
-
payload.has_workflow_tool === false &&
|
|
469
|
-
payload.result === WORKFLOW_RESULT_NO_TOOL
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
function runEvalFive(runDirectory) {
|
|
474
|
-
const payload = launchEval(runDirectory, {
|
|
475
|
-
evalName: 'e5',
|
|
476
|
-
promptText: E5_PROMPT,
|
|
477
|
-
maxTurns: WORKFLOW_MAX_TURNS,
|
|
478
|
-
});
|
|
479
|
-
assertCondition(
|
|
480
|
-
isWorkflowToolAbsent(payload),
|
|
481
|
-
`E5: expected has_workflow_tool === false and result === "no_tool", got ${JSON.stringify(payload)}`,
|
|
482
|
-
);
|
|
483
|
-
return payload;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
function main() {
|
|
487
|
-
if (!isOptedIn(process.argv.slice(2))) {
|
|
488
|
-
printOptInHelp();
|
|
489
|
-
process.exit(0);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
const runDirectory = mkdtempSync(join(tmpdir(), 'grok-capability-evals-'));
|
|
493
|
-
console.log(`run directory: ${runDirectory}`);
|
|
494
|
-
|
|
495
|
-
try {
|
|
496
|
-
console.log('E1 tool inventory...');
|
|
497
|
-
const e1Payload = runEvalOne(runDirectory);
|
|
498
|
-
console.log('E1 ok', JSON.stringify(e1Payload));
|
|
499
|
-
|
|
500
|
-
console.log('E2 spawn_subagent...');
|
|
501
|
-
const e2Payload = runEvalTwo(runDirectory);
|
|
502
|
-
console.log('E2 ok', JSON.stringify(e2Payload));
|
|
503
|
-
|
|
504
|
-
console.log('E3 --agent + skill read...');
|
|
505
|
-
const e3Payload = runEvalThree(runDirectory);
|
|
506
|
-
console.log('E3 ok', JSON.stringify(e3Payload));
|
|
507
|
-
|
|
508
|
-
console.log('E4 probe write...');
|
|
509
|
-
const e4Outcome = runEvalFour(runDirectory);
|
|
510
|
-
console.log(
|
|
511
|
-
'E4 ok',
|
|
512
|
-
JSON.stringify({
|
|
513
|
-
payload: e4Outcome.payload,
|
|
514
|
-
hooksNote: e4Outcome.hooksNote,
|
|
515
|
-
}),
|
|
516
|
-
);
|
|
517
|
-
|
|
518
|
-
console.log('E5 workflow tool absence...');
|
|
519
|
-
const e5Payload = runEvalFive(runDirectory);
|
|
520
|
-
console.log('E5 ok', JSON.stringify(e5Payload));
|
|
521
|
-
|
|
522
|
-
console.log('ALL CAPABILITY EVALS PASSED');
|
|
523
|
-
} catch (failure) {
|
|
524
|
-
console.error(String(failure && failure.stack ? failure.stack : failure));
|
|
525
|
-
process.exitCode = 1;
|
|
526
|
-
} finally {
|
|
527
|
-
try {
|
|
528
|
-
rmSync(runDirectory, { recursive: true, force: true });
|
|
529
|
-
} catch {
|
|
530
|
-
// best-effort cleanup
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
function isDirectExecution() {
|
|
536
|
-
const entryArgument = process.argv[1];
|
|
537
|
-
if (!entryArgument) {
|
|
538
|
-
return false;
|
|
539
|
-
}
|
|
540
|
-
return resolve(fileURLToPath(import.meta.url)) === resolve(entryArgument);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (isDirectExecution()) {
|
|
544
|
-
main();
|
|
545
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Shared PR-loop scripts
|
|
2
|
-
|
|
3
|
-
Runnable helpers used by **bugteam**, **pr-converge**, and related skills. These files are **executed** from the repository (or a `~/.claude` install); they are not meant as primary model-reading context.
|
|
4
|
-
|
|
5
|
-
## Inventory
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| `preflight.py` | Local checks before a PR-loop run (pytest discovery, optional pre-commit, hooksPath sanity). |
|
|
10
|
-
| `reviewer_availability.py` | Unified availability check for Copilot and Bugbot; reuses `copilot_quota.py` and `reviews_disabled.py` and exits 0 when the named `--reviewer` may be spawned. |
|
|
11
|
-
| `reviews_disabled.py` | Opt-out and opt-in gate for reviewer tokens `bugteam`, `bugbot`, `copilot`, and `codex` via `CLAUDE_REVIEWS_DISABLED` / `CLAUDE_REVIEWS_ENABLED`. |
|
|
12
|
-
| `code_rules_gate.py` | CODE_RULES gate over PR-scoped diffs (`--base`, staged-only, path filters). |
|
|
13
|
-
| `fix_hookspath.py` | Repair `core.hooksPath` when it does not point at the packaged git-hooks tree. Single home for unexpected non-empty git stderr (hard-fail `RuntimeError`); skill wrappers may call it later. |
|
|
14
|
-
| `grant_project_claude_permissions.py` / `revoke_project_claude_permissions.py` | Claude Code permission JSON helpers used during publish-style flows. |
|
|
15
|
-
| `_claude_permissions_common.py` | Shared implementation for the permission scripts. |
|
|
16
|
-
|
|
17
|
-
Configuration lives under `pr_loop_shared_constants/` next to these scripts (for example `preflight_constants.py`, `code_rules_gate_constants.py`, `fix_hookspath_constants.py`).
|
|
18
|
-
|
|
19
|
-
## Gate semantics
|
|
20
|
-
|
|
21
|
-
Merge-base selection, diff scoping, and exit codes for `code_rules_gate.py` are documented in [`../code-rules-gate.md`](../code-rules-gate.md).
|
package/docs/imagegen.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Image generation
|
|
2
|
-
|
|
3
|
-
The canonical image-generation entrypoint lives in the
|
|
4
|
-
`python-automation` repository at `shared_utils.imagegen`.
|
|
5
|
-
|
|
6
|
-
Resolve `python_automation_root` and `python_exe` from the repository's
|
|
7
|
-
`run/tooling.json`, set `PYTHONPATH` to the resolved root, and run:
|
|
8
|
-
|
|
9
|
-
```powershell
|
|
10
|
-
$tooling = Get-Content '<REPO>\\run\\tooling.json' | ConvertFrom-Json
|
|
11
|
-
$python_automation_root = $tooling.python_automation_root
|
|
12
|
-
$python_executable = $tooling.python_exe
|
|
13
|
-
$env:PYTHONPATH = $python_automation_root
|
|
14
|
-
|
|
15
|
-
& $python_executable -m shared_utils.imagegen `
|
|
16
|
-
--prompt-file <PROMPT.txt> `
|
|
17
|
-
--size 2880x2880 `
|
|
18
|
-
--out <IMAGE.png>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Repeat `--reference-image <IMAGE.png>` for up to two visual references.
|
|
22
|
-
The command verifies the decoded PNG dimensions before reporting success.
|