Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.d/2.10.0-land-evidence-event-lineage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 2.10.0 Land Event Lineage under the named evidence next action

Open Public post from the landed Demo Corp members and Event Lineage
for Linked post sits under the evidence next action, ahead of the
input. Home list opens still keep a single Event Lineage on the
opened post.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning follows
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.10.0] - 2026-08-17

### Added

- Opening Public post from the landed Demo Corp members now puts Event
Lineage for the cited Linked post immediately under the named
evidence next action, ahead of the chat input. Home list opens do
not add that section. No TEPP theta is invented. No cutoff body is
invented (ADR 0016).

## [2.9.0] - 2026-08-17

### Added
Expand Down
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ popup lands Ask about this lineage. After landed chat, the popup names
the first Ask. After that next action, the popup lands the first Ask
answer. After landed first Ask answer, the popup names the first
cited source. After that next action, the popup lands the first cited
evidence. Changing the week first still
evidence. After landed cited evidence, the popup names Event Lineage
on that post. After that next action, the popup lands Event Lineage
on the cited post. Changing the week first still
focuses the report period field. Mean θ stays on the period-report
panel.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
"version": "2.9.0",
"version": "2.10.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
42 changes: 41 additions & 1 deletion frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,15 @@ describe("App, authenticated", () => {
}),
);
}
if (url.endsWith("/api/posts/post-2/lineage")) {
return Promise.resolve(
jsonResponse({
post_id: "post-2",
direct: [{ post_id: "post-1", post_title: "Public post" }],
indirect: [],
}),
);
}
if (url.endsWith("/api/posts/post-1/chat") && method === "GET") {
return Promise.resolve(
jsonResponse({
Expand Down Expand Up @@ -1506,6 +1515,7 @@ describe("App, authenticated", () => {
expect(screen.queryByRole("status", { name: "Ask citation next action" })).not.toBeInTheDocument();
expect(screen.queryByRole("status", { name: "Evidence next action" })).not.toBeInTheDocument();
expect(screen.queryByRole("complementary", { name: "Evidence" })).not.toBeInTheDocument();
expect(screen.queryByText("직접")).not.toBeInTheDocument();
expect(screen.queryByText("Related to Ada West")).not.toBeInTheDocument();
expect(screen.queryByText("Related to Priya Nair")).not.toBeInTheDocument();
const popup = document.querySelector(".popup-panel");
Expand Down Expand Up @@ -2489,6 +2499,22 @@ describe("App, authenticated", () => {
expect(evidenceNext.compareDocumentPosition(askInput) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(
0,
);
const lineageHeadings = within(popup as HTMLElement).getAllByRole("heading", {
name: "Event Lineage",
});
expect(lineageHeadings).toHaveLength(2);
const landedLineage = lineageHeadings[1];
expect(
evidenceNext.compareDocumentPosition(landedLineage) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
expect(
landedLineage.compareDocumentPosition(askInput) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
expect(landedLineage.compareDocumentPosition(affiliate) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(
0,
);
expect(await within(popup as HTMLElement).findByText("직접")).toBeInTheDocument();
expect(screen.getByText("직접").closest("li")).toHaveTextContent("Public post");
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
Expand Down Expand Up @@ -2670,7 +2696,10 @@ describe("App, authenticated", () => {
fetchMock.releaseMe();
expect(
await screen.findByRole("button", { name: "Request a lineage reconstruction" }),
).toBeEnabled();
).toBeInTheDocument();
await waitFor(() =>
expect(screen.getByRole("button", { name: "Request a lineage reconstruction" })).toBeEnabled(),
);
expect(
await screen.findByRole("combobox", { name: "Corporate entity to reconstruct" }),
).toBeInTheDocument();
Expand Down Expand Up @@ -2864,6 +2893,17 @@ describe("App, authenticated", () => {
expect(await screen.findByRole("status", { name: "Evidence next action" })).toHaveTextContent(
"Linked post evidence is current. Read Event Lineage on that post next.",
);
const lineageHeadings = within(popup as HTMLElement).getAllByRole("heading", {
name: "Event Lineage",
});
expect(lineageHeadings).toHaveLength(2);
expect(
screen.getByRole("status", { name: "Evidence next action" }).compareDocumentPosition(
lineageHeadings[1],
) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
expect(await within(popup as HTMLElement).findByText("직접")).toBeInTheDocument();
expect(screen.getByText("직접").closest("li")).toHaveTextContent("Public post");
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
});

Expand Down
48 changes: 47 additions & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,20 @@ function ChatPanel({
postId,
accessToken,
nameFirstAsk,
onSelectPost,
}: {
postId: string;
accessToken: string;
nameFirstAsk?: boolean;
onSelectPost?: (postId: string) => void;
}) {
const [question, setQuestion] = useState("");
const [exchanges, setExchanges] = useState<ChatExchange[]>([]);
const [answer, setAnswer] = useState<ChatAnswer | null>(null);
const [error, setError] = useState<string | null>(null);
const [loading, setLoading] = useState(false);
const [evidencePostId, setEvidencePostId] = useState<string | null>(null);
const [evidenceLineage, setEvidenceLineage] = useState<PostLineage | null>(null);
const [seededOnly, setSeededOnly] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -222,6 +225,31 @@ function ChatPanel({
(firstCitedPostId ? firstCitedPostId.slice(0, 8) : null);
const landedEvidencePostId = nameFirstAsk ? (evidencePostId ?? firstCitedPostId) : null;

useEffect(() => {
if (!landedEvidencePostId) {
setEvidenceLineage(null);
return;
}
let cancelled = false;
setEvidenceLineage(null);
fetchPostLineage(accessToken, landedEvidencePostId)
.then((row) => {
if (!cancelled) setEvidenceLineage(row);
})
.catch(() => {
if (!cancelled) {
setEvidenceLineage({
post_id: landedEvidencePostId,
direct: [],
indirect: [],
});
}
});
return () => {
cancelled = true;
};
}, [accessToken, landedEvidencePostId]);

return (
<section className="popup-section chat-section">
<h3 id="post-ask" tabIndex={-1}>
Expand Down Expand Up @@ -267,6 +295,19 @@ function ChatPanel({
{landedEvidenceNextAction(firstCitedTitle)}
</p>
) : null}
{nameFirstAsk && landedEvidencePostId ? (
<section className="popup-section">
<h3 id="post-evidence-event-lineage" tabIndex={-1}>
Event Lineage
</h3>
<EventLineageSection
lineage={evidenceLineage}
graph={null}
postId={landedEvidencePostId}
onSelectPost={onSelectPost}
/>
</section>
) : null}
{!seededOnly && (
<div className="chat-input-row">
<input
Expand Down Expand Up @@ -1014,7 +1055,12 @@ function KeymanPanel({
</p>
) : null}
{afterList && landFirstRelated && landedRelatedName && landedRelated !== null ? (
<ChatPanel postId={postId} accessToken={accessToken} nameFirstAsk />
<ChatPanel
postId={postId}
accessToken={accessToken}
nameFirstAsk
onSelectPost={onSelectPost}
/>
) : null}
</>
);
Expand Down
2 changes: 1 addition & 1 deletion lineageweave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"sentence_excerpts",
]

__version__ = "2.9.0"
__version__ = "2.10.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lineageweave"
version = "2.9.0"
version = "2.10.0"
description = "Reconstructs git-branch-style lineage DAGs from scattered short records using multi-channel score fusion and LLM adjudication."
readme = "README.md"
license = { text = "MIT" }
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.