Files
PaperClipAI/server/src
DottaandClaude Opus 5.5 32375d302f test(cloud): read durable-data blocker names from the check() calls (#22686)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The online durable-data migration pass names every blocker that the
volume-free readiness check can report
> - A test reads the blocker names from `ephemeral-server-contract.ts`
with a regex, and checks that the pass names each one
> - #22641 added that test. It looks for `blockers.push("...")`
> - #22646 merged at about the same time. It moved each check into a
`check(area, blocker, inspect)` helper, so the regex now finds no names
> - The test fails on master, in `ci / General tests (server (8/12))`,
on every pull request
> - This pull request changes the regex to read the blocker name from
each `check(...)` call
> - The benefit is that shard 8/12 is green again, and the test again
covers every blocker

## Linked Issues or Issue Description

Refs #22641 (added the test). Refs #22646 (changed the source the test
reads). Refs #22682 (blocked by this failure).

**What happened?**

`server/src/services/online-durable-data-migration.test.ts > names every
durable-data blocker that readiness can report` fails on master
`b865dd112b`:

```
- Expected
+ Received
- ArrayContaining [ "workspaces_require_migration", "local_instruction_copies_require_settlement", "external_agent_instructions" ]
+ [ "runtime_skill_assets_require_migration" ]
```

**Why?**

The regex `/blockers\.push\("([a-z_]+)"\)/g` matched nothing after
#22646. Only the constant that the test adds by hand stayed in the list.

**Expected behavior**

The test finds the 10 blocker names (9 from the source, plus
`RUNTIME_SKILL_ASSETS_BLOCKER`) from the `check(...)` calls and checks
each one.

## What Changed

- Change the scan regex in the test to
`/(?:blockers\.push\(|check\(\s*"[a-z_]+",)\s*"([a-z_]+)"/g`. It reads
the blocker name from each `check(area, blocker, ...)` call, also when
the call spans lines. It still reads the old `blockers.push("...")`
form.
- No product code changes.

## Verification

- `cd server && npx vitest run
src/services/online-durable-data-migration.test.ts`
  - On master: 1 failed, 31 passed (the failure above).
  - With this change: 32 passed.
- The existing `arrayContaining` check still fails if a later refactor
makes the scan find nothing again.

## Risks

- Low risk. Only one test regex changes.

## Model Used

- Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with shell, file
edit, and code execution tools.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:41:47 -06:00
..
…
…
…
…
…