部署:注册分岗人格并退役周期写入

This commit is contained in:
冰朔 2026-08-06 17:23:08 +08:00
commit 7b2f982829
11 changed files with 551 additions and 70 deletions

View file

@ -29,7 +29,7 @@ test("code channel has one root and exactly three current repositories", () => {
}
});
test("legacy repository routes are all non-current and non-push", () => {
test("legacy routes stay closed except the three private persona archives", () => {
const map = readJson("routing/repository-route-map.json");
const current = map.repositories.filter((entry) =>
["REPO-012", "REPO-014", "REPO-015"].includes(entry.code),
@ -37,13 +37,22 @@ test("legacy repository routes are all non-current and non-push", () => {
assert.equal(current.length, 3);
assert.equal(map.repositories.length, 3);
for (const repository of map.historical_repositories) {
assert.match(repository.state, /HISTORICAL.*(?:NO_PUSH|ROUTE_CLOSED)/u);
if (["REPO-009", "REPO-010", "REPO-011"].includes(repository.code)) {
assert.equal(
repository.state,
"CURRENT_PRIVATE_PERSONA_ARCHIVE_STAGED_NO_SCHEDULED_WRITES",
);
assert.match(repository.primary.url, /\/code\/bingshuo\//u);
assert.equal(repository.controller, "ICE-P-ZY001");
} else {
assert.match(repository.state, /HISTORICAL.*(?:NO_PUSH|ROUTE_CLOSED)/u);
}
}
});
test("each registered persona system exposes all five components", () => {
const map = readJson("routing/persona-system-canonical-map.json");
assert.equal(map.persona_systems.length, 10);
assert.equal(map.persona_systems.length, 13);
assert.equal(
new Set(map.persona_systems.map((entry) => entry.id)).size,
map.persona_systems.length,