Skip to content

Retract the Topics defect: the empty was honest and my inference was not - #150

Merged
brettheap merged 1 commit into
mainfrom
change/retract-topics-defect
Aug 9, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/retract-topics-defect

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The previous commit recorded a "known, not fixed" defect: Topics rendering empty while Area read ideation/staging/document-catalog-adoption/, which I argued proved the server had found shared terms the form never received.

It proves nothing of the sort, and the code that says so is mine. topic_slug falls back to the first document's filename when the selection shares no term:

elif documents:
    stem = str(documents[0]).rsplit("/", 1)[-1]
    base = _slug(stem.rsplit(".", 1)[0])

So document-catalog-adoption came from docs/document-catalog-adoption.md, not from any keyword. Asked directly, the seed route answers shared: [] partial: [] for that selection — those documents carry no declared topics at all, which is the corpus's untagged tail rather than a bug.

The empty Topics field is honest, and the help line added in #149 already says exactly the right thing.

No code changes. This corrects a record in the same place I got it wrong — a false defect left standing is worse than no note, because the next reader spends their time hunting it.

Worth keeping in view: a selection of wholly untagged documents can't satisfy the create's Topics requirement, so the human must supply the keywords. Whether the lens should refuse to draft from such a selection is a real question, and a separate one.

The previous commit recorded a "known, not fixed" defect: Topics rendering
empty while Area read `ideation/staging/document-catalog-adoption/`, which I
argued proved the server had found shared terms the form never received.

It proves nothing of the sort, and the code that says so is mine.
`topic_slug` falls back to the FIRST DOCUMENT'S FILENAME when the selection
shares no term:

    elif documents:
        stem = str(documents[0]).rsplit("/", 1)[-1]
        base = _slug(stem.rsplit(".", 1)[0])

So `document-catalog-adoption` came from `docs/document-catalog-adoption.md`,
not from any keyword. Asked directly, the seed route answers
`shared: [] partial: []` for that selection — the documents carry no declared
topics at all, which is the corpus's own untagged tail rather than a bug.

The empty Topics field is therefore HONEST, and the help line added in the
previous commit already says exactly the right thing: "Empty means your
selection shares no single term, and the create needs at least one."

No code changes. This corrects a record I got wrong, in the same place I got
it wrong — a false defect left standing is worse than no note at all, because
the next reader spends their time hunting it.

Worth keeping in view: a selection of untagged documents cannot satisfy the
create's Topics requirement at all, so the human must supply the keywords. The
form now says so, and whether the lens should refuse to draft from a wholly
untagged selection is a real question, and a separate one.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 9, 2026 23:36

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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