Skip to content

feat: add a title to graph entries - #28

Open
fza wants to merge 42 commits into
networkteam:mainfrom
fza:up/entry-titles
Open

fza wants to merge 42 commits into
networkteam:mainfrom
fza:up/entry-titles

Conversation

@fza

@fza fza commented Nov 17, 2026 •

Copy link
Copy Markdown

This PR gives every entry an optional title that names it in brief listings and in its capture commit subject, written by the same model call as its summary. Titles stay apart from the titles of the most similar entries, and sdd summarize --all fills them in for existing entries. The capture commit also names the entry ID in an Entry: line, so the history finds a capture by its entry.

Depends on: nothing.

Why the model writes the title, from the summary call

  • summary: written by the model already
  • title: the summary compacted, no further context needed
    • wider context risks a title drifting away from summary and body
  • title read back by the agent, overwritable like the summary
  • backfill through the agent: cumbersome, worst on a large graph
    • so done by the model, several requests at once (sdd summarize --all --concurrency)

Why

Problems today

  • brief listings: entry named by its summary's first sentence
  • that sentence: a statement of what the entry does
  • a statement, not a name
  • often long: 247 to 331 characters in the examples below
  • no short name for an entry anywhere
  • failed summary on sdd new: logged warning only, command succeeds
  • capture commits: sdd new names the body's opening cut at 72 characters
  • engine captures: sdd: capture <id>, nothing to scan in git log

Gains

  • brief listings name an entry in 3 to 8 words
  • examples below: 23 to 36 characters
  • new entry: title from the summary call, no extra call
  • hand-corrected summaries kept when titles are filled
  • titles kept apart from similar entries' titles
  • existing entries titled by one command
  • graph schema unchanged:
    • title optional
    • schema version stays 1
    • a bump being upstream's decision
  • failed summary or title on sdd new: visible error
  • capture commit subjects name the entry by its title, on both capture paths

Solution

  • optional title frontmatter field
  • brief listings: title, else first summary sentence
  • summary call: title and summary in one structured response
  • title-only call for entries with a summary
  • title rule stated in both prompts
  • every stored title normalized
  • similar titles from the search index in the prompt
  • one title-only re-run on a repeated title
  • --title on sdd new and sdd summarize
  • keyword search (--term) matches the title too
  • title backfill in sdd summarize --all
  • title shown and correctable at capture
  • sdd new fails loud on a failed summary or title
  • one capture commit subject: Entry.CaptureCommitMessage()

Examples

Listing today (first summary sentence) Listing with title Characters
Comparative examination of three popular Claude Code skill bundles (GSD, gstack, beads) yields a routing-and-modularization spectrum: GSD's two-stage namespace router with progressive-disclosure lazy loading, gstack's flat siblings with hand-tuned trigger prose, beads' single skill with hook-injected live tool reference. Skill bundle comparison 322 → 23
Sharpens the output policy's audience-to-format mapping into three renderings rather than two: human TTY readers get genuinely styled output (lipgloss layout, color, framing), agents and other non-TTY readers get the YAML-frontmatter-plus-markdown body, and programmatic callers get JSON via --format json or MCP structuredContent. Three CLI output renderings 331 → 27
The application package is declared the single composition root of the SDD Go application: CLI and MCP are shells over it, and its exported surface speaks the existing CQRS vocabulary, taking command and query structs from internal/command and internal/query rather than growing a parallel method dialect. Application composition root 311 → 28
This plan commits to implementing target-class-aware ref-kind weighting in sdd view so that each incoming ref contributes refWeight(refKind, targetClass) * decay(refAge) to heat, and coldness uses a weighted in-degree denominator, with an initial weight table kept deliberately small and revisable. Target-class ref-kind weighting 302 → 31
After a fresh clone, sdd init connects none of a repository's declared dependencies: it prints one sdd repo add <clone-url> line per dependency and leaves the user to work out each URL, suggesting an HTTPS form while this team clones over SSH. sdd init dependency connection gap 247 → 36

How the parts fit together

