Skip to content

fix(retention): match the encoded workspaces root at a path boundary#227

Merged
rennf93 merged 1 commit into
masterfrom
fix/retention-sibling-prefix-overmatch
Jun 19, 2026
Merged

fix(retention): match the encoded workspaces root at a path boundary#227
rennf93 merged 1 commit into
masterfrom
fix/retention-sibling-prefix-overmatch

Conversation

@rennf93

@rennf93 rennf93 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Supersedes #221 — credit to antfleet-ops for flagging the over-match. Re-done here as our own change so it can land without the contributor CLA.

is_agent_owned_dir used a bare startswith on the encoded workspaces root, so a sibling root sharing the prefix (e.g. -data-workspaces2 vs -data-workspaces) was misclassified as agent-owned and its operator transcripts pruned. Now requires an exact match or a - path-boundary prefix.

Once this merges, #221 should be closed with a link here.

is_agent_owned_dir used a bare startswith on the encoded workspaces root, so a
sibling root that shares the prefix (e.g. -data-workspaces2 vs -data-workspaces)
was misclassified as agent-owned and its operator transcripts pruned. Require an
exact match or a '-' path-boundary prefix.

Supersedes #221 (the same fix from antfleet-ops, who flagged the over-match);
re-done here as our own change so it can land without the contributor CLA.
@github-actions github-actions Bot added tests Test suite changes area: orchestrator Touches roboco/runtime/ (agent spawner, dispatch loops) labels Jun 19, 2026
@github-actions

Copy link
Copy Markdown

Thanks for opening your first pull request on RoboCo!

Quick checklist before review (most of these are enforced by CI, but worth a glance):

  • make quality — ruff format check, ruff check, mypy, pytest (≥80% coverage), and the rest of the gate
  • Panel changes pass pnpm lint and pnpm exec tsc --noEmit (run from panel/)
  • No # noqa / # type: ignore shortcuts; pre-existing violations in touched files are fixed
  • Added an entry under ## [Unreleased] in CHANGELOG.md
  • Signed the CLA (the bot will prompt you on this PR)
  • Signed your commits — master requires verified signatures (SSH signing setup)
  • Updated any affected docs under docs/

See CONTRIBUTING.md for the full workflow and the Code of Conduct for the community standards we follow.

Welcome aboard — a maintainer will review shortly.

@rennf93 rennf93 merged commit 50742d9 into master Jun 19, 2026
9 checks passed
@rennf93 rennf93 deleted the fix/retention-sibling-prefix-overmatch branch June 19, 2026 18:57
@github-project-automation github-project-automation Bot moved this from Backlog to Done in RoboCo Kanban Jun 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: orchestrator Touches roboco/runtime/ (agent spawner, dispatch loops) tests Test suite changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant