Explicit dedup_key, key lookup, link API, creator attribution and a reopen window for automated reporters (thor#1 contract) #123
Closed
opened 2026-11-25 19:34:11 -05:00 by jared
·
0 comments
No Branch/Tag Specified
main
development
pr-124-screenshots
dedup-key-contract
mcp-comment-edit-delete
pr-120-screenshots
ci-playwright-ui
pr-119-screenshots
fix-114-description-markdown
fix/comment-markdown-persist-18
deploy-2026.11.25-317
deploy-2026.11.11-291
deploy-2026.10.03-279
deploy-2026.10.03-275
deploy-2026.09.26-272
deploy-2026.09.25-268
deploy-2026.09.25-264
deploy-2026.09.24-258
deploy-2026.09.24-254
deploy-2026.09.12-242
deploy-2026.09.12-238
deploy-2026.09.12-234
deploy-2026.09.12-230
deploy-2026.09.12-226
deploy-2026.09.12-222
deploy-2026.09.11-218
deploy-2026.09.11-214
deploy-2026.09.11-210
deploy-2026.09.11-206
deploy-2026.09.11-202
deploy-2026.09.11-198
deploy-2026.09.11-194
deploy-2026.09.11-190
deploy-2026.09.11-186
deploy-2026.09.09-182
deploy-2026.09.09-178
deploy-2026.09.08-172
deploy-2026.09.01-163
deploy-2026.08.08-155
deploy-2026.08.08-151
deploy-2026.08.08-147
deploy-2026.08.08-143
deploy-2026.08.08-139
deploy-2026.07.15-130
deploy-2026.07.15-122
deploy-2026.07.11-107
deploy-2026.06.30-96
deploy-2026.06.30-92
deploy-2026.06.30-88
deploy-2026.06.30-84
deploy-2026.06.30-80
deploy-2026.06.30-76
deploy-2026.06.30-72
deploy-2026.06.30-68
deploy-2026.04.29-49
deploy-2026.04.29-41
deploy-2026.04.18-35
deploy-2026.04.16-31
deploy-2026.04.16-27
deploy-2026.04.16-23
deploy-2026.04.16-11
deploy-2026.04.14-9
Labels
Clear labels
api
bug
concurrency
config
data-integrity
dead-code
documentation
duplicate
enhancement
help wanted
invalid
needs-decision
notifications
performance
priority/docs
priority/high
priority/low
priority/medium
question
rate-limiting
reliability
security
ux
wontfix
workflow
Bearer/internal API surface
Something is not working
Race condition / concurrency bug
Configuration / deployment default
Data correctness / schema / integrity issue
Unused / dead code cleanup
README / docs accuracy
This issue or pull request already exists
New feature
Need some help
Something is wrong
Needs a maintainer decision, not clearly a bug
Matrix / in-app notification bug
Performance or resource-usage concern
Documentation-only gap
High-severity / high-impact issue
Low-severity / cosmetic issue
Medium-severity issue
More information is needed
Rate limiting behavior
Reliability / error-handling gap
Security or access-control impact
User-facing UX/functional bug
This won't be fixed
Ticket status workflow engine
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/tinker_tickets#123
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of the ticket contract between gandalf, hwmonDaemon and thor, decided in the thor#1 planning session (2026-11-25). The full plan is posted on LotusGuild/thor#1.
Why
helpers/TicketHash.phpguesses "the same problem" from title keywords. That has three real failure modes:storage/lxc_154, "CT 154" under whatever keyword comes next.Each reporter knows what "the same problem" means for its own checks, so the reporter should send the key and Tinker should enforce it exactly, keeping the atomic
FOR UPDATElookup (hwmonDaemon runs on 7 hosts at once). Pure client-side dedupe was considered and rejected: it can't give one ticket per incident across three apps without a shared lookup, and it loses track whenever a client's state is lost.Changes requested
dedup_keyoncreate_ticket_api.php.^[a-z0-9_.:-]{1,128}$, conventionscope:subject:kind, e.g.host:compute-storage-01:oom,cluster:ceph:BLUESTORE_SLOW_OP_ALERT,site:rack1:power.sha256("key:" + dedup_key)and keyword sniffing is skipped. Thekey:prefix keeps these hashes from ever colliding with legacy ones.GET api/tickets_api.php?dedup_key=...returns the matching ticket in any status (read scope). Thor uses this to find the ticket for an incident.POST api/ticket_link_api.php {ticket_id, other_ticket_id, relation}plus an unlink call,read_writescope, through the sameDependencyServicethe web UI and MCP use, so audit entries match. Thor links symptom tickets to the root-cause ticket withrelates_to.sourcecolumn, instead of "System". Filterable in the list API and the UI.relates_tothe previous one, and add a history line (how many times in the last 7 and 30 days, when it last cleared). Responseaction:new_recurrence.scripts/rehash_network_tickets.php) setsdedup_keyon that app's existing open auto tickets, using the key scheme that app documents, so the switch doesn't open duplicates. Thor will adopt the open Ceph tickets (673679581, 629475198, 534304596, 510172934) this way when Ceph moves from hwmonDaemon.Out of scope
Related title change (no Tinker code change needed)
Titles get an app tag after
[auto]:[source][auto][app][area] Summary [scope][environment][type], with[gandalf],[hwmon],[thor]. Checked againstTicketHash.php: adding the tag (and Gandalf moving its tags into the standard order) changes no existing hash, since the first tag, the environment tags and the keyword sniffing are unaffected and network subtypes slug the heading with tags stripped. The wiki title standard is updated to match.Related
LotusGuild/thor#1 (plan) · gandalf and hwmonDaemon contract issues (linked from thor#1)