flowchart TD
    R[Title rule]
    I[Similar titles via the index]
    P[Summary call, summary.json]
    T[Title-only call, title.json]
    X[One re-run on a repeat]
    G[--title flag]
    Z[NormalizeTitle]
    F[title field]
    L[Brief listings, show, export]
    B[sdd summarize --all backfill]
    N[sdd new, fail loud]
    C[Capture correction]
    R --> P
    R --> T
    I --> P
    I --> T
    P -->|repeated title| X
    T -->|repeated title| X
    X -->|re-run| T
    P --> Z
    T --> Z
    G --> Z
    C --> Z
    Z --> F
    F --> L
    B -->|no summary| P
    B -->|summary, no title| T
    N --> P
    N --> T
    F -->|shown at verifySummary| C
Loading

Arrow: data flows from source to target.

  • title field: read by brief listings, sdd show, sdd export
  • summary call: title and summary, schema summary.json
  • title-only call: stored summary, schema title.json
  • title rule: in both prompts
  • similar titles: fed to both calls
  • repeat after either call: one title-only re-run
  • every stored title: through NormalizeTitle
  • --title: normalized, no call, never re-run
  • backfill: picks the call per entry
  • capture: shows the title, takes a correction
  • sdd new: either call, fails loud on failure

What changed

title in the entry frontmatter

---
type: signal
layer: tactical
kind: gap
title: Daemon project removal  # new, optional; listings fall back to the first summary sentence
summary: The daemon project is removed. It was unused.
---
  • written by sdd new, sdd summarize and capture
  • no title key for an untitled entry
  • schema version stays 1

sdd new --title

sdd new s tac "…body…" --title "Daemon project removal"       # stored as given, no title call
sdd new s tac "…body…" --summary "…" --title "…"              # no model call
sdd new s tac "…body…" --summary "…"                          # title from a title-only call
sdd new s tac "…body…"                                        # title and summary from one call
  • value normalized, never cut
  • refused: empty, empty once normalized, multi-line
  • --dry-run: piped stdin saved on a refused --title or an invalid command
  • flag help carries the title rule
  • embedder built only when a title call runs

sdd summarize

sdd summarize --all                          # fill missing summaries and titles
sdd summarize --all --only title             # fill missing titles only
sdd summarize --all --force --only title     # regenerate every title, summaries kept
sdd summarize <id>                           # regenerate summary and title
sdd summarize <id> --only=summary            # regenerate the summary, title kept
sdd summarize <id> --only=title              # regenerate the title, summary kept
sdd summarize <id> --title "Daemon removal"  # set a title by hand, no model call
sdd summarize --all --concurrency 8          # parallel model calls, default 4
  • --only: new; title, summary or title,summary (default)
    • the other field keeps what is stored
    • refused with --text or --title, before stdin is read
    • unknown value refused, allowed ones named
  • --title: new; exactly one entry ID, not with --all
    • combinable with --text
    • refused: empty once normalized, multi-line
  • --all, --force, --concurrency: existing; --all now fills titles too
  • built to grow: any future model-written prose field of an entry rides this surface
    • one more --only value, one more hand-set flag like --title
    • same fill, cost line, concurrency and failure hint

Capture commit subject

sdd: signal tactical Daemon project removal

Entry: 20260914-020000-s-tac-cap
SDD-Mutation: <publication key>
  • subject of a titled entry: its title
  • subject of an untitled entry: its opening content cut at 72 characters
  • body: an Entry: <id> trailer, so git log --grep finds the commit by entry ID
    • engine captures: in one trailer block with SDD-Mutation:
  • one builder: Entry.CaptureCommitMessage()
  • used by sdd new and by engine captures (Application.CreateEntry)
    • engine captures wrote sdd: capture <id> before
  • replayed publication: same subject, title read from the published frontmatter
  • title not cut

Fill output

Filling: 1520 entries get a title, 3 entries get a summary, 12 entries get a summary and a title -> 1535 model calls.
  titled 20260914-020000-s-tac-cli
  summarized 20260914-020001-s-tac-abc
  skipped 20260914-020002-s-tac-def (nothing missing)
  • cost line: before an --all fill, not with --force or named entries
    • counts what each call writes, --only applied
    • re-runs on a repeated title not counted
  • no confirmation prompt
  • terminal: progress bar instead of the lines
  • otherwise: one line per entry

Failure output

