Skip to content
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.d/1.5.0-event-lineage-keyman-eval-next.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 1.5.0 Name Keyman and evaluation after the current Event Lineage node

Open Public post from the landed Demo Corp members and the popup names
Keyman and evaluation after the current Event Lineage node.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ 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).

## [1.5.0] - 2026-08-17

### Added

- Opening Public post from the landed Demo Corp members names the next
action after the current Event Lineage node: read Keyman and
evaluation. Home list opens do not add that copy. No TEPP theta is
invented. No cutoff body is invented (ADR 0016).

## [1.4.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 @@ -49,6 +49,8 @@ mean θ. The period-report panel says Demo Corp is the opened grouping
and to read its mean θ and member posts, then open a post. Those
members land immediately under that next action, ahead of Other Corp
and the week strip. Opening Public post names the next action: read
Event Lineage, Keyman, and evaluation on that post. Changing the week
Event Lineage, Keyman, and evaluation on that post. The popup Event
Lineage DAG marks that post current. After that current node, the
popup names Keyman and evaluation as the next read. 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": "1.4.0",
"version": "1.5.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
38 changes: 30 additions & 8 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@ describe("App, authenticated", () => {
expect(screen.getAllByLabelText("A-100 lineage").length).toBeGreaterThanOrEqual(2);
expect(screen.getAllByLabelText("Open post: Pricing renegotiation follow-up").length).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).not.toHaveFocus();
expect(
screen.queryByRole("status", { name: "Event Lineage next action" }),
).not.toBeInTheDocument();
});

it("shows a seeded Ask exchange without an orchestrator round-trip", async () => {
Expand Down Expand Up @@ -2258,24 +2261,40 @@ describe("App, authenticated", () => {
await userEvent.click(member);
await waitFor(() => expect(screen.getByText("The full body text.")).toBeInTheDocument());
expect(member).toHaveAttribute("aria-current", "true");
expect(screen.getByRole("status")).toHaveTextContent(
"Public post is open from Demo Corp. Read Event Lineage, Keyman, and evaluation on this post.",
);
expect(screen.getByRole("status")).not.toHaveTextContent("then open a post");
expect(
screen.getByText(
"Public post is open from Demo Corp. Read Event Lineage, Keyman, and evaluation on this post.",
),
).toBeInTheDocument();
expect(
screen.getByText(
"Public post is open from Demo Corp. Read Event Lineage, Keyman, and evaluation on this post.",
),
).not.toHaveTextContent("then open a post");
expect(
screen.getAllByRole("heading", { name: "Event Lineage" }).length,
).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).toHaveFocus();
const popup = document.querySelector(".popup-panel");
expect(popup).not.toBeNull();
expect(within(popup as HTMLElement).getByLabelText("Open post: Public post")).toHaveAttribute(
"aria-current",
"true",
);
const currentNode = within(popup as HTMLElement).getByLabelText("Open post: Public post");
expect(currentNode).toHaveAttribute("aria-current", "true");
const homeNode = screen
.getAllByLabelText("Open post: Public post")
.find((node) => !popup?.contains(node));
expect(homeNode).not.toHaveAttribute("aria-current");
const lineageNext = screen.getByRole("status", { name: "Event Lineage next action" });
expect(lineageNext).toHaveTextContent(
"Public post is current in Event Lineage. Read Keyman and evaluation next.",
);
expect(
currentNode.compareDocumentPosition(lineageNext) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
expect(
lineageNext.compareDocumentPosition(
within(popup as HTMLElement).getByRole("heading", { name: "Keyman" }),
) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
}
Expand Down Expand Up @@ -2540,6 +2559,9 @@ describe("App, authenticated", () => {
expect(screen.getAllByText(/Ada West/).length).toBeGreaterThan(0);
expect(screen.getAllByLabelText("A-100 lineage").length).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).toHaveFocus();
expect(screen.getByRole("status", { name: "Event Lineage next action" })).toHaveTextContent(
"Public post is current in Event Lineage. Read Keyman and evaluation next.",
);
});

it("lets post_admin rebuild the period report", async () => {
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,22 @@ function ChatPanel({ postId, accessToken }: { postId: string; accessToken: strin
);
}

function eventLineageCurrentNextAction(postTitle: string): string {
return `${postTitle} is current in Event Lineage. Read Keyman and evaluation next.`;
}

function EventLineageSection({
lineage,
graph,
postId,
onSelectPost,
currentNextAction,
}: {
lineage: PostLineage | null;
graph: LineageGraph | null;
postId: string;
onSelectPost?: (postId: string) => void;
currentNextAction?: string | null;
}) {
if (!lineage) return <p>Loading lineage...</p>;
const scoped = graph ? subgraphForPost(graph, postId) : { nodes: [], edges: [] };
Expand All @@ -305,6 +311,11 @@ function EventLineageSection({
{scoped.nodes.length > 0 && onSelectPost && (
<LineageDag graph={scoped} onSelectPost={onSelectPost} currentPostId={postId} />
)}
{scoped.nodes.length > 0 && currentNextAction ? (
<p className="post-meta" role="status" aria-label="Event Lineage next action">
{currentNextAction}
</p>
) : null}
{hasLinks && (
<ul className="lineage-list">
{lineage.direct.map((post) => renderLink(post, "direct"))}
Expand Down Expand Up @@ -1391,6 +1402,9 @@ function PostDetailPopup({
graph={graph}
postId={postId}
onSelectPost={onSelectPost}
currentNextAction={
focusEventLineage ? eventLineageCurrentNextAction(post.post_title) : null
}
/>
</section>

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__ = "1.4.0"
__version__ = "1.5.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 = "1.4.0"
version = "1.5.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.