<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DevSignal Notes on Medium]]></title>
        <description><![CDATA[Stories by DevSignal Notes on Medium]]></description>
        <link>https://medium.com/@hle62065?source=rss-50f093a9f254------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by DevSignal Notes on Medium</title>
            <link>https://medium.com/@hle62065?source=rss-50f093a9f254------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:37:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hle62065/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Guard PostgreSQL & Supabase Schema Drift and RLS Without Granting SELECT on Any Table]]></title>
            <link>https://medium.com/@hle62065/how-to-guard-postgresql-supabase-schema-drift-and-rls-without-granting-select-on-any-table-0a2555efc9ec?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a2555efc9ec</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[supabase]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 23:50:09 GMT</pubDate>
            <atom:updated>2026-11-27T14:44:29.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W_8R_RACx1ckMOzO" /></figure><p>Most database drift and data-quality tools ask for a connection string with SELECT privileges across your production tables. For B2B SaaS teams handling customer PII, billing records, or multi-tenant Supabase schemas, giving a CI workflow or monitoring agent read access to every production row is a hard no.</p><p>Yet three silent production regressions keep happening on PostgreSQL, Supabase, and Neon:</p><ol><li>Someone disables Row-Level Security (RLS) on a table in the dashboard during debugging and forgets to re-enable it.</li><li>A developer creates a public view without security_invoker = true - silently bypassing RLS on the underlying tables because views default to running with the view owner&#39;s privileges.</li><li>An unreviewed migration adds a column with a volatile default, runs CREATE INDEX without CONCURRENTLY, or drops a column that downstream services still query.</li></ol><p>I built <a href="https://github.com/yun87457-web/pgseal"><strong>pgseal</strong></a> ( <a href="https://github.com/marketplace/actions/pgseal">GitHub Actions Marketplace</a>) — a single static Go binary (~10.75 MB, MIT license, only pgx/v5 as a runtime dependency) - to catch all three while <strong>proving</strong> it has zero read access to user table rows.</p><h3>1. Zero-Data-Access Attestation (select_privileged_tables = 0)</h3><p>Running pgseal init --role pgseal_ro --db appdb prints the least-privilege SQL for your database:</p><pre>CREATE ROLE pgseal_ro LOGIN PASSWORD &#39;&lt;set-via-secret-manager&gt;&#39; NOSUPERUSER NOCREATEDB NOCREATEROLE NOREPLICATION NOBYPASSRLS NOINHERIT CONNECTION LIMIT 2; GRANT CONNECT ON DATABASE appdb TO pgseal_ro; ALTER ROLE pgseal_ro SET default_transaction_read_only = on; ALTER ROLE pgseal_ro SET statement_timeout = &#39;3s&#39;; ALTER ROLE pgseal_ro SET lock_timeout = &#39;200ms&#39;;</pre><p>Notice there are <strong>zero </strong><strong>GRANT SELECT statements on any user table</strong>. PostgreSQL lets any role with CONNECT inspect pg_catalog.* and pg_stat_* metadata. pgseal executes all 12 embedded catalog queries inside a single transaction:</p><pre>BEGIN ISOLATION LEVEL REPEATABLE READ READ ONLY; SET LOCAL statement_timeout = &#39;3000ms&#39;; SET LOCAL lock_timeout = &#39;200ms&#39;;</pre><p>Every pgseal doctor and pgseal snapshot run records a live attestation:</p><p>In CI across <strong>PostgreSQL 15, 16, and 17 behind PgBouncer (</strong><strong>pool_mode=transaction)</strong>, our integration suite explicitly verifies two things:</p><ol><li>pg_stat_user_tables user-table scan delta (seq_scan + idx_scan) equals <strong>0</strong> (validated alongside a negative control that proves a real SELECT increments the counter).</li><li>Attempting SELECT 1 FROM public.&lt;user_table&gt; with pgseal_ro returns PostgreSQL error 42501 permission denied.</li></ol><p>During live testing against a Neon Serverless PostgreSQL 17.12 instance (-pooler.*.aws.neon.tech with channel_binding=require&amp;sslmode=require), two real-world catches stood out immediately:</p><ol><li><strong>Views silently bypassing RLS (</strong><strong>RLS-004):</strong> When we created a normal public.invoice_summary view and granted SELECT to PUBLIC, pgseal rls flagged [BREAKING] RLS-004 (security_invoker=false), AND pgseal doctor simultaneously caught that pgseal_ro had inherited SELECT on that view via PUBLIC (DOC-001, exit code 2).</li><li><strong>Live RLS toggle + breaking column drop:</strong> After revoking PUBLIC access on the view (doctor passed in <strong>398 ms</strong> over the internet with select_privileged_tables=0, pooler_detected=&quot;neon-pooler&quot;), we took a baseline snapshot (<strong>841 ms</strong>) and ran:</li></ol><ul><li>ALTER TABLE public.invoices DISABLE ROW LEVEL SECURITY; ALTER TABLE public.invoices DROP COLUMN created_at;</li></ul><ol><li>pgseal diff immediately exited 2 catching DIFF-010 [BREAKING], and pgseal rls --baseline exited 2 catching RLS-001 [BREAKING] (rls_enabled: true -&gt; false).</li></ol><p>Altogether, pgseal rls checks 7 rules ( RLS-001 through RLS-007), including USING (true)/ 1=1 tautologies, 0-policy lockouts, SECURITY DEFINER functions exposed to anon/ public, and policies referencing client-mutable user_metadata.</p><p>A common reason schema tools fail on Supabase (:6543 Supavisor) and Neon (-pooler.neon.tech) is prepared-statement caching or unsupported startup options parameters in transaction pooling mode.</p><p>pgseal enforces:</p><ul><li>pgx.QueryExecModeSimpleProtocol with StatementCacheCapacity = 0</li><li>Transaction-local SET LOCAL instead of startup options</li><li>Automatic Neon host detection (extending connect timeout to 30s for scale-to-zero compute wakeups, retrying transient 57P03 errors while failing fast on 28P01 auth errors)</li><li>Default exclusion of internal Supabase schemas (auth, storage, realtime, vault, extensions, pgsodium, supabase_migrations, etc.)</li><li><strong>Deterministic diff:</strong> .pgseal/schema.lock.json stores canonical JSON with Merkle SHA-256 sub-hashes. On Apple M2, diffing a 500-table / 5,000-column schema takes <strong>0.24 ms/op</strong> (<strong>0.14 ms/op</strong> on unchanged schemas).</li><li><strong>Offline migration lock safety (</strong><strong>pgseal check-sql):</strong> A pure-Go SQL lexer checks 9 rules before merge (SQL-001-SQL-009), including CREATE INDEX without CONCURRENTLY, CONCURRENTLY inside BEGIN..COMMIT, volatile ADD COLUMN DEFAULT, SET NOT NULL without NOT VALID, missing SET lock_timeout, and CREATE TABLE in exposed schemas without ENABLE ROW LEVEL SECURITY.</li><li><strong>Zero-ML table freshness (</strong><strong>pgseal watch):</strong> Tracks pg_stat_user_tables write-activity deltas across 168 weekday×hour seasonal buckets using MAD/IQR with stats-reset and replica guards.</li></ul><pre>- uses: yun87457-web/pgseal@v0 with: mode: drift # drift | rls | check-sql | watch dsn: ${{ secrets.PGSEAL_DATABASE_URL }}</pre><p>The Action downloads the pinned static release binary, verifies its SHA-256 against checksums.txt, posts or updates a single sticky PR comment (&lt;!-- pgseal --&gt;), and safely skips with exit code 0 on fork PRs when secrets are unavailable.</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/how-to-guard-postgresql-supabase-schema-drift-and-rls-without-granting-select-on-any-table"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a2555efc9ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Built a 0-Alloc SimHash Agent Loop Breaker and 86ns Sharded Token Ledger in Go]]></title>
            <link>https://medium.com/@hle62065/how-we-built-a-0-alloc-simhash-agent-loop-breaker-and-86ns-sharded-token-ledger-in-go-d09763e5f9d4?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/d09763e5f9d4</guid>
            <category><![CDATA[stripe]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 23:49:19 GMT</pubDate>
            <atom:updated>2026-11-27T14:42:25.015Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LXCkM_I48PKsx6EL" /></figure><p>Flat-rate AI SaaS pricing breaks in three predictable ways: a customer with a past_due Stripe subscription keeps calling your /v1/chat/completions endpoint, a runaway coding or research agent gets stuck retrying the same failing tool call 80 times in a minute, or a heavy user burns more in frontier model tokens than their monthly subscription brings in.</p><p>Putting a reverse proxy in front of OpenAI, Anthropic, or Gemini sounds simple until you try to inspect multi-megabyte JSON payloads (with embedded screenshots, 32 KB tools definitions, and SSE streams) on the hot path without blowing up latency or container memory.</p><p>Here is how we engineered the hot path of <a href="https://marginswitch.dev/">MarginSwitch</a> ( <a href="https://github.com/marginswitch/marginswitch">GitHub</a>), a self-hosted Go reverse proxy that ties Stripe subscription state to real-time token spend.</p><h3>1. Why json.Unmarshal Fails on the LLM Proxy Hot Path</h3><p>A naive proxy unmarshals every incoming request body into map[string]any to extract the model, customer ID, and recent messages. When an agent sends a 32 KB JSON schema in tools plus a 1.5 MB base64 screenshot in messages, encoding/json allocates thousands of heap objects per request and pushes GC pause times through the roof.</p><p>Instead of unmarshaling the whole body, we wrote a zero-allocation byte scanner ( internal/loopguard/simhash.go) that walks the raw []byte payload directly:</p><ul><li>SkipJSONString jumps over quoted strings using bytes.IndexByte(body[idx:], &#39;&quot;&#39;) while correctly handling odd/even trailing backslash escape counts.</li><li>SkipJSONValue skips over massive &quot;tools&quot; arrays without allocating a single byte, locating only the trailing turn group (up to 4 KB of the head tool-call arguments + 4 KB of the tail tool result, MaxTurnGroupWindow = 8 * 1024).</li><li>Short human acknowledgments (SimHashMinNormBytes = 20 - e.g., &quot;yes&quot;, &quot;ok&quot;, &quot;continue&quot;) bypass the loop guard so legitimate users are never false-positived.</li><li>Over the normalized turn window, we compute a 64-bit SimHash mixed with splitMix64 and compare Hamming distance against a 10-slot ring buffer inside a 60-second window (LoopRingSlots = 10, LoopWindowDuration = 60s, LoopTriggerHits = 6).</li></ul><p>Measured on Apple M2 ( go test -bench=. -benchmem ./internal/loopguard):</p><pre>BenchmarkSimHashTurnGroup_32KBTools_ZeroAlloc-8 474234 2507 ns/op 0 B/op 0 allocs/op BenchmarkSimHashAnthropicOpusSignature_ZeroAlloc-8 292202 5351 ns/op 0 B/op 0 allocs/op BenchmarkHasTrailingAssistantToolThinking_ZeroAlloc-8 399798 3648 ns/op 0 B/op 0 allocs/op</pre><p>Skipping a 32 KB tools block and fingerprinting the active agent turn takes <strong>2.51 µs</strong> with <strong>0 B/op and 0 allocs/op</strong>.</p><h3>2. Tracking Real-Time Spend in 64 Shards of int64 Nanodollars</h3><p>Floating-point dollars ( float64) accumulate rounding drift across millions of sub-cent token settlements, and a single global sync.Mutex becomes a bottleneck under high concurrency.</p><p>In internal/ledger/ledger.go, we made three deliberate choices:</p><ol><li><strong>Integer nanodollars (</strong><strong>int64) with saturating arithmetic:</strong> addSatInt64 and mulSatInt64 clamp at [math.MinInt64, math.MaxInt64] so malformed or huge token counts can never overflow and wrap negative.</li><li><strong>64-shard partitioning (</strong><strong>LedgerShards = 64):</strong> Each tenant hashes deterministically to a shard with bounded per-shard eviction (maxUnmappedTenantsPerShard = 512, maxLoopRingsPerShard = 1024) so unmapped traffic cannot cause unbounded memory growth.</li><li><strong>Billing-period anchoring (</strong><strong>periodAnchorUnix):</strong> Tracks each customer&#39;s actual Stripe billing period start instead of naive YYYY-MM calendar resets, preventing double-dip budget resets across mid-month billing cycles.</li></ol><p>Benchmarked on Apple M2 ( go test -bench=. -benchmem ./internal/ledger):</p><pre>BenchmarkResolveCanonicalID_FastPath-8 258423274 5.171 ns/op 0 B/op 0 allocs/op BenchmarkLedgerReserveAndSettle_64Shards-8 17488737 86.04 ns/op 96 B/op 1 allocs/op</pre><p>Sub-100 nanosecond reserve-and-settle lets the proxy make real-time allow / downgrade / 402 / 429 decisions without adding measurable overhead to LLM calls.</p><h3>3. Preventing OOMs &amp; Vision Token Mispricing with ByteSemaphore</h3><p>When 200 concurrent requests carry large PDFs or base64 screenshots, buffering every body blindly OOM-kills a small 256 MB container.</p><p>In internal/proxy/inspector.go:</p><ul><li><strong>ByteSemaphore</strong> uses a lock-free atomic.Int64 CAS loop (DefaultMaxSingleBufferBytes = 4 MB, DefaultGlobalBufferCapBytes = 64 MB) to cap aggregate buffered request bodies across the entire process. Oversized bodies stream through after inspecting a 64 KB head preview (HeadScanPreviewBytes).</li><li><strong>EstimateInputTokensBase64Aware</strong> distinguishes normal prose (~3.8 bytes/token) from contiguous base64 runs (&gt;= 1024 base64 chars, handling JSON-escaped \/, \r, \n, and URL-safe -/_) so a 2 MB PNG image isn&#39;t mispriced as 500,000 text tokens before the upstream response returns exact usage.</li></ul><h3>4. Fail-Open Reliability &amp; Zero-Webhook Stripe Sync</h3><p>A margin guard must never break healthy paying customers:</p><ul><li><strong>No Stripe webhook server required:</strong> MarginSwitch polls /v1/events with a read-only Stripe key (internal/stripe/syncer.go) and normalizes zero-decimal currencies (JPY, KRW) alongside standard currencies.</li><li><strong>Fail-open Redis sync:</strong> Optional internal Redis RESP2 synchronization shares spend across replicas, falling back gracefully to local sharded state if Redis is unreachable.</li><li><strong>Free Shadow Mode:</strong> Teams can deploy the proxy in shadow mode first to receive per-customer Slack loss receipts without blocking or downgrading a single request until thresholds are calibrated.</li></ul><p>You can explore the source, interactive margin calculator, and Docker/Railway quickstart at <a href="https://marginswitch.dev/">marginswitch.dev</a> or <a href="https://github.com/marginswitch/marginswitch">github.com/marginswitch/marginswitch</a>.</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/how-we-built-a-0-alloc-simhash-agent-loop-breaker-and-86ns-sharded-token-ledger-in-go"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d09763e5f9d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Agency Retainer Spreadsheets Break: Integer-Cent Rollover Ledgers, Effective-Dated Rate Cards &…]]></title>
            <link>https://medium.com/@hle62065/why-agency-retainer-spreadsheets-break-integer-cent-rollover-ledgers-effective-dated-rate-cards-a8f1f72448c1?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8f1f72448c1</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[mondays]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 21:34:27 GMT</pubDate>
            <atom:updated>2026-11-27T17:26:03.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Agency Retainer Spreadsheets Break: Integer-Cent Rollover Ledgers, Effective-Dated Rate Cards &amp; CSV Formula Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ydO6OyALdNkXFD31" /></figure><p>Every agency starts tracking client retainers in a spreadsheet or a couple of Numbers columns on a monday.com board. It holds up fine when you have three clients, one flat hourly rate, and nobody asks what happened four months ago.</p><p>Then reality shows up. A senior engineer gets a raise on May 15. A client negotiates a 25% unused-hours rollover cap that expires every cycle. Someone logs 10 minutes on a $175/hr retainer. And at month-end, your operations manager exports the board to CSV and opens it in Excel.</p><p>Suddenly Q1 profit margins shift retroactively, an 80% burn warning fails to trigger because of IEEE 754 drift, and an unescaped task name turns into a live spreadsheet formula. Here are the five concrete failure modes we had to engineer around when building a retainer P&amp;L engine in TypeScript ( financialEngine.ts and csvExport.ts).</p><p>Storing hours as floats ( 0.16666667) and dollars as floats ( 175.00) guarantees rounding mismatches between line items and invoice totals. We represent every duration as integer minutes and every monetary value as integer cents ( rateCentsPerHr, amountCents, monthlyFeeCents), with expense markups stored in integer basis points ( 1000 bps = 10%).</p><p>Half-up rounding stays completely inside integer math:</p><pre>export function calcAmountCents(durationMinutes: number, rateCentsPerHr: number): number { if (!Number.isFinite(durationMinutes) || !Number.isFinite(rateCentsPerHr)) { return 0; } if (durationMinutes &lt;= 0 || rateCentsPerHr &lt;= 0) { return 0; } return Math.floor((durationMinutes * rateCentsPerHr + 30) / 60); } export function calcExpenseBillableCents( amountCents: number, billable: boolean, markupBps: number ): number { if (!billable || !Number.isFinite(amountCents) || amountCents &lt;= 0) { return 0; } const safeMarkup = Number.isFinite(markupBps) &amp;&amp; markupBps &gt;= 0 ? markupBps : 0; return Math.floor((amountCents * (10000 + safeMarkup) + 5000) / 10000); }</pre><p>The subtler floating-point bug shows up in burn alerts. If you write (burned / allowance) * 100 &gt;= warningThresholdPct, floating-point division can yield 79.99999999999999 &gt;= 80, silently missing the threshold on the exact minute a retainer hits 80%.</p><p>In computeBurnMetrics, we never compare floating percentages at all. We cross-multiply integers and compute the display percentage separately:</p><pre>export function computeBurnMetrics(params: { num: number; den: number; configured: boolean; warningThresholdPct: number; billingModel: BillingModel; }): { burnPct: number | null; burnStatus: BurnStatus } { const { num, den, configured, warningThresholdPct, billingModel } = params; if (!configured) return { burnPct: null, burnStatus: &quot;unconfigured&quot; }; if (den &lt;= 0) { if (billingModel === &quot;time_and_materials&quot;) { return { burnPct: null, burnStatus: &quot;healthy&quot; }; } return { burnPct: null, burnStatus: num &gt; 0 ? &quot;over_budget&quot; : &quot;healthy&quot; }; } const burnPct = Math.floor((num * 1000) / den) / 10; let burnStatus: BurnStatus; if (num &gt;= den) { burnStatus = &quot;over_budget&quot;; } else if (num * 100 &gt;= den * warningThresholdPct) { burnStatus = &quot;warning&quot;; } else { burnStatus = &quot;healthy&quot;; } return { burnPct, burnStatus }; }</pre><p>Notice the den &lt;= 0 branch too: an uncapped time_and_materials board stays &quot;healthy&quot;, whereas a retainer or fixed-fee board with zero allowance and logged work trips &quot;over_budget&quot; immediately instead of dividing by zero into Infinity or NaN.</p><p>The fastest way to corrupt agency reporting is a single mutable rate cell per employee. Bump a designer’s cost rate from $65/hr to $75/hr in June and your spreadsheet quietly rewrites January through May, shrinking historical gross profit you already closed in accounting.</p><p>Instead, every rate card carries a strict ISO effectiveFrom date (&quot;YYYY-MM-DD&quot;, validated with a UTC calendar round-trip in isValidIsoDate so &quot;2026-02-30&quot; is rejected outright). When pricing a time entry, resolveRateCard filters to c.effectiveFrom &lt;= lookup.workDate first, then resolves across four tiers in strict precedence order: user -&gt; role (case-insensitive) -&gt; board_default -&gt; config_default. Within each tier, pickLatest selects the card with the newest effectiveFrom.</p><p>Mid-month promotions, contractor swaps, and annual client rate increases all work cleanly without touching a single historical line item.</p><p>Retainer rollover cannot be calculated by looking at one month in isolation. Month N’s effective allowance is openingRolloverMinutes + includedMinutes, where openingRolloverMinutes depends on Month N-1&#39;s unused minutes after applying the contract&#39;s cap policy.</p><p>We replay the chain sequentially in computeBoardPnl from cycleStartMonth up to the requested month, bounded by MAX_ROLLOVER_LOOKBACK_MONTHS = 36 so a typo in cycleStartMonth (say 1999-01) cannot force a 300-iteration loop per request:</p><pre>function computeRolloverOutMinutes( unusedMinutes: number, includedMinutes: number, policy: BoardConfigDoc[&quot;rolloverPolicy&quot;], capValue: number ): number { if (unusedMinutes &lt;= 0 || policy === &quot;none&quot;) return 0; if (policy === &quot;unlimited&quot;) return unusedMinutes; if (policy === &quot;capped_percent&quot;) { const cap = Math.floor((includedMinutes * capValue) / 100); return Math.min(unusedMinutes, Math.max(0, cap)); } if (policy === &quot;capped_hours&quot;) { const cap = capValue * 60; return Math.min(unusedMinutes, Math.max(0, cap)); } return 0; }</pre><p>One contract detail that trips up naive implementations: under capped_percent, the cap is computed against includedMinutes, not effectiveAllowanceMinutes. If you cap against the combined allowance, unused hours compound month over month and your &quot;25% rollover cap&quot; quietly drifts above 33% of the monthly retainer. Each iteration computes mUnused = Math.max(0, mAllowance - mBurned), mOverage = Math.max(0, mBurned - mAllowance), and mExpired = Math.max(0, mUnused - mRolloverOut), then slices the trailing 6 months ( MAX_ROLLOVER_LEDGER_ROWS = 6) for the ledger table while preserving the exact multi-month carry-in.</p><p>On monday.com, the native Time Tracking column is gated to Pro and Enterprise plans. Smaller agencies on Standard plans log hours in a plain Numbers column or inside an app’s built-in time log table, and teams mid-migration often run both at once.</p><p>mergeTimeEntries normalizes built_in_logs, native_time_tracking, and numbers_column into a single NormalizedTimeEntry[] array. Built-in logs register their idempotencyKey in seenExternalIds, and external entries carrying a matching externalId are skipped. That lets &quot;combined&quot; mode pull from all three sources without double-counting mirrored entries, while silently dropping invalid dates or non-positive durations.</p><p>Once your P&amp;L numbers are clean, finance exports them to CSV and opens them in Excel or imports them into QuickBooks. Every item name, time-log note, and expense memo is user-controlled text. If a client-submitted board item starts with =, +, -, @, \t, or \r, Excel happily treats it as a formula or DDE payload (=cmd|&#39; /C calc&#39;!A0).</p><p>In csvExport.ts, every cell runs through neutralizeCsvCell before RFC 4180 quoting and \r\n joining:</p><pre>const FORMULA_PREFIX_RE = /^[=+\-@\t\r]/; export function neutralizeCsvCell(val: unknown): string { if (val === null || val === undefined) { return &quot;&quot;; } let str = String(val); if (FORMULA_PREFIX_RE.test(str)) { str = `&#39;${str}`; } const needsQuotes = /[&quot;,\r\n]/.test(str) || str.startsWith(&quot; &quot;) || str.endsWith(&quot; &quot;); if (needsQuotes) { return `&quot;${str.replace(/&quot;/g, &#39;&quot;&quot;&#39;)}&quot;`; } return str; }</pre><p>We also strip unsafe filename characters via sanitizeCsvFilename before setting Content-Disposition. One honest tradeoff to note in the implementation above: because formatCsvRow passes every cell through neutralizeCsvCell, a negative gross profit formatted as &quot;-450.00&quot; by centsToDecimal also matches the leading - and gets prefixed as &#39;-450.00. That guarantees zero injection surface across every column, though if your accountants rely on Excel SUM() over negative profit columns without re-typing, you should whitelist strict /^-?\d+(\.\d+)?$/ numeric strings from the prefix rule while keeping all free-text fields locked down.</p><p><em>This financial engine runs behind </em><a href="https://retainerflow-landing.vercel.app/"><em>RetainerFlow</em></a><em>, our retainer burn, rollover, and margin tracking app for monday.com agencies. If you want to sanity-check rollover caps, overage rates, and effective hourly margins on your own retainer numbers before touching a board, try the free </em><a href="https://retainerflow-landing.vercel.app/tools/retainer-burn-rollover-calculator"><em>Retainer Burn &amp; Rollover Calculator</em></a><em>.</em></p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/agency-retainer-rollover-ledgers-effective-dated-rate-cards-csv-injection"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8f1f72448c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Lock monday.com Columns After Approval Without Triggering Infinite Webhook Revert Loops]]></title>
            <link>https://medium.com/@hle62065/how-to-lock-monday-com-columns-after-approval-without-triggering-infinite-webhook-revert-loops-220899881df9?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/220899881df9</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 21:31:14 GMT</pubDate>
            <atom:updated>2026-11-26T21:54:19.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2kHFzQ62WqUOyQHB" /></figure><p>If you have ever built an approval workflow on monday.com, you hit the same wall in week one. Stakeholders want a simple rule: once Finance or Legal signs off on an item, nobody should be able to quietly bump the budget from $12,000 to $18,000 or swap the attached contract PDF.</p><p>Native column permissions are static. You cannot say “allow edits while Pending, lock these four columns once Approved” without enforcing the lock in your backend via webhooks.</p><p>So you subscribe to change_column_value, detect an unauthorized edit on a locked item, and call change_column_value via GraphQL to revert it. Ten minutes into staging, your server loops itself into a rate-limit ban.</p><p>Your revert mutation fires another change_column_value webhook right back at you. Comparing raw JSON strings will not stop it: monday.com injects volatile keys ( changed_at, updated_at, post_id), serializes numbers as &quot;100&quot; in one path and 100 in another, and shifts status cells between { index: 1 } and { label: &quot;Approved&quot; }.</p><p>Here is the three-layer defense we shipped in TypeScript, plus the optimistic concurrency control and signed audit receipts behind it.</p><p>Layer 1: Deterministic 1-Hop Echo Termination</p><p>Before touching GraphQL, handleTamperWebhook runs a sub-5ms fast path: load the approval doc from MongoDB and bail if !approval || !approval.isLocked, or if the column is outside protectedColumnIds, statusColumnId, and NON_REVERTIBLE_TYPES. Normal board edits cost zero GraphQL calls.</p><p>For locked columns, we stop the revert echo in a single hop by running both the stored approval snapshot and incoming webhook payloads through canonicalizeColumnValue ( tamperGuard.ts):</p><pre>const VOLATILE_KEYS = new Set([&quot;changed_at&quot;, &quot;updated_at&quot;, &quot;post_id&quot;]); const NON_REVERTIBLE_TYPES = new Set([&quot;file&quot;, &quot;files&quot;, &quot;formula&quot;, &quot;mirror&quot;]); function stripVolatileAndSort(input: unknown): unknown { if (input === null || input === undefined) return null; if (Array.isArray(input)) return input.map((v) =&gt; stripVolatileAndSort(v)); if (typeof input === &quot;object&quot;) { const out: Record&lt;string, unknown&gt; = {}; for (const [k, v] of Object.entries(input as Record&lt;string, unknown&gt;) .filter(([k]) =&gt; !VOLATILE_KEYS.has(k)) .sort(([a], [b]) =&gt; a.localeCompare(b))) { out[k] = stripVolatileAndSort(v); } return out; } return input; } export function canonicalizeColumnValue(columnType: string, rawValue: unknown): string { const parsed = parseJsonIfString(rawValue); if (parsed === null || parsed === undefined || parsed === &quot;&quot;) return JSON.stringify(null); const t = columnType.toLowerCase(); if (t === &quot;numbers&quot; || t === &quot;numeric&quot;) { if (typeof parsed === &quot;number&quot;) return JSON.stringify(String(parsed)); if (typeof parsed === &quot;string&quot;) { const n = Number(parsed); return JSON.stringify(Number.isFinite(n) ? String(n) : parsed.trim()); } } if (t === &quot;status&quot; || t === &quot;color&quot;) { if (typeof parsed === &quot;object&quot; &amp;&amp; parsed !== null) { const obj = parsed as Record&lt;string, unknown&gt;; if (obj.index !== undefined) return JSON.stringify({ index: Number(obj.index) }); if (obj.label !== undefined) return JSON.stringify({ label: String(obj.label) }); } } return JSON.stringify(stripVolatileAndSort(parsed)); }</pre><p>When a user edits a locked cell, incomingNorm !== expectedNorm, so we write expectedNorm back. When monday.com echoes our revert, canonicalizeColumnValue strips the fresh changed_at, sorts keys, matches expectedNorm identically, and exits with { action: &quot;ignore_echo&quot; }.</p><p>One real quirk in buildLockedColumnSnapshot: GraphQL reads on status columns sometimes omit label in raw value JSON while populating text. We prefer col.text when snapshotting and pin statusColumnId to JSON.stringify({ label: &quot;Approved&quot; }) so our own post-approval status sync never false-positives.</p><p>Layer 2: Atomic 15-Second Revert Leases</p><p>Echo canonicalization stops clean ping-pong loops, not a user editing a locked cell four times in two seconds or duplicate webhooks arriving while the first GraphQL revert is still in flight. Without a lock, concurrent handlers both miss the echo check, fire duplicate reverts, and spam the Updates feed.</p><p>We gate every revert behind a 15-second atomic lease keyed by rev:${accountId}:${event.itemId}:${event.columnId} with a SHA-256 targetHash. In MongoDB, acquireRevertLease runs a single findOneAndUpdate upsert backed by a TTL index on lockedUntil ( expireAfterSeconds: 0):</p><pre>const doc = await this.revertLeases.findOneAndUpdate( { _id: params.key, $or: [{ lockedUntil: { $lte: now } }, { lockedUntil: { $exists: false } }], }, { $set: { targetHash: params.targetHash, lockedUntil: nextExpiry } }, { upsert: true, returnDocument: &quot;after&quot; } ); return doc?.lockedUntil.getTime() === nextExpiry.getTime();</pre><p>If an active lease exists, the filter misses and MongoDB throws a duplicate-key error on upsert. We catch it, return false, and exit with { action: &quot;suppressed_by_lease&quot; }.</p><p>Layer 3: Forensic Diffing for Non-Revertible File Columns</p><p>You cannot revert a FileValue column through change_column_value, and monday.com&#39;s public_url links expire after an hour, so persisting them is both broken and unsafe (we guard against it with assertNoTransientPublicUrl).</p><p>Instead, we treat file, files, formula, and mirror columns as forensic targets. At approval time we store lockedFileAssets ( columnId, assetId, name, fileSize). On a file webhook, extractWebhookFileAssets normalizes monday&#39;s inconsistent payload keys ( assetId ?? asset_id ?? file_id ?? id and clear_all: true) and diffs asset IDs:</p><pre>const lockedIds = new Set(lockedForCol.map((f) =&gt; f.assetId)); const incomingIds = new Set(incomingFiles.map((f) =&gt; f.assetId)); const removedFiles = lockedForCol .filter((f) =&gt; !incomingIds.has(f.assetId)) .map((f) =&gt; f.name || f.assetId); const addedFiles = incomingFiles .filter((f) =&gt; !lockedIds.has(f.assetId)) .map((f) =&gt; f.name || f.assetId); if (removedFiles.length === 0 &amp;&amp; addedFiles.length === 0) { return { action: &quot;ignore_echo&quot; }; }</pre><p>If anything changed, we acquire the lease, flip the record via CAS to status: &quot;tampered&quot; ( isLocked: false), move the board status to &quot;Tampered - Re-Approval Required&quot;, post buildFileTamperAlertHtml listing the exact added and removed filenames, and fire a tamper trigger.</p><h3>Optimistic CAS Quorum (recordApprovalDecisionWithCas)</h3><p>On a 2-of-3 quorum stage, two reviewers clicking Approve within 50ms will clobber each other under naive read-modify-write. recordApprovalDecisionWithCas ( approvals.ts) runs a bounded retry loop ( maxRetries = 6): read ItemApprovalDoc and version, run assertCanApprove (blocking viewers, unassigned guests, self-approval, and duplicate votes), clone stages via structuredClone, advance sequential or contiguous parallel stages, and commit with saveApprovalCas(candidateDoc, current.version). MongoDB executes findOneAndUpdate({ _id: key, version: expectedVersion }, { $set: ..., $inc: { version: 1 } }). On ConcurrencyConflictError, the loop reloads and retries cleanly.</p><p>HMAC-SHA256 Audit Receipts in monday Updates</p><p>Board owners can edit or delete plain “Approved” comments in monday Updates. On every vote, we hash sorted columnId:assetId:name:fileSize into filesDigest, sign accountId:itemId:receiptId:actorUserId:decision:timestampIso:canonicalDigest with HMAC-SHA256 to print an 8-character shortVerifyCode inside an HTML-escaped table ( buildApprovalReceiptHtml), then hash and sign the full rendered HTML ( htmlDigest / hmacSig).</p><p>Later, verifyReceiptsIntegrity checks live Updates and marks each receipt VERIFIED, TAMPERED, DELETED, or PENDING_SYNC (with a 15-second grace window for fresh writes). Because monday&#39;s HTML sanitizer sometimes rewrites tags or whitespace, it falls back to comparing SHA-256 of normalizeReceiptText(found.body) against textDigest before flagging TAMPERED.</p><p><em>These patterns run in production inside </em><a href="https://approveflow-landing.vercel.app/"><em>ApproveFlow</em></a><em>, our multi-stage approval and tamper-protection app for monday.com. If you want to quantify how much cycle time stalled sign-offs cost on your boards, try the free </em><a href="https://approveflow-landing.vercel.app/tools/approval-bottleneck-calculator"><em>Approval Bottleneck Calculator</em></a><em>.</em></p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/locking-monday-com-columns-after-approval-without-webhook-revert-loops"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=220899881df9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parsing Live SEC EDGAR Form D Startup Funding & Form 4 Cluster Buys in Pure Go (Open Nov 2026…]]></title>
            <link>https://medium.com/@hle62065/parsing-live-sec-edgar-form-d-startup-funding-form-4-cluster-buys-in-pure-go-open-nov-2026-8a5516fef7ae?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a5516fef7ae</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[sec]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:58:11 GMT</pubDate>
            <atom:updated>2026-11-26T21:16:29.700Z</atom:updated>
            <content:encoded><![CDATA[<h3>Parsing Live SEC EDGAR Form D Startup Funding &amp; Form 4 Cluster Buys in Pure Go (Open Nov 2026 Dataset)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YFYDtWDtw46ykXue" /></figure><p>Raw SEC EDGAR feeds are free and authoritative, yet notoriously noisy for software engineers and analysts:</p><ul><li><strong>Form D</strong> is flooded with pooled investment funds, hedge funds, and real-estate SPVs that drown out operating startups.</li><li><strong>Form 4</strong> splits a single executive’s open-market purchase across 10–30 partial fills and mixes in pre-scheduled 10b5–1 sales.</li><li><strong>Form 8-K</strong> hides the actual announcement inside an attached EX-99.1 press release exhibit.</li></ul><p>To solve this cleanly without paywalled aggregators or headless browsers, we built a pure-Go SEC EDGAR XML/JSON extraction engine and published an open live snapshot collected on <strong>November 24, 2026</strong>.</p><h3>Open Snapshot Highlights (Collected 2026–11–24)</h3><ul><li><strong>33 SPV-filtered Form D filings</strong> totaling <strong>$896.2M</strong> in capital sold across US operating issuers.</li><li><strong>47 VWAP-consolidated Form 4 insider trades</strong> on major US exchanges (OTC filtered out).</li><li><strong>3 multi-insider open-market cluster buys</strong> detected with joint-filer deduplication:</li><li><strong>30 Form 8-K corporate events</strong>, including <strong>17 filings</strong> with automatically discovered and cleaned EX-99.1 press release exhibits.</li></ul><h3>Explore the Open Dataset (MIT CSV &amp; JSON)</h3><h3>Try the 6-Tool MCP Server (Zero-Key Free Trial)</h3><pre>{ &quot;mcpServers&quot;: { &quot;sec-edgar-funding-insider&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;filingsignal-sec-edgar-mcp&quot;] } } }</pre><p>Runs live SEC EDGAR lookups out of the box with no API key (10 free trial calls/day per IP). For full SPV-filtered batch runs, VWAP cluster detection, and full EX-99.1 text extraction, set APIFY_TOKEN ( <a href="https://apify.com/spiky_closet/sec-funding-insider-mcp">https://apify.com/spiky_closet/sec-funding-insider-mcp</a>).</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/parsing-live-sec-edgar-form-d-startup-funding-form-4-cluster-buys-in-pure-go-open-nov-2026-dataset"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a5516fef7ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[91 of 100 Major SaaS & DTC Brands Ran Active Google Ads This Week — Browserless Transparency RPC…]]></title>
            <link>https://medium.com/@hle62065/91-of-100-major-saas-dtc-brands-ran-active-google-ads-this-week-browserless-transparency-rpc-1425f002e367?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/1425f002e367</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[google-ads]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[ppc]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:56:54 GMT</pubDate>
            <atom:updated>2026-11-26T21:15:49.495Z</atom:updated>
            <content:encoded><![CDATA[<h3>91 of 100 Major SaaS &amp; DTC Brands Ran Active Google Ads This Week — Browserless Transparency RPC Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UIjT7Z9HjAAZ7gf6" /></figure><p>Google publishes a public BigQuery dataset for Ads Transparency Center, which is great for historical SQL queries — but commercial ad coverage in BigQuery is restricted to the EEA and Türkiye. If you need live global Search, YouTube, and Display creatives by competitor domain, most teams fall back to slow Playwright scrapers.</p><p>In November 2026 ( 2026-10-27 to 2026-11-25), we screened <strong>100 major SaaS and DTC domains</strong> directly via Google Ads Transparency Center&#39;s underlying RPC endpoints using a browserless Go engine.</p><h3>Key Findings (Last 30 Days Snapshot, N = 100)</h3><ul><li><strong>91 / 100 domains</strong> ran active Google Ads campaigns within the last 7 days (activityStatus: active_7d), including shopify.com and other major SaaS/DTC advertisers.</li><li>Screening domains in batch (POST /screen) resolves verified advertiser IDs, match confidence scores, ad format mix (Search, YouTube, Display), and EU DSA reach/impression bounds in milliseconds per domain.</li></ul><h3>Browse the Open Dataset (MIT CSV)</h3><h3>Connect via MCP (Zero-Key Free Trial)</h3><pre>{ &quot;mcpServers&quot;: { &quot;google-ads-transparency&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;adpulse-google-ads-transparency-mcp&quot;] } } }</pre><p>Works immediately with no API key for free trial lookups. Set APIFY_TOKEN ( <a href="https://apify.com/spiky_closet/google-ads-transparency-scraper">https://apify.com/spiky_closet/google-ads-transparency-scraper</a>) or RAPIDAPI_KEY ( <a href="https://rapidapi.com/HYunLe/api/google-ads-transparency-creative-spy">https://rapidapi.com/HYunLe/api/google-ads-transparency-creative-spy</a>) for live global creative search, structured ad copy extraction, and scheduled competitor monitoring.</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/91-of-100-major-saas-dtc-brands-ran-active-google-ads-this-week-browserless-transparency-rpc-guide"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1425f002e367" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting GTM Ad Pixels & Enterprise SaaS via DNS Without a Headless Browser (100-Domain Benchmark)]]></title>
            <link>https://medium.com/@hle62065/detecting-gtm-ad-pixels-enterprise-saas-via-dns-without-a-headless-browser-100-domain-benchmark-df88dcfa3b43?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/df88dcfa3b43</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[gtm]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:56:47 GMT</pubDate>
            <atom:updated>2026-11-26T21:15:09.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FdWE3XLCvOisiioo" /></figure><p>Traditional technographic scanners break in two common places: cookie consent banners prevent client-side ad pixels from firing in a headless browser, and enterprise WAFs (Cloudflare/Akamai) return HTTP 403 to automated HTTP clients.</p><p>In November 2026, we ran a browserless HTTP + static GTM + DNS ( MX, TXT, DMARC) scan across <strong>100 high-growth B2B and consumer domains</strong> to measure what signals stay visible without executing JavaScript.</p><h3>Benchmark Results (Nov 2026 Open Dataset, N = 100)</h3><ul><li><strong>100 / 100 domains</strong> returned verified internal SaaS &amp; email infrastructure signals via public DNS records (MX/TXT/DMARC) - completely immune to HTTP 403 WAF blocks.</li><li><strong>61 / 100 domains</strong> had confirmed paid advertising conversion pixels (filtering out publisher ad scripts like AdSense so hasAdPixels reflects true ad spend).</li><li><strong>48 / 100 domains</strong> loaded Google Tag Manager (GTM-*) containers whose static payloads can be inspected directly without triggering browser consent states.</li><li>Every scan emits explicit htmlInspected and scanConfidence flags so downstream CRMs never confuse a WAF-blocked HTML fallback with a domain having zero ad pixels.</li></ul><h3>Explore the Open Dataset (MIT CSV)</h3><h3>Try via MCP (Zero-Key Free Trial)</h3><pre>{ &quot;mcpServers&quot;: { &quot;tech-stack-ad-pixel&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;stackscope-tech-stack-ad-pixel-mcp&quot;] } } }</pre><p>Runs 10 free live scans/day per IP with zero API key. For full 180+ technology detection, static GTM unpacking, /ads.txt seller networks, and bulk batch scans, add APIFY_TOKEN ( <a href="https://apify.com/spiky_closet/tech-stack-ad-pixel-detector">https://apify.com/spiky_closet/tech-stack-ad-pixel-detector</a>) or RAPIDAPI_KEY ( <a href="https://rapidapi.com/HYunLe/api/website-tech-stack-ad-pixels-and-saas-detector">https://rapidapi.com/HYunLe/api/website-tech-stack-ad-pixels-and-saas-detector</a>).</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/detecting-gtm-ad-pixels-enterprise-saas-via-dns-without-a-headless-browser-100-domain-benchmark"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df88dcfa3b43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Analyzed 9,932 Live Open Roles Across 81 AI & Tech Companies — Salary Medians & ATS Breakdown]]></title>
            <link>https://medium.com/@hle62065/we-analyzed-9-932-live-open-roles-across-81-ai-tech-companies-salary-medians-ats-breakdown-567627df142d?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/567627df142d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[tech-career]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:56:04 GMT</pubDate>
            <atom:updated>2026-11-26T21:14:21.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*78AAggxFEKZslh19" /></figure><p>Most hiring-signal pipelines still scrape login-walled job aggregators with headless browsers and residential proxies. In practice, modern tech companies publish structured job boards directly through official public ATS JSON APIs.</p><p>In November 2026, we queried live public ATS endpoints across <strong>81 AI and software companies</strong> to measure open role counts, structured US pay-transparency salaries, and ATS market share.</p><h3>Live Snapshot Highlights (Nov 2026, N = 81 Companies)</h3><ul><li><strong>9,932 live open job postings</strong> indexed directly from public ATS feeds.</li><li><strong>6,437 postings (64.8%)</strong> include parseable USD salary ranges.</li><li><strong>$206,750/yr</strong> median of company-level median salaries across companies publishing compensation.</li><li><strong>Standout live benchmarks:</strong></li><li>anthropic.com (Greenhouse): <strong>500 open roles</strong>, <strong>$335,000</strong> median midpoint USD</li><li>openai.com (Ashby): <strong>876 open roles</strong>, <strong>$307,500</strong> median midpoint USD</li><li>launchdarkly.com (Greenhouse): <strong>33 open roles</strong>, <strong>$285,650</strong> median midpoint USD</li><li><strong>ATS split in this cohort:</strong> <strong>46 Ashby</strong>, <strong>31 Greenhouse</strong>, and <strong>4 SmartRecruiters</strong>.</li></ul><h3>Browse the Open Dataset (MIT CSV)</h3><h3>Connect Directly to Your AI Agent or n8n (Zero-Key Free Trial)</h3><p>The MCP server runs via npx with zero dependencies and includes a keyless free trial mode (10 live lookups/day per IP):</p><pre>{ &quot;mcpServers&quot;: { &quot;ats-jobs-hiring-intel&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;rolesignal-ats-jobs-intel-mcp&quot;] } } }</pre><p>For full 6-ATS batch screening, parsed salary bands, freshness buckets ( active_7d vs stale), and 135+ JD tech-stack signals, set APIFY_TOKEN ( <a href="https://apify.com/spiky_closet/ats-jobs-hiring-intel">https://apify.com/spiky_closet/ats-jobs-hiring-intel</a>) or RAPIDAPI_KEY ( <a href="https://rapidapi.com/HYunLe/api/unified-multi-ats-jobs-salary-hiring-intelligence">https://rapidapi.com/HYunLe/api/unified-multi-ats-jobs-salary-hiring-intelligence</a>).</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/we-analyzed-9-932-live-open-roles-across-81-ai-tech-companies-salary-medians-ats-breakdown"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=567627df142d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[80 of 100 Top Dev & AI Companies Already Ship /llms.txt — Open Benchmark + Browserless MCP]]></title>
            <link>https://medium.com/@hle62065/80-of-100-top-dev-ai-companies-already-ship-llms-txt-open-benchmark-browserless-mcp-9636f88f8b4c?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/9636f88f8b4c</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 20:55:00 GMT</pubDate>
            <atom:updated>2026-11-26T21:13:10.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JYF6BnzABDh1Rb35" /></figure><p>In November 2026, we ran a browserless HTTP + DNS audit across <strong>100 developer and AI software domains</strong> to measure two practical questions for B2B enrichment and agent workflows:</p><ol><li>How many modern tech sites actually publish /llms.txt today?</li><li>How much structured commercial data (contacts, pricing tiers, free-tier flags, and mail infrastructure) can be extracted without spinning up a headless browser?</li></ol><h3>Key Findings (Nov 2026 Open Dataset, N = 100)</h3><ul><li><strong>80 / 100 domains ship </strong><strong>/llms.txt</strong> - including stripe.com, cloudflare.com, vercel.com, supabase.com, neon.tech, resend.com, mintlify.com, and posthog.com.</li><li><strong>94 / 100 publish public </strong><strong>/pricing pages</strong> with structured plan signals.</li><li><strong>75 / 100 offer a free tier</strong>, and <strong>51 / 100 advertise usage-based pricing</strong>.</li><li><strong>Conditional freshness matters</strong>: Fetching /llms.txt with If-None-Match / If-Modified-Since (304 Not Modified) while isolating /pricing as live no-cache avoids serving stale pricing tiers when upstream Cache-Control TTLs are long.</li></ul><h3>Explore the Open Dataset (MIT CSV &amp; JSON)</h3><p>You can filter all 100 companies interactively or download the raw MIT-licensed dataset here:</p><h3>Try It in Claude Desktop, Cursor, or CLI (Zero-Key Free Trial)</h3><p>We packaged the browserless Go extractor as a zero-dependency Node.js stdio MCP server on npm. It works out of the box with a built-in keyless free trial (10 live calls/day per IP):</p><pre>{ &quot;mcpServers&quot;: { &quot;website-contacts-pricing&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;sitebrief-website-contacts-pricing-mcp&quot;] } } }</pre><p>For bulk batch enrichment (up to thousands of domains/month), you can connect either an APIFY_TOKEN ( <a href="https://apify.com/spiky_closet/website-contacts-pricing-intel">https://apify.com/spiky_closet/website-contacts-pricing-intel</a>) or a RAPIDAPI_KEY ( <a href="https://rapidapi.com/HYunLe/api/website-contacts-socials-pricing-llm-brief-api">https://rapidapi.com/HYunLe/api/website-contacts-socials-pricing-llm-brief-api</a>).</p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/80-of-100-top-dev-ai-companies-already-ship-llms-txt-open-benchmark-browserless-mcp"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9636f88f8b4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping Lever Career Pages (api.lever.co/v0/postings):]]></title>
            <link>https://medium.com/@hle62065/scraping-lever-career-pages-api-lever-co-v0-postings-80b8f3e1cbe6?source=rss-50f093a9f254------2</link>
            <guid isPermaLink="false">https://medium.com/p/80b8f3e1cbe6</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[DevSignal Notes]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 01:19:06 GMT</pubDate>
            <atom:updated>2026-11-26T21:50:53.069Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scraping Lever Career Pages (api.lever.co/v0/postings): Millisecond Dates, Split JDs, and Salary Fallbacks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mBptU93fn7wHSCOH" /></figure><p>Lever’s public postings API is one of the easiest ATS endpoints to query, right up until you notice your job dates are in the year 58,000 and half your job descriptions are missing their requirements section.</p><p>The endpoint itself needs no auth:</p><pre>curl -sS &quot;https://api.lever.co/v0/postings/palantir?mode=json&quot;</pre><p>Always include ?mode=json. Without it, or with certain Accept headers, Lever can serve an HTML listing instead of JSON. And unlike Greenhouse ({&quot;jobs&quot;: [...]}) or Ashby ({&quot;jobs&quot;: [...]}), Lever returns a <strong>bare top-level JSON array</strong> ([]), not a wrapper object.</p><p>Here are the four concrete quirks we had to handle in our Go parser ( fetchLever) so Lever rows line up cleanly with Ashby, Greenhouse, and Workday.</p><h3>1. createdAt is Unix milliseconds, not seconds or ISO-8601</h3><p>Greenhouse and Ashby give you RFC3339 strings. Workday gives you &quot;Posted 4 Days Ago&quot;. Lever gives you a 13-digit Unix millisecond integer:</p><pre>{ &quot;id&quot;: &quot;a1b2c3d4-...&quot;, &quot;text&quot;: &quot;Senior Backend Engineer&quot;, &quot;createdAt&quot;: 1763510400000 }</pre><p>Passing createdAt into time.Unix(raw.CreatedAt, 0) (or Python&#39;s datetime.fromtimestamp(ts) without dividing by 1000) either throws an overflow error or produces absurd future timestamps. Use time.UnixMilli in Go:</p><pre>pub := &quot;&quot; if raw.CreatedAt &gt; 0 { pub = time.UnixMilli(raw.CreatedAt).UTC().Format(time.RFC3339) }</pre><p>Once normalized to RFC3339 UTC, you can compute postedDaysAgo and filter out stale evergreen postings (&gt; 90 days old) using the exact same freshness logic as every other ATS.</p><h3>2. The job description is split across three separate fields</h3><p>This is the mistake almost every first-time Lever scraper makes. If you read only descriptionPlain (or description), you usually get just the two-paragraph company intro.</p><p>Lever splits a single job posting into three parts:</p><ol><li>descriptionPlain / description: the intro section</li><li>lists[]: an array of {&quot;text&quot;: &quot;Requirements&quot;, &quot;content&quot;: &quot;&lt;li&gt;5+ years Go...&lt;/li&gt;&quot;} blocks where the actual skills, tech stack, and responsibilities live</li><li>additionalPlain: the closing block where companies almost always put EEO text and state pay-transparency salary ranges</li></ol><p>If you only scan descriptionPlain, you miss most tech keywords and almost every prose salary band. Reassembling the full posting before extracting skills or salaries takes 15 lines of Go:</p><pre>var descParts []string if raw.DescriptionPlain != &quot;&quot; { descParts = append(descParts, raw.DescriptionPlain) } else if raw.Description != &quot;&quot; { descParts = append(descParts, CleanHTMLToText(raw.Description)) } for _, lst := range raw.Lists { if lst.Text != &quot;&quot; { descParts = append(descParts, lst.Text) } if lst.Content != &quot;&quot; { descParts = append(descParts, CleanHTMLToText(lst.Content)) } } if raw.AdditionalPlain != &quot;&quot; { descParts = append(descParts, raw.AdditionalPlain) } fullPlain := strings.Join(descParts, &quot;\n&quot;)</pre><p>Notice that lists[].content is HTML even when descriptionPlain is present, so it still needs tag stripping before you run keyword matching.</p><h3>3. Check both categories.location and categories.allLocations</h3><p>For hybrid or multi-hub roles, categories.location holds only the primary office string (e.g., &quot;New York, NY&quot;), while additional offices sit in categories.allLocations[]. Also note that Lever exposes workplaceType (&quot;remote&quot;, &quot;hybrid&quot;, &quot;onsite&quot;) at the top level of the posting rather than inside categories, whereas commitment (&quot;Full-time&quot;), department, and team live inside categories.</p><h3>4. Structured salaryRange with a prose fallback</h3><p>Lever supports an optional structured salaryRange object:</p><pre>&quot;salaryRange&quot;: { &quot;min&quot;: 165000, &quot;max&quot;: 205000, &quot;currency&quot;: &quot;USD&quot;, &quot;interval&quot;: &quot;per-year-salary&quot; }</pre><p>In practice, plenty of Lever boards leave salaryRange as null and paste the range inside additionalPlain instead. And when salaryRange is populated, interval varies (&quot;per-year-salary&quot;, &quot;per-hour-wage&quot;, &quot;per-month-salary&quot;), so you still need to normalize periods and check plausibility before storing annual USD figures:</p><pre>if raw.SalaryRange != nil &amp;&amp; raw.SalaryRange.Min &gt; 0 &amp;&amp; raw.SalaryRange.Max &gt;= raw.SalaryRange.Min { cur := normalizeCurrency(raw.SalaryRange.Currency, &quot;&quot;) per := inferSalaryPeriod(raw.SalaryRange.Interval, raw.SalaryRange.Min, raw.SalaryRange.Max) if isPlausibleSalary(raw.SalaryRange.Min, raw.SalaryRange.Max, per) { info := buildSalaryInfo(raw.SalaryRange.Min, raw.SalaryRange.Max, cur, per, rawStr) applySalaryInfo(&amp;job, info) } } // If SalaryRange was nil or implausible, fall back to regex extraction over fullPlain.</pre><h3>EU vs US Lever host gotcha</h3><p>One last thing if you scrape European companies: Lever runs a separate EU API host at https://api.eu.lever.co/v0/postings/&lt;slug&gt;?mode=json. If api.lever.co returns 404 for a European company whose careers link clearly points to jobs.eu.lever.co, retry against api.eu.lever.co before marking the board unresolved.</p><p><em>Note: If you want a hosted Go runner that handles Lever (plus Ashby, Greenhouse, Workday, SmartRecruiters, and BambooHR) with freshness classification and salary normalization, it is packaged as </em><a href="https://apify.com/spiky_closet/lever-jobs-scraper"><em>Lever Jobs Scraper</em></a><em> and </em><a href="https://github.com/yun87457-web/ats-jobs-hiring-intel-mcp"><em>ats-jobs-hiring-intel-mcp on GitHub</em></a><em>.</em></p><p><em>Originally published at </em><a href="https://adpulselabs.hashnode.dev/scraping-lever-career-pages-api-v0-postings-notes"><em>https://adpulselabs.hashnode.dev</em></a><em> on November 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80b8f3e1cbe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>