Title: fix(id): world dev watch debounce loop is unbounded under continuous source changes — max_cycles budget never advances inside it (PR #8647 review finding) · Issue #8780 · developing-today/code · GitHub
Open Graph Title: fix(id): world dev watch debounce loop is unbounded under continuous source changes — max_cycles budget never advances inside it (PR #8647 review finding) · Issue #8780 · developing-today/code
X Title: fix(id): world dev watch debounce loop is unbounded under continuous source changes — max_cycles budget never advances inside it (PR #8647 review finding) · Issue #8780 · developing-today/code
Description: Finding (unaddressed PR review comment) Codex P2 on merged PR #8647 — comment #8647 (comment) by chatgpt-codex-connector[bot], 2026-11-11T10:57:07Z, at pkgs/id/src/world_dev.rs:1202 (at review time): Bound the debounce loop independently...
Open Graph Description: Finding (unaddressed PR review comment) Codex P2 on merged PR #8647 — comment #8647 (comment) by chatgpt-codex-connector[bot], 2026-11-11T10:57:07Z, at pkgs/id/src/world_dev.rs:1202 (at review time...
X Description: Finding (unaddressed PR review comment) Codex P2 on merged PR #8647 — comment #8647 (comment) by chatgpt-codex-connector[bot], 2026-11-11T10:57:07Z, at pkgs/id/src/world_dev.rs:1202 (at review time...
Opengraph URL: https://github.com/developing-today/code/issues/8780
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(id): world dev watch debounce loop is unbounded under continuous source changes — max_cycles budget never advances inside it (PR #8647 review finding)","articleBody":"## Finding (unaddressed PR review comment)\n\nCodex P2 on merged PR #8647 — comment https://github.com/developing-today/code/pull/8647#discussion_r4537028865 by chatgpt-codex-connector[bot], 2026-11-11T10:57:07Z, at `pkgs/id/src/world_dev.rs:1202` (at review time):\n\n> **Bound the debounce loop independently of source activity** — If a generator or editor keeps changing the sources more frequently than `debounce_ms`, each rescan resets the debounce deadline and this inner loop can run indefinitely. The outer `max_cycles` budget is never advanced or checked during that time, so even `--watch-max-cycles 1` does not bound the session as documented. Add an independent deadline or charge these rescans against a bounded budget so continuous changes cannot prevent termination.\n\n## No-response evidence\n\n- PR #8647 merged 2026-11-11T10:55:02Z; the comment was posted after merge, on the merged head.\n- Fresh re-read (2026-11-11, this run): all 5 inline comments on the PR are Codex originals with no replies; no conversation reply addresses this.\n- GraphQL `reviewThreads` check: this thread is unresolved.\n\n## Still live on current main (verified 2026-11-11, two `gh api` reads)\n\nThe file has since moved to `pkgs/id/crates/id-worlds/src/world_dev.rs`. In `run_dev_watch` on main (~lines 1225–1233):\n\n```rust\nlet mut debouncer = Debouncer::new(debounce_ms);\ndebouncer.note_event(now_ms());\nwhile !debouncer.due(now_ms()) {\n tokio::time::sleep(std::time::Duration::from_millis(10)).await;\n if let Ok(Some(newer)) = rescan_changed(dir, &sources.snapshot_id()) {\n sources = newer;\n debouncer.note_event(now_ms());\n }\n}\n```\n\nEvery newer rescan calls `note_event`, resetting the deadline; the loop has no independent deadline and never checks the `max_cycles` budget (advanced only by the outer `for` loop). Continuous source changes more frequent than `debounce_ms` can keep the session inside this loop indefinitely, contradicting the documented bounded session. Parent feature issue: #5541; no existing issue covers this (searched before filing).\n\n## Acceptance criteria\n\n- The debounce loop terminates under continuous source changes — e.g. an independent deadline or charging rescans against a bounded budget — with a regression test showing a session bounded even when sources change faster than `debounce_ms`, **or**\n- the issue is resolved by a documented decision explaining why the unbounded case is acceptable.\n\nFiled by the pr-comment-review job (source: unaddressed PR comment; see the agent note on this issue).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-11T22:25:13Z","url":"https://github.com/developing-today/code/issues/8780"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bdf9436-1691-2188-f1e5-7ec02738f0c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA26:2356C0:AB0DA0:E3D4A0:6B06418C |
| html-safe-nonce | b4065d4428a3aca38e4100a174e68b325365448c434f02bb03566c36fb064e48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTI2OjIzNTZDMDpBQjBEQTA6RTNENEEwOjZCMDY0MThDIiwidmlzaXRvcl9pZCI6Ijg4MjU3NjYyNzg3NDE3NzA2MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 57ebab397b70204a1ef2dcb4cfb16ae7162d4d897420876fef47251007d70cbb |
| hovercard-subject-tag | issue:6338262551 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/8780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c51bc400d4d2b0d2b0aedbb52112c45df8effc224358617b37ce235d9ea7eef7/developing-today/code/issues/8780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c51bc400d4d2b0d2b0aedbb52112c45df8effc224358617b37ce235d9ea7eef7/developing-today/code/issues/8780 |
| og:image:alt | Finding (unaddressed PR review comment) Codex P2 on merged PR #8647 — comment #8647 (comment) by chatgpt-codex-connector[bot], 2026-11-11T10:57:07Z, at pkgs/id/src/world_dev.rs:1202 (at review time... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width