@rackbops/docket-types
v0.34.0
Published
The tracker's task types: reminder, renewal, price, research, scout, wantlist, wantjudge; and the plain-language intake's turn. Built on @rackbops/docket-core.
Readme
@rackbops/docket-types
The tracker's task types, built on @rackbops/docket-core's contract. Shipped so far:
reminder(Lepid-Labs/city-hall#7): notify lane,onceorcalendar, done and snooze replies. Done on a one-off reminder finishes the task; on a recurring one it answers that run.renewal(Lepid-Labs/city-hall#11): aperiodschedule rolling from the renewal date, asking keep / cancel / renewed at lead time; the decision and the amount recorded per period (the current row in the task's state, the history in the series); cancel ends the task.price(Lepid-Labs/city-hall#11): apollschedule; each run reads the page through the host'sFetchport, extracts the price structurally (JSON-LD, product and Open Graph meta tags, a JSON body, or the owner's pattern;extractPrice), appends it to the series and alerts once per crossing of the drop line, measured from the first, last (default) or peak price seen; done stops it.research(category 5, E8): execute lane,once, an optional deadline. Twoclaude -pJobs go through the runner:- a research run: the web-search spike's prompt and answer schema,
{summary, findings[{claim, sources[]}], uncertain[]}, about 15 turns and 1 USD (item 61, proposed and not yet decided); - a reviewer run (item 62), queued as a follow-up, which checks the draft against its sources and approves, revises or rejects it (8 turns and 0.5 USD, inferred).
On approve the stored draft goes out by DM to the owner and accepted recipients; on revise, the reviewer's corrected answer. Each claim is saved as a finding with its first source. A rejected answer is reported and nothing is saved. An answer the reviewer did not pass is never sent; the draft stays in the task's state, which only the owner and admins see.
Model output is parsed, capped and cleaned before it reaches a message or a finding. No mention can ping, no masked link can hide its target, only http(s) URLs that spell no mention count as sources, and every DM stays under Discord's limit.
Failures:
- a schema miss, a malformed answer, a timeout or an error (including an Executor or
preparethat threw, or a Job not back in six hours): retried once; - an auth failure: retried once, an hour later;
- a turn or budget cap: reported, not retried;
- a research run that would start past its deadline: makes no call and tells the owner.
A request costs up to 1.5 USD when every run succeeds, and up to about 3 USD with one retry per phase. The CLI can end a run over its cap.
Gathered pages (0.8.0): with
sources: "sent", both runs work from pages the person's own browser gathered and the host stored, quoted into their prompts as escaped data between markers: up to 10 pages, 12,000 characters each and 100,000 in all. Both runs may search the web but open no page at all (GATHERED_ALLOWED_TOOLS,WebSearchonly, and a bareWebFetchdeny, since 0.15.0, docket#66);SENT_DISALLOWED_TOOLSstill bars BoardGameGeek and eBay besides.researchType({ readSources })builds the type over the host's store, read by task id at each run;research(andTASK_TYPES) has none, so asentrequest there is not run. When asentrequest runs is the host's: it moves the run to now once the pages are in. A run with no usable page, or a host with no store, makes no model call and tells the owner (in the review phase, that the answer could not be checked); a host's read error is retried once like any failed run. The intake lists the newsourcesoption, which a host without a store should not offer.A fuller pass on blocked pages (0.9.0): the research run may list in
blocked(at most 6, each{site, url?, why}, never shown in the answer) the pages it needed and could not open: refused, a 403, a CAPTCHA, a sign-in wall. When the review passes, the research run's own draft lists any, the request is awebone (asentrequest already had the person's browser and runs as in 0.8.0) and the host has a store (readSources), the owner gets one DM: the reviewed answer and a "Couldn't open:" list. With at least an hour (MIN_SOURCES_WAIT_MS) beforesourcesExpiry(now, deadline)-- 14 days (SOURCES_WAIT_DAYS), or 10 minutes (SOURCES_DEADLINE_MARGIN_MINUTES) before a sooner deadline -- the DM also asks the owner to have Claude in Chrome gather pages for the request before the expiry, and the task waits in phaseawaiting-pages(statepass,blocked,earlier) on a follow-up due at the expiry; with less, the task ends there. The findings are saved either way. The wait sends nothing, runs nothing and charges nothing.The host's
readyfor such a task, run under the task's lock like any edit:- Only while
researchState(task.state).phase === "awaiting-pages"; otherwise answer "started". - If the task's queued
followup:row has fired (hasFired) or has its Job out (hasJobOut), answer "started". reschedulethe once task to now (aScheduleError, which a Job out raises, is "started").- Then delete the queued
followup:row, only if!hasFired(o) && !(await hasJobOut(store, o)). Core'sreschedulecancels scheduled runs only, never a follow-up, so a row left in place fires at the expiry too: a second pass still waiting on its first run then, or retrying, is started a second time (one that has ended answers "already answered" and stops).
The host accepts pages for the request only while it is
awaiting-pages, and freezes them once the second pass's run starts: its research run and its reviewer each read the pages, and must read the same ones.The second pass's research run gets the pages and the earlier answer (escaped, between markers) and answers with only new or corrected findings, under
SENT_DISALLOWED_TOOLS. Its reviewer gets the update, the earlier answer and the pages, and checks it as an update: each new claim is supported by its source, a "Correction:" claim really corrects the earlier answer and is supported, and nothing is repeated. The owner gets an "Update to :" DM of those findings (a claim the first answer already made, case and spacing aside, is dropped), or one line when there are none; when the whole update does not fit the DM, the summary comes first and the findings follow in compact form under "New or corrected:", counted, as in the first pass (docket#132, with docket#157's floor); they are saved tagged["research", verdict, "update"]beside the first pass's (one from a post with its post tags as well, docket#124). With no pages by the expiry, past the deadline, on a rejected update or on a second failure, the task ends with one line: the first answer stands. With no store, asentrequest, or nothing blocked, a request runs exactly as in 0.8.0; the answer schema gains the optional field (and with it the reviewer's schema, which embeds it, for every request) and the research prompt one sentence asking for it. A second pass that is never readied, with one retry in every phase, is a chain of eight runs, inside core'sMAX_FOLLOW_UPS(9 from 0.9.0).Every part of the question (0.10.0): before searching, the research run splits the question into the parts it needs answered, including any list the question takes for granted, and settles a part another depends on first: "the best game of 2026 in each major category" is the major categories, then the best in each. It answers every part, in the summary and the findings, and names in
uncertainany part it could not settle and why. The reviewer works out the same parts before its other checks, and never approves an answer that silently skips one:revise(fill the part from the sources, or name it inuncertainwhen they cannot settle it) orreject. The second pass asks the same of an update: a part the earlier answer left unsettled that the pages settle is a new finding, and an update that skips it is revised or rejected. The split is prompt-only, with nopartsfield: the summary and the findings already carry each part's answer, a separate list would repeat them inside the DM's 1,900 characters, and each of its lines would be a claim with no source of its own. So the schemas (but for the widerblockeddescription, below), the DM, stored states and the 0.9.0 flows are as they were.The best source (0.10.0): before searching, the research run names each part's reference site -- BoardGameGeek for board games, eBay for listings and sold prices, otherwise the maker, the standards body or the official record -- and rests the answer on it. A
webfirst pass and its reviewer open BoardGameGeek like any site (an ordinary read, nothing to get round a refusal; from 0.11.0, one more try throughfirecrawl_scrape, below). eBay is never opened by any run (eBay's User Agreement, section 3 (automated access)): a web first pass and its reviewer deny its fetches (WEB_DISALLOWED_TOOLS, new; before 0.10.0 a web run had no eBay denial), and a run on gathered pages (asentrequest, a second pass) never opens either site (SENT_DISALLOWED_TOOLS, now built fromBARRED_SITES). Only fetches are denied: WebSearch has no domain filter, so a search can still list their pages.researchJobandreviewJobtakeResearchJobOptionsas a new last argument; called directly they default tocanWait: false. The answer schema'sblockeddescription now also covers the best source for a part that the run could not or may not open. What the run does with a best source it could not open depends on whether a fuller pass can follow (ResearchJobOptions.canWait, whichpreparesets for awebfirst pass whose host hasreadSources):- It can: the source goes in
blocked-- a refused page (a 403, a CAPTCHA or challenge page, an empty or blocked body, a sign-in wall) or eBay -- with its URL only when that is the page's real address (such as BoardGameGeek's ranking or browse page), never a guessed one, and never as "I didn't check" in the summary oruncertain. The reviewer revises an answer that leans on secondary sources while the best source is neither cited nor inblocked, adding it there, and moves a "didn't check" line toblocked. - It cannot (no store, a
sentrequest, a second pass):blockedis never shown, so the run names the missing source in one shortuncertainline ("BoardGameGeek was not among the pages read"), and a web reviewer revises an answer to add that line. - A web reviewer moves a claim resting only on an eBay address (a search listing, never an opened
page) to
uncertain.
The wait's list is the research run's own, then on a revise any the reviewer added (an approve sends the stored draft, so it adds none; no reviewer drops one), one entry per page (
uniqueBlocked, keyed byblockedKey: host and path, without query or end slash, for an entry with a URL; the site's name for one without, which merges into any entry on its site, so "BoardGameGeek" and a boardgamegeek.com page are one entry and two BoardGameGeek pages are two; only the known aliases merge -- BGG/BoardGameGeek/geekdo.com and eBay/ebay.* -- so amazon.de and amazon.co.uk stay two), then the belt's:withBarredSitesadds{site, why: NOT_OPENED_WHY}(no URL) for a site ofBARRED_SITESthat a sentence of the summary or an uncertain line names as not read -- the outgoing answer's, or the research run's own draft's, so a reviewer that rewords "I didn't check BoardGameGeek" into "No rating-based ranking was available" still leaves the wait. "Not read" must be tied to the site (straight or curly apostrophe): a negated reading verb with the site as its object, at most three words apart ("didn't check BoardGameGeek", "unable to load the BGG page", "without opening BGG"); the site as the subject of a failure, at most three words apart ("BGG refused the request", "the BoardGameGeek ranking was not checked", "eBay could not be opened", "returned 403", "required sign-in"); or "no data/ratings/rankings/results". "e.g." and "i.e." do not end a sentence. A negation about something else does not count: "not common on eBay", "the game is not in print", "BGG users do not agree". eBay also counts when a finding of the outgoing answer or of the draft rests only on eBay addresses, so a reviewer that moves such a claim touncertain, as told, keeps the wait. A passing mention counts for neither, so a question that only mentions eBay starts no 14-day wait. An entry on the site by name or by URL host stops the belt (a "BoardGameGeek" entry with an archive.org URL counts). BoardGameGeek is left alone when a finding of the outgoing answer cites one of its pages; eBay, never opened, has no such exemption. At most 6 in all. Nothing the model wrote is stripped from the DM; the "Couldn't open:" list and the queued line say what was not opened.Firecrawl (0.11.0): a
webfirst pass and its reviewer may also use the Firecrawl MCP tools,mcp__firecrawl__firecrawl_searchandmcp__firecrawl__firecrawl_scrape(FIRECRAWL_TOOLS; their allowed list isWEB_ALLOWED_TOOLS, the core'sDEFAULT_ALLOWED_TOOLSand then these two). The prompts say: WebFetch first; a page that refuses it (a 403, a block, a CAPTCHA) is read withfirecrawl_scrape, always withproxy: "basic", never "stealth", "enhanced" or "auto", one page at a time and never several pages of one site in parallel; no eBay URL through any tool;firecrawl_searchlike web search; a page Firecrawl is refused too is handled as a refused page (blockedoruncertain, as above). Permission rules cannot see a tool's parameters, so the prompt is the only control for the proxy and for eBay through Firecrawl (WEB_DISALLOWED_TOOLSstill denies eBay to WebFetch). The reviewer's eBay handling and the belt read the answer's addresses, so they apply whichever tool fetched the page. A run on gathered pages getsGATHERED_ALLOWED_TOOLS(WebSearchonly, docket#66) and deniesWebFetchoutright (GATHERED_DENIED_TOOLS) besidesSENT_DISALLOWED_TOOLS. These Jobs need runner 0.0.6 or later, whose ceiling admits the two names and which drops them when it has no Firecrawl key; an older runner fails them (0.0.5 throwsToolCeilingError), so the runner is released first.The site's own categories (0.11.0): when the question asks about categories (or "each of the major" kinds) and the best source defines its own, every research run uses that taxonomy and says so, rather than inventing genres or saying no source defines them -- for board games, BoardGameGeek's eight category rankings (
BGG_CATEGORIES: Strategy, Family, Thematic, Party, Abstract, Customizable, Children's, Wargames). A category with no qualifying entry is answered "none yet", with the reason, never skipped. The summary names every category's pick in one compact run ("Strategy: X; Family: Y; ..."), with each pick's source in the findings: the DM is fitted to 1,900 characters (findings compact and counted when the full lines do not fit, since docket#126), and the summary comes first. A second pass keeps the rest of the rule, but its summary, which says what changed, names only the categories whose pick changed. A web first pass also gets a hint: a BGG advanced search (bggCategoryUrl(familyId, year)) shows one category for one year, with thefamilyids[0]ids as observed on the site on 2026-10-18 (not documented by BGG). The reviewer of a full answer revises one that invents categories where the source defines them, or skips an empty one.Social platforms (0.23.0, docket#107;
docs/social-sources.mdhas the matrix and roshne's decisions): awebfirst pass may search YouTube, TikTok and Instagram for what people say, through the tool it already has --firecrawl_scrapewith a typedalexandriabody (Firecrawl'syoutube-comprovider:videos/search_videos,video_transcript,video_comments; itsorianeprovider, an index of public posts:tiktok/posts-search,instagram/posts-search) -- so no new tool, key or runner change, and the prompt is the only control over which provider a run calls and how often (socialLines), as it is forproxy: "basic". Bluesky was in the first set, through WebFetch on its publicsearchPosts; live that endpoint answered 403 to the runner (2026-11-11), to WebFetch and to Firecrawl (2026-11-12), so since docket#125 (roshne's decision, 2026-11-13) no run searches it until the own read-only service:SOCIAL_AUTO_PLATFORMSleaves it out,socialPlatformsdrops it from a list, the prompt tells the run never to try it, and every answer that carriescoveragelists itunavailable(BLUESKY_NOTE), like Reddit. The request'ssocialsays when:auto(the default, and what an absent value means) searches when the question asks what people recommend, think or experienced;nonenever; a list ofyoutube,tiktok,instagram(oryt,insta,ig) always searches those;bluesky(orbsky) still parses, so an existing request keeps working, and searches nothing (a list of Bluesky alone is a run with no social search and a "Social:" line of the two fixed rows).parseSocialreads it and answers null for anything else (reddit,x, a typo), so a host refuses it at intake; at run time an unreadable value isauto.since(an instant) bounds the posts: older ones are left out, undated ones may be used, marked. The run spends about 120 Firecrawl credits at most (SOCIAL_MAX_CREDITS: 4 youtube-com calls, searches and reads together; 2 oriane calls at the default detail;SOCIAL_BLUESKY_CALLSis 0 since docket#125), follows acontinuationonce, spreads its reads across channels, and gets 20 turns (SOCIAL_MAX_TURNS) in place of 15; the 1 USD cap, the reviewer's caps and the tool lists are unchanged. A run on gathered pages (asentrequest, a second pass) searches no platform: it cannot open pages.A finding from a post cites the post's own page and carries
platform,publishedAt(the instant; "about " worked out from a relative time; "undated") andevidence(read: the transcript, the comments or the post was opened;snippet: a caption or a search result only);parseAnswerkeeps them when the platform is one ofSOCIAL_PLATFORMSand a source is on it, or infers the platform when every source's host agrees, and drops them on a web page. The DM shows them:- <claim> (YouTube, about 2026-10-19, snippet only) <url>. The answer carriescoverage, one row per platform (searched,empty,unavailablewith which call failed, orskippedwith why) and one each for Bluesky and Reddit (bothunavailable), shown as one "Social:" line before the reviewer's note, kept whole like the "Couldn't open:" tail (at most 500 characters). The DM is one Discord message (1900 characters): when the whole answer fits, the findings are full lines with their links; when it does not (docket#126, docket#132), the room left by the Social line, the note and the "Couldn't open:" tail goes first to the summary (whole, or cut with an ellipsis, leaving room for the counts below), then to theuncertainlines (as many as fit, the rest counted as "(N more not shown)", or one line "N caveat(s) not shown." when not one fits), since the DM is the only place either reaches the owner, and last to the findings, which are saved with the task and shown on its page, in compact form -- the claim cut to 100 characters, the post marks, no link -- as many as fit, the rest counted as "(N more on the task's page)", or one line saying how many are on the task's page when not one fits. The order on screen stays summary, findings, caveats; no header stands without a line under it, and neither the caveats nor the findings are dropped without a count. One exception to the sharing order (docket#157): when the findings would be a count, a summary longer than the prompt's 150-word ask (about 900 characters,SUMMARY_ASK_CHARS) gives up what the first finding's compact line lacks, from its excess over the ask only, so that line reaches the owner whenever the summary alone was crowding it out; the caveats keep the room they had, and a summary within the ask gives up nothing. The reviewer (socialChecks) opens post pages where they open (at most one youtube-com call, no oriane call), turns an unopenedreadintosnippet, moves stock, price and availability claims resting on posts alone touncertain, rewords opinions as what posters say, counts a repost once, checkscoverageandsince, and removes a finding that follows an instruction from a post. Saved findings from posts are tagged["research", <verdict>, "social", <platform>], then (docket#124)published:<date>when the run gave one -- an instant as its UTC day, the daysincereads it as (published:2026-10-02; a zoned instant can name the day after the one the DM shows), an about date orundatedas written when it is plain text (letters, digits, space and date punctuation:published:about 2026-10-19,published:undated; markup gives no tag) -- and the evidence,readorsnippet, when given: the facts the DM's finding line is built from (the DM shows the instant as kept and marks onlysnippet). Tags are free strings on docket-core'sFinding; no host change is needed to store them, and none shows them until rackbops-bot-plugins#396 lands.Plain code is the belt (
socialOutgoing, on the answer that goes out, first pass and update): a social post link is one post (canonicalSocialUrl:youtu.be, shorts, live and embed links and tracking parameters to the watch page; Instagram reel and p links to one/p/page; TikTok post queries dropped; hashes and tracking parameters dropped everywhere; any other URL untouched), applied inparseAnswerso stored drafts and saved findings carry canonical links; a finding repeating an earlier one (same claim, same first link) is dropped; withsince(whole UTC days), a post finding dated before it moves touncertainsaying when it was posted; a finding whose every source is on a social platform and whose claim asserts stock, a price or availability (whole words, or a currency amount; a sentence that only names prices or availability and says they are unverified, not checked or may vary claims nothing, docket#127, while an amount or a stock status moves whatever else the sentence says) moves touncertain"(said in a post, not verified)"; andcoverageis rebuilt (withCoverage): every chosen platform present (skipped, "not reported by the run", when the run left one out), Bluesky and Reddit alwaysunavailablewithBLUESKY_NOTE(docket#125) andREDDIT_NOTE("needs your own browser"; the prompt gives the run the full reasons,BLUESKY_WHYandREDDIT_WHY, docket#126), the run's other rows after, at most 8;none, and asentrequest, drop it.uncertainstays within its cap of 6, the run's own lines first; past it, the last line says how many more were moved.Reddit is never a route (roshne, 2026-11-07: "if we want to do anything with Reddit, it has to be done through a local PC session with me logged in"): not here, not in a host. X, Threads, Pinterest, Facebook and Mastodon are not searched either; a recurring social watch is a later question. The belt's price rule applies to any answer,
noneincluded: a web run that cites a post for a price gets the same treatment.- a research run: the web-search spike's prompt and answer schema,
scout(category 1, E9): execute lane,calendarevery N days at the owner's hour (the host bounds N; the tracker plugin allows 1 to 30). Oneclaude -pJob a run (WebSearch and WebFetch; 30 turns, 1.50 USD, 10 minutes, item 61 proposed) asks for five to ten things through a gift lens; an item shown once is never shown again (the state keeps the newest 300 digests, each item is also a finding).wantlist(category 2, E9): notify lane,poll, no model. Reads a source each run, keeps the listings within the owner's limits and DMs the new ones with a Done button, each a finding. Sources:pageSource(a pasted page's JSON-LDItemLists andProducts, through the host's Fetch port, never eBay),bggSource(BGG's XML API, with the host's token) andinboxSource(listings the host stored for the watch's inbox key: alert emails, or searches someone ran in their own browser and sent in;submittedListingcleans each one, and the judge opens no page for such a watch) andshopifySource(new copies in stock at Shopify stores, from Shopify's catalog search through Firecrawl's Alexandria, 5 credits a look; a product counts only when every word of the search is in its title, and the judge opens no store for it) andebaySource(eBay listings from eBay's own Browse API, with the host's eBay app token; the judge opens no eBay page for it) andnobleKnightSource(the copies in stock on one Noble Knight Games product page,/P/<id>, through the host's Fetch port: each copy a listing with its grade, note and sale price, Noble Knight named as the seller; a trusted seller, so no shop check runs; each look asks for US dollars, and a page in another currency is a miss;nobleKnightProductreads the page's address into its one form). A watch's optionalexclude(words or phrases) drops any listing whose title holds one of them, as whole words in order on the target's word split, when the source is read, so it is never told, from every source; a judged watch checks its waiting listings again when it settles them (docket#77);parseExcludereads the list from one comma-separated field, andisExcludedis the test. Its optionalconfirmwords (0.20.0) mark what the wanted thing's listings say: a listing whose title has none is read in full where its source can (Source.detail: eBay's getItem, its item specifics and description, nothing kept), then told if that has one, ruled out if its title or full text has anunconfirmedentry, and otherwise told markedcheck: not confirmed as .... Every listing a source can read in full is read once before it is told (all of a look's reads at once), so an eBay DM line also shows its shipping. A ruled-out listing is remembered as told, so taking anunconfirmedword away later does not bring it back (confirmListings,hasConfirm). A judged watch (below) reads nothing in full.wantjudge(category 2, plan 5.4, item 63): the same watch on the execute lane. New listings are read in plain code (no charge), then one Job has the model judge each one and its seller (WebFetch only on the watch's own host, never WebSearch or the runner's files; 12 turns, 0.50 USD, 5 minutes). The DM puts the ones worth a look first with the model's note; a look that fails for good sends the listings unchecked.news(category 1, plan item 153, docket#78): execute lane,calendarevery N days at the owner's hour. A search Job (WebSearch and WebFetch, never eBay; 25 turns, 1.50 USD, 10 minutes) looks for items about onesubjectfrom the last 30 days that fitinclude, told how to tell the subject apart (disambiguate) and, withshows, to give a show's city, venue, date and tickets. Items seen before (by link, or by the title's words once sent), eBay links and items whose title or kind holds anexcludeentry are dropped in plain code; with nothing left the run ends with "no news" and no DM. Otherwise a reviewer Job (12 turns, 0.75 USD, 5 minutes) checks each item against its own page (the subject itself, a kind that counts, recent, nothing called on sale from a snippet, worth sending by the owner'snotes) and only the kept ones are DMed, each a finding with its link and date. When the search gives them, an item also carries its release date, price and availability (shown on one line) andflag, the search model's own note on what the owner's notes ask to point out (a "Note:" line); the review checks each against the page and the notes and drops an item with one it cannot bear out. Bare text with a link in it (a summary, a date, a detail, a show's field) is dropped, and an item whose title holds one is dropped whole, so the DM's only links are the item's page and a show's tickets, never eBay.notesis the owner's own words on what is worth sending -- who it is for, what to skip, what to point out -- and goes to both runs; past 500 characters it is cut. Keeping a special edition while skipping plain copies is the reviewer's reading of the notes: anexcludeentry drops every title holding it, in plain code. A review that fails for good sends nothing; three failed runs in a row (search or review) are told once.
reminder, renewal, price and wantlist call no model.
wantlistType(sources) and wantjudgeType(sources) build the two watches over the sources a
host can run; TASK_TYPES has them over pageSource only. What the want-list types ask of a
host:
- its Fetch port refuses any hop to eBay when a read carries the
NEVER_EBAYheader, and does not send that header on; shopifySource(scrape)gets ascrape(request)that sendsrequestas thealexandriafield of Firecrawl'sPOST https://api.firecrawl.dev/v2/scrapewith the host's own key, and hands back the HTTP status and the parsed JSON body (bounded in time and size). The watch'stargetis the words to search for; its top price and currency narrow the search itself. Each look is paid for (5 credits), and the type sets no floor on how often apollruns, so the host keeps a Shopify watch's interval long (the tracker's floor is a day);ebaySource(browse)gets abrowse(request)that sendsGET https://api.ebay.com+request.pathwithrequest.paramsas the query,X-EBAY-C-MARKETPLACE-ID: request.marketplaceand an application token (client credentials, scopehttps://api.ebay.com/oauth/api_scope) from the host's own eBay keys, and hands back the HTTP status and the parsed JSON body (bounded in time and size). The watch'stargetis the words to search for. eBay's API License wants listing data shown no more than six hours old: a plain watch DMs what it read at once, and a judged one once the model has looked. An eBay watch stores no findings (keepsFindings), so a host that keeps no eBay data also clears the run's recorded DM after a while, and does not judge one whose Job a queue would keep;- its Fetch port reaches only public addresses, checked after the name lookup: the judge grants the runner WebFetch on the watch's own host only because the host's reads already reach it;
bggSourcegets a Fetch that hands back the body as sent and follows no redirect, so BGG's token never leaves BGG's host;inboxSource(read)gets aread(key)that returns what was sent in for that inbox, oldest first; the host decides who may send to an inbox and keeps it from growing without end;- the DM text names the tracker plugin's
/task historycommand, and a judged watch with no Fetch says "this bot reads no pages". wantlistType(sources, { shops })andwantjudgeType(sources, { shops })take the host's shop list (ShopVet, docket#120):get(domains)must return the storedShopCheckof each domain it has, andrequest(domain, { taskId, ownerId })must make oneshopchecktask for that domain unless one is already waiting, charged to that owner (the library asks again on every look while the shop has no fresh check, so a failing check costs one model run per look; the host's dedupe keeps it to one at a time). The host registersshopcheckType({ record })--recordwrites the check to the list -- and keeps that type out of its intake and its lists of types. Only Shopify watches are vetted; a listing whose shop has no fresh check is held, not remembered, so the next look tells it once its shop has passed, and a failed check records nothing, so it stays held. A pass stands 6 months and a flag 6 months; anunknown, or a pass with no source behind it, 30 days. One look asks for at mostSHOP_CHECKS_PER_LOOK(5) new checks; a listgetthat fails holds every listing and asks for none.
wantjudgeType's wait (BGG's spacing, default setTimeout) and bggSource's now (default
Date.now) can be injected; a host that keeps time behind its Clock passes them.
import { TASK_TYPES, reminder, renewal, price, research, scout, TYPE_IDS, isTypeId } from "@rackbops/docket-types"
import { bggSource, ebaySource, inboxSource, pageSource, shopifySource, wantjudgeType, wantlistType } from "@rackbops/docket-types"TASK_TYPES is every shipped type keyed by id, ready for the dispatcher. Every type is declared
through defineTaskType, which refuses a capability outside the grantable set, and a test here
asserts that over the whole map.
