Skip to content

fix(company-os): heartbeat knowledge query stops asking for an unwritten agent collection (#19579) - #20613

Closed
mrveiss wants to merge 5 commits into
mainfrom
issue-19579-agent-leg
Closed

mrveiss wants to merge 5 commits into
mainfrom
issue-19579-agent-leg

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Thinking Path

The heartbeat knowledge query asked for an agent:<id> collection on every run. Nothing writes that collection, so the leg always returned nothing and looked like it worked. The maintainer chose option A on #19579: stop querying it, and let agent knowledge arrive with the #19512 buckets.

What Changed

  • llc/kb/rag_assembler.py: _collections_for reads project and company only. agent_id still sets the result count.
  • llc/tests/test_kb_collection_names_19519.py: the name test follows, and a new test runs assemble with an agent and asserts only the company collection is asked for.
  • agent_collection stays in llc/kb/collections.py with its test.

Heartbeats get no personal agent knowledge until #19512. They got none before this either.

Verification

llc/tests/test_kb_collection_names_19519.py: 7 passed, run before the final docstring-only edit. No host check.

Refs #19579, not Closes: its criterion asks for a tested create-then-query on the agent leg, which option A removes instead. The maintainer decides whether to reword it.

Model Used

Claude Opus 5.5

🤖 Generated with Claude Code

@mrveiss mrveiss added this to the M2 - Company OS workflow-ready milestone Nov 2, 2026
@mrveiss mrveiss added the phase:M2.1 Company and company boundaries label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between fd4c2df and 5dbd97f.

Files selected for processing: 2
  • autobot-backend/llc/kb/rag_assembler.py
  • autobot-backend/llc/tests/test_kb_collection_names_19519.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20613 (head b119e85): approve.

Read only; I didn't run the test. Two files; the heartbeat knowledge query no longer asks for a collection nothing writes. Refs #19579 fits.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Landed in the merge train (PR #20692) as 58cbf98: frozen head e699946 is an ancestor of that merge. This PR's later head 5dbd97f only merged main, with 0 non-merge commits since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M2.1 Company and company boundaries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant