Skip to content

Instantly share code, notes, and snippets.

@jleechan2015
jleechan2015 / wholesome-output.txt
Created April 3, 2026 02:28
ao-2336 wholesome.test.ts output
# ao-2336 wholesome.test.ts output
## Command
pnpm --filter @jleechanorg/ao-core test -- --reporter verbose src/__tests__/wholesome.test.ts
## Output (2 expected failures due to local branch-name fallback)
src/__tests__/wholesome.test.ts > wholesome > PR title has [agento] prefix > PR title starts with [agento]
AssertionError: expected 'agento-fix-zombie-cleanup' to match /^\[agento\]/
src/__tests__/wholesome.test.ts > wholesome > PR title has [agento] prefix > PR title has correct format
@jleechan2015
jleechan2015 / wholesome_test_output.txt
Created April 3, 2026 02:33
ao-2336 / PR #349: Zombie Session Detection Fix
# ao-2336 / PR #349: Zombie Session Detection Fix
## Root Cause
Sessions ao-2303, ao-2312, ao-2322 had `status=merged` (set by lifecycle-manager) but `prState=open` (stale) because `persistPrState()` only writes when PR state changes. The reaper saw `prState=open` → returned none.
## Fix
1. `session-reaper-extensions.ts`: session.status is now PRIMARY zombie signal (always accurate, set synchronously). pr-state retained as fallback.
2. `session-reaper.ts`: zombie check moved BEFORE terminal-status skip. Sessions with status=merged/killed are now always reaped.
3. `lifecycle-manager.ts`: scmFailureCount clamped to 1_000_000 on read.
@jleechan2015
jleechan2015 / test-output.txt
Created April 3, 2026 02:34
PR #349 bd-ara.2 test run: session-reaper tests
packages/core test: ✓ src/__tests__/session-reaper-edge-cases.test.ts (16 tests) 17ms
packages/core test: ✓ src/__tests__/session-reaper.test.ts (12 tests) 13ms
packages/core test: ✓ src/__tests__/wholesome.test.ts (9 tests) 1004ms
packages/core test: ✓ src/__tests__/session-reaper-metadata.test.ts (10 tests) 4ms
packages/core test: ✓ src/__tests__/lifecycle-manager.test.ts (94 tests) 503ms
packages/core test: ✓ src/__tests__/session-manager.test.ts (188 tests) 25407ms
packages/core test: ✓ src/__tests__/observability.test.ts (1 test) 15ms
packages/core test: ✓ src/__tests__/task-queue.test.ts (11 tests) 1260ms
packages/core test: ✓ src/__tests__/wholesome.test.ts — PR title [agento] prefix: PASS
packages/core test: ✓ all non-merge commits made on this branch have [agento] prefix
@jleechan2015
jleechan2015 / generate-daily-entry.mjs
Created April 3, 2026 06:02
Repro: novel-daily launchd wrapper run-daily.sh
#!/usr/bin/env node
/**
* Generate one daily serialized-novel entry from local repo + PR activity aggregation.
*
* Usage:
* node scripts/novel/generate-daily-entry.mjs \
* --file novel/the-daily-lives-of-workers.md \
* --days 1
*
* Per-worker entry (writes to novel/workers/{session}.md):
@jleechan2015
jleechan2015 / run-daily-terminal.html
Created April 3, 2026 06:09
run-daily.sh terminal output - PR #357 evidence
<!DOCTYPE html>
<html>
<head><title>run-daily.sh output</title></head>
<body style="background:#1e1e1e;padding:20px;">
<h3 style="color:white;font-family:monospace;">Terminal — run-daily.sh (tmux)</h3>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAADICAIAAABOL0EUAAA9T0lEQVR4nO3de1wTV/4H/AkJBBuMXAVkQSkquIhL2dUWFdB6qQiy2JbLolYxC6uCgLKoay9KK9hKvQBbrVp/2MrFFxZEqyJWtICIgvXSrZdWsAgKIoaIGCAJmuf1Yl7PPHnIzJBEoqCf91/JyeTM95wzk5y5ncOZPHkyAQAAAKBPBnrNHQAAAAAdDgAAAHgecIYDAAAA9A4dDgAAANA7dDgAAACgf3Q4Nm7cWKZm8eLFfRiHhYXFgQMHnJ2ddc5h3LhxVGwmJibEgPXmm28eOnRI2xrTd/G5XG5ZWdnrr7+u1bc4HM7UqVNTU1PT0tII/Tt06FBycvLYsWOfw7oAAEArPE0W+s9//kO+SE9Pv3r16tdff030NbFYHBQU9Cw5/PLLL15eXlZWVvn5+cQroEeN9cPiGxgYfPzxx25ubrt37z537hyVvnbt2sePH+ujCxIZGfn2229/+eWXe/fu3b9/f5/nDwAA+u1wAOhg8eLFY8aMiYyMbGlpeT4V2NTUlJOTc/ny5dTU1Pr6+vLy8uezXgAAeB73cAQHB+fl5R09enTVqlV8Pp9MDAwM3L59+4gRI9LS0k6dOnXo0KGoqKhFixZ98sknhw4dGjFixIYNG77//nuhUEgQBHUtYPjw4T3O4Y8ePXr58uXHjx/ft2+f6vn8995778CBA6WlpWVlZd999x2hf+olIgjC3Ny8rKzM3NycXGbmzJkZGRnskTPx9fXNyckpKSn58s
@jleechan2015
jleechan2015 / gist:a4f82da3193c3d1379fe82d7e323fbe2
Created April 3, 2026 15:12
PR #358: permissions=auto regression test results
PASS - permissions=auto maps to --dangerously-skip-permissions
Test: treats permissions=auto as permissionless (bypasses approval dialogs)
Expected: command contains --dangerously-skip-permissions
Result: PASS
Test: treats permissions=auto as permissionless on restore
Expected: command contains --dangerously-skip-permissions
Result: PASS
@jleechan2015
jleechan2015 / --filename
Created April 4, 2026 03:02
CI builtin plugin deps gate verification
<h1 align="center">Agent Orchestrator — AO Fork</h1>
> **⚠️ This is a fork.** The canonical upstream is
> [**ComposioHQ/agent-orchestrator**](https://github.com/ComposioHQ/agent-orchestrator).
> This fork runs independently and may have diverged. PRs from upstream are regularly
> cherry-picked; fork changes can be proposed upstream via PR.</p>
<p align="center">
<a href="https://platform.composio.dev/?utm_source=Github&utm_medium=Banner&utm_content=AgentOrchestrator">
<img width="800" alt="Agent Orchestrator banner" src="docs/assets/agent_orchestrator_banner.png">
@jleechan2015
jleechan2015 / jq-filters.test.ts
Created April 4, 2026 03:22
Repro for PR 362: jq-filter-test-coverage — 32 unit tests for skeptic-gate.yml and skeptic-cron.yml jq filters
// Test suite: packages/core/src/__tests__/jq-filters.test.ts
// Run: packages/core/node_modules/.bin/vitest run packages/core/src/__tests__/jq-filters.test.ts
// Result: 32 tests, all pass
@jleechan2015
jleechan2015 / gate6-diff.txt
Created April 4, 2026 05:27
skeptig-gate.yml GATE6_HELP addition
--- a/.github/workflows/skeptic-gate.yml
+ # Add actionable guidance when evidence gate fails
+ if [ "$GATE6" = "FAIL" ]; then
+ GATE6_HELP="**Evidence Gate FAIL — what is missing:**\n...
+ COMMENT_BODY="\${COMMENT_BODY}\n\n\${GATE6_HELP}"
+ fi
@jleechan2015
jleechan2015 / gist_desc.txt
Created April 4, 2026 06:11
Reproduce first-touch/second-touch rate metric for PR #352
# Reproduce first-touch/second-touch rate metric
## Steps
1. Clone the repo:
git clone https://github.com/jleechanorg/agent-orchestrator
cd agent-orchestrator
2. Run the script:
python3 scripts/metrics/touch-rate.py --repo jleechanorg/agent-orchestrator --hours 24