补核24项AI候选并区分实体销售与预付收入
This commit is contained in:
@@ -23,9 +23,9 @@ test("research revisions share the authentication database and preserve replay l
|
||||
for (let i = 0; i < 20; i++) consumeCode(config, "invalid");
|
||||
assert.equal(consumeCode(config, "invalid"), "limited");
|
||||
const initial = readResearchSnapshot();
|
||||
assert.equal(initial.companies.length, 1128);
|
||||
assert.equal(initial.evidence.length, 3127);
|
||||
assert.equal(initial.observations.length, 426);
|
||||
assert.equal(initial.companies.length, 1144);
|
||||
assert.equal(initial.evidence.length, 3208);
|
||||
assert.equal(initial.observations.length, 444);
|
||||
assert.deepEqual(initial.candidateBatches, seed.candidateBatches, "candidate gaps persist in the same database metadata");
|
||||
assert.deepEqual(initial.directoryRechecks, seed.directoryRechecks, "follow-up classifications persist without rewriting the discovery audit");
|
||||
assert.deepEqual(readResearchSnapshot(), initial, "reopening does not duplicate records");
|
||||
@@ -64,8 +64,8 @@ test("research validation rejects broken evidence and unsafe source links", () =
|
||||
|
||||
test("reviews link explicit companies without turning global or excluded cases into companies", () => {
|
||||
const snapshot = structuredClone(seed) as ResearchSnapshot;
|
||||
assert.equal(snapshot.reviews.filter((r) => r.scope === "companies").length, 190);
|
||||
assert.equal(snapshot.reviews.filter((r) => r.scope === "dataset").length, 18);
|
||||
assert.equal(snapshot.reviews.filter((r) => r.scope === "companies").length, 194);
|
||||
assert.equal(snapshot.reviews.filter((r) => r.scope === "dataset").length, 19);
|
||||
assert.equal(snapshot.reviews.filter((r) => r.scope === "excluded-candidate").length, 44);
|
||||
const review = snapshot.reviews.find((r) => r.id === "R4")!;
|
||||
assert.deepEqual(reviewCompanyIds(snapshot, review), ["AI007", "AI013", "AI021", "AI034"]);
|
||||
@@ -85,11 +85,11 @@ test("reviews link explicit companies without turning global or excluded cases i
|
||||
test("disclosure counts exclude client income, biographies, targets and duplicate milestones", () => {
|
||||
const snapshot = seed as ResearchSnapshot;
|
||||
const summary = categorySummary(snapshot);
|
||||
assert.equal(summary.reduce((n, c) => n + c.count, 0), 1128);
|
||||
assert.equal(summary.reduce((n, c) => n + c.self, 0), 57);
|
||||
assert.equal(summary.reduce((n, c) => n + c.count, 0), 1144);
|
||||
assert.equal(summary.reduce((n, c) => n + c.self, 0), 58);
|
||||
assert.equal(summary.reduce((n, c) => n + c.estimate, 0), 2);
|
||||
assert.equal(summary.reduce((n, c) => n + c.platform, 0), 19);
|
||||
assert.equal(summary.reduce((n, c) => n + c.unknown, 0), 1050);
|
||||
assert.equal(summary.reduce((n, c) => n + c.unknown, 0), 1065);
|
||||
assert.equal(snapshot.companies.find((c) => c.name === "Rork")?.revenueStatus, "unknown");
|
||||
assert.equal(snapshot.companies.find((c) => c.name === "Result")?.revenueStatus, "unknown");
|
||||
assert.ok(snapshot.observations.filter((o) => o.selection === "signal").every((o) => o.scope === "公司整体"));
|
||||
@@ -124,8 +124,8 @@ test("service run rates, legacy freight revenue and paid adoption do not become
|
||||
|
||||
test("technical reviews keep accessible materials separate from tested capabilities", () => {
|
||||
const snapshot = structuredClone(seed) as ResearchSnapshot;
|
||||
assert.equal(snapshot.companies.filter((c) => c.technicalReview).length, 115);
|
||||
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "public-artifact").length, 22);
|
||||
assert.equal(snapshot.companies.filter((c) => c.technicalReview).length, 128);
|
||||
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "public-artifact").length, 23);
|
||||
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "independent-test").length, 1);
|
||||
assert.equal(snapshot.companies.find((c) => c.id === "AI051")?.revenueStatus, "unknown");
|
||||
assert.match(snapshot.companies.find((c) => c.id === "AI051")!.technicalReview!.testScope!, /Sep 2026/);
|
||||
@@ -657,6 +657,51 @@ test("the sixth uncertain cohort preserves namesakes, churn and historical robot
|
||||
assert.ok(!platformIncomeSample(snapshot, { windowDays: null }).points.some((p) => p.observation.id.startsWith("UNCLEAR6-")));
|
||||
});
|
||||
|
||||
test("the seventh uncertain cohort separates hardware sales, prepayments and bounded verification", () => {
|
||||
const snapshot = seed as ResearchSnapshot;
|
||||
const batch = snapshot.candidateBatches!.find((b) => b.id === "YC-AI-UNCLEAR-7")!;
|
||||
const original = coverageAudit.records.filter((r) => r.status === "ai-unclear").slice(144, 168);
|
||||
assert.equal(batch.complete, false);
|
||||
assert.deepEqual(batch.records.map((r) => r.url), original.map((r) => r.source));
|
||||
assert.equal(batch.records.filter((r) => r.status === "linked").length, 16);
|
||||
assert.equal(batch.records.filter((r) => r.status === "pending-ai").length, 8);
|
||||
const robotNori = snapshot.companies.find((c) => c.id === "YC32553")!;
|
||||
const healthNori = snapshot.companies.find((c) => c.id === "YC30657")!;
|
||||
assert.equal(robotNori.cat, "C10");
|
||||
assert.equal(healthNori.cat, "C09");
|
||||
assert.notEqual(robotNori.url, healthNori.url, "same-name hardware and health companies retain distinct identities");
|
||||
assert.equal(batch.records.find((r) => r.name === "Nori")!.companyId, robotNori.id);
|
||||
const figures = snapshot.observations.filter((o) => o.id.startsWith("UNCLEAR7-"));
|
||||
assert.equal(figures.length, 18);
|
||||
const sales = figures.find((o) => o.id.endsWith("NORI-SALES"))!;
|
||||
assert.equal(sales.value, 440000);
|
||||
assert.equal(sales.selection, "historical");
|
||||
assert.equal(sales.metric, undefined, "hardware sales with unverified preorder/delivery mix must not become ARR");
|
||||
assert.match(snapshot.companies.find((c) => c.id === "YC32164")!.price!, /额度/);
|
||||
for (const suffix of ["GUT-PHARMACY", "MANIFOLD-PICKS", "ATC-CLIENT-FLEET", "OPERON-CLIENT-SAVE", "ANYALPHA-OLD-APPS", "LETTER-DEMO"]) {
|
||||
assert.equal(figures.find((o) => o.id.endsWith(suffix))!.selection, "excluded");
|
||||
}
|
||||
assert.match(figures.find((o) => o.id.endsWith("LETTER-DEMO"))!.scope, /fictional/);
|
||||
assert.equal(snapshot.companies.find((c) => c.id === "YC34899")!.cat, "C06");
|
||||
const kailash = snapshot.companies.find((c) => c.id === "YC34828")!;
|
||||
assert.equal(kailash.cat, "C10");
|
||||
assert.equal(kailash.technicalReview!.level, "description", "an open-weights claim without readable weights or a model card is not a reviewed public artifact");
|
||||
const graphify = snapshot.companies.find((c) => c.id === "YC32583")!;
|
||||
assert.equal(graphify.technicalReview!.level, "public-artifact");
|
||||
const proof = snapshot.evidence.find((e) => e.id === "UNCLEAR7-32583-PROOF")!;
|
||||
assert.match(proof.summary, /unknown/);
|
||||
assert.match(proof.summary, /函数/);
|
||||
assert.match(proof.limitation, /整库正确/);
|
||||
assert.match(snapshot.companies.find((c) => c.id === "YC32518")!.notes, /Build标Coming soon/);
|
||||
for (const name of ["Kara", "Molagri", "TareBio", "Atomarine", "Vernius Systems, Inc."]) {
|
||||
const row = batch.records.find((r) => r.name === name)!;
|
||||
assert.equal(row.status, "pending-ai");
|
||||
assert.equal(row.companyId, undefined);
|
||||
}
|
||||
assert.ok(figures.every((o) => o.comparisonGroup === null));
|
||||
assert.ok(!platformIncomeSample(snapshot, { windowDays: null }).points.some((p) => p.observation.id.startsWith("UNCLEAR7-")));
|
||||
});
|
||||
|
||||
test("Chinese discovery entries preserve unread articles and use separate primary evidence", () => {
|
||||
const snapshot = structuredClone(seed) as ResearchSnapshot;
|
||||
const batch = snapshot.candidateBatches!.find((b) => b.id === "JQ-2026-targeted-1")!;
|
||||
|
||||
Reference in New Issue
Block a user