Commit Graph
135 Commits
Author SHA1 Message Date

2026-10-20

lezi-fun 77eca8a915 merge: bring ghbot-Nodeloc v2.0 into upstream
- Adopt nodeloc v2.0 reliability/observability work (MergeGuard, failureMessages,
  MetricsCollector, staleness, QueueStore, shared error helpers) and tests
- Keep upstream bilingual README convention (README.md + README-zh.md);
  port nodeloc's first-principles intro and v2.0 module notes into both
- Resolve doc conflicts in favor of upstream formatting where origin was
  formatting-only; drop the 计划与指南/ directory per maintainer request
2026-10-20 22:06:49 +08:00

2026-08-24

ghbot b17e0b1c57 docs: unify to single Chinese README with first-principles intro 2026-08-24 20:38:56 +08:00
ghbot 9c97516b2d docs: finalize v2.0 — SOP, optimization record, staleness, README sync
- README: v2.0 observability/reliability additions section
- docs/SOP.md: standard operating procedure for dev/deploy/troubleshoot
- docs/optimization-record.md: optimized ranges + next-starting point
- src/review/staleness.ts: head-change detection (append/discard, 5 tests)
- workflow_status.md: final audit state with all C1-C6 closed
2026-08-24 20:25:33 +08:00
ghbot 472003ae6a feat: complete v2 finalization - waitForMergeable timeout, failureMessages wiring, QueueStore
Task 1: waitForMergeable with 30s total timeout + 20 poll max + test
Task 2: failureMessages.categorizeFailure wired into gooseCli error path
Task 5: QueueStore durable webhook queue with 3 tests
Spec: v2-finalization-spec.md
Plan: tasks/plan.md + tasks/todo.md
2026-08-24 19:53:07 +08:00
ghbot c0f4dd2d3b fix: remove unused errorHasStatus helper 2026-08-24 18:59:11 +08:00
ghbot c8a32b6251 fix: address critical review findings — MergeGuard/Metrics wiring, sort NaN, conflict bypass, DRY errors
C1: Wire MergeGuard into maybeMergePullRequest (processor.ts)
C2: Wire MetricsCollector.recordMergeAttempt into merge path
C3: Wire isAlreadyMergedError from github/errors.ts (shared)
C4: Fix sort comparator NaN in markReviewCheckApproved
C5: Guard conflict resolution behind !disposition.requiresAdminApproval
C6: Extract isNotFoundError + isAlreadyMergedError to github/errors.ts
    Remove 3 duplicated local copies (chat/processor, webhook/processor, processor.ts)
R1: Create shared github/errors.ts for production code

Docs: audit-v2-final.md, critical-review-v2.md, report-v2.html, workflow_status.md
Skill: .claude/skills/ghbot-workflow/SKILL.md
2026-08-24 18:53:35 +08:00
ghbot 78bf8e9e41 feat: v2.0 iteration — test coverage, reliability, observability
M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines)
  - normalizeKnowledge CRLF/LF normalization fix
  - gooseReviewer: 11 tests, 97.35% coverage
  - r2 storage: 22 tests, 100% coverage
  - triage processor: 11 tests, exported buildTriagePrompt/labelName
  - webhook processor: 35 tests, 72.39% coverage
  - conflict resolver: 12 tests
  - review processor: 7 tests

M1: Reliability hardening
  - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate
  - MergeGuard: in-memory merge dedup tracker (100% coverage)
  - failureMessages: 7-category failure classifier (100% coverage)

M2: Observability
  - MetricsCollector: Actions-run metrics with snapshot/markdown/reset
  - 11 tests, 100% coverage

New files: 12 test files, 3 source modules
All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
2026-08-24 17:34:04 +08:00
lezi 2ee29ac648 Merge pull request #19 from lezi-fun/feat/sync-nodeloc-v1.2.0
feat: sync ghbot-Nodeloc v1.2.0 capabilities into upstream
2026-08-24 13:13:08 +07:00
lezi-fun a5108b2c36 Merge branch 'main' into feat/sync-nodeloc-v1.2.0
Combines the oversized-prompt instructions-file fix from main with the
fork's cleanup and redaction hardening: agent container, workspace
permissions, proxy, and prompt temp directory all clean up without
aborting each other.
2026-08-24 13:52:49 +08:00
lezi-fun d933e99ad9 fix: pass oversized goose prompts via instructions file
Linux execve caps a single argv string at MAX_ARG_STRLEN (128 KiB), so
review prompts larger than that failed to spawn goose with E2BIG before
any model call was made. Prompts above a 96 KiB safety margin are now
written to a temporary file and handed to goose through --instructions
(-i) on both the direct runner path and the Docker agent path (mounted
read-only at /prompt/goose-prompt.md). Small prompts keep using --text.
2026-08-24 12:09:06 +08:00
lezi-fun 9e47ab339e feat: sync ghbot-Nodeloc v1.2.0 capabilities into upstream
Merges all 33 commits from lza6/ghbot-Nodeloc (v1.0.0 through v1.2.0)
while keeping both sides' features in every conflicted file:

- EventRouter dispatch extracted from runReview.ts (7.1), with the
  runtime environment block preserved on the review-start comment
- Unified command ack messages (6.3) combined with the collapsed
  runtime environment block and bot signature on /recheck replies
- Status banner and collapsible unposted findings in review bodies (6.1)
- Centralized runtime directories behind GHBOT_RUNTIME_DIR (D-13);
  webhook knowledge cache now lives under tempRootDirectory()
- Production hardening for merge races, timeouts, webhook ops;
  atomic temp-file rename for R2 cache restores kept from upstream
- Webhook parity retained: triage events gated by WEBHOOK_TRIAGE_ENABLED,
  read-only command guidance, repository knowledge injection,
  runtime environment block on webhook chat replies
- Sanitization/secret redaction centralization, error-aware retry,
  duplicate merge prevention, in-process webhook retries, /metrics
- Infra: eslint/prettier gates with CI verify workflow, docs archives

typecheck, eslint, prettier format:check, and 164 tests all pass.
2026-08-24 11:47:28 +08:00

2026-08-23

wdawdwaandClaude Opus 4.8 db53296d78 refactor: extract event router and bump version to v1.2.0 (7.1)
Decouple Actions event dispatching from runReview.ts into a pluggable
EventRouter with independent handlers for pull_request_target, issues,
issue_comment, pull_request_review, and schedule. Add unit tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 17:05:41 +08:00
wdawdwa 9ad6b58398 docs: finalize workflow status and review dispositions 2026-08-23 16:33:10 +08:00
wdawdwaandClaude Opus 4.8 039acabd96 fix: production hardening for merge races, timeouts, and webhook ops
Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 15:44:08 +08:00
wdawdwa d6f33a71c3 docs: archive riper5 record for v1.1.0 iteration 2026-08-23 12:12:38 +08:00
wdawdwa 8304c983fb style: prettier pass 2026-08-23 11:56:12 +08:00
wdawdwa 31ff19e73d feat: redact command failure output before exposure (8.4) 2026-08-23 11:55:16 +08:00
wdawdwa 65907f4ee5 test: update goose-cli redaction test to explicit sentinel 2026-08-23 11:46:53 +08:00
wdawdwa cd30a49dcc refactor: explicit sentinel for validation command redaction (D-09) 2026-08-23 11:43:04 +08:00
wdawdwa 3408c9dc77 feat: unified command ack messages with expectations (6.3) 2026-08-23 11:37:31 +08:00
wdawdwa a35587e2ef feat: add status banner and collapsible unposted findings to review body (6.1) 2026-08-23 11:31:39 +08:00
wdawdwa d9666c94a7 feat: centralize runtime directories behind GHBOT_RUNTIME_DIR (D-13) 2026-08-23 11:26:48 +08:00
wdawdwa 941e1d2681 refactor: deduplicate listPullRequestFiles into github/pulls.ts (D-02) 2026-08-23 11:20:16 +08:00

2026-08-22

wdawdwa 5a2e902a9e docs: archive riper5 task record for v1.0.0 delivery 2026-08-22 21:06:08 +08:00
wdawdwa dc3736aa1c chore: release v1.0.0 with dev gates docs and E2E record
- bump version to 1.0.0
- document typecheck/lint/format/test gates in both READMEs
- add webhook /metrics and /healthz to docs
- record real HTTP E2E verification results
2026-08-22 20:25:20 +08:00
wdawdwa 66d0628d20 fix: remove unused import flagged by eslint 2026-08-22 19:00:31 +08:00
wdawdwa b1b76cdbf9 test: cover chat language routing and requester context 2026-08-22 18:56:32 +08:00
wdawdwa 5bc1486be6 feat: add webhook /metrics endpoint with Prometheus output (5.2) 2026-08-22 18:44:37 +08:00
wdawdwa 98d2557c32 ci: add verify workflow running typecheck, lint, format, and tests 2026-08-22 18:24:28 +08:00
wdawdwa afd49f7d85 fix: remove unused variable flagged by eslint 2026-08-22 18:20:17 +08:00
wdawdwa f4c8f27a19 test: cover final conflict confirmation parsing and failure taxonomy 2026-08-22 18:16:58 +08:00
wdawdwa 50f33fa145 test: cover permission denied message format 2026-08-22 18:12:02 +08:00
wdawdwa 2c09130726 test: cover goose agent env isolation and output redaction 2026-08-22 18:10:16 +08:00
wdawdwa 594592046b style: prettier pass 2026-08-22 18:06:37 +08:00
wdawdwa dcaa27db9a feat: retry failed webhook deliveries in-process before GitHub redelivery (4.6) 2026-08-22 18:05:46 +08:00
wdawdwa a1b03c2d87 fix: prevent duplicate merges with live-state recheck and idempotent catch (4.5) 2026-08-22 17:59:41 +08:00
wdawdwa 70f964070d feat: isolate comment command handlers and skip bot authors (4.2, 8.1)
- /recheck, /conflict, and @bot now run independently via allSettled
- bot-authored comments are skipped before dispatch to prevent loops
2026-08-22 17:51:45 +08:00
wdawdwa 84276bcd1e test: cover patch compaction budget behavior (D-10) 2026-08-22 17:48:10 +08:00
wdawdwa 1c3d6938a6 test: cover review processor plan, commands, and format bodies (M1) 2026-08-22 17:43:17 +08:00
wdawdwa a02dea31d7 feat: centralize sanitization and secret redaction (8.2, 8.4)
- add shared PROTECTED_* policy in security/sanitization.ts used by chat snapshot and conflict path validator
- add security/secrets.ts redaction; repository knowledge validation now reuses it
- extend protected deploy configs (vercel.json, wrangler.*, netlify.toml)
2026-08-22 17:20:52 +08:00
wdawdwa ec0d5572ff feat: sanitize review decisions before merge policy (4.3)
- drop findings targeting unknown files or invalid lines with warnings
- force canMerge=false conservatively when blocking changes exist
2026-08-22 16:28:40 +08:00
wdawdwa 3f793d746e feat: make retry policy error-aware and expand unit coverage
- retry: retry only 5xx/429/transport errors; fail fast on 4xx
- checks/diff/r2/cacheStore: add direct unit tests (D-08, D-10 area)
- cacheStore: validate pullNumber in history object keys
- r2: export normalizeEndpoint for testability
2026-08-22 16:09:16 +08:00
wdawdwa b47302e2ff chore: add eslint/prettier gates and fix windows test failures 2026-08-22 15:16:47 +08:00
wdawdwa b366e16087 chore: project initialization
Set up working tree for initial push to lza6/ghbot-Nodeloc: commit
repository metadata files (AGENTS.md, CLAUDE.md, .gitignore),
multi-AI-tool configuration/skills (agents, claude, cline, codebuddy,
continue, junie, kiro, codegraph, opencode), and mcp/skills lockfiles
shipped with the repo.

Committed via Claude Code by lza6
2026-08-22 12:18:36 +08:00
lezi-fun a6e3fd2fc5 feat: bring webhook mode closer to action mode
Webhook deliveries now run the same issue and PR triage as action mode on open/edit/reopen events, gated by WEBHOOK_TRIAGE_ENABLED; @bot answers embed the host-curated repository knowledge cache from R2 (never the uninitialized scaffold); exact /recheck and /conflict commands get a guidance reply pointing to action mode instead of silence. Cache restores write through a temporary file and rename so concurrent webhook work never reads a partial object. Documents that all webhook local writes stay inside the current working directory.
2026-08-22 11:36:46 +08:00
lezi-fun ec601bef93 feat: append a collapsible runtime environment to bot comments
Comments in which ghbot starts or completes an operation now end with a collapsed Runtime environment block (trigger, runner, goose model and version, review policy, automation flags, cache state) followed by a Created By GHBot signature linking to this repository. The template is shared by action-mode progress, recheck, completion, and PR chat comments; the workflow exports the pinned GOOSE_VERSION so the displayed version is truthful.
2026-08-22 11:36:39 +08:00

2026-08-18

lezi-fun 625ba79dbb feat: allow organization members in webhook chat 2026-08-18 21:25:29 +08:00
lezi-fun 3adf4a41a2 fix: hide resolved review threads 2026-08-18 19:44:36 +08:00
lezi-fun ceec15bf28 fix: separate review phases and resolve stale threads 2026-08-18 18:10:34 +08:00
lezi-fun e690b530c8 feat: add optional GitHub App webhook mode 2026-08-18 17:35:35 +08:00