ADR: Tagged links, who opened what
- Status
- accepted
- Date
- 2026-10-20
Every link the operator sends to a recruiter or a hiring manager carries an opaque six-character code, the site counts the code's opens and on which path, and the Admin tab shows the codes. Who a code was sent to is the operator's own list, off the site. The rule is Steve's, from his "$100 bill test": know who opened the links before spending three hours preparing for a call.
In plain words
A recruiter gets five links: the resume, the site, GitHub, LinkedIn and About Steven. Each one carries ?r= and a code like k7f2qa. When a person opens one, the site counts the code and the path. The operator's list says which code went to whom, so before a call he can read "opened the site twice and the resume once" or "never opened", without the site ever holding a name.
What that is worth: the operator spends his preparation on the people who read, and the site stays as public as it was, because a code names nobody.
Context
Steve sends links in every reply and every outreach message, and prepares for each call by hand. The Site activity card counts visitors by a daily hash and the resume's door (?src=email), which says how many came through which door and never which person. GitHub and LinkedIn count nothing on his side. He asked for the one thing the activity card cannot say: whether the person he is about to talk to opened anything.
The privacy rule stands: no name, address or agent reaches a row, and the Admin tab is public (ADR: The Admin tab, as a product). So the thing that names the person has to live off the site.
Decision
- An opaque code, never a name, in the link.
?r= and six lower-case letters or digits (LinkCodes). Anything else on r is not a code and is not counted, and a code counts only on a path a sent link names: the page's two views, the resume behind its door and the two pass-throughs (TaggedRequests.IsSent), so a cache-buster on an API read is never an open.
- The site keeps the code, the path and the time, and nothing else. One document a code a day in the activity container, the third kind beside the hours and the visitors, partitioned on the day with no expiry (
CosmosLinkOpens). The paths are the resume's door, About Steven, the home page and the two pass-throughs; the busiest twelve are kept. No agent, no address, no referrer.
- A preview fetch is not an open. Email clients, chat tools and mail gateways open a link before the person does. The agent is read for the ones that say what they are (LinkedIn, Slack, Google's proxy, Microsoft's scanners, the usual crawlers) and those are left out (
LinkPreviews). A scanner that borrows a browser's agent is counted, which errs toward "opened", the cheaper mistake; a browser that says it is headless is a scanner, so the browser spec opens the page with a person's agent.
- GitHub and LinkedIn go through the site.
/api/go/github and /api/go/linkedin count the open and send the visitor on to the address configuration names (Links:Go). A key configuration does not name is 404, so the route cannot send anyone anywhere else.
- The page reports its own open. The home page is served by the rendering service, so the code on its address reaches the API only when the page says so: once, on load,
GET /api/links/open?r=&path=/. The resume and About Steven are the API's own, so their requests count directly. The page reads the code during its first render, because the address-bar mirror rewrites the address in an effect of its own and the code goes with the rewrite; an effect that read the address afterwards reported nothing (the gate of the first 1.0.4.8 found it).
- The card shows codes. "Who opened what" on the Admin tab: code, first open, last open, count, days and paths, for 7, 30 or 90 days. Public like the rest of the tab, and nothing on it names a person.
- The operator's list lives in the job-hunt folder.
make_ref.py mints a code and writes the row (code, person, company, channel, role, thread, sent) to a spool; opens_report.py reads the card's route, joins the list and prints opened or never opened per recipient. Every outbound message's links are tagged; an untagged link is a defect (CONVENTIONS.md).
What was considered
- A name in the link (
?to=jane-doe). Rejected: a recruiter reads her own name in the address, and personal data in a query string reaches every log between her and the site.
- Application Insights alone. It keeps the full request with its query, but it samples, it is read through Log Analytics with a credential, and it holds the user agent beside the query, which is exactly the pairing the activity rule keeps apart. The site's own count is one read and one rule.
- A new container. It would need applying to the account by hand; the activity container already has the partition and the retention the count wants.
- Counting the page's open from the rendering service. It would put a writer where no store is; one report from the page costs one request.
Consequences
- A link sent without a code counts as a visitor on the activity card and nothing here; the operator's scripts make the tagged links, so a bare link is the exception.
- An open by a scanner with a browser's agent is counted as a person. The report says "opened", and the call may find otherwise.
- The count lives with the site's activity: no expiry, and the report keeps its own copy on the operator's side every time it runs.
- Until the edge retires, the page at the public name is served through Netlify; the page's own report goes to
/api, which the edge proxies, so nothing on the edge changes.
Where it sits
The rule (what a code is, which requests count, how opens fold) and the port are in the Application ring, Features/Links, with the three handlers. The adapter is in TheYard.Infrastructure.Cosmos, over the activity container; a container with no document store keeps opens in memory. The host's Features/Links has the routes and the module; the collector that writes off the request path and the configured pass-through addresses sit at the host's root beside the activity collector, because the request recorder, which is shared, offers to the collector and a shared type reaches no slice (rule 1); the request recorder offers every tagged request. The card is src/components/admin/LinksCard; the page's one report is in App.tsx. Nothing in Domain knows a link exists.
Addendum, 2026-10-21 (1.0.4.13): the record, the live hop and the rule agree
A cold check of 1.0.4.8 on 21 October found the record and the live site apart in five places. From 1.0.4.13:
- The live hop forwards the code to GitHub, and that stands until the edge retires. Rule 4 says the route sends the visitor to the configured address; in the process it does, with a bare
Location (LinkEndpointStatusTests asserts https://github.com/SteveStout/TheYard). Read from both public names on 21 October, the visitor lands on github.com/SteveStout/TheYard?r=<code>: the Netlify edge proxies /* to the web app (netlify.toml, the proxy rules) and puts the request's query back on the redirect it relays. The origin cannot strip what the edge adds after it answers, so this is accepted and written down: the code, six opaque characters, reaches GitHub's address bar and logs, and names nobody. When the edge retires on 30 October (Edge:Retires) and the domain points at Azure, the process's bare Location is what the visitor gets and the code stops at the site.
- The "/go/ needs an edge rule" deferral was wrong. The edge already proxies every path, so
/go/github would have reached the API; the routes stay under /api/go/ by choice, beside the rest of the API.
- A refused request is never an open.
TaggedRequests.OpenOf takes the status the site answered, and 400 and above is not counted: a guess such as /api/go/nope?r=<code> answers 404 and adds nothing to the code's paths.
- The agent rule. Outlook desktop and Word fetch a link with
Mozilla/4.0 (compatible; ms-office; MSOffice 16) before anyone reads the message; that is a preview now. "bot" counts only at the end of a word (Googlebot/, Slackbot-), and the bare "Zoom" is gone, so a phone named CUBOT_X30 or Zoomer is a person. A request with no agent at all is a preview, as the code has always said and this record did not.
- Counts by increment, and a dropped row said. The document store moved
/opens by an atomic increment and wrote /paths back whole, so two writers in the same second could lose a path count. Every path now moves by its own increment (a path is one JSON pointer step, / written ~1), ten operations a patch; a new path is added only while the row holds fewer than twelve. A row the store refuses is logged by its type and status with a running count, where it was swallowed.
- Where the collector sits. The collector and the configured addresses stay at the host's root: a slice's folder holds its Module and static endpoint classes only (
CompositionRootTests), and these two are instances with state. The shared request recorder now offers through an Application port, ILinkOpenOffers, which the collector implements and the Links module registers, so the shared code names the port and not the class; the collector's Keeper and counters had no reader and are gone, and a drain that finds opens dropped by a full channel says how many. MemoryLinkOpens stays in Application beside the other memory keeps (MemoryNightlyRunLog, MemoryResourceHistory), the precedent for a container with no document store.
- The operator's list has eight columns, not seven:
make_ref.py writes the lane that minted the code beside the rest, so a report can say which run sent a link.
LinkHandlerTests holds the agents, the refused status and the partial updates; LinkEndpointStatusTests holds a 404 pass-through leaving the card's row unchanged.
Addendum, 2026-10-21 (1.0.4.21): the twelve-path cap holds where it is read, and six more fetchers
The review of 1.0.4.11 to 1.0.4.18 found that two containers reading the same day's row at eleven paths could each add a twelfth, so the row held thirteen: CosmosLinkOpens.PatchesFor judges the room against the row as it was read, and the patches carry no precondition. An IfMatchEtag on the patch was weighed and not taken: one batch can span two or more patch chunks, and a single ETag covers only the first, so a 412 halfway through would leave half a batch applied. From 1.0.4.21 the cap is held where every reader meets it: CosmosLinkOpens.Kept turns a stored row into a day through LinkOpenFolding.Top (now public), so DaysAsync never hands out more than PathsKept paths, the busiest first. The overshoot on disk stays bounded (writers minus one per round) and is never seen. LinkHandlerTests.Two_writers_at_eleven_paths_leave_thirteen_and_twelve_are_read_back holds it.
The fetcher list in LinkOpens.IsOne counted six more machines as people: Mastodon's preview fetcher (http.rb ... (Mastodon/...)), Bluesky's Cardyb, axios, okhttp, node-fetch and Android's bare Dalvik client. They are on the list now, each with an InlineData row in LinkHandlerTests.
Addendum, 2026-11-03 (1.0.4.130): a third page view
The page reports its own open under the view it opened on, and there is a third: the review route, /?view=review (ADR: Ten minutes, seven stops). TaggedRequests.PageViews is the home page, About Steven and /review, and the page's one report on load carries path=/review when the route is what opened (pageOpenReport(search, path) in src/lib/links.ts), read during the first render as the home page's is.
The route has a short door, GET /review, a permanent redirect to the view that carries the link's query. The door is not an open in its own right: IsSent leaves /review out, so a visit through /review?r=<code> counts once, from the page it lands on, not twice. LinkHandlerTests.The_page_reports_three_views_and_the_review_door_is_counted_once_by_the_page_it_opens holds it.
Addendum, 2026-11-03 (1.0.4.131): what a code is, shared
What stopped being true: "The rule (what a code is, which requests count, how opens fold) and the port are in the Application ring, Features/Links." What a code is, LinkCodes, now sits in api/TheYard.Application/Shared/Links/LinkCodes.cs, because the review route's reach reads it too (ADR: Ten minutes, seven stops, the addendum of 1.0.4.131) and one slice may not use another (ADR-107, rule 1). The type, its name and its rule are unchanged; which requests count and how opens fold stay in the Links slice.
Addendum, 2026-11-11 (1.0.5.31): an open on a pounce note earns a second touch within the hour
What stopped being true: "opens_report.py reads the card's route, joins the list and prints opened or never opened per recipient" was the only reader of an open, run once a day in the job-hunt lane, so a leader who opened his link at 10:05 heard back the next day at the earliest.
From this version the job hunt's Function reads the same two cards every quarter hour for the codes minted on pounce notes (PounceFollowUpTimer, PounceFollowUps, the rules in PounceFollowUp and FollowUpItem, the reader SiteVisits):
- Which codes. A row in
link-tokens.csv, or in its spool that opens_report.py has not folded yet, whose lane is pounce- and a posting key: the box mints a slot run's codes under the slot's name (ADR-119's addendum of this version). Codes of the last seven days; test codes (zz) never. The Function only reads the list and the spool; opens_report.py stays their one writer.
- What the site says.
/api/admin/links?window=7d for each code's opens and paths and /api/admin/review?window=7d for its highest stop, read with the site's self-read agent so the read is no visit. Codes only cross the wire, as before.
- The rungs, from what the site keeps. Rung 1 is any open. Rung 2 is a review stop past the first, About, the recommendations or the resume. Rung 3 is the code on GitHub. A code that reaches rung 2, or is opened twice, is due.
- One item, one follow-up. A due code queues one dispatcher item,
dispatch/ready/15-pouncefollow-<code>.md, on Sonnet, for a follow-up on the first touch's channel: at most 60 words, one link to the next rung tagged with the same code (after rung 1 the blog, after rung 2 the record of a real review, after rung 3 the About page for a call), and one question a person can answer with no. No link is ever the Admin tab. A marker under nightly/pounce/followups/, the role's key and the person's name, is written before the item, so it is one follow-up per person per role even across a pass that dies half way. A person the tracker shows wrote back since the code was minted (a row opening INBOUND, or REPLY that is not Steve's own) gets a marker and no item: a reply is for the reply drafts, not this step.
- Behind POUNCE_RUN. "off" reads and writes nothing. Anything but "live" queues an item that opens no browser, sends nothing and writes the follow-up and the minutes from the first open into its DONE note. "live" lets the item send on LinkedIn only, inside Steve's standing permission of 22 October for follow-ups to accepted connections, and only to a leader who accepted the request and has not written back: a leader who opened his link and has not accepted gets nothing. An email follow-up stays in shadow whatever the switch says, until Steve answers the email ruling.
- The dry run.
POST /api/pounce/follow-up/dry-run runs the same reads and rules over the live cards, or over two answers opens_report.py saved under opens-log/, queues nothing, marks nothing, and writes nightly/pounce/followup-dry/<stamp>.md: each follow-up it would queue, word for word, with the whole minutes from the code's first open. Each pass also writes one line a due code on nightly/pounce/followups.log with the same minutes.
The 90-day page does not ride in the follow-up: whether it should is Steve's ruling, still open, and the page stays in shadow (ADR-125's addendum of the version before this one). PounceTickTests holds it, and ProcessRunsTests counts twelve timers.
Correction, 1.0.5.38: item 4's one follow-up per person per role is kept by a marker named for the role's key and the person's letters, and since 1.0.5.35 a code minted with no name stands for the person its send's row names. The builds before that marked such a code under the code itself, <key>-<code>.md, so a code followed up then and resolved to its person later could have queued a second follow-up to the same person. The pass and the dry run now count that older marker as well (CodeRabbit on #46).
Correction, 1.0.5.40: the 1.0.5.38 correction counted the older marker for its own code only, so a second code for the same person and role was still queued in the live pass while the dry run held it, and the two disagreed. Every older marker among the due codes is now read as its person-and-role marker before any code is judged, so the code it names and every other code for that person and role get no follow-up, live and dry alike, whatever order the codes come in (CodeRabbit on #49).
Addendum, 2026-11-16 (1.0.5.61): where a reader goes next, and the email link counted like the others
What stopped being true: that a page a reader is sent to ends where its content ends. Each public page now closes with a "Where next" footer of at most two links, each with one line of reason and the minutes it takes: the landing and the review route lead to the post "Quality on both ends" and to /about; a post to the Quality page and /about; /about to the Quality page and the email line; Quality, Architecture and every decision record to the email line and the resume; the resume door to the email line and Recommendations. The list lives in data/hooks.json beside the hooks (ADR-132), so the React pages and the two pages the API draws read one file, and WhereNextTests holds the C# side to it, every footer to two links and none to Admin. The email line is /api/go/email, the pass-through 1.0.5.51 added for /about and the review route's finish panel (ADR-123's addendum), like GitHub's and LinkedIn's: the one key "email" may hold a mailto address (Links:Email), every key under Links:Go stays https only, and the open is kept under /api/go/email like any other. No drawn page carries the address, which a test holds for every page the API draws. Not in this version (ladder v7b): the code carried on the footer's links, each tagged footer click reported under its page, the page labels for the blog, a post, Quality and the resume door, the Admin card's paths per code, and the flag on scanner-shaped opens.
What stopped being true: that a tagged visit is counted only where it lands first. The code a visit arrives with is now held for the visit (sessionStorage, the page's own) and carried on every "Where next" link of this site, on the React pages and on the two the API draws, so a footer click is a page load with the code on it and the page it lands on reports or counts the open as any tagged arrival would. The page now reports two more views by name, /blog (the list and every post) and /quality, so those clicks land under their pages rather than under the home page; neither is a path the site serves, so neither counts a request of its own. Still to come: the Admin card drawing each code's paths beside the reach bar, J:\opens_report.py's words for the new paths, and the flag on scanner-shaped opens.
Addendum, 2026-11-16 (1.0.5.72): opens that look scanned are flagged, not dropped
What stopped being true: that every kept open is a person. A mail or chat service that reads every link in a message before anyone opens it leaves a code's day with one open per path, several paths, seconds apart; code 5u9cdd read five paths in 14 seconds at 08:01 CST on 12 November. A read-side rule in the Links slice (LinkScans) now flags a code when a day of its opens was four or more different paths inside 30 seconds, every open a different path. Nothing is hidden: the row keeps its opens, /api/admin/links says scanned on it and counts the flagged codes apart (scanned_codes), the Links card says so in words above the table and beside the row's paths, and J:\opens_report.py prints the flag beside OPENED and has words for /api/go/email ("emailed"), /blog and /quality. A day a scanner and then a person both opened is not flagged: the rule is meant to miss rather than to hide a person.
Addendum, 2026-11-12 (1.0.5.73): a third pass-through key, the LinkedIn recommendations page
What stopped being true: Decision 4 names two keys, github and linkedin. A reader of the 90-day page who wants Steve's recommendations got his LinkedIn profile, or the site's own recommendations view, never LinkedIn's list. Links:Go now names a third key, linkedin-recs, for https://www.linkedin.com/in/stevenwstout/details/recommendations/, so /api/go/linkedin-recs?r=<code> counts the open and sends the reader there. Nothing else changed: a key configuration does not name is still 404. The opens report on the share words the path as "LinkedIn recommendations". LinkHandlerTests reads the three keys from the site's own appsettings.json.
Addendum, 2026-11-19 (1.0.5.120): the booking message, read for the review route's sheet
What stopped being true: that the booking address leaves the server only in /api/go/book's Location header. GET /api/links/book answers the same Links:Book address in three parts, { "to", "subject", "body" }, for the review route's booking sheet (ADR-138, the addendum on no dead ends), and 404 when no booking address is configured. It shows nothing new, since the redirect already sends the same address to anyone who follows it; it is anonymous, GET only, one query and its handler (BookMessageQuery, BookMessageHandler) in the Links slice, and it is read only when the sheet opens, so no drawn page carries the address.
Addendum, 2026-11-26 (1.0.5.163): the About link a message carries opens the author page
What stopped being true: that the About link a message carries is /about?r=<code>, and that a GET of /about with a code is an open under its own path. /about is the page for search engines and tools (AboutPage.cs, its canonical, the sitemap and llms.txt), not the page a person is sent to. From this version every generator sends /?doc=author&r=<code>: make_ref.py on the share, the pounce follow-up's last rung (PounceFollowUp.NextLink) and the reconnect's About line (ReconnectTemplate.Links). A link already sent cannot be recalled, so /about whose r is a code (LinkCodes.IsOne) is a door of the shape /review has: it answers 302 to /?doc=author&r=<code>, and the door is not an open (TaggedRequests.AboutView beside the review route's and the other views the page reports); the page it lands on reports the open under /about (reportPath in src/lib/links.ts), so a visit counts once and the Links card, the opens report on the share and the follow-up's rung read the same path as before. /about without a code, or with a value that is not one, is the page for crawlers exactly as it was. AboutAddressTests holds the door, LinkHandlerTests the count, and next.spec.ts the walk from a sent link to the page's report.
Enforced by
One rule in the rulebook cites this record, each held by a test on every release.