entry 20261115-142927-s-tac-enq is written without a generated title (run sdd summarize 20261115-142927-s-tac-enq --only=title to fill it): summarizing: running title call: provider unreachable
  • sdd new: entry written and committed, command fails
  • hint names what is missing and the command that keeps what was supplied:
    • --summary given: title, sdd summarize <id> --only=title
    • --title given: summary, sdd summarize <id> --only=summary
    • neither: summary or title, sdd summarize <id>
  • sources: model call, structured output, similar-titles search
git commit: signing timed out; the written entry files stay uncommitted, commit them with: git commit -m 'sdd: summarize 2 entries' -- '/repo/.sdd/graph/2026/01/01-120000-s-prc-aaa.md' '/repo/.sdd/graph/2026/01/01-120001-s-prc-bbb.md'
  • sdd summarize: a failed commit names the files and the command that commits them
  • each path shell-quoted; every path in one command
    • no --pathspec-from-file: it needs a file written on the error path
    • 1000 entries: about 100 KB, under ARG_MAX
cancelled.
entry 20261115-142927-s-tac-enq is written without a generated summary or title (run sdd summarize 20261115-142927-s-tac-enq to fill it): summarizing: context canceled
  • Ctrl-C or SIGTERM after a write: the hint or failed commit still printed, exit 1
  • marked by model.ErrIncompleteWrite
  • a plain cancellation still prints only cancelled., exit 130

Engine type title

state:
  correctedTitle: {type: title, optional: true, desc: "replacement title …"}  # new type; capture's spec uses it
  • new procedure-spec state type, beside text, label and the others
  • served to every spec author: listed with the other types in the procedure-spec base fact
  • checks a value: refused when empty once normalized or multi-line
  • stores the value as given; the write normalizes it once
  • empty: the field left out
  • used by the capture procedure's correctedTitle

Title field and listings

  • optional frontmatter key title on model.Entry
  • no title key written for an untitled entry
  • ListingTitle(): title, else first summary sentence
  • brief line (EntryLineBrief) uses ListingTitle()
  • brief line in list, grouped and focus views
  • other one-line names unchanged:
    • sdd show tree lines
    • closure targets
    • procedure listings
  • title in sdd show
  • title in sdd export
  • keyword search text (searchableText in internal/finders/search.go): title, summary, body, Markdown attachments
    • a term only the title holds finds the entry, in sdd search --term and the search tool

Summary and title calls

  • summary call: title and summary together
    • own response schema: response_schemas/summary.json
    • linked entries shown with title and summary
  • summary prompt rules:
    • claims only what the entry states, none lent from a related entry
    • no label like Signal: opening a sentence
    • no sentence restating layer or confidence
  • summary now needs structured output
    • like the separate pre-flight and writing-guide calls
    • provider without structured output: summary and title fail
  • public pkg/llm contract change:
    • summarize request carries a ResponseSchema
    • answer must be JSON
    • new purpose llm.PurposeTitle
    • external runner returning plain text: summary step fails
    • external llm.ByPurpose map without a fallback: must route llm.PurposeTitle, else title calls fail "no runner routed"
  • title-only call: llm.PurposeTitle, response_schemas/title.json
    • for entries holding a summary
    • fed type, layer, kind and the stored summary
    • entry body not sent
    • linked entries shown by title
  • schema title description points at the title rule
  • prompts state no JSON format rules

Call choice per command

flowchart TD
    N[sdd new] --> N1{--summary given?}
    N1 -- no --> NP[Summary call: title + summary]
    NP --> NS[Store the call's summary; store --title if given, else the call's title]
    N1 -- yes --> N2{--title given?}
    N2 -- yes --> NV[No call: store both as given]
    N2 -- no --> NT[Title-only call over the given summary]

    S[sdd summarize] --> S1{--title or --text given?}
    S1 -- yes --> SV[No call: write what was given on one entry]
    S1 -- no --> S2{Named entries or --force?}
    S2 -- yes --> SP[Summary call: replace title and summary]
    S2 -- "no (--all)" --> S3{Entry has a summary?}
    S3 -- no --> SF[Summary call: write title and summary]
    S3 -- yes --> S4{Entry has a title?}
    S4 -- yes --> SK[Skip: no call]
    S4 -- no --> ST[Title-only call over the stored summary]
