@ericrisco/rsc 4.1.11 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/manifest.json +6 -6
  2. package/package.json +2 -1
  3. package/scripts/lib/prompt-audit.js +110 -0
  4. package/scripts/lib/review-ledger.js +14 -3
  5. package/scripts/prompt-audit.js +48 -0
  6. package/scripts/rsc.js +4 -2
  7. package/skills/ads/SKILL.md +7 -7
  8. package/skills/agent-safety/SKILL.md +1 -1
  9. package/skills/asdd/SKILL.md +2 -2
  10. package/skills/asdd/references/model-routing.md +5 -5
  11. package/skills/astro/SKILL.md +1 -1
  12. package/skills/astro/scripts/verify.sh +1 -1
  13. package/skills/author-skill/SKILL.md +5 -5
  14. package/skills/author-skill/references/eval-authoring.md +6 -7
  15. package/skills/automation-flows/SKILL.md +1 -1
  16. package/skills/building-agents/SKILL.md +17 -12
  17. package/skills/building-agents/references/agent-loops-and-harness.md +3 -2
  18. package/skills/building-agents/references/evals-and-observability.md +7 -5
  19. package/skills/building-agents/references/provider-abstraction.md +31 -30
  20. package/skills/chrome-extension/SKILL.md +1 -1
  21. package/skills/cold-outreach/SKILL.md +1 -1
  22. package/skills/cold-outreach/references/templates.md +7 -3
  23. package/skills/compliance/SKILL.md +8 -8
  24. package/skills/compliance/evals/README.md +1 -1
  25. package/skills/compliance/evals/cases.yaml +2 -2
  26. package/skills/compliance/references/frameworks.md +7 -7
  27. package/skills/content-engine/SKILL.md +1 -1
  28. package/skills/cost-tracking/SKILL.md +29 -21
  29. package/skills/cost-tracking/references/pricing-tables.md +6 -5
  30. package/skills/course-builder/SKILL.md +4 -3
  31. package/skills/course-builder/references/outcomes-and-blooms.md +1 -1
  32. package/skills/course-storytelling/SKILL.md +1 -1
  33. package/skills/course-storytelling/references/concept-landing-recipe.md +1 -1
  34. package/skills/csharp-dotnet/SKILL.md +2 -2
  35. package/skills/data-policy/SKILL.md +1 -1
  36. package/skills/db-migrations/SKILL.md +6 -5
  37. package/skills/deep-learning/SKILL.md +2 -2
  38. package/skills/deployment/SKILL.md +1 -1
  39. package/skills/deployment/references/dockerfiles-by-stack.md +1 -1
  40. package/skills/design/engine/RUN.md +1 -1
  41. package/skills/django/SKILL.md +1 -1
  42. package/skills/docker/SKILL.md +1 -1
  43. package/skills/document-processing/SKILL.md +2 -1
  44. package/skills/electron/SKILL.md +2 -1
  45. package/skills/email-connector/SKILL.md +2 -1
  46. package/skills/email-deliverability/SKILL.md +2 -2
  47. package/skills/embeddings-search/SKILL.md +3 -3
  48. package/skills/error-handling/SKILL.md +4 -2
  49. package/skills/expo/SKILL.md +1 -1
  50. package/skills/fable-operator/SKILL.md +2 -2
  51. package/skills/fal/SKILL.md +1 -1
  52. package/skills/fastapi/SKILL.md +18 -9
  53. package/skills/fastapi/references/database.md +19 -10
  54. package/skills/finance-ops/SKILL.md +1 -1
  55. package/skills/firebase/SKILL.md +1 -1
  56. package/skills/flutter/SKILL.md +1 -1
  57. package/skills/forecasting/SKILL.md +1 -1
  58. package/skills/forecasting/references/accuracy-and-backtesting.md +1 -1
  59. package/skills/forecasting/references/methods-cheatsheet.md +3 -3
  60. package/skills/ftd/SKILL.md +2 -3
  61. package/skills/fundraising/references/funnel-math.md +1 -1
  62. package/skills/gamedev-multiplayer/SKILL.md +2 -2
  63. package/skills/gamedev-multiplayer/references/unity-and-unreal-netcode.md +4 -4
  64. package/skills/gamedev-pathing/SKILL.md +1 -1
  65. package/skills/gamedev-physics/SKILL.md +3 -2
  66. package/skills/gamedev-physics/references/character-controllers.md +1 -1
  67. package/skills/gamedev-shaders/SKILL.md +2 -4
  68. package/skills/gamedev-shipping/SKILL.md +8 -5
  69. package/skills/gamedev-shipping/references/mobile-and-desktop.md +7 -3
  70. package/skills/gcp-essentials/SKILL.md +11 -8
  71. package/skills/gcp-essentials/references/networking-and-sql.md +4 -4
  72. package/skills/gdpr-privacy/references/dpa-and-transfers.md +1 -1
  73. package/skills/git-workflow/SKILL.md +3 -3
  74. package/skills/github-actions/SKILL.md +12 -12
  75. package/skills/github-actions/evals/cases.yaml +1 -1
  76. package/skills/github-actions/references/caching-and-matrix.md +5 -5
  77. package/skills/github-actions/references/oidc-deploys.md +4 -4
  78. package/skills/go/SKILL.md +3 -3
  79. package/skills/google-workspace/SKILL.md +15 -11
  80. package/skills/google-workspace/references/api-recipes.md +2 -2
  81. package/skills/google-workspace/references/auth-setup.md +1 -1
  82. package/skills/harness/SKILL.md +4 -3
  83. package/skills/harness/references/daily-curation-automation.md +1 -1
  84. package/skills/harness/references/providers.yaml +4 -4
  85. package/skills/harness/references/wiki-protocol.md +2 -1
  86. package/skills/hetzner/SKILL.md +13 -12
  87. package/skills/hetzner/references/cloud-init.md +4 -2
  88. package/skills/hetzner/references/plans-and-locations.md +15 -14
  89. package/skills/hiring/SKILL.md +3 -3
  90. package/skills/htmx/SKILL.md +4 -4
  91. package/skills/htmx/references/server-contract.md +2 -2
  92. package/skills/huggingface/SKILL.md +15 -15
  93. package/skills/huggingface/evals/cases.yaml +1 -1
  94. package/skills/huggingface/references/endpoints-and-spaces.md +5 -3
  95. package/skills/huggingface/references/hub-and-cli.md +4 -4
  96. package/skills/huggingface/references/inference-providers.md +1 -1
  97. package/skills/huggingface/scripts/verify.sh +3 -2
  98. package/skills/implement/SKILL.md +3 -3
  99. package/skills/init/SKILL.md +2 -3
  100. package/skills/init/references/accompaniment-and-profile.md +1 -1
  101. package/skills/init/references/recommend-skills.md +9 -9
  102. package/skills/instagram-api/SKILL.md +9 -9
  103. package/skills/instagram-api/evals/cases.yaml +1 -1
  104. package/skills/instagram-api/references/insights-metrics.md +1 -1
  105. package/skills/instagram-api/references/publish-reel.md +8 -7
  106. package/skills/invoicing/SKILL.md +8 -7
  107. package/skills/java/SKILL.md +3 -2
  108. package/skills/knowledge-ops/SKILL.md +3 -4
  109. package/skills/knowledge-ops/references/gardening-playbook.md +3 -3
  110. package/skills/kotlin-android/SKILL.md +10 -3
  111. package/skills/kotlin-android/references/gradle-setup.md +1 -4
  112. package/skills/landing-copy/SKILL.md +1 -1
  113. package/skills/laravel/SKILL.md +11 -11
  114. package/skills/lead-gen/SKILL.md +3 -3
  115. package/skills/linkedin-api/SKILL.md +3 -3
  116. package/skills/linkedin-api/evals/cases.yaml +1 -1
  117. package/skills/linkedin-api/references/api-reference.md +3 -3
  118. package/skills/linkedin-content/SKILL.md +1 -1
  119. package/skills/linkedin-outreach/SKILL.md +4 -4
  120. package/skills/linkedin-strategy/SKILL.md +2 -2
  121. package/skills/llm-pipeline/SKILL.md +2 -2
  122. package/skills/llm-pipeline/references/litellm-router.md +3 -3
  123. package/skills/logistics-ops/SKILL.md +6 -1
  124. package/skills/marketing/SKILL.md +1 -1
  125. package/skills/marketing/references/seo-geo.md +2 -2
  126. package/skills/mongodb/SKILL.md +3 -2
  127. package/skills/mongodb/references/aggregation.md +3 -2
  128. package/skills/mysql/SKILL.md +1 -1
  129. package/skills/mysql/references/mysql-vs-mariadb.md +1 -1
  130. package/skills/n8n/SKILL.md +1 -1
  131. package/skills/nextjs/SKILL.md +1 -1
  132. package/skills/observability/SKILL.md +1 -1
  133. package/skills/observability/references/instrumentation-recipes.md +1 -1
  134. package/skills/ollama/SKILL.md +1 -1
  135. package/skills/open-weights/SKILL.md +3 -4
  136. package/skills/orient/SKILL.md +4 -3
  137. package/skills/parallel/SKILL.md +1 -1
  138. package/skills/planetscale/SKILL.md +3 -3
  139. package/skills/planetscale/references/no-foreign-keys.md +3 -3
  140. package/skills/postgresdb/SKILL.md +4 -4
  141. package/skills/presentations/SKILL.md +1 -1
  142. package/skills/prompt-engineering/SKILL.md +6 -6
  143. package/skills/prompt-engineering/evals/cases.yaml +2 -2
  144. package/skills/prompt-engineering/references/output-contracts.md +18 -23
  145. package/skills/rag/references/pipeline.md +7 -5
  146. package/skills/review/SKILL.md +5 -5
  147. package/skills/roast-me/prompts/compute.md +5 -5
  148. package/skills/roast-me/prompts/roast.md +2 -2
  149. package/skills/sdd-init/SKILL.md +3 -3
  150. package/skills/ship/SKILL.md +7 -9
  151. package/skills/shopify/SKILL.md +6 -6
  152. package/skills/shopify/references/apps-graphql.md +3 -3
  153. package/skills/skill-scout/SKILL.md +1 -1
  154. package/skills/specify/SKILL.md +3 -3
  155. package/skills/specify/references/eliciting-requirements.md +3 -3
  156. package/skills/structured-extraction/SKILL.md +7 -3
  157. package/skills/structured-extraction/references/providers.md +8 -5
  158. package/skills/svelte/SKILL.md +1 -1
  159. package/skills/swift-ios/SKILL.md +4 -4
  160. package/skills/tasks/SKILL.md +1 -1
  161. package/skills/tauri/SKILL.md +4 -3
  162. package/skills/terms-conditions/SKILL.md +2 -2
  163. package/skills/translation-l10n/SKILL.md +2 -1
  164. package/skills/typescript/SKILL.md +67 -19
  165. package/skills/typescript/evals/README.md +3 -3
  166. package/skills/typescript/evals/cases.yaml +4 -1
  167. package/skills/typescript/references/build-and-monorepo.md +82 -26
  168. package/skills/typescript/references/type-system.md +15 -4
  169. package/skills/typescript/scripts/verify.sh +20 -10
  170. package/skills/unslop/SKILL.md +1 -1
  171. package/skills/ux/SKILL.md +1 -1
  172. package/skills/vercel/SKILL.md +3 -2
  173. package/skills/vercel/references/vercel-json.md +8 -5
  174. package/skills/verify/SKILL.md +3 -3
  175. package/skills/vllm/SKILL.md +4 -2
  176. package/skills/vue-nuxt/SKILL.md +5 -5
  177. package/skills/webhooks/SKILL.md +10 -1
  178. package/skills/worktrees/SKILL.md +10 -8
  179. package/skills/youtube-ideation/SKILL.md +1 -1
  180. package/targets/agents.js +26 -17
  181. package/targets/asdd-gate.mjs +9 -1
  182. package/targets/commands.js +7 -7
@@ -59,8 +59,8 @@ jobs:
59
59
  test:
60
60
  runs-on: ubuntu-latest
61
61
  steps:
62
- - uses: actions/checkout@v6 # first-party, current major
63
- - uses: actions/setup-node@v6
62
+ - uses: actions/checkout@v7 # first-party, current major
63
+ - uses: actions/setup-node@v7
64
64
  with:
65
65
  node-version: 22
66
66
  cache: npm # built-in lockfile-keyed cache
@@ -72,26 +72,26 @@ jobs:
72
72
  Why those three lines are not optional:
73
73
  - `permissions: contents: read` at the top — **default token permissions may be write**, and a leaked write token can push tags or publish packages. Widen per job and only to what that job needs (`packages: write` to publish, `id-token: write` for OIDC), never at the top.
74
74
  - `concurrency` + `cancel-in-progress: true` — without it every push to an open PR leaves the old run finishing and billing. One group per ref keeps at most one running + one pending.
75
- - `actions/checkout@v6`, `setup-node@v6` are the current majors (checkout v6.0.2, setup-node v6.4.0). Old majors run on Node 20, removed from runners in **September 2026**; JS actions are forced onto **Node 24** by default since June 2026.
75
+ - `actions/checkout@v7`, `setup-node@v7` are the current majors (checkout v7.0.1, setup-node v7.1.0). Node 20 was removed as an action runtime on **2026-09-23**; runners now execute every JS action on **Node 24**, so stay on majors built for it. checkout v7 also refuses to check out a fork PR under `pull_request_target` / `workflow_run` unless you set `allow-unsafe-pr-checkout: true` — never set it.
76
76
 
77
77
  ## Caching
78
78
 
79
79
  Two mechanisms, in order of preference:
80
80
 
81
81
  1. **Built-in `cache:` on `setup-*`** — `setup-node`, `setup-python`, `setup-go`, etc. cache the package manager's store keyed on the lockfile. Free, one line. Use it.
82
- 2. **`actions/cache@v4`** — for anything else (build output, custom tool dirs, compiled artifacts).
82
+ 2. **`actions/cache@v6`** — for anything else (build output, custom tool dirs, compiled artifacts).
83
83
 
84
84
  The cache key is the whole game. A cache is **immutable once written for a key** — if your key never changes, you cache stale deps forever.
85
85
 
86
86
  ```yaml
87
87
  # Bad — fixed key never invalidates; you restore yesterday's broken node_modules forever
88
- - uses: actions/cache@v4
88
+ - uses: actions/cache@v6
89
89
  with:
90
90
  path: ~/.npm
91
91
  key: npm-cache
92
92
 
93
93
  # Good — key changes when the lockfile changes; restore-keys gives a warm partial hit
94
- - uses: actions/cache@v4
94
+ - uses: actions/cache@v6
95
95
  with:
96
96
  path: ~/.npm
97
97
  key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
@@ -114,17 +114,17 @@ jobs:
114
114
  max-parallel: 4
115
115
  matrix:
116
116
  os: [ubuntu-latest, macos-latest]
117
- node: [20, 22, 24]
117
+ node: [22, 24, 26]
118
118
  exclude:
119
119
  - os: macos-latest # don't pay the macOS multiplier on every version
120
- node: 20
120
+ node: 22
121
121
  include:
122
- - os: ubuntu-latest # one extra cell: lint only on the canonical combo
122
+ - os: ubuntu-latest # matches an existing cell: adds lint: true to it, no new cell
123
123
  node: 24
124
124
  lint: true
125
125
  steps:
126
- - uses: actions/checkout@v6
127
- - uses: actions/setup-node@v6
126
+ - uses: actions/checkout@v7
127
+ - uses: actions/setup-node@v7
128
128
  with: { node-version: "${{ matrix.node }}", cache: npm }
129
129
  - run: npm ci && npm test
130
130
  ```
@@ -209,7 +209,7 @@ deploy:
209
209
  id-token: write
210
210
  contents: read
211
211
  steps:
212
- - uses: actions/checkout@v6
212
+ - uses: actions/checkout@v7
213
213
  - uses: aws-actions/configure-aws-credentials@<full-40-char-sha>
214
214
  with:
215
215
  role-to-assume: arn:aws:iam::123456789012:role/gh-deploy
@@ -36,7 +36,7 @@ should_not_trigger:
36
36
  capability:
37
37
  - scenario: "I have a Node 20 service in a GitHub repo. Give me a hardened CI + deploy pipeline that tests on a matrix of node versions and deploys to AWS on tag pushes without static credentials."
38
38
  must_include:
39
- - "First-party actions on current majors (checkout@v6, setup-node@v6); third-party actions pinned to a full 40-char commit SHA."
39
+ - "First-party actions on current majors (checkout@v7, setup-node@v7); third-party actions pinned to a full 40-char commit SHA."
40
40
  - "Top-level permissions set to contents: read, widened per job only where needed."
41
41
  - "Built-in npm cache via setup-node (cache: npm) keyed on the lockfile."
42
42
  - "A test job using strategy.matrix across multiple node versions."
@@ -39,7 +39,7 @@ For image builds inside a workflow, cache layers with the GitHub Actions cache b
39
39
 
40
40
  ## Matrix shaping
41
41
 
42
- `include` adds cells or extra variables; `exclude` removes specific combinations. They compose: the matrix is built, `exclude` prunes, then `include` appends.
42
+ `include` adds cells or extra variables; `exclude` removes specific combinations. They compose: the matrix is built, `exclude` prunes, then `include` is applied — an entry whose original keys all match an existing cell only adds its extra variables to that cell; any other entry appends a new cell.
43
43
 
44
44
  ```yaml
45
45
  strategy:
@@ -47,12 +47,12 @@ strategy:
47
47
  max-parallel: 6
48
48
  matrix:
49
49
  os: [ubuntu-latest, macos-latest, windows-latest]
50
- node: [20, 22, 24]
50
+ node: [22, 24, 26]
51
51
  exclude:
52
- - { os: windows-latest, node: 20 } # drop an unsupported combo
53
- - { os: macos-latest, node: 20 }
52
+ - { os: windows-latest, node: 22 } # drop an unsupported combo
53
+ - { os: macos-latest, node: 22 }
54
54
  include:
55
- - { os: ubuntu-latest, node: 24, coverage: true } # one cell does coverage
55
+ - { os: ubuntu-latest, node: 24, coverage: true } # matches an existing cell: adds coverage to it
56
56
  ```
57
57
 
58
58
  - `fail-fast: false` — every cell reports, even after one fails. Use it for compatibility matrices where you want the full grid of results.
@@ -103,11 +103,11 @@ jobs:
103
103
  build:
104
104
  runs-on: ubuntu-latest
105
105
  steps:
106
- - uses: actions/checkout@v6
107
- - uses: actions/setup-node@v6
106
+ - uses: actions/checkout@v7
107
+ - uses: actions/setup-node@v7
108
108
  with: { node-version: 24, cache: npm }
109
109
  - run: npm ci && npm run build
110
- - uses: actions/upload-artifact@v4
110
+ - uses: actions/upload-artifact@v7
111
111
  with: { name: dist, path: dist/ }
112
112
 
113
113
  deploy:
@@ -118,7 +118,7 @@ jobs:
118
118
  id-token: write # OIDC; no static keys
119
119
  contents: read
120
120
  steps:
121
- - uses: actions/download-artifact@v4
121
+ - uses: actions/download-artifact@v8
122
122
  with: { name: dist, path: dist/ }
123
123
  - uses: aws-actions/configure-aws-credentials@<full-40-char-sha>
124
124
  with:
@@ -148,12 +148,12 @@ sentinel; service passes it through; handler classifies once and maps to a statu
148
148
  only the unexpected.
149
149
 
150
150
  ```go
151
- // repository: translate sql.ErrNoRows into a domain sentinel, keep the chain.
151
+ // repository: translate pgx.ErrNoRows into a domain sentinel, keep the chain.
152
152
  func (r *Repo) GetUser(ctx context.Context, id string) (*User, error) {
153
153
  var u User
154
- err := r.db.QueryRowContext(ctx, "SELECT id, name FROM users WHERE id = $1", id).
154
+ err := r.pool.QueryRow(ctx, "SELECT id, name FROM users WHERE id = $1", id). // *pgxpool.Pool
155
155
  Scan(&u.ID, &u.Name)
156
- if errors.Is(err, sql.ErrNoRows) {
156
+ if errors.Is(err, pgx.ErrNoRows) {
157
157
  return nil, fmt.Errorf("user %s: %w", id, ErrNotFound)
158
158
  }
159
159
  if err != nil {
@@ -84,8 +84,8 @@ https://www.googleapis.com/auth/drive.file
84
84
 
85
85
  ## Build the authed client
86
86
 
87
- Node uses `googleapis` (latest 173.x, maintenance mode — bugs/security only) with
88
- `google-auth-library` (10.6.2). Python uses `google-auth` +
87
+ Node uses `googleapis` (latest 190.x, maintenance mode — bugs/security only) with
88
+ `google-auth-library` (11.x). Python uses `google-auth` +
89
89
  `google-api-python-client`. The impersonation line is the `subject` / `with_subject`.
90
90
 
91
91
  ```javascript
@@ -172,17 +172,21 @@ sheets.spreadsheets().values().update(
172
172
 
173
173
  The per-user ceiling is the one that bites a cron looping over a mailbox.
174
174
 
175
- - **Gmail:** 1.2M units/min per project, **6,000 units/min per user**, 80M
176
- units/day. Costs: `messages.send` 100, `messages.get` 20, `messages.list` 5,
175
+ - **Gmail:** 1.2M units/min per project, **6,000 units/min per user**.
176
+ Costs: `messages.send` 100, `messages.get` 20 (60 with `format=full|raw`), `messages.list` 5,
177
177
  `messages.modify` 5, `drafts.create` 10. Hard cap **500 recipients/message**.
178
- - **Drive:** 1M units/min per project, **325,000 units/min per user**, 1 TB/day
179
- egress.
178
+ - **Drive:** 1M units/min per project, **325,000 units/min per user**, 1 TiB/day
179
+ egress per project (not yet enforced), 750 GB/day upload per user.
180
180
  - **Sheets:** read and write each 300/min per project, **60/min per user**; 429
181
181
  on overage; 180s request timeout; keep payloads under ~2 MB.
182
- - **Policy shift:** as of 2026-05-01 Google updated Workspace quota policy —
183
- projects active Nov 2025–Apr 2026 keep legacy quotas, new projects get the new
184
- model, and overage will start incurring Cloud billing charges later in 2026.
185
- Treat quota as a cost line, not a free ceiling.
182
+ - **Tiering (Gmail, Calendar, Drive):** baseline quotas apply to new projects
183
+ since 2026-05-01. Since 2026-11-24 there is a free **Standard Tier** and a
184
+ billed **Scaled Tier**; higher REST quotas need Scaled Tier (linked billing) or
185
+ the internal-use exception. From **2027-02-01** AI agents must use the Workspace
186
+ MCP servers — agents calling REST directly are held to Standard Tier quotas.
187
+ From **2027-04-01** Standard limits are enforced on every project and Scaled
188
+ Tier usage past the daily no-charge allowance is billed. Treat quota as a cost
189
+ line, not a free ceiling.
186
190
 
187
191
  Three habits keep you under it:
188
192
 
@@ -227,7 +231,7 @@ def with_backoff(call, max_retries=6, max_backoff=64):
227
231
  | `unauthorized_client` | SA client ID / scope not authorized for DWD | Add the client ID + **exact** scopes in Admin console Manage DWD |
228
232
  | `403 insufficient permissions` | Scope too narrow, or API not enabled | Widen to the right scope (still least), enable the API |
229
233
  | `403 rateLimitExceeded` / `429` | Per-user or per-project quota hit | Exponential backoff + jitter; batch; spread load |
230
- | `400 failedPrecondition` on impersonation | `subject` set but DWD not configured | Either remove `subject` (app-owned) or finish DWD setup |
234
+ | `400 failedPrecondition` ("Precondition check failed") on Gmail | No `subject`: the bare SA has no mailbox | Set `subject` to a real Workspace user and finish DWD |
231
235
  | `invalid_grant` | Clock skew or stale/rotated key | Sync clock; re-issue the key |
232
236
 
233
237
  ## Anti-patterns
@@ -1,8 +1,8 @@
1
1
  # API recipes — extended Node + Python
2
2
 
3
3
  Longer, copy-paste recipes that did not fit in SKILL.md. All assume an authed
4
- client built per SKILL.md "Build the authed client". Versions as of 2026-06-02:
5
- `googleapis` latest 173.x (maintenance mode), `google-auth-library` 10.6.2.
4
+ client built per SKILL.md "Build the authed client". Versions as of 2026-11-25:
5
+ `googleapis` latest 190.x (maintenance mode), `google-auth-library` 11.x.
6
6
 
7
7
  ## Gmail — raw MIME with an attachment
8
8
 
@@ -94,7 +94,7 @@ genuinely cannot federate, and then secret-manage + rotate them.
94
94
  | `unauthorized_client` | Client ID/scope not authorized for DWD | Add client ID + exact scopes in Manage DWD |
95
95
  | `403 accessNotConfigured` / `SERVICE_DISABLED` | API not enabled on the project | Enable it in the Cloud console |
96
96
  | `403 insufficient permissions` | Scope too narrow for the call | Use the correct (still least) scope |
97
- | `400 failedPrecondition` | `subject` set without DWD configured | Finish DWD, or drop `subject` for app-owned |
97
+ | `400 failedPrecondition` ("Precondition check failed") | Gmail called as the bare SA, no `subject` — an SA has no mailbox | Set `subject` to a Workspace user and authorize DWD |
98
98
  | `invalid_grant` | Clock skew, or rotated/revoked key | Sync clock (NTP); re-issue key |
99
99
  | `404` on a user's resource via SA, no DWD | SA can't see resources it doesn't own | Share the resource to the SA, or impersonate via DWD |
100
100
  | `403 rateLimitExceeded` / `429` | Per-user/project quota hit | Exponential backoff + jitter; batch; spread load |
@@ -50,8 +50,9 @@ The **harness** is the control plane of a workspace. A workspace need not be cod
50
50
 
51
51
  It compounds on its own: every Ingest, Sweep and Query triggers a Maintenance Pass (lint, score
52
52
  recomputation, gap detection, Related sweep), a Micro-Improve runs every N interactions, and Deep
53
- Improve runs on request or on the daily schedule (`references/daily-curation-automation.md` — on
54
- Claude Code, wire it via the `schedule` skill). Protocol → `references/wiki-protocol.md`;
53
+ Improve runs on request or on a weekly schedule, and a daily curation pass keeps the inbox and links
54
+ current (`references/daily-curation-automation.md` — on Claude Code, wire both via the `schedule`
55
+ skill). Protocol → `references/wiki-protocol.md`;
55
56
  formats → `references/ingest-formats.md`; capture → `references/wiki-worklog-template.md`;
56
57
  vault → `references/obsidian-scaffolding.md`.
57
58
  - **The Knowledge map** — the `## Knowledge map` section of the root `CLAUDE.md` that indexes the wiki (including the `harness/` topic) and is read by every other skill before it works in its area.
@@ -272,7 +273,7 @@ a row per wiki article, appended by many skills, forever.
272
273
 
273
274
  **The rule:** the **full** Knowledge map lives in `02-DOCS/wiki/index.md` (loaded on demand, grows
274
275
  freely). Root `CLAUDE.md`'s `## Knowledge map` is a **short pointer** — only the read-first entries
275
- (`harness/user-profile.md`, `sdd/constitution.md`) plus "full index → `02-DOCS/wiki/index.md`".
276
+ (`harness/user-profile.md`, `harness/decisions.md`, and `sdd/constitution.md` when it exists) plus "full index → `02-DOCS/wiki/index.md`".
276
277
 
277
278
  **Offload when it bloats (a move, never a trim — no info lost):** when `CLAUDE.md` passes ~200 lines
278
279
  (the SessionStart hook nudges you) or its `## Knowledge map` has grown past the read-first entries:
@@ -19,7 +19,7 @@ Run once per day, at a quiet hour, to keep the second brain alive:
19
19
  record them in `wiki/.ingested.json`, and propose the ambiguous ones
20
20
  - process pending `raw/worklog/` material into `wiki/`
21
21
  - strengthen weak / low-score pages; fill one open gap
22
- - repair links and the graph (resolve broken wikilinks, add `## Related` where proper nouns recur)
22
+ - repair links and the graph (convert any `[[...]]` wikilinks to markdown links, fix broken links, add `## Related` where proper nouns recur)
23
23
  - mark `stale` pages whose sources moved on
24
24
  - record what changed in `wiki/log.md`
25
25
 
@@ -809,9 +809,9 @@ providers:
809
809
  imports: ["import anthropic", "from anthropic", "@anthropic-ai/sdk", "@ai-sdk/anthropic", "from langchain_anthropic"]
810
810
  env_vars: ["ANTHROPIC_API_KEY"]
811
811
  deps: ["anthropic", "@anthropic-ai/sdk", "@ai-sdk/anthropic", "langchain-anthropic"]
812
- dashboard_url: "https://console.anthropic.com/settings/keys"
812
+ dashboard_url: "https://platform.claude.com/settings/keys"
813
813
  env_example: |
814
- # ANTHROPIC — generate at https://console.anthropic.com/settings/keys
814
+ # ANTHROPIC — generate at https://platform.claude.com/settings/keys
815
815
  ANTHROPIC_API_KEY=
816
816
  files:
817
817
  test_connection.sh: |
@@ -827,11 +827,11 @@ providers:
827
827
  Claude API (Opus, Sonnet, Haiku).
828
828
  ## Setup
829
829
  1. `cp .env.example .env && chmod 600 .env`
830
- 2. Key from https://console.anthropic.com/settings/keys
830
+ 2. Key from https://platform.claude.com/settings/keys
831
831
  3. `./test_connection.sh`
832
832
  CREDENTIALS.md: |
833
833
  # Credentials — ANTHROPIC
834
- Dashboard: https://console.anthropic.com/settings/keys
834
+ Dashboard: https://platform.claude.com/settings/keys
835
835
  `ANTHROPIC_API_KEY` — secret. Rotate on leak.
836
836
 
837
837
  - id: GOOGLE_AI
@@ -788,7 +788,8 @@ doing anything but dropping files.
788
788
  ### Knowledge Gaps log — format
789
789
 
790
790
  `wiki/gaps.md` accumulates wanted-but-missing topics. Append-only; gaps get
791
- flagged `[FILLED YYYY-MM-DD]` when addressed, never deleted.
791
+ flagged `[FILLED YYYY-MM-DD]` when addressed. Open gaps are never deleted; the only
792
+ removal is Deep Improve's compaction of `[FILLED]` entries older than 90 days.
792
793
 
793
794
  ```
794
795
  # Knowledge Gaps
@@ -9,8 +9,8 @@ origin: risco
9
9
  # Hetzner — the cheap European box, made safe and reproducible
10
10
 
11
11
  Hetzner Cloud is chosen for one reason: price/performance. A 2 vCPU / 4 GB AMD
12
- box runs about €7.99/mo, the EU Intel line dips under €4, and EU locations
13
- include 20 TB of egress. The risk is that "cheap" becomes "unhardened and
12
+ box (CPX22) lists at about €19.49/mo, the EU Intel line (CX23) at about €5.49
13
+ when it is orderable, and EU locations include 20 TB of egress. The risk is that "cheap" becomes "unhardened and
14
14
  unmonitored" — a root-SSH box on a public IPv4 with password auth on. Your job
15
15
  is to make the cheap box **safe** and **reproducible**: every server comes up
16
16
  from a committed cloud-init file and a Cloud Firewall ruleset, never from
@@ -19,15 +19,16 @@ a pet.
19
19
 
20
20
  ## Decide before you create
21
21
 
22
- Pick the line, then the location. Prices are post-2026-04-01 (a price adjustment
23
- took effect that date); treat exact cents as "verify in the console."
22
+ Pick the line, then the location. Prices are new-order prices after the
23
+ 2026-06-15 adjustment (existing servers keep their old price until rescaled);
24
+ treat exact cents as "verify in the console."
24
25
 
25
26
  | Line | Chip | When to pick | Price band | EU-only? |
26
27
  |---|---|---|---|---|
27
- | **CX** | Intel (shared) | Cost-optimized, tiny EU workloads | ~€3.99/mo (2 vCPU/4 GB/40 GB) | Yes |
28
- | **CPX** | AMD (shared) | Default for apps; best general value | CPX22 ~€7.99, CPX32 ~€13.99, CPX42 ~€25.49 | No |
29
- | **CAX** | ARM64 (shared) | Cheapest per-core; ARM-clean workloads | Cheapest per-core | Yes |
30
- | **CCX** | Dedicated vCPU | Steady CPU load, no noisy-neighbor | CCX13 ~€15.99 (2 vCPU/8 GB) | No |
28
+ | **CX** | Intel (shared) | Cost-optimized, tiny EU workloads | ~€5.49/mo (2 vCPU/4 GB/40 GB); often out of stock | Yes |
29
+ | **CPX** | AMD (shared) | Default for apps; best general value | CPX22 ~€19.49; larger sizes: check `hcloud server-type list` | No |
30
+ | **CAX** | ARM64 (shared) | Cheapest per-core; ARM-clean workloads | CAX11 ~€5.99; cheapest per-core | Yes |
31
+ | **CCX** | Dedicated vCPU | Steady CPU load, no noisy-neighbor | CCX13 ~€42.99 (2 vCPU/8 GB) | No |
31
32
 
32
33
  Rules:
33
34
 
@@ -49,7 +50,7 @@ Full dated matrix, latency notes, and the no-SLA / no-managed-DB reality:
49
50
 
50
51
  ## Provision reproducibly
51
52
 
52
- Install the official CLI (latest **v1.65.0**, released 2026-05-21) and create a
53
+ Install the official CLI (latest **v1.70.2**, released 2026-10-23) and create a
53
54
  context (the token comes from the project's *Security → API tokens*, Read &
54
55
  Write):
55
56
 
@@ -72,8 +73,8 @@ hcloud server create \
72
73
  --user-data-from-file cloud-init.yaml
73
74
  ```
74
75
 
75
- Use `--location`, not `--datacenter`: the `datacenter` attribute is **deprecated
76
- and removed after 2026-07-01** for Servers and Primary IPs. Trimmed cloud-init
76
+ Use `--location`: the `datacenter` property was removed from Servers and Primary
77
+ IPs in the API on 2026-07-01, and hcloud v1.67.0 dropped the `--datacenter` flag. Trimmed cloud-init
77
78
  skeleton (full annotated file in `references/cloud-init.md`):
78
79
 
79
80
  ```yaml
@@ -185,7 +186,7 @@ This skill stops at a clean, hardened host. Then route the install/deploy:
185
186
  | Snapshot treated as backup | One stale manual image, no rotation, no schedule | Enable the Backups add-on or push to off-box storage |
186
187
  | US location, then surprised by the bill | US/Singapore include far less than EU's 20 TB egress | EU location for egress-heavy apps; check the traffic cap first |
187
188
  | IPv6-only to save €0.50 | Registry/CI/mirror pulls over IPv4-only break | Keep one IPv4 unless every upstream is confirmed dual-stack |
188
- | Using `--datacenter` | Deprecated, removed after 2026-07-01 | Use `--location` |
189
+ | Using `--datacenter` | Removed from the API (2026-07-01) and from hcloud (v1.67.0) | Use `--location` |
189
190
 
190
191
  ## Verify
191
192
 
@@ -32,13 +32,15 @@ packages:
32
32
  - unattended-upgrades
33
33
 
34
34
  # --- drop-in sshd hardening (braces) so an image default can't re-enable it ---
35
+ # sshd keeps the FIRST value it reads and loads drop-ins in lexical order, so the
36
+ # file must sort before the image's 50-cloud-init.conf: 00-, never 99-.
35
37
  write_files:
36
- - path: /etc/ssh/sshd_config.d/99-hardening.conf
38
+ - path: /etc/ssh/sshd_config.d/00-hardening.conf
37
39
  content: |
38
40
  PermitRootLogin no
39
41
  PasswordAuthentication no
40
42
  PubkeyAuthentication yes
41
- ChallengeResponseAuthentication no
43
+ KbdInteractiveAuthentication no
42
44
  # Optional: move the port. Obscurity, not security — keep key-only + firewall regardless.
43
45
  # Port 2222
44
46
  - path: /etc/apt/apt.conf.d/20auto-upgrades
@@ -1,19 +1,20 @@
1
1
  # Reference: plans, prices, locations, reliability
2
2
 
3
- Dated figures (post the **2026-04-01 price adjustment**). Hetzner raised most
4
- plan prices on that date — treat exact cents as "verify in the console," use
5
- these as bands for the decision.
3
+ Dated figures (new-order prices after the **2026-06-15 price adjustment**, which
4
+ followed a first round on 2026-04-01). Existing servers keep their price until
5
+ they are rescaled — treat exact cents as "verify in the console," use these as
6
+ bands for the decision.
6
7
 
7
8
  ## Plan matrix
8
9
 
9
- | Plan | Chip | vCPU / RAM / disk | Price band (post-2026-04-01) | EU-only? | Pick when |
10
+ | Plan | Chip | vCPU / RAM / disk | Price band (post-2026-06-15) | EU-only? | Pick when |
10
11
  |---|---|---|---|---|---|
11
- | CX23-class | Intel (shared) | 2 / 4 GB / 40 GB | ~€3.99/mo | Yes | Cheapest viable, tiny EU workloads |
12
- | CPX22 | AMD (shared) | 2 / 4 GB / 80 GB | ~€7.99/mo | No | Default app box, best value |
13
- | CPX32 | AMD (shared) | 4 / 8 GB / 160 GB | ~€13.99/mo | No | Mid app + small DB |
14
- | CPX42 | AMD (shared) | 8 / 16 GB / 320 GB | ~€25.49/mo | No | Heavier services |
15
- | CAX (ARM64) | Ampere (shared) | varies | cheapest per-core | Yes | ARM-clean workloads, max cores/€ |
16
- | CCX13 | Dedicated vCPU | 2 / 8 GB | ~€15.99/mo | No | Steady CPU, no noisy-neighbor |
12
+ | CX23-class | Intel (shared) | 2 / 4 GB / 40 GB | ~€5.49/mo (often out of stock) | Yes | Cheapest viable, tiny EU workloads |
13
+ | CPX22 | AMD (shared) | 2 / 4 GB / 80 GB | ~€19.49/mo | No | Default app box, best value |
14
+ | CPX32 | AMD (shared) | 4 / 8 GB / 160 GB | verify (`hcloud server-type list`) | No | Mid app + small DB |
15
+ | CPX42 | AMD (shared) | 8 / 16 GB / 320 GB | verify (`hcloud server-type list`) | No | Heavier services |
16
+ | CAX (ARM64) | Ampere (shared) | varies | CAX11 ~€5.99/mo; cheapest per-core | Yes | ARM-clean workloads, max cores/€ |
17
+ | CCX13 | Dedicated vCPU | 2 / 8 GB | ~€42.99/mo | No | Steady CPU, no noisy-neighbor |
17
18
 
18
19
  ## IPv4 / IPv6 economics
19
20
 
@@ -47,10 +48,10 @@ thing you're accepting — not also an unhardened, un-monitored host.
47
48
 
48
49
  ## Sources
49
50
 
50
- - hcloud CLI v1.65.0 (2026-05-21): github.com/hetznercloud/cli/releases
51
- - `datacenter` deprecation (removed after 2026-07-01): hcloud CLI release notes
52
- - Price adjustment (2026-04-01): docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/
51
+ - hcloud CLI v1.70.2 (2026-10-23): github.com/hetznercloud/cli/releases
52
+ - `datacenter` removal (API 2026-07-01, `--datacenter` flag dropped in v1.67.0): hcloud CLI CHANGELOG
53
+ - Price adjustments (2026-04-01, 2026-06-15): docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/
53
54
  - Plans/prices/traffic/locations/reliability: betterstack.com Hetzner Cloud review + hetzner.com/cloud
54
55
  - Firewall layers + cloud-init: community.hetzner.com tutorials
55
56
 
56
- All accessed 2026-06-02.
57
+ Prices and CLI facts re-checked 2026-11-25.
@@ -39,8 +39,8 @@ One rule per stage, with the why:
39
39
  the comparison is meaningless.
40
40
  - **Run a structured loop.** Same questions, same rubric, every candidate —
41
41
  structured interviews are the single highest-validity selection method
42
- (~.51 predictive validity vs ~.38 unstructured; the 2022 Sackett et al.
43
- re-analysis ranks them above cognitive-ability tests). Unstructured = lottery.
42
+ (~.42 predictive validity vs ~.19 unstructured in the 2022 Sackett et al.
43
+ re-analysis, which ranks them above cognitive-ability tests). Unstructured = lottery.
44
44
  - **Score independently, then calibrate.** Each interviewer submits before the
45
45
  group talks. Debrief is calibration, not a re-vote.
46
46
 
@@ -141,7 +141,7 @@ would you change?
141
141
  ## The scorecard
142
142
 
143
143
  This is where gut-feel hiring dies. A structured scorecard with behavioral
144
- anchors lifts interview validity from ~.20 to ~.51 (most rigorous scoring ~.57)
144
+ anchors lifts interview validity from ~.19 to ~.42 (Sackett et al. 2022)
145
145
  and a 2022 SHRM-cited figure puts bias reduction above 50% versus unstructured
146
146
  scoring. Shape it exactly:
147
147
 
@@ -22,9 +22,9 @@ JavaScript, you have stopped doing htmx and started building an SPA — use a di
22
22
  `change` for inputs)
23
23
 
24
24
  **Versions (verify before pinning).** htmx 2.0.x is current stable (2.0.10 latest 2.x line);
25
- v1 (1.9.x) is legacy, kept only for IE/old-browser support. htmx v4 is in beta targeting
26
- Summer 2026 and changes some defaults (default swap behavior, config) — do **not** write to v4
27
- yet. Pin to 2.x:
25
+ v1 (1.9.x) is legacy, kept only for IE/old-browser support. htmx 4.0 is released but npm keeps
26
+ 2.x as `latest` (4.x is tagged `next`); v4 changes some defaults (default swap behavior,
27
+ config) — write to v4 only when the project already chose it. Pin to 2.x:
28
28
 
29
29
  ```html
30
30
  <script src="https://unpkg.com/htmx.org@2.0.10" crossorigin="anonymous"></script>
@@ -116,7 +116,7 @@ def contacts(request: Request, q: str = ""):
116
116
  rows = search_contacts(q)
117
117
  # htmx asked for just the table body; a browser nav gets the whole page.
118
118
  template = "contacts/_rows.html" if request.headers.get("HX-Request") else "contacts/index.html"
119
- return templates.TemplateResponse(template, {"request": request, "rows": rows, "q": q})
119
+ return templates.TemplateResponse(request, template, {"rows": rows, "q": q})
120
120
  ```
121
121
 
122
122
  ```jinja
@@ -41,7 +41,7 @@ injection.
41
41
  def contacts(request: Request, q: str = ""):
42
42
  rows = search_contacts(q)
43
43
  name = "contacts/_rows.html" if request.headers.get("HX-Request") else "contacts/index.html"
44
- return templates.TemplateResponse(name, {"request": request, "rows": rows, "q": q})
44
+ return templates.TemplateResponse(request, name, {"rows": rows, "q": q})
45
45
  ```
46
46
 
47
47
  Fire a client event from the server:
@@ -81,7 +81,7 @@ app.get("/contacts", (req, res) => {
81
81
  });
82
82
  ```
83
83
 
84
- CSRF (e.g. `csurf` or a double-submit cookie): expose the token to htmx via `hx-headers`, the
84
+ CSRF (a double-submit cookie or a maintained CSRF middleware; `csurf` is deprecated): expose the token to htmx via `hx-headers`, the
85
85
  same pattern as Django — htmx never adds CSRF tokens itself.
86
86
 
87
87
  ## Fragment-vs-page rule (all stacks)
@@ -30,7 +30,7 @@ did not need.
30
30
 
31
31
  | Situation | Use | Why |
32
32
  |---|---|---|
33
- | Try a model now, low/dev volume, own no infra | **Inference Providers router** (`InferenceClient`) | Fastest path; monthly credits cover dev. |
33
+ | Try a model now, low/dev volume, own no infra | **Inference Providers router** (`InferenceClient`) | Fastest path; pay-as-you-go (PRO includes monthly credits, Free has none). |
34
34
  | CPU task: embeddings, text-ranking, text-classification, small BERT/GPT-2 | `provider="hf-inference"` | That is exactly its remaining niche as of July 2025. |
35
35
  | Big LLM (8B, 70B, 405B) through HF | router with a **partner provider** (Together/Fireworks/Cerebras/DeepInfra…) | `hf-inference` does not serve big LLMs — it will 404 or stall. |
36
36
  | Steady prod traffic, need fixed latency/SLA | **dedicated Inference Endpoint** + scale-to-zero | Predictable, autoscaling, billed per minute. |
@@ -41,14 +41,14 @@ did not need.
41
41
  ## Auth & install
42
42
 
43
43
  ```bash
44
- pip install "huggingface_hub[inference]" # 1.17.0; needs Python >=3.10
44
+ pip install huggingface_hub # 2.4.0; needs Python >=3.10
45
45
  pip install transformers # 5.x line, PyTorch-first, optional/local
46
46
  hf auth login # stores a token; or export HF_TOKEN=...
47
47
  ```
48
48
 
49
- - **The CLI is `hf` now**, shaped `hf <resource> <action>` (`hf auth login`, `hf download`,
50
- `hf upload`, `hf repo create`, `hf jobs run`). `huggingface-cli` still runs but prints a
51
- deprecation warning — do not write it into new scripts.
49
+ - **The CLI is `hf`**, shaped `hf <resource> <action>` (`hf auth login`, `hf download`,
50
+ `hf upload`, `hf repos create`, `hf jobs run`). `huggingface_hub` 2.0 removed the
51
+ `huggingface-cli` entry point and the singular `hf repo` group — scripts that call them fail.
52
52
  - **Never hardcode a `hf_...` token in code** — tokens leak the moment the file hits git. Read
53
53
  from the environment instead:
54
54
 
@@ -91,8 +91,8 @@ client = OpenAI(
91
91
  - **`InferenceClient.post()` was removed** (dropped in hub v0.31.0). Use the task methods:
92
92
  `chat.completions.create()`, `text_generation()`, `feature_extraction()` (embeddings),
93
93
  `text_to_image()`, `automatic_speech_recognition()`.
94
- - **Credits are real and small**: Free $0.10/mo, PRO $2.00/mo, Team/Enterprise $2.00 per seat
95
- (shared). Past that you are pay-as-you-go and must buy credits. Budget accordingly — why: a
94
+ - **Credits are real and small**: Free users get none (buy credits first), PRO $2.00/mo,
95
+ Team/Enterprise $2.00 per seat (shared). Past that you are pay-as-you-go and must buy credits. Budget accordingly — why: a
96
96
  chat loop on a 70B model burns the free tier in minutes.
97
97
  - A **Custom Provider Key** bypasses HF billing entirely (the provider bills you; HF credits do
98
98
  not apply). For org billing, pass `bill_to="org-name"` (header `X-HF-Bill-To`).
@@ -103,7 +103,7 @@ client = OpenAI(
103
103
 
104
104
  ```bash
105
105
  hf download meta-llama/Llama-3.1-8B-Instruct --include "*.safetensors"
106
- hf repo create my-org/my-model --repo-type model
106
+ hf repos create my-org/my-model --repo-type model
107
107
  hf upload my-org/my-model ./out --commit-message "v1 weights"
108
108
  ```
109
109
 
@@ -134,7 +134,7 @@ commit. Match the model to your constraint; do not grab whatever is trending.
134
134
  Move off the router when you need fixed latency/SLA, or the router's PAYG cost stops being
135
135
  predictable. An Endpoint is your own autoscaling deployment.
136
136
 
137
- - Pricing: CPU from ~$0.032/core/hr, GPU from ~$0.50/hr (A10G ~$1.00/hr, H100 ~$6.40–8.00/hr),
137
+ - Pricing: CPU from ~$0.033/core/hr, GPU from ~$0.50/hr (A10G ~$1.00/hr, H200 on AWS ~$5.00/hr, H100 on GCP ~$10.00/hr),
138
138
  **billed per minute** even though shown hourly.
139
139
  - Enable **scale-to-zero** for bursty traffic — it parks at $0 when idle and cold-starts on the
140
140
  next request. A bursty 100–1000 req/day workload typically lands at **$20–60/mo**.
@@ -143,7 +143,7 @@ predictable. An Endpoint is your own autoscaling deployment.
143
143
 
144
144
  ## Spaces + ZeroGPU
145
145
 
146
- A Space hosts a demo app with a public URL. **ZeroGPU** grabs an H200 MIG slice (~70GB) only
146
+ A Space hosts a demo app with a public URL. **ZeroGPU** grabs half an NVIDIA RTX Pro 6000 Blackwell (48GB; `size="xlarge"` for the full 96GB at 2x quota) only
147
147
  while a decorated function runs, then releases it.
148
148
 
149
149
  ```python
@@ -162,12 +162,12 @@ def generate(prompt: str) -> str:
162
162
  ```python
163
163
  from transformers import pipeline
164
164
  pipe = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct",
165
- device_map="auto", torch_dtype="auto")
165
+ device_map="auto", dtype="auto")
166
166
  print(pipe("Hello", max_new_tokens=64)[0]["generated_text"])
167
167
  ```
168
168
 
169
169
  - `pipeline("task", model=...)` for quick use; `AutoModelForCausalLM.from_pretrained(...)` when
170
- you need control over generation/quantization. Set `device_map`/`torch_dtype` explicitly.
170
+ you need control over generation/quantization. Set `device_map`/`dtype` explicitly (`torch_dtype` is deprecated).
171
171
  - Use local only when you are **offline, data-private, or already on a GPU**. Otherwise the
172
172
  router is far less ops than babysitting CUDA and weights.
173
173
 
@@ -179,13 +179,13 @@ print(pipe("Hello", max_new_tokens=64)[0]["generated_text"])
179
179
  | `provider="hf-inference"` for a 70B/405B LLM | CPU niche; 404s or stalls | Route to a partner provider (Together/Fireworks/Cerebras) |
180
180
  | `api_key="hf_abc123..."` in code | Token leaks in git history | Read `os.environ["HF_TOKEN"]` |
181
181
  | Spin up a dedicated Endpoint just to try a model | Burns money idle | Use the router first; graduate only on real traffic |
182
- | Assuming router calls are free/unlimited | Free tier is $0.10/mo | Budget credits; expect PAYG |
182
+ | Assuming router calls are free/unlimited | Free accounts get no monthly credits; PRO $2/mo | Budget credits; expect PAYG |
183
183
  | ZeroGPU under Streamlit/Docker SDK | Unsupported, silently no GPU | Use the Gradio SDK |
184
- | `huggingface-cli ...` in new scripts | Deprecated, warns | Use `hf ...` |
184
+ | `huggingface-cli ...` / `hf repo ...` in scripts | Removed in `huggingface_hub` 2.0; the command fails | Use `hf ...` / `hf repos ...` |
185
185
  | OpenAI base URL other than `https://router.huggingface.co/v1` | Won't reach the HF router | Use that exact host |
186
186
 
187
187
  ## verify.sh
188
188
 
189
189
  `scripts/verify.sh [TARGET]` is a static, read-only linter (no network, no token). It flags the
190
190
  hard violations above — `.post(`, hardcoded `hf_` tokens, big-LLM-to-`hf-inference`, wrong router
191
- host — and warns on legacy `huggingface-cli`. It exits 0 on a clean or empty target.
191
+ host, the removed `huggingface-cli`. It exits 0 on a clean or empty target.
@@ -37,5 +37,5 @@ capability:
37
37
  - "InferenceClient or the OpenAI-compatible router base URL https://router.huggingface.co/v1"
38
38
  - "a partner provider (e.g. together/fireworks), not hf-inference, for the 8B LLM"
39
39
  - "HF_TOKEN read from the environment, never a hardcoded hf_ literal"
40
- - "cost awareness: Free $0.10 / PRO $2 monthly credits then pay-as-you-go, no markup"
40
+ - "cost awareness: no monthly credits on Free, PRO $2/mo, then pay-as-you-go, no markup"
41
41
  - "a dedicated Inference Endpoint with scale-to-zero as the graduation path when traffic is steady"
@@ -9,10 +9,11 @@ when you need fixed latency/SLA or the router's pay-as-you-go cost stops being p
9
9
 
10
10
  | Tier | From |
11
11
  |---|---|
12
- | CPU | ~$0.032 / core / hr |
12
+ | CPU | ~$0.033 / core / hr |
13
13
  | GPU (entry) | ~$0.50 / hr |
14
14
  | GPU A10G | ~$1.00 / hr |
15
- | GPU H100 | ~$6.40–8.00 / hr |
15
+ | GPU H200 (AWS) | ~$5.00 / hr |
16
+ | GPU H100 (GCP) | ~$10.00 / hr |
16
17
 
17
18
  ### Scale-to-zero
18
19
 
@@ -78,7 +79,8 @@ A Space hosts a demo app at a public `*.hf.space` URL. Pick the SDK by need:
78
79
 
79
80
  ### ZeroGPU
80
81
 
81
- Dynamic GPU allocation: an **H200 MIG slice (3g.71gb, ~70GB)** is grabbed only while a decorated
82
+ Dynamic GPU allocation: **half an NVIDIA RTX Pro 6000 Blackwell (48GB)** by default — or the full
83
+ 96GB card with `@spaces.GPU(size="xlarge")`, at 2x quota cost — is grabbed only while a decorated
82
84
  function runs and released when idle. **Gradio SDK only.**
83
85
 
84
86
  ```python