Repository navigation
Retract the Topics defect: the empty was honest and my inference was not - #150
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_slugfalls back to the first document's filename when the selection shares no term:So
document-catalog-adoptioncame fromdocs/document-catalog-adoption.md, not from any keyword. Asked directly, the seed route answersshared: [] 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.