Repository navigation
Open
1 / 21 of 2 issues completedOpen
follow-up: minor review findings from train PR #20911 for company-os work-item hierarchy (#20478)#20930
1 / 21 of 2 issues completed
Copy link
Labels
area: company-osWave 4 · cluster A — Company OS & LLC canvasWave 4 · cluster A — Company OS & LLC canvasbackendphase:M2.3Goals and work hierarchyGoals and work hierarchy
Milestone
Description
Valid, non-blocking review findings from PR #20911 (train carrying #20478), grouped here. Parent: #18978.
Backend
-
autobot-backend/llc/api/budget.py:83—token_limithas onlyle=TOKEN_LIMIT_MAX; add a lower bound so a value below the signed 64-bit minimum is a 422, not a DB error. -
autobot-backend/llc/tests/test_budget_raise_approval_8214.py:221— pin the BigInteger boundary independently ofTOKEN_LIMIT_MAX. -
autobot-backend/llc/scheduler/liveness_monitor.py:315— theheartbeat_missedunfiled-recovery notice is not surfaced to company users; wire it to a user-visible notification. -
autobot-backend/llc/services/project_backfill.py:117— detect (and report in the preview) a projectless PBI whose Task sits in another project before applying, so the backfill cannot create a hierarchy violation. -
autobot-backend/llc/services/work_item_hierarchy.py:191—move_subtree_to_projectstops atMAX_HIERARCHY_DEPTH; traverse the whole subtree or reject the move before writing. -
autobot-backend/llc/services/work_item_hierarchy.py:204—reparent(parent_id=None)detaches a projectless legacy item without enforcing the project rule; validate when the parent actually changes (no-op updates stay no-ops). -
autobot-backend/llc/services/work_item_hierarchy.py:101— compare project ids as parsed UUIDs, not strings (un-hyphenated UUID is rejected as a mismatch). -
autobot-backend/llc/services/work_item_own_task.py:101— if the transition rolls back after the checkout fence is deleted, a direct agent checkout can replace a still-active human claim; release the fence after commit and makecheckoutreject an active human claim under the row lock. -
autobot-backend/llc/services/work_item_own_task.py:101— a Redisevalfailure instamp_and_releasefails the transition before commit; give it a recovery path that lets the transition complete.
Frontend
-
autobot-frontend/src/components/llc/BacklogCreateModal.vue:154— validate story points are a whole number before submit, with a translated field error. -
autobot-frontend/src/composables/llc/useAssignableProjects.ts:25— reload (and clear selections/invalidate pending loads) when the company route param changes. -
autobot-frontend/src/i18n/locales/en.json:8771— the no-projects hint is wrong when all projects are archived; describe availability instead. -
autobot-frontend/src/views/llc/BacklogView.vue:322— a successful create followed by a failed refresh is silent; say the item was created, the refresh failed, and offer retry. -
autobot-frontend/src/views/llc/KanbanBoardView.vue:273— block a second move of a card until its pending move settles, so a rollback cannot restore a stale column. -
autobot-frontend/src/views/llc/workItemTypes.ts:109— route work-item type/priority option labels through the existingllc.enums.workItemType/llc.enums.prioritykeys. -
autobot-frontend/src/views/llc/__tests__/BacklogView.projectFilter.test.ts:144— cover the filtered post-create refresh (URL carriesproject_id, rows stay initems). -
libs/autobot-ui/src/components/__tests__/BaseInput.test.ts:15— assert the number input emits['001']onupdate:modelValue.
Metadata
Metadata
Assignees
Labels
area: company-osWave 4 · cluster A — Company OS & LLC canvasWave 4 · cluster A — Company OS & LLC canvasbackendphase:M2.3Goals and work hierarchyGoals and work hierarchy
Activity
mrveiss commentedon Nov 6, 2026
Maintainer decisions for the items that needed one:
project_backfill.py:117: the preview lists a projectless PBI whose Task is already in another project as a conflict. Apply skips those items, fills the rest, and reports what it skipped.liveness_monitor.py:315: the unfiled-recovery notice goes through the existing in-app notification service. No new channel.BacklogView.vue:322: if the item is created but the refresh fails, show a warning toast saying so, with a Retry button that reloads the list.KanbanBoardView.vue:273: a card with a move still pending is locked (no drag, pending indicator shown) until its request settles.Both
work_item_own_task.py:101findings are confirmed against the train branch:checkout_run_idunset, socheckoutcannot see it. Once the fence is gone, a rolled-back transition lets an agent checkout replace the live human claim.Fix:
checkoutrefuses an active human claim under the row lock. The fence is released after commit through the existing after_commit/after_rollback listener pattern, and a Redis failure there only logs a warning, leaving the fence to expire on its TTL.Implementation starts once train T85 lands, since the files overlap.
fix(llc): the project backfill lists and skips items whose child sits…
mrveiss commentedon Nov 7, 2026
Closure check against
origin/main(PR #20947 via merge train #21028). 14 of 16 items verified and ticked; 2 stay open and arrive in a follow-up PR. Minor findings from the train review are tracked separately in #21032 (not part of these ACs). Issue stays open.Closure check against
origin/main(PR #20947 via merge train #21028). The checklist has 17 items: 14 verified and ticked; 3 stay open (thetoken_limitlower bound, its boundary test, theheartbeat_missednotice) and arrive in a follow-up PR. Minor findings from the train review are tracked separately in #21032 (not part of these ACs). Issue stays open.|---|---|---|
| budget.py
token_limitlower bound | OPEN |autobot-backend/llc/api/budget.py:84stillField(None, le=TOKEN_LIMIT_MAX), noge|| BigInteger boundary test | OPEN | depends on the bound above; not delivered |
| liveness_monitor
heartbeat_misseduser notice | OPEN | not delivered in this PR (autobot-backend/llc/scheduler/liveness_monitor.py:293-304unchanged for this AC) || project_backfill conflict preview | verified |
autobot-backend/llc/services/project_backfill.py_conflicting(:88),conflicting_item_idsin preview (:107);tests/test_project_backfill_conflicts_20930.py(4 tests) || move_subtree full traversal | verified |
services/work_item_hierarchy.py_descendant_ids(:186) reads whole subtree before write;test_moving_a_subtree_reaches_every_depth_before_writing(40 levels) intests/test_work_item_hierarchy_18978.py:425|| reparent(None) enforces project rule, no-op stays no-op | verified |
work_item_hierarchy.pyreparent(:218), early return when parent unchanged; tests...:439,...:448|| project ids compared as UUIDs | verified |
_same_project(:92); test attests/test_work_item_hierarchy_18978.py:421(PROJECT.replace("-", "")) || fence released after commit; checkout rejects live human claim under row lock | verified |
services/work_item_own_task.py_release_after_commit(:209),other_checkout_holder(:102) called afterwith_for_updateinservices/work_item_service.py:451;tests/test_checkout_fence_after_commit_20930.py(rollback, savepoint, human-claim, generation tests) || Redis failure in release cannot fail the transition | verified |
_delete_fence(:172) logs and lets the fence expire on TTL;test_a_redis_failure_after_the_commit_is_logged_and_never_fails_the_t...(:98) || story points whole-number validation | verified |
autobot-frontend/src/components/llc/BacklogCreateModal.vue:159-165, keyllc.backlog.storyPointsWholeNumber(en.json:8779);BacklogCreateModal.test.ts:192|| reload on company change | verified |
composables/llc/useAssignableProjects.ts:49watch resets list, invalidates in-flight load;useAssignableProjects.test.ts:67|| no-projects hint for archived projects | verified |
en.json:8778noProjectsHintnow describes availability and archived projects || created-but-refresh-failed message + retry | verified |
views/llc/BacklogView.vue:56-58,327;BacklogView.projectFilter.test.ts:180|| Kanban second move blocked while pending | verified |
views/llc/KanbanBoardView.vue:262-290(movingIds, guard inonDrop);KanbanBoardView.items.test.ts:188|| type/priority labels via
llc.enumskeys | verified |views/llc/workItemTypes.ts:108-125labelKey: 'llc.enums.*', rendered witht(wt.labelKey)inBacklogView.vue:37andBacklogCreateModal.vue:41; no dedicated test for the key mapping || filtered post-create refresh test | verified |
BacklogView.projectFilter.test.ts:164|| BaseInput number input emits
['001']| verified |libs/autobot-ui/src/components/__tests__/BaseInput.test.ts:43-44|mrveiss commentedon Nov 7, 2026
Verified on main (22097e0), 15 of 19 boxes ticked, each against code: work_item_hierarchy.py (
_descendant_ids,reparentvalidates on change,_same_projectcompares UUIDs); project_backfill.py (_conflicting,conflicting_item_idsin preview); liveness_monitor.py (_notify_admins_unfiled_recoverypublishesheartbeat_missedon the router channel, consumed byuseLLCNotifications.ts; company-wide until #20885); BacklogCreateModal.vue (Number.isInteger), useAssignableProjects.ts (watch(companyId), en.jsonnoProjectsHint, BacklogView.vuecreatedRefreshFailed, KanbanBoardView.vueisMoving, workItemTypes.tslabelKey: 'llc.enums...', BaseInput.test.ts['001']. Still open: budget.py:84token_limitstill onlyle=TOKEN_LIMIT_MAX(no lower bound); test_budget_raise_approval_8214.py:217-221 still built onTOKEN_LIMIT_MAX; work_item_own_task.py:101 two items (checkout rejecting an active human claim under the row lock, and recovery when the Redis eval instamp_and_releasefails) not verified from the code.mrveiss commentedon Nov 7, 2026
Verified on main at 22097e0, ticking two boxes:
work_item_service.pycheckout takesselect(LLCWorkItem)...with_for_update(), thenother_checkout_holder(item, agent_id)raisesCheckoutConflict;other_checkout_holderinwork_item_own_task.pyreturns theuser …holder whenassignee_user_idandcheckout_locked_atare both set. A rolled-back transition keeps the claim stamp, so the agent checkout is refused.stamp_and_releasequeues the release via_release_after_commit(after_commit listener; a rollback drops it), and the release path catches the failure and logs that the fence expires on its TTL.Still open: the
token_limitlower bound and its independent boundary test.fix(llc): follow-up review findings for the work-item hierarchy and b…
fix(train): T89 — work_item_own_task imports event_wake where it is u…
mrveiss commentedon Nov 8, 2026
Open item, not delivered by PR #21055:
TOKEN_LIMIT_MINis the signed 64-bit floor, so the API still accepts NEGATIVE token limits. The two lower-bound boxes stay unticked. The follow-up PR, after #21055 lands, sets a meaningful floor (0, or 1 if a zero limit has special meaning), with boundary tests at 0 and -1.mrveiss commentedon Nov 8, 2026
Part landed: PR #21055 merged to main via merge train #21184 (merge commit 209d547): the claude_code auth-failure reason is kept on the run and the agent is paused. This PR referenced the issue (Refs), it did not close it; the issue is open and its remaining acceptance criteria are not claimed as delivered.
mrveiss commentedon Nov 8, 2026
Maintainer decision (2026-11-08): new writes require
token_limit >= 1(TOKEN_LIMIT_MIN); blocking an agent is done by pausing it. A stored legacytoken_limit = 0keeps blocking dispatch on every path (dispatch gate, budget watchdog, tracker) through one shared rule; no stored data is rewritten. Implemented in #21220.fix(llc): a stored token_limit=0 blocks on every path; token-limit fo…
fix(company-os): budget status uses the one over-limit rule (#20930)
fix(llc): bound token_limit below and put the unfiled-recovery notice…
fix(llc): token limits cannot be negative; liveness recovery note tak…
mrveiss commentedon Nov 20, 2026
AC audit against main 13685f3 (2026-11-20). A branch deleted as ZERO means its content is on main; it does not by itself meet the ACs.
PR #21220 closed (ZERO); #20947 closed (ZERO).
token_limitisField(ge=TOKEN_LIMIT_MIN, le=TOKEN_LIMIT_MAX)(llc/api/budget.py:87);test_budget_raise_approval_8214.py:225-232refuses 0, -1, -9223372036854775808.test_budget_raise_approval_8214.py:221still builds the upper boundary fromTOKEN_LIMIT_MAX(models/budget.py:17,2**63 - 1); the only literal pin is the lower bound. Left unticked.