Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
show on this site's /mcp
CLI
abso show 107 --json
JSON
/christopher/abso-core/versions/107?format=json

Add sanitized prose authorship DTOs

of shared·codex-prose-authorship-1··Not checked

Version 106 · Files at version 107

2 files, 65 lines added, 11 removed.

--- a/client/src/issues-wire.ts
+++ b/client/src/issues-wire.ts
@@ -8,6 +8,14 @@
88/** Who is acting: an agent through the client, or a signed-in person through the website. */
99export type Actor = { agent: string } | { person: string };
1010
11+/** Public per-field author classification; missing legacy evidence is unknown. */
12+export interface ProseAuthorship {
13+ kind: "human" | "agent" | "unknown";
14+ actor: string | null;
15+ provenance: "native" | "copy" | "import" | "historical" | "unknown";
16+ authorField: string | null;
17+}
1119export interface Lines {
1220 file: string;
1321 from: number;
@@ -18,6 +26,7 @@
1826export interface IssueRow {
1927 id: number;
2028 title: string;
29+ authorship: { title: ProseAuthorship };
2130 parent: number | null;
2231 status: Status;
2332 /** Who it's for: set when it's written or edited, else the first agent whose start note named it. */
@@ -44,6 +53,7 @@
4453 by: string;
4554 kind: "comment" | "objection";
4655 text: string;
56+ authorship: ProseAuthorship;
4757 at: number;
4858 /** Images it carries (abso issue 171); left out when none. */
4959 attachments?: Attachment[];
@@ -68,6 +78,7 @@
6878 of: string;
6979 kind: "question" | "task";
7080 question: string;
81+ authorship: { question: ProseAuthorship };
7182 /** Files the question carries; absent when none, and from older servers. */
7283 attachments?: Attachment[];
7384 review: boolean;
@@ -78,13 +89,13 @@
7889 blocks: number[];
7990 at: number;
8091 /** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */
81− answer: { by: string; words: string; at: number; attachments?: Attachment[] } | null;
92+ answer: { by: string; words: string; at: number; authorship: ProseAuthorship; attachments?: Attachment[] } | null;
8293 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
8394 seen: number | null;
8495 /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
8596 outcome?: "withdrawn";
8697 /** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */
87− ack?: { at: number; note: string };
98+ ack?: { at: number; note: string; authorship: { note: ProseAuthorship } };
8899 /** Its thread: what the asker and the one asked said on it, oldest first. The answer closes it and isn't one of these. Absent from older servers. */
89100 replies?: AskReply[];
90101 /** Who it waits on now: the one asked, or the asker while the newest reply is a question from the one asked. Null once it's closed. Absent from older servers. */
@@ -96,6 +107,7 @@
96107 id: number;
97108 by: string;
98109 text: string;
110+ authorship: ProseAuthorship;
99111 at: number;
100112 /** A question back from the one asked: the ask waits on the asker until they reply. */
101113 question?: true;
@@ -108,7 +120,13 @@
108120}
109121
110122export interface IssuePage {
111− issue: IssueRow & { description: string; lines: Lines | null; watchers: string[]; attachments?: Attachment[] };
123+ issue: IssueRow & {
124+ description: string;
125+ authorship: { title: ProseAuthorship; description: ProseAuthorship };
126+ lines: Lines | null;
127+ watchers: string[];
128+ attachments?: Attachment[];
129+ };
112130 comments: Comment[];
113131 edits: Edit[];
114132 asks: Ask[];
@@ -157,8 +175,16 @@
157175
158176/** One issue search hit: the issue, where it matched, a few words around it. */
159177export interface IssueSearchHit {
160− issue: { id: number; title: string; status: Status; updated: number; labels: string[] };
178+ issue: {
179+ id: number;
180+ title: string;
181+ status: Status;
182+ updated: number;
183+ labels: string[];
184+ authorship: { title: ProseAuthorship };
185+ };
161186 where: "title" | "description" | "comment";
187+ matchedAuthorship: ProseAuthorship;
162188 comment?: number;
163189 /** The words around the match; char(1) and char(2) bracket each matched span. */
164190 snippet: string;
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -246,16 +246,44 @@
246246 });
247247
248248 it("shows a search hit as the issue, then where it matched, without the match markers", () => {
249− const issue = { id: 12, title: "Pull is slow", status: "open" as const, updated: 0, labels: [] };
249+ const unknownAuthorship = {
250+ kind: "unknown" as const,
251+ actor: null,
252+ provenance: "unknown" as const,
253+ authorField: null,
254+ };
255+ const issue = {
256+ id: 12,
257+ title: "Pull is slow",
258+ status: "open" as const,
259+ updated: 0,
260+ labels: [],
261+ authorship: { title: unknownAuthorship },
262+ };
250263 assert.deepEqual(
251− searchLines({ issue, where: "comment", comment: 40, snippet: "the \u0001network\u0002 drops mid-sync" }),
264+ searchLines({
265+ issue,
266+ where: "comment",
267+ comment: 40,
268+ snippet: "the \u0001network\u0002 drops mid-sync",
269+ matchedAuthorship: unknownAuthorship,
270+ }),
252271 [' 12 open "Pull is slow"', ' in comment 40: "the network drops mid-sync"'],
253272 );
254− assert.deepEqual(searchLines({ issue, where: "description", snippet: "Pages load late.", meaning: true }), [
255− ' 12 open "Pull is slow"',
256− ' by meaning: "Pages load late."',
257− ]);
258− assert.deepEqual(searchLines({ issue, where: "title", snippet: "Pull is slow" })[1], " in the title");
273+ assert.deepEqual(
274+ searchLines({
275+ issue,
276+ where: "description",
277+ snippet: "Pages load late.",
278+ meaning: true,
279+ matchedAuthorship: unknownAuthorship,
280+ }),
281+ [' 12 open "Pull is slow"', ' by meaning: "Pages load late."'],
282+ );
283+ assert.deepEqual(
284+ searchLines({ issue, where: "title", snippet: "Pull is slow", matchedAuthorship: unknownAuthorship })[1],
285+ " in the title",
286+ );
259287 });
260288
261289 it("withdraw is one POST to the asker's own withdraw/<ask> route", async () => {