Loading
  • diagram: sdd summarize without --only
  • with --only: the call is chosen as if only the named field were missing
    • --only=title, summary stored: title-only call
    • --only=title, no summary: summary call, summary discarded
    • --only=summary: summary call, title kept, no title re-run

Title rule and normalization

  • prompt rule: noun phrase of 3 to 8 plain words
  • at most 50 characters
  • capital first letter
  • rule told the agent too
  • no length cap enforced in code
  • code terms as code spans
  • proper nouns as code spans
    • for proper rendering by an agent or UI
  • no framing words like decision, plan, signal
  • no entry IDs
  • written in the graph's configured language
  • stored as written, then normalized:
    • first letter capitalized
    • unless a code span leads
    • a quoted word leading: set as a code span, casing kept
      • not when it holds a backtick of its own
    • normalizing a normalized title changes nothing
    • trailing punctuation trimmed
    • question mark kept
    • double quotes removed
    • apostrophes kept
  • refused at every writer:
    • a title empty once normalized
    • a multi-line title
      • line breaks: CR, LF, VT, FF, NEL, U+2028, U+2029
  • writers:
    • sdd new --title, sdd summarize --title
    • capture correction
    • generated title
  • one helper: model.ParseTitle

Similar titles and repeats

flowchart TD
    E[Entry body] --> Q{Embedder and built index?}
    Q -- no --> NS[No similar-titles section, no error]
    Q -- yes --> CUT[Body cut to one indexed chunk]
    CUT --> SR[Vector search over titled entries]
    SR --> EX[Entry itself, refs, closes, supersedes left out]
    EX --> TOP[5 most similar titles in the prompt]
    NS --> CALL[Summary or title-only call]
    TOP --> CALL
    CALL --> REP{Title repeats another entry's title?}
    REP -- no --> STORE[Store the title]
    REP -- yes --> RE[One title-only re-run: repeat listed first, previous 5th dropped]
    RE --> STORE2[Store the result as is, repeat or not]
Loading
  • query: entry body, embedded
  • body cut to one indexed chunk
  • only titled entries searched
  • 5 most similar titles listed in both prompts
  • left out: the entry itself
  • left out: its refs, closes, supersedes
  • prompt: new title must not conflict with any
  • prompt: a related entry's title never reused
    • matches the repeat check, which counts related entries too
  • no embedder or no index: no section, no error
  • empty body: no section
  • search failure: a hard gate, fails loud
    • sdd summarize: fails
    • sdd new: handled as a failed call
    • capture: aborts before the write
    • why: without the list the model writes duplicate titles
    • why: fail loud, per AGENTS.md
  • embedder built lazily:
    • only a title call opens it
    • sdd new --summary --title, --dry-run: embedding config never read
  • query embedded outside the summarize graph lock
  • similar entries hashed from the capture's target store
  • repeat: same title, case-insensitive, trimmed
  • one title-only re-run on a repeat
    • repeat listed first
    • previous 5th dropped
  • repeat after the re-run: stored as is
  • failed re-run: the whole description fails
    • a good first summary is discarded too
    • deliberate: fail loud, rerun the command
  • --title value: never re-run
  • known limits:
    • similar lists thin during a first backfill
      • entries described in the same run hash stale and drop out
    • same with --force: re-described entries drop out of the search
    • two workers can write the same new title
      • the repeat check reads the graph before either writes

Backfill in sdd summarize --all

  • fills what is missing, in topological order
  • without --only:
    • no summary: summary call
    • summary, no title: title-only call, summary kept
    • title, no summary: summary call, title kept
    • both present: skipped, no call
    • --force: summary call for every entry
    • named entries: summary call, both replaced
  • with --only: only the named field filled or regenerated
  • embedded entries skipped
  • new phase summarizing, counted like indexing
  • interrupted fill continues on the next run
  • Ctrl-C or SIGTERM: what was written is committed
  • killed run: files written before the kill stay uncommitted
    • not reported; the next run skips them
    • commit them by hand
  • failed commit: a rerun skips filled entries, so nothing commits them later

Capture

  • generated title shown at verifySummary
  • agent corrects title, summary or both
  • field left out stays as stored
  • correction normalized
  • empty or multi-line correction refused before it is stored
    • through the new engine type title
    • the next correction may leave the title out
  • drifted without a correction refused
  • correction of a moved document: conflict naming the current title and summary, unless it matches what is stored
  • replayed correction: treated as done (ReplaceSummary)
  • conflict only on a differing stored value

Docs

  • getting started: capture writes a title and a summary
  • getting started: capture commits as sdd: <type> <layer> <title>, entry ID in an Entry: line
  • working modes: agent checks title and summary
  • browsing the graph: title in frontmatter
  • browsing the graph: brief line by title
  • browsing the graph: titles, backfill, --title
  • browsing the graph: failed commit names the files and the git commit command
  • browsing the graph: Ctrl-C commits what a fill wrote, a kill does not
  • browsing the graph: --only
  • browsing the graph: --term matches title, summary, body and Markdown attachments
  • configuration: summary step needs structured output

Backfill numbers

  • parallel model calls: sdd summarize --concurrency, default 4
  • measured on glm-5.3-flash, from the .sdd/stats/llm.jsonl of a graph of about 1,000 entries:
Call Calls Mean Median p90 Tokens in / out
title-only (entry with a summary) 1522 6.1 s 4.5 s 11.8 s 1792 / 704
summary and title together 317 4.4 s 2.0 s 12.0 s 2264 / 446
  • estimate: 1000 entries with a summary, title-only, 4 in parallel
    • about 1000 x 6.1 s / 4
    • roughly 25 minutes

Tests

  • internal/model/title_test.go:
    • CaptureCommitMessage: title, else opening content
    • frontmatter round trip
    • no title key when untitled
    • ListingTitle, NormalizeTitle, RepeatedTitle, TitleBackfill
    • quoted leading word set as a code span
    • normalizing a normalized title changes nothing, over every case
    • CheckTitle: multi-line title refused
    • ParseTitle: normalized, empty and multi-line refused
    • IncompleteWrite: marks without changing the message
    • TitleBackfill per --only value
    • ParseDescriptionFields: allowed values, unknown refused
  • internal/engine/types_test.go: title type stores the value as given, unusable refused
  • internal/index/open_built_test.go: no index opened or created where none is built
  • internal/model/phase_test.go: TestPhaseCounted
  • internal/llmops/summary_test.go:
    • call choice (TestNewDescriptionChoosesTheCall)
    • declared schemas
    • schema title description pointing at the title rule
    • title rule in both prompts
    • both prompts forbid reusing a related title
    • summary prompt: claims held to the entry, labels and listed metadata left out
    • related and similar titles in the prompt
    • stored summary in the title prompt
    • paired and title-only parsing
    • plain-text answer refused (pkg/llm contract change)
    • one call for title and summary
    • one re-run on a repeated title
    • no re-run for a free title
  • internal/finders/search_text_test.go, TestSearchFinder_TextModeMatchesTheTitle: a term only the title holds finds that entry alone
    • red without the fix, and with the title left out of the search text; restored byte-identical
  • internal/query/search_test.go:
    • similar-titles query needing a body
    • linked entries left out
    • body cut to one indexed chunk
    • no gates by default
  • internal/handlers/title_search_test.go:
    • five nearest titled entries in sdd new and sdd summarize
    • linked entries left out
    • one re-run
    • no section without embedder or index
    • search failure fails summarize
    • search failure on sdd new: entry written, command fails naming it
    • no search opened with nothing to describe
    • query embedded outside the graph lock
  • internal/handlers/handler_new_entry_test.go:
    • generated title
    • supplied title normalized
    • multi-line or blank --title refused
    • dry run saves piped stdin on an early refusal
    • summary or title failure: entry written and committed, error names it
    • failure hint per case; the named command keeps the supplied field
    • cancelled summary call keeps the hint and a failed commit
    • failed commit and failed summary joined into one error
  • internal/handlers/handler_summarize_test.go, handler_summarize_batch_test.go:
    • --title normalized
    • unusable --title refused
    • --title on one entry only
    • --all filling what is missing
    • --all keeping a stored title
    • --only on named entries keeping the other field
    • --only=summary running no title re-run
    • a cancelled run committing what it wrote
    • a cancelled run keeping a failed commit
    • --all --only and --all --force --only writing only the named field
    • commit before a failure
    • failed commit naming the files and a git commit command that parses in sh
    • planned count
  • internal/cliapp/summarize_test.go:
    • cost line, not with --force or named entries
    • cost line counting a stored title
    • cost line with --all --only title
    • --only refusals: unknown value, with --text, with --title
    • --only conflict refused before stdin is read
    • --title needing one entry
  • internal/cliapp/app_test.go: blank sdd new --title refused; empty --title keeps piped stdin on a dry run
  • internal/cliapp/summarize_internal_test.go: progress ends at the total under concurrent workers
  • internal/cliout/coordinator_test.go: cancellation keeps an incomplete write
  • internal/cliapp/app_test.go: embedder built only for a title call
  • internal/cliapp: title_help_test.go, progress_internal_test.go, export_test.go
  • tui: TestModel_SummarizingShowsTheBar
  • internal/presenters:
    • brief line by title
    • title in sdd show
  • internal/proctest/capture_title_test.go:
    • title written, shown and correctable at verifySummary
    • drifted without a correction refused
    • correction of a moved document
    • correction normalized
    • empty, blank, quotes-only or multi-line correction refused before it is stored; a summary-only correction follows
  • pkg/local/repository_targets_test.go:
    • capture commit named by the title, Entry: before SDD-Mutation:
    • capture committed on retry: title from the published frontmatter, entry ID kept
  • internal/handlers/handler_new_entry_test.go: sdd new commit names title and entry ID
  • internal/model/title_test.go: commit message of a titled and an untitled entry
  • pkg/application/capture_titles_test.go:
    • five nearest titled entries at capture
    • similar entries hashed from a branch target
    • none without an embedder
    • failure on a search error
  • run: devbox run test (green: vet, every package, the example module) and devbox run lint

Details

The title rides on the summary call, so a new entry costs no extra model call. The title-only call serves entries whose summary may have been corrected by hand, since regenerating both would overwrite the correction. A required title would need a graph schema bump, and that is upstream's decision.

Both response shapes are JSON files under internal/llmops/response_schemas/, enforced by each adapter's structured output. The prompts state the title rule but no JSON format rules, as 20261004-134853-d-cpt-sw8 requires. This changes the public pkg/llm contract: the summarize request now carries a ResponseSchema and its answer must be JSON, so an external runner that returns plain text fails the summary step; the title-only call adds llm.PurposeTitle.

A failed similar-titles search stays a loud failure: without the list the model writes titles that repeat its neighbours'. Only a title call builds the embedder, so commands making none never read the embedding config.

Upstream compatibility

  • pkg/: no exported function, type or method of upstream main removed or changed (checked with apidiff against ca555fd1)
  • pkg/llm behaviour: the summarize request carries a ResponseSchema; an external runner answering in plain text fails the summary step (see Details)
  • title: an optional frontmatter field; a build without it drops the title when it rewrites an entry
  • capture commits: subject sdd: <type> <layer> <title>, Entry: <id> trailer in the body

fza added 30 commits November 15, 2026 22:23
sdd summarize --all overwrote the title of an entry that held a title but
no summary with the paired call's generated one, and its cost line counted
such an entry as getting a title.
The hint named sdd summarize <id>, which regenerates both fields and so
replaced a summary or title the caller had supplied with --summary or
--title. sdd summarize --all fills only what is missing.
sdd new --title and a capture's correctedTitle stored a title holding a
line break, since NormalizeTitle keeps one; only summarize --title and a
generated title refused it. model.CheckTitle is now the one check every
title writer runs.
sdd new and sdd summarize built the embedder before running, so sdd new
--summary --title and --dry-run, which make no title call, failed on a
broken embedding config. The handler now takes one TitleSearchOpener that
a title call opens.
A summarize worker held the graph read lock across the embedding call, so
a worker waiting to write its entry, and every worker behind it, waited on
another worker's network round trip. SearchFinder.EmbedPhrase now embeds
the query ahead; only the index query and graph reads run under the lock.
…d of committing them later

CommitStrandedTitles committed whole working files, so a hand edit could
land in its commit, and a file added but not at HEAD failed every later
fill. A summarize run whose commit fails now returns an error naming the
files it left uncommitted and the git commit command that commits them.
A capture searched the target's snapshot but read the hit entries'
attachments from the project's default store, so on a branch target a
similar entry with attachments failed the capture or dropped out of the
similar titles.
newFillProgress drove the single-producer cliout.Reporter from every
summarize worker, so a stale snapshot could land last and the bar end
below the total.
Quote removal turned "sdd" output into Sdd output: the term lost its quotes
and then its casing. A title opening with a single quoted word now keeps
its casing, as one opening with a code span does.
The prompt allowed reusing a related entry's title for the same subject,
while Retitle re-runs any title that repeats another entry's, so each
permitted reuse cost a re-run.
… names

The command joined bare absolute paths, so a graph directory holding a
space or a quote broke it in the shell.
…usal

sdd new --title with a value empty once normalized fell back to a
generated title, while summarize --title refused it; both refuse now. A
dry run refused by command validation or the title check returned before
it registered the stdin save, so the piped attachment was lost.
…ndex package

model.Entry.Unfilled is now what both the cost line's count and the
summarize plan skip by. index.OpenBuilt replaces handlers.SearchIndexDir,
a disk adapter only the CLI used.
--only title|summary writes that field alone and keeps the other, on named
entries, --all and --all --force. The sdd new failure hint names
sdd summarize <id> with the --only that keeps what the caller supplied.
--only=summary on an untitled entry still re-ran a repeated title: an extra
paid call whose failure failed the entry, for a title the run throws away.
The CLI refused --title "" before NewEntry registered the dry-run stdin
save, so the piped attachment was lost. NewEntryCmd.Title is now a pointer:
nil generates, any given value is checked in the handler.
sdd summarize --text - --only=title read and discarded stdin and built the
runner before the handler refused the conflict.
The guide said an interrupted fill leaves its files uncommitted; a
cancelled run still commits them, only a killed one does not. The Force
comment now reads with --only.
…he write

A correctedTitle like "..." passed prepare, then ReplaceSummary refused
it, leaving the capture on an unfinished operation only cancel escaped.
model.ParseTitle now normalizes and refuses for every title writer.
The summary check said each correction replaces the stored one verbatim.
On Ctrl-C or SIGTERM the joined commit failure was mapped to the plain
cancelled message, hiding the files left uncommitted. The failure now wraps
model.ErrUncommittedWrite, which the coordinator and main keep and print.
A refused correctedTitle stayed in the store, so a following correction
that left the title out was refused again. A new engine type title
validates through model.ParseTitle at the store write.
fza added 9 commits November 15, 2026 22:24
Ctrl-C during the summary call of sdd new printed only cancelled., hiding
the written entry's hint and a failed commit. Both now carry
model.ErrIncompleteWrite, which replaces ErrUncommittedWrite.
…o-op

A capture's quoted lowercase opener lost its casing: the title type stored
the normalized title and the write normalized it again. A quoted opener
now becomes a code span, so NormalizeTitle is a fixpoint, and the title
type only checks.
…span

A quoted run of punctuation such as „…“ became a code span, so a title
of nothing but quotes and punctuation was no longer refused as empty.
… backticks

CheckTitle let U+0085, U+2028 and U+2029 through, and a quoted opening
word that already held a backtick became a broken code span.
CheckTitle let VT and FF through, which also break a one-line listing.
sdd new committed as sdd: <type> <layer> <opening> and an engine capture
as sdd: capture <id>. Both now use Entry.CaptureCommitMessage: type,
layer and title, the opening content where the entry has no title.
…document

CreateEntry built its batch subject from the untrimmed draft while the
committed one came from entryPublicationBatch; both now use one builder.
The getting-started guide names the new subject.
The summary prompt let the model add a cause or consequence the entry
never stated, or lend it a related entry's claim.
Listings already show an entry's type, layer and confidence; the summary
opened on a label such as "Signal:" or restated them.
Comment thread internal/handlers/handler_summarize.go Resolved
fza added 3 commits November 17, 2026 22:56
Parallel summarize workers share one saved index and query it together; its lazily built published view was read and written without a lock, so concurrent first queries each built a full copy and raced on publishing it.
The subject stays `sdd: <type> <layer> <title>`; an `Entry: <id>` trailer precedes `SDD-Mutation:` in one trailer block, so `git log --grep` finds the commit by entry. Ports fza-next 627fe47 and 42a8977.

This branch has not been deployed

No deployments
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.

1 participant