integration test: reserved paper number
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 changed file +2 −1
modified
tests/integration/orchestration.integration.test.ts
+2 −1
@@ -460,7 +460,8 @@ describe("simulated end-to-end: quality gates and publication", () => { | ||
| 460 | 460 | expect(results.length).toBeGreaterThanOrEqual(1); |
| 461 | 461 | const p3 = await publishRun(env.db, env.storage, run.id, { actor: { type: "system" } }); |
| 462 | 462 | expect(p3.alreadyPublished).toBe(true); |
| 463 | − expect(p3.publicId).toMatch(/^AS-WP-\d{4}-0001$/); | |
| 463 | + expect(p3.publicId).toMatch(/^AS-WP-\d{4}-\d{4}$/); | |
| 464 | + expect(p3.publicId).toBe((run.manifest as { paperNumber?: string }).paperNumber); | |
| 464 | 465 | const r = await getRun(env.db, run.id); |
| 465 | 466 | expect(r.run.status).toBe("published"); |
| 466 | 467 | expect(r.artifacts.find((a) => a.path === "input/CLAUDE.md")).toBeTruthy(); |
| 467 | 468 | |