resolve residual registry and persona numbering paths
This commit is contained in:
parent
64f6736209
commit
5e7171eaba
15 changed files with 307 additions and 83 deletions
|
|
@ -29,25 +29,38 @@ test("code channel has one root and exactly three current repositories", () => {
|
|||
}
|
||||
});
|
||||
|
||||
test("legacy routes stay closed except the three private persona archives", () => {
|
||||
test("historical routes stay closed while three private persona repositories remain a separate current class", () => {
|
||||
const map = readJson("routing/repository-route-map.json");
|
||||
const current = map.repositories.filter((entry) =>
|
||||
["REPO-012", "REPO-014", "REPO-015"].includes(entry.code),
|
||||
);
|
||||
assert.equal(current.length, 3);
|
||||
assert.equal(map.repositories.length, 3);
|
||||
assert.deepEqual(map.current_code_channel_push_targets, ["REPO-012", "REPO-014", "REPO-015"]);
|
||||
assert.deepEqual(map.private_persona_memory_write_targets, ["REPO-009", "REPO-010", "REPO-011"]);
|
||||
for (const repository of map.historical_repositories) {
|
||||
if (["REPO-009", "REPO-010", "REPO-011"].includes(repository.code)) {
|
||||
assert.equal(
|
||||
repository.state,
|
||||
"CURRENT_PRIVATE_PERSONA_HISTORY_AND_DAILY_ROLE_MEMORY_PENDING_DEPLOYMENT",
|
||||
);
|
||||
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);
|
||||
}
|
||||
assert.match(repository.state, /HISTORICAL.*(?:NO_PUSH|ROUTE_CLOSED)/u);
|
||||
}
|
||||
assert.deepEqual(
|
||||
map.private_persona_repositories.map((entry) => entry.code),
|
||||
["REPO-009", "REPO-010", "REPO-011"],
|
||||
);
|
||||
for (const repository of map.private_persona_repositories) {
|
||||
assert.equal(
|
||||
repository.state,
|
||||
"CURRENT_PRIVATE_HISTORY_ACTIVE_DAILY_ROLE_MEMORY_DEPLOYED",
|
||||
);
|
||||
assert.match(repository.primary.url, /\/code\/bingshuo\//u);
|
||||
assert.match(repository.primary.observed_main, /^[0-9a-f]{40}$/u);
|
||||
assert.equal(repository.controller, "ICE-P-ZY001");
|
||||
assert.equal(repository.code_channel_push_allowed, false);
|
||||
assert.equal(repository.scheduled_persona_memory_write_allowed, true);
|
||||
assert.equal(repository.write_scope, "CONTENT_DRIVEN_DAILY_FIFTH_DOMAIN_ROLE_MEMORY_ONLY");
|
||||
assert.equal(repository.deployment_source_allowed, false);
|
||||
assert.equal(repository.persona_recovery_proof_allowed, false);
|
||||
assert.equal(repository.generic_remote_discovery_allowed, false);
|
||||
}
|
||||
assert.match(map.routing_rule, /separate current private-persona-history class/u);
|
||||
});
|
||||
|
||||
test("each registered persona system exposes all five components", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue