Repository navigation
[2026-11-04t00-00-02-431z] docs-drift - #369
Conversation
- Remove the stale WEBHOOK_AUTO_REPLY line from 'devintern webhook serve --help'; no runtime code reads the variable. - Assert the removed variable is absent from the help output and extend the canonical webhook serve help test. - Drop the same no-op variable from the package-local WEBHOOK-DEPLOYMENT.md copy so it stays in sync with the public guide.
Artifacts & verificationRun: 41 · Commit: Change explanationProduced by Docs drift: remove stale
|
Why
Task 2026-11-04t00-00-02-431z: docs-drift
The task was to detect and correct drift between
@getdevintern/code/@getdevintern/pmbehavior and the guides underdocs/codeanddocs/pm. The webhook deployment guide documentedWEBHOOK_AUTO_REPLYas a supported environment variable, but no code path reads it.packages/code/src/lib/webhook/runtime.tsbuildsWebhookServerConfigwithout an auto-reply field, and the only remaining occurrence outside docs is the CLI help string inpackages/code/src/lib/code-host/cli.ts. The variable is therefore inert, so the docs contradicted the code.What changed
Removed the stale
WEBHOOK_AUTO_REPLYentries fromdocs/code/github-integration.md:Environment=WEBHOOK_AUTO_REPLY=trueline in the systemd unit exampleNo code, flags, defaults, or environment variables were changed. The rest of the guide still documents the live webhook settings (
WEBHOOK_AUTO_REVIEW,AUTO_REVIEW_ITERATIONS,WEBHOOK_MAX_RETRIES,WEBHOOK_VALIDATE_IP,WEBHOOK_QUEUE_DB,WEBHOOK_DEBUG,WEBHOOK_PORT,WEBHOOK_HOST).Scope
In scope: the documented
@getdevintern/codesurface — top-level flags,workersubcommands, environment variables, and theworkspace.toml/[[automations]]schemas. I compared those againstdevintern --help,devintern worker --help,packages/code/src/lib/cli/*, environment reads underpackages/code/srcand the shared source packages, andpackages/code/src/lib/workspace/config.tspluspackages/code/src/lib/automation/config.ts.Out of scope: prose/style gaps, undocumented internal context variables (
DEVINTERN_RESULT_FD,DEVINTERN_WORKSPACE_REPO, etc.), build-time analytics variables, andpackages/code/docs/WEBHOOK-DEPLOYMENT.mdbecause the task limits documentation todocs/code/*.mdanddocs/pm/*.md.docs/pmwas checked againstpackages/pm: no documented flag or environment variable was missing from the code, and no documented PM flag was absent from the parser.Tradeoffs
The CLI’s
devintern webhook serve --helpoutput still printsWEBHOOK_AUTO_REPLYeven though the server never reads it. Fixing that would require a code change, which the task forbids, so the guide now matches actual behavior while the help text remains inconsistent. Removing only the inert variable keeps the edit minimal; the guide does not add a replacement setting because auto-reply behavior is not configurable.Blast Radius
Documentation-only change. Affected page:
docs/code/github-integration.md. No runtime callers, configuration parsing, or published API behavior changed. Readers who previously setWEBHOOK_AUTO_REPLY=truewere already getting no effect; the guide no longer implies otherwise.Verification
bun run format:check— passed: 12 turbo tasks successful andoxfmt --checkclean forexamples/pipeline-plugins.process.env.WEBHOOK_AUTO_REPLYreads exist:grep -rn "WEBHOOK_AUTO_REPLY" packages/code/srcreturns only the help text inpackages/code/src/lib/code-host/cli.ts.docs/code/github-integration.mdviagit status --short.This PR was automatically created by @devintern/code