Skip to content

A same name under two undeclared classes queues a review, so ACME-1 typed as a ticket and a work item is not split in silence - #1445

Open
rudycelekli wants to merge 2 commits into
deeplethe:devfrom
rudycelekli:store-undeclared-class-review
Open

rudycelekli wants to merge 2 commits into
deeplethe:devfrom
rudycelekli:store-undeclared-class-review

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

A mention and an existing entity can share a name while their classes are not declared disjoint, not in one branch of the hierarchy, and not in the short confusable list. Resolution kept both entities and queued no review pair. It still keeps them apart, and now queues a type_drift review.

No shipped ontology pack declares disjointness, so a same-name match across two classes now queues a review pair, capped at 4 pairs per mention.

Relates to #1338.

…yped as a ticket and a work item is not split in silence

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
@WaylandYang

Copy link
Copy Markdown
Contributor

Thanks for the fixes. Reviews of #1429–#1445 are on hold until the open change requests are answered: #1398, #1399, #1403, #1405, #1407, #1411, #1412, #1413, #1414, #1415, #1418, #1421, #1422, #1423. Once those are done, please group fixes that touch the same function into one PR before asking for review. (#1444 overlaps Floating-Y's #1449, which covers the same restore case; it will likely be closed in favour of that one.)

@WaylandYang

Copy link
Copy Markdown
Contributor

谢谢,代码本身是对的,但范围比标题大:删掉 types_are_kin 之后,任何一个库里只要两个类没有声明 disjointWith,跨类同名就会进 type_drift 审核队列,而内置的本体包没有一个声明过 disjointWith,所以这等于把所有跨类同名都送进队列,审核量会变,不只是把"未声明的类"这一种情况补上。

两个问题请处理:

  1. 是有意把范围开到这么大,还是只想把原来因为 kin 查不到而落到 Disjoint 的那一类提升成 Review?后者的话请保留 kin 检查,只改落到 Disjoint 的分支。
  2. TypeDrift::Disjoint 的新注释写的是"只有本体声明了互斥才按这档分开",但 classify_type_drift 在 containment 路径(resolution.rs 986 附近)仍然会返回它,注释对那条路径不成立。

另外 PR 描述里缺"怎么验证的"一节,请补上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants