Update to FactIQ
Snapshot Oct 28, 2026 · 12:25 UTC · version 0.41.1
Package or technical metadata updated
Package or technical metadata updated
Observed in package metadata. These changes alone do not establish a new customer-facing feature.
Up to 3 plugins free · no card required.
All fields and original values.
These are saved file metadata. Open a changed file to read its text edits.
Package file
Sep 30, 2026 · 23:07 UTC
{"sha256":"34235df105b1fcd3e30dacd9793ed81848078adc18bed0df6fd01837e0473b42","size":127}
Oct 28, 2026 · 12:25 UTC
Not present
Package file
Sep 30, 2026 · 23:07 UTC
Not present
Oct 28, 2026 · 12:25 UTC
{"sha256":"49fb6b53e79d5715aa9a9a093a0bf8d7f3dbd8b9a9328bb9ae21b336aa88cf49","size":610}
Package file
Sep 30, 2026 · 23:07 UTC
Not present
Oct 28, 2026 · 12:25 UTC
{"sha256":"dec61fe1e1790fd335e220e1c54c16120e2e7632e16e044fe32f010d58d9c36e","size":927}
Package file
Sep 30, 2026 · 23:07 UTC
40992ee953af3848c3a0f65115d97dea99dcb6e0cd84aad7ae5539b6173ef4b3
Oct 28, 2026 · 12:25 UTC
add8506ef8caab254eb8e3518555c6a398af5aea31b7e1089d38ff02d4ea2cf9
Compare saved observations
Download comparison JSONChanged files
Choose a file to see its text changes. Binary or large files show metadata only.
.claude-plugin/marketplace.json →
LICENSE →
SETUP.md →
evals/bilateral-trade-sql/graders/one-hs-level-only.md →
evals/bilateral-trade-sql/graders/partner-code-is-numeric.md →
evals/bilateral-trade-sql/graders/used-the-bundled-generator.md →
evals/bilateral-trade-sql/graders/value-series-only.md →
evals/bilateral-trade-sql/prompt.md →
evals/filings-duplicate-line/graders/figure-is-not-doubled.md →
evals/filings-duplicate-line/graders/figure-is-the-first-line.md →
evals/filings-duplicate-line/graders/no-invented-filing-links.md →
evals/filings-duplicate-line/graders/source-link-is-the-filing.md →
evals/filings-duplicate-line/prompt.md →
evals/latest-value-direct-answer/graders/answers-in-prose.md →
evals/latest-value-direct-answer/graders/no-chart-file-written.md →
evals/latest-value-direct-answer/prompt.md →
evals/mocks/factiq/_tools.json →
evals/mocks/factiq/describe_dataset.md →
evals/mocks/factiq/fixtures/LNS14000000.json →
evals/mocks/factiq/fixtures/PKG.json →
evals/mocks/factiq/get_data_catalog.md →
evals/mocks/factiq/get_series.md →
evals/mocks/factiq/get_style_guides.md →
evals/mocks/factiq/run_sql.md →
evals/mocks/factiq/search_company_filings.md →
evals/mocks/factiq/search_datasets.md →
evals/mocks/factiq/search_earnings_transcripts.md →
evals/mocks/factiq/search_series.md →
evals/quick-chart-of-a-trend/graders/answer-states-gap-and-source.md →
evals/quick-chart-of-a-trend/graders/chart-file-written.md →
evals/quick-chart-of-a-trend/graders/missing-month-is-not-filled-in.md →
evals/quick-chart-of-a-trend/graders/spec-is-a-valid-chartspec.md →
evals/quick-chart-of-a-trend/graders/title-makes-a-claim.md →
evals/quick-chart-of-a-trend/prompt.md →
evals/quote-and-source-discipline/graders/analyst-framing-is-not-management.md →
evals/quote-and-source-discipline/graders/link-fy2025q2-is-the-supplied-one.md →
evals/quote-and-source-discipline/graders/link-fy2026q4-is-the-supplied-one.md →
evals/quote-and-source-discipline/graders/link-fy2027q1-is-the-supplied-one.md →
evals/quote-and-source-discipline/graders/missing-link-is-declared.md →
evals/quote-and-source-discipline/graders/no-invented-source-links.md →
evals/quote-and-source-discipline/graders/quotes-are-verbatim.md →
evals/quote-and-source-discipline/prompt.md →
evals/unrelated-coding-request/graders/answers-the-python-question.md →
evals/unrelated-coding-request/graders/no-catalog-lookup.md →
evals/unrelated-coding-request/graders/no-factiq-skill-invoked.md →
evals/unrelated-coding-request/graders/no-series-fetch.md →
evals/unrelated-coding-request/graders/no-sql-call.md →
evals/unrelated-coding-request/prompt.md →
evals/yoy-across-a-missing-month/graders/missing-month-is-stated.md →
evals/yoy-across-a-missing-month/graders/yoy-values-are-date-matched.md →
evals/yoy-across-a-missing-month/prompt.md →
evals/yoy-without-a-server-hint/graders/missing-month-is-stated.md →
evals/yoy-without-a-server-hint/graders/yoy-values-are-date-matched.md →
evals/yoy-without-a-server-hint/mocks/factiq/fixtures/LNS14000000.json →
evals/yoy-without-a-server-hint/mocks/factiq/get_series.md →
evals/yoy-without-a-server-hint/mocks/factiq/run_sql.md →
evals/yoy-without-a-server-hint/prompt.md →
references/data/satellite.md →
references/data/sql-guide.md →
references/output/chart-spec.md →
references/output/report-spec.md →
references/report-patterns/README.md →
references/report-patterns/bilateral-economic-policy.md →
references/report-patterns/bilateral-trade.md →
references/report-patterns/business-formation-statistics.md →
references/report-patterns/earnings-intelligence.md →
references/report-patterns/fiscal-policy-revenue.md →
references/report-patterns/interview-step.md →
references/report-patterns/media-intelligence.md →
references/report-patterns/monetary-policy.md →
scripts/__pycache__/term_chart.cpython-312.pyc →
scripts/data/hs_names.json.gz →
scripts/data/trade_partners.json →
tests/__pycache__/test_directory_submission_readiness.cpython-311-pytest-9.1.1.pyc →
tests/__pycache__/test_earnings_docs.cpython-311-pytest-9.1.1.pyc →
tests/__pycache__/test_earnings_docs.cpython-312-pytest-8.4.0.pyc →
tests/__pycache__/test_media_docs.cpython-311-pytest-9.1.1.pyc →
tests/__pycache__/test_media_docs.cpython-312-pytest-8.4.0.pyc →
tests/__pycache__/test_retired_publishing_tools.cpython-311-pytest-9.1.1.pyc →
tests/__pycache__/test_trade_scripts.cpython-311-pytest-9.1.1.pyc →
tests/__pycache__/test_trade_scripts.cpython-312-pytest-8.4.0.pyc →
tests/test_directory_submission_readiness.py →
references/data/sql-guide.md
− removed · + added
--- before +++ after @@ -0,0 +1,465 @@ +# FactIQ SQL Guide + +SQL runs read-only with one default schema per call — the `run_sql` MCP tool, +with `schema="bls"` and `sql="..."`. The server sets `search_path` to that +schema, so reference its tables bare (`series`, not `bls.series`); other +schemas stay reachable by qualified name (`korea_trade.series`, +`eu_comext_lookup.product_codes`). Statements are capped at 30 seconds, and +**every result is capped at 50 rows** — aggregate in SQL to the granularity +you actually need rather than pulling raw rows (see "Pivoting" and +"Efficiency" below). + +## Table structure (identical in every schema) + +- **`series`** — the catalog. Key columns: `series_id`, `series_title`, + `human_friendly_title`, `human_friendly_description`, `dataset_code`, + `frequency`, `measurement_units`, `adjusted_for_seasonality`, `state`, + `county_or_metro_area`, `begin_time`, `end_time`, `data_type` + (`timeseries` or `tabular`), `tabular_columns`. +- **`data_points`** — `series_id`, `time` (date), `value` (numeric). +- **`dimensions`** — `series_id`, `dimension_type`, `dimension_code`, + `dimension_name`. Useful for discovery when titles are uninformative. +- **`tabular_data`** — JSONB `row_data` per row, for `data_type = 'tabular'` + series only. +- **`compound_series`** — curated derived series with ids like + `COMPOUND::...`. Fetch them with the `get_series` tool, not raw SQL. + +The `get_data_catalog` tool returns the full DDL. + +## Always-true conventions + +- **`frequency` values are lowercase**: `'monthly'`, `'quarterly'`, + `'annual'`, `'weekly'`, `'semiannual'`. `frequency = 'Monthly'` matches + nothing. +- **`dataset_code` is lowercase** — use ILIKE or lowercase literals. +- **Match periods on the calendar month, never on the exact date.** The day + stored inside `data_points.time` varies by source: most store the first day + of the period, but `frb`, `rbi`, `fhfa` and `treasury` store monthly values + on the last day of the month (`2025-02-28`, `2025-03-31`), and `frb`, `rbi`, + `fhfa` and `cbo` store quarters on quarter-end dates. An exact-date join + such as `prior.time = cur.time - interval '1 year'` finds nothing for those + (February 29 minus one year is February 28). Join and compare on + `date_trunc('month', time)` (or `date_trunc('quarter', time)` for quarterly + series): + `date_trunc('month', prior.time) = date_trunc('month', cur.time) - interval '1 year'`. +- The server rewrites `series_title` to + `COALESCE(human_friendly_title, series_title)` automatically, normalizes + frequency filters, and turns `data_points.series_id` pattern filters into + semi-joins on `series`; the response's `transformed_query` shows what + actually ran. +- Results come back enriched with `constituent_series` metadata + (titles, units, source) for every series_id touched — use it for chart + source attribution. + +## Exploratory queries first + +Before fetching from a dataset you haven't touched, look at 5 rows of its +catalog to learn naming conventions and units: + +```sql +SELECT series_id, series_title, dataset_code, frequency, + adjusted_for_seasonality, measurement_units +FROM series WHERE dataset_code ILIKE '<dataset>' LIMIT 5 +``` + +Run these with `explore=true` so the server treats them as exploration. + +## Keep SQL simple and broad + +Don't stack ILIKE conditions — you'll miss valid rows and get zero results. +A broad query returning 50 rows beats a narrow one returning 0 (results are +capped at 50 rows either way). + +```sql +-- Bad: over-filtered, likely 0 rows +SELECT series_id, series_title FROM series +WHERE dataset_code ILIKE 'jt' AND series_title ILIKE '%job openings%total nonfarm%' + AND series_title ILIKE '%level%' AND measurement_units ILIKE '%level%' + +-- Good: broad, let the results guide you +SELECT series_id, series_title, measurement_units FROM series +WHERE dataset_code ILIKE 'jt' AND series_title ILIKE '%job openings%' + AND adjusted_for_seasonality = true +LIMIT 20 +``` + +Prefer filtering on indexed columns (`series_id`, `dataset_code`) over text +scans. For text searches use two steps: find series_ids first, then fetch +their data. + +## Pattern-matching `series_id` on `data_points` + +`data_points` is enormous and its index does not serve LIKE/ILIKE; an +unindexed pattern scan of it dies at the 30s timeout. The server covers one +case for you: a LIKE/ILIKE on `data_points.series_id` in a WHERE clause is +rewritten into `series_id IN (SELECT series_id FROM series WHERE ...)` (the +response's `transformed_query` shows it), so it runs through the index. The +rewrite covers WHERE clauses only — a pattern inside a projection +(`SUM(CASE WHEN series_id LIKE '%\_5700' THEN value END)`) is untouched, and +is fine *only if* the WHERE clause already narrows the rows. The same pattern +against the small `series` catalog is always fast. (Exception: the Eurostat +Comext country catalogs are not small — millions of series each — and their +text collation defeats prefix-index use entirely; never pattern-scan +`series_id` there. See the Comext section below.) When in doubt, resolve ids +explicitly first: + +```sql +-- Step 1 (fast): resolve the id list on the catalog +SELECT series_id FROM series WHERE series_id LIKE 'us\_census\_hs\_M\_10d\_280530%' + +-- Step 2 (fast): fetch with an explicit IN list — uses the index +SELECT series_id, time, value FROM data_points +WHERE series_id IN ('...', '...') +``` + +## National vs. sub-national series — the classic trap + +Geographically decomposed datasets are dominated by state/region rows; the +single national aggregate is a needle. For a national question you must +filter for the national key, not just the metric. + +Caveat: server-side dataset descriptions sometimes quote *raw* title +conventions (pipe-delimited keys like `State: All India` or prefixes like +`CPI 2024`). Because your filters run against the COALESCEd friendly titles, +those exact patterns often match nothing. Filter on the natural-language +fragment instead: + +- MOSPI CPI national aggregate → `series_title ILIKE '%All India%'` (add + `'%Combined%'` for the combined rural+urban sector), NOT + `'%State: All India%'`. +- MOSPI WPI is national-only — no state key at all. Confirm a dataset is + geographically split before forcing a geography filter. +- To identify a CPI base-year family when titles don't say: read the + series description from a `series` fetch, or check the base-year + calendar average ≈ 100 in the data itself. + +Never chart a single state/region as if it were the national figure. If you +can't find the national aggregate, say so rather than substituting. + +## Year-over-year on monthly data — never use LAG(value, 12) + +A row offset equals a period offset only when every period is present. Series +have holes: a month the source never published, a quarter outside the +requested window, a period a WHERE clause removed. For the twelve rows after +a hole, `LAG(value, 12)` compares each month with the month **thirteen** +periods back (`LEAD(value, 12)` does the same for the twelve rows before it), +the numbers stay plausible, and nothing errors. + +Bad — silently wrong after any gap: + +```sql +SELECT time, 100 * (value / LAG(value, 12) OVER (ORDER BY time) - 1) AS yoy_pct +FROM data_points +WHERE series_id = 'CUUR0000SA0' AND time >= '2019-01-01' +ORDER BY time +``` + +Good — join on the calendar month, so a missing prior period gives no row (or +a null with a LEFT JOIN) instead of a wrong number. Compare +`date_trunc('month', time)`, not `time` itself: the stored day of the month +differs between sources (first of the month for most, last day of the period +for some), and an exact-date join silently finds nothing for those. + +```sql +SELECT cur.time, + 100 * (cur.value / prior.value - 1) AS yoy_pct +FROM data_points cur +JOIN data_points prior + ON prior.series_id = cur.series_id + AND date_trunc('month', prior.time) = date_trunc('month', cur.time) - interval '1 year' +WHERE cur.series_id = 'CUUR0000SA0' AND cur.time >= '2020-01-01' +ORDER BY cur.time +``` + +For quarterly series use `date_trunc('quarter', ...)` on both sides; for +month-over-month subtract `interval '1 month'`. + +Also good — build a complete date spine first; on a spine every period has a +row, so a row offset is a period offset and LAG is correct: + +```sql +WITH spine AS ( + SELECT generate_series('2019-01-01'::timestamp, '2026-06-01', interval '1 month') AS time +), +cpi AS ( + SELECT s.time, d.value + FROM spine s + LEFT JOIN data_points d + ON date_trunc('month', d.time) = s.time AND d.series_id = 'CUUR0000SA0' +) +SELECT time, value, 100 * (value / LAG(value, 12) OVER (ORDER BY time) - 1) AS yoy_pct +FROM cpi WHERE time >= '2020-01-01' ORDER BY time +``` + +For one series, `get_series` with `transform="yoy_pct"` (or `"yoy_diff"` for a +rate) does the date-matched calculation on the server. For several series or +a merged table, `scripts/series_math.py yoy` matches on the calendar period +too. + +The result's `coverage_note` and `missing_periods` name the holes in the rows +you received, and `run_sql` says so when the statement itself uses a fixed +LAG/LEAD offset over time. Act on them: state the missing period(s) in the +answer, leave the month blank in a chart rather than interpolating, and label +an aggregate that spans a hole as partial ("Q4 2025 average of two months"). + +## HS trade datasets + +**Don't hand-write bilateral-trade SQL — generate it.** The plugin bundles +stdlib-only generators that encode every schema's ID grammar, partner codes, +units, and HS-level rules (run `--help` for subcommands): +`{plugin_root}/scripts/trade_sql.py` covers the six national customs schemas (census +`us_census_hs`, `china_customs`, `india_trade`, `korea_trade`, `japan_trade`, +`taiwan_trade`), `{plugin_root}/scripts/comext_sql.py` covers the 27 Eurostat +Comext schemas, and `{plugin_root}/scripts/hs_codes.py` resolves HS codes <-> +names offline. Resolve `{plugin_root}` as described in `SKILL.md` before +invoking them; never assume the shell is at the plugin root. + +For broad bilateral merchandise-trade questions, use +`references/report-patterns/bilateral-trade.md`; it has the report trigger and ready SQL +templates for monthly totals, latest-month YoY, YTD YoY, annual totals, and top +HS product drivers. + +The core guardrails: + +- For trade schemas other than Comext, filter with `dimensions` (`partner`, + `flow`, `commodity`, `hs_level`) instead of parsing series IDs. Comext uses + the indexed workflow below. +- Use exactly one HS level in an aggregation. HS-6 is the default for + cross-country comparison; national 8/10-digit lines are finer detail and must + not be summed with HS-6 rows. +- Keep value and quantity/weight series separate. For example, Korea KCS has + value in `US$ Thousand` and weight in `kg`; a value report should filter + `measurement_units = 'US$ Thousand'`. +- Normalize units before comparing reporters. For example, India DGCI&S values + are `US$ Million`, while Korea KCS values are `US$ Thousand`. +- Query each reporter schema separately by default and compare in local + computation — mirror statistics differ on units, timing, valuation, + re-exports, and revisions, so state the reporter view explicitly. The + one-schema scope is only a default search path, not a wall: qualified + cross-schema references do execute, so a `UNION ALL` of per-reporter + aggregations in one call is fine when every branch converts to a common + unit. + +### Eurostat Comext country schemas + +Comext uses one physical schema per EU reporter, named +`eu_comext_<lowercase ISO2>`: for example, `eu_comext_de`, `eu_comext_fr`, +and `eu_comext_nl`. There is no `eu_comext` data schema. Each country catalog +is large enough that title searches and dimension-value scans can reach the +30-second SQL limit. + +Exact series IDs are mandatory here, not just faster. Each country catalog +holds millions of series, and the text collation is not byte-ordered, so +`series_id LIKE 'prefix%'` cannot run on the index (it scans the table and +hits the 30-second timeout) and `>=`/`<` string ranges over `series_id` +return wrong or empty results. Equality joins on constructed IDs are index +probes and stay fast at any scale. + +Use these rules: + +- Never search or filter Comext's `dimensions` table by dimension values. +- Search the shared `eu_comext_lookup.product_codes` table by `product_code`, + `product_name`, `hs2_code`, `hs4_code`, or `hs6_code`. + It is a complete product-code lookup, including historical codes and their + first and last observed dates. +- Build exact series IDs and join them to `data_points`, whose `series_id` + index makes the fetch fast. The detailed ID shape is + `eu_comext_{M|X}_{reporter}_{partner}_{te|ti|tl}_p1_cn8_{product_code}_{eur|kg|su}`. + `M` means imports and `X` exports. Reporter and partner are lowercase ISO2 + codes, except that `xi` is Eurostat's code for Northern Ireland. The stored + trade token follows the partner's status in each month: `te` outside the EU, + `ti` inside the EU, and `tl` for Northern Ireland from 2021. A range that + crosses an EU accession or Great Britain's February 2020 exit must query both + exact series with non-overlapping date bounds. Use `comext_sql.py` so these + changes are handled automatically. Its `uk` input combines `gb` with the + separately stored `xi` series from 2021; `gb` alone excludes Northern Ireland + from that point. +- Use `_eur` for trade value, `_kg` for weight, and `_su` for supplementary + quantity. Never sum these metrics together. Supplementary units are + product-specific, so return `series.measurement_units` with an exact CN8 + supplementary trend and group by that unit before summing reporters. +- For all-goods totals, use the exact `cn6_total` series instead of summing + every CN8 product. +- For several reporters, either run one already-aggregated query per reporter + schema and combine the small results locally, or `UNION ALL` the + per-reporter aggregations in a single call — a union of exact-ID joins + across all 27 member schemas completes well within the 30-second limit. + What times out is pattern scanning, not combining: every branch must use + the exact-ID join, never a `series_id` pattern. + +To inspect product mappings, qualify the shared table from any country query: + +```sql +SELECT product_code, product_name, hs2_code, hs4_code, hs6_code, + first_observed, last_observed +FROM eu_comext_lookup.product_codes +WHERE product_name ILIKE '%textile%' +ORDER BY product_code +LIMIT 50; +``` + +For a broad category, keep the lookup and aggregation in the same SQL call so +the 50-row tool limit does not truncate the CN8 code list. This tested example +returns monthly German-reported textile imports from China in 2025. Run it +with `schema="eu_comext_de"`: + +```sql +SELECT dp.time::date AS month, + SUM(dp.value) AS value_eur +FROM eu_comext_lookup.product_codes p +JOIN data_points dp + ON dp.series_id = + 'eu_comext_M_de_cn_te_p1_cn8_' || lower(p.product_code) || '_eur' +WHERE p.hs2_code BETWEEN '50' AND '63' + AND p.is_numeric_cn8 + AND p.first_observed <= DATE '2025-12-01' + AND p.last_observed >= DATE '2025-01-01' + AND dp.time >= DATE '2025-01-01' + AND dp.time < DATE '2026-01-01' +GROUP BY dp.time +ORDER BY dp.time; +``` + +Replace the reporter, partner, flow, trade token, dates, and HS grouping for +the question. For one named CN8 product, construct its exact ID directly. For +all goods, query the total series: + +```sql +SELECT time::date AS month, value AS value_eur +FROM data_points +WHERE series_id = 'eu_comext_M_de_cn_te_p1_cn6_total_eur' + AND time >= DATE '2025-01-01' + AND time < DATE '2026-01-01' +ORDER BY time; +``` + +For several reporters in one call, `UNION ALL` the same exact-ID aggregation +per country schema. This tested example returns 2025 German- and +French-reported electronics (HS chapter 85) imports from China; run it with +`schema="eu_comext_de"` (any Comext schema works as the default): + +```sql +SELECT cc, SUM(v) AS value_eur +FROM ( + SELECT 'de' AS cc, dp.value AS v + FROM eu_comext_lookup.product_codes p + JOIN eu_comext_de.data_points dp + ON dp.series_id = + 'eu_comext_M_de_cn_te_p1_cn8_' || lower(p.product_code) || '_eur' + WHERE p.hs2_code = '85' + AND dp.time >= DATE '2025-01-01' AND dp.time < DATE '2026-01-01' + UNION ALL + SELECT 'fr', dp.value + FROM eu_comext_lookup.product_codes p + JOIN eu_comext_fr.data_points dp + ON dp.series_id = + 'eu_comext_M_fr_cn_te_p1_cn8_' || lower(p.product_code) || '_eur' + WHERE p.hs2_code = '85' + AND dp.time >= DATE '2025-01-01' AND dp.time < DATE '2026-01-01' +) t +GROUP BY cc +ORDER BY cc; +``` + +## Company screener + +`screener.companies` is a view with one row per US-listed company that files +financial statements with the SEC, about 2,400 rows. The `screener` schema has +no `series` or `data_points` tables; filter the view on its columns with +`run_sql(schema="screener", ...)`. + +- **Identity and labels**: `ticker`, `company_name`, `sector`, `industry` + (Nasdaq's labels, not GICS), `sic_code`, `sic_description`, + `naics_sector_code`, `country`, `issuer_id`, `cik`. +- **Price** (US dollars, from Nasdaq's public stock list): `price`, + `price_change_pct`, `volume`, `market_cap` (the whole company, all share + classes), `enterprise_value` (`market_cap + total_debt - cash`). +- **Ratios, computed when you query**: `price_to_sales`, `price_to_earnings`, + `price_to_book`, `ev_to_sales`, `ev_to_operating_income`. +- **Latest twelve months, from the company's filings** (in + `reporting_currency`): `revenue_ttm`, `gross_profit_ttm`, + `operating_income_ttm`, `net_income_ttm`, `operating_cash_flow_ttm`, + `capex_ttm`, `free_cash_flow_ttm`, and the fractions `gross_margin`, + `operating_margin`, `net_margin`, `revenue_growth_yoy` (0.25 = 25%). +- **Latest balance sheet**: `cash`, `total_debt`, `stockholders_equity`, + `shares_outstanding`. +- **How fresh the row is**: `price_as_of` (time of the last good price + refresh), `price_changed_at`, `fundamentals_period_end` (the date the twelve + months end), `ttm_basis` (`four_quarters`, or `latest_annual` when four + back-to-back quarters were not filed), `fundamentals_updated_at`. + +```sql +-- Technology companies above $50B with price-to-sales above 10 +SELECT ticker, company_name, market_cap, price_to_sales, revenue_growth_yoy, + price_as_of +FROM screener.companies +WHERE sector = 'Technology' AND price_to_sales > 10 AND market_cap > 5e10 +ORDER BY market_cap DESC +LIMIT 25; +``` + +Rules that change the answer: + +- Look at the labels before you filter on one: + `SELECT sector, count(*) FROM screener.companies GROUP BY 1`. A few large + companies have no Nasdaq sector (Berkshire Hathaway); `sic_description` is + filled for nearly every row. +- A ratio is NULL when its bottom number is zero or negative, so a loss-making + company has no `price_to_earnings`. It is also NULL when + `reporting_currency` is not USD (about 180 filers report in EUR, CAD, CNY and + others; no currency is converted). `price_to_sales < 2` therefore leaves + those companies out. Say so when it matters. +- Prices are delayed about fifteen minutes and refresh only while the US + market is open. State `price_as_of` in the answer. Call `get_market_data` + when the user needs the current price of one company. +- Always `ORDER BY` and `LIMIT`; count the matches first when the list may be + long. +- `screener.daily_history` (`ticker`, `trade_date`, `price`, `market_cap`, + `enterprise_value`, `price_to_sales`, `price_to_earnings`, `price_to_book`, + `ev_to_sales`) has one row per company per trading day and starts in + September 2026. +- For the filed values behind a row, call `search_company_filings` with the + ticker, or join `filings` tables on `issuer_id`. + +## Pivoting to wide format + +Chart data wants one row per time period with one column per series. Use +CASE WHEN with **GROUP BY on time** (omitting GROUP BY fails or duplicates +rows): + +```sql +SELECT time, + MAX(CASE WHEN series_id = 'LNS14000000' THEN value END) AS unemployment_rate, + MAX(CASE WHEN series_id = 'LNS11300000' THEN value END) AS participation_rate +FROM data_points +WHERE series_id IN ('LNS14000000', 'LNS11300000') + AND time >= '2019-01-01' +GROUP BY time +ORDER BY time +``` + +A period with no row in `data_points` is absent from the pivot, not a null +cell: the time axis skips it. Read the result's `coverage_note` before +computing changes across rows. + +## Tabular data + +Series with `data_type = 'tabular'` store rows in `tabular_data.row_data` +(JSONB), described by `series.tabular_columns`. The `get_series` tool handles +them transparently (returns columns + results like a timeseries) — prefer it. +For direct SQL: `row_data->>'column_name'` extracts text; cast with `::numeric` +for math. + +## Efficiency + +- Most questions need 2–4 data calls. Batch independent fetches in one turn. +- Don't re-fetch via `get_series` what a `run_sql` call already returned — both + are equally chartable. +- Use `get_series` for 1–2 known ids; `run_sql` for 3+ series, joins, + aggregations. +- Results cap at 50 rows. If a fetch comes back `"truncated": true`, aggregate + in SQL (`GROUP BY date_trunc(...)`, a SUM/AVG/rank) rather than trying to + pull the rest — a chart needs the aggregated result anyway. +- Zero rows means your filter missed — broaden the term or drop a condition + and rerun. You revise faster and cheaper than the server's `auto_retry` + LLM reviser.
Full technical diff · 104 changed fields
removed /files/.app.json
{
"sha256": "34235df105b1fcd3e30dacd9793ed81848078adc18bed0df6fd01837e0473b42",
"size": 127
}Field is absent
added /files/.claude-plugin~1marketplace.json
Field was absent
{
"sha256": "49fb6b53e79d5715aa9a9a093a0bf8d7f3dbd8b9a9328bb9ae21b336aa88cf49",
"size": 610
}added /files/.claude-plugin~1plugin.json
Field was absent
{
"sha256": "dec61fe1e1790fd335e220e1c54c16120e2e7632e16e044fe32f010d58d9c36e",
"size": 927
}changed /files/.codex-plugin~1plugin.json/sha256
"40992ee953af3848c3a0f65115d97dea99dcb6e0cd84aad7ae5539b6173ef4b3"
"add8506ef8caab254eb8e3518555c6a398af5aea31b7e1089d38ff02d4ea2cf9"
changed /files/.codex-plugin~1plugin.json/size
1496
2536
added /files/.gitignore
Field was absent
{
"sha256": "566702bcfdb6180828438f56a6f35b82c75d7221aa69a8c6aa7621adf8df5f00",
"size": 126
}added /files/.mcp.json
Field was absent
{
"sha256": "bd6807e5f73d473c49f99a29cd0eb178ba1e25349cd3db388d4f980963acaec9",
"size": 112
}added /files/LICENSE
Field was absent
{
"sha256": "ffe02ec2d2f9b23b61b38602bfd44d0fa777600a1cb1e8765da0626d09bd7114",
"size": 1068
}added /files/README.md
Field was absent
{
"sha256": "ff859c70ed0a7e6e53f2f077afd79125a1f6ac0d5e93e6764a17f49096f704ab",
"size": 16746
}added /files/SETUP.md
Field was absent
{
"sha256": "4a6e0b5db6c5948e362c9442ee2d9c35dd9980bafd6c01a056a7d123be5a286e",
"size": 2958
}added /files/assets~1factiq-logo.png
Field was absent
{
"sha256": "3b7bc0447b0612514780bc363f5a205710ef66de15daed4524ac4624998161e3",
"size": 17317
}added /files/evals~1README.md
Field was absent
{
"sha256": "976b22bcc20d210ac3187e45154be00bfbeb68ffc17412de2d8eea9417f6a163",
"size": 8941
}added /files/evals~1bilateral-trade-sql~1graders~1one-hs-level-only.md
Field was absent
{
"sha256": "1858daf1ab5d4774154d77458e7aa079da270af35e3476e904752180e6b82726",
"size": 471
}added /files/evals~1bilateral-trade-sql~1graders~1partner-code-is-numeric.md
Field was absent
{
"sha256": "ebfb683108dca135318753256062de5ababbd417c3fa3eaa3a1b9c712cd92f17",
"size": 523
}added /files/evals~1bilateral-trade-sql~1graders~1used-the-bundled-generator.md
Field was absent
{
"sha256": "8d5dfaa90973849c823636a1cf001b537fe4346f3f31e4467179557b45d90536",
"size": 121
}added /files/evals~1bilateral-trade-sql~1graders~1value-series-only.md
Field was absent
{
"sha256": "83258957a67431b6ddaaa98e01cd4694533f814ba4ecf97b14b0ae981eef9bec",
"size": 466
}added /files/evals~1bilateral-trade-sql~1prompt.md
Field was absent
{
"sha256": "6e0aeeaef20feb8ad194bfac0fb77fd63816c42fc8b1fc24914a1072e88e6b29",
"size": 842
}added /files/evals~1filings-duplicate-line~1graders~1figure-is-not-doubled.md
Field was absent
{
"sha256": "7f7444985429c85502638acdd809f0bc96b3b7a676d6f9b6ac246bfd88505ddf",
"size": 123
}added /files/evals~1filings-duplicate-line~1graders~1figure-is-the-first-line.md
Field was absent
{
"sha256": "325edda2814c36316d071e690539068175a5d9334eaf9bd555e84c5a38d2667d",
"size": 808
}added /files/evals~1filings-duplicate-line~1graders~1no-invented-filing-links.md
Field was absent
{
"sha256": "46043047d26759ce2ed60643464fd5a377f2d75a46937b1f17ee5f53f420f15b",
"size": 550
}added /files/evals~1filings-duplicate-line~1graders~1source-link-is-the-filing.md
Field was absent
{
"sha256": "30cf2586d074446b24b07333cf4860bc267b42d3efd36ed9f319f9aafcb11c41",
"size": 163
}added /files/evals~1filings-duplicate-line~1prompt.md
Field was absent
{
"sha256": "4cd0b9906584614ca73ddec45d3681a3573bbc68ce076274ae89826e228ac055",
"size": 813
}added /files/evals~1latest-value-direct-answer~1graders~1answers-in-prose.md
Field was absent
{
"sha256": "04588e346003462f88adf6a2fe6b85b5dd62f8c17ded2212b2bc9d068e5929a7",
"size": 669
}added /files/evals~1latest-value-direct-answer~1graders~1no-chart-file-written.md
Field was absent
{
"sha256": "a06cd9171ce44db1511d189c1467b55dd76e0ddd3025bf9c63ffd6df1eaada46",
"size": 60
}added /files/evals~1latest-value-direct-answer~1prompt.md
Field was absent
{
"sha256": "3a957c231947743012ecb886cd3c5fffa6e528444826b487df1b180f59d2d40e",
"size": 577
}added /files/evals~1mocks~1factiq~1_tools.json
Field was absent
{
"sha256": "b867d3bc2218c923d117350a8d19391578e31aaba251d806b766f711c4083373",
"size": 58563
}added /files/evals~1mocks~1factiq~1describe_dataset.md
Field was absent
{
"sha256": "aef6ae3bad4de381194fd3533f5ac2bf291f5c94cbe2a4c840eb09ad6fa91558",
"size": 2132
}added /files/evals~1mocks~1factiq~1fixtures~1LNS14000000.json
Field was absent
{
"sha256": "3432a266cfbd4d7c32b11cec8d8f7305db7e97b4f7a91930c166b13719071b93",
"size": 8750
}added /files/evals~1mocks~1factiq~1fixtures~1PKG.json
Field was absent
{
"sha256": "236b9ba9dd79f5e160faaa32e6c5991a909c4162011ec539f11fba0ee682215f",
"size": 15247
}added /files/evals~1mocks~1factiq~1get_data_catalog.md
Field was absent
{
"sha256": "840dc24cf2f2eb91611464c95d3414152c404df96600fae160fd0d1c07a777bb",
"size": 6858
}added /files/evals~1mocks~1factiq~1get_series.md
Field was absent
{
"sha256": "8be660b04874d51a9f4476049e8623e07eca076fb71dce5dcf7fccb9817c9d5b",
"size": 41
}added /files/evals~1mocks~1factiq~1get_style_guides.md
Field was absent
{
"sha256": "6363e4370e733e924f18a2c71a611509a1926a781e68ead99646b76659256f5a",
"size": 880
}added /files/evals~1mocks~1factiq~1run_sql.md
Field was absent
{
"sha256": "77b6cee5f1133990bc93147fe8e2956f9b8b0b4a5fc14783dbcc9971d91130d5",
"size": 2181
}added /files/evals~1mocks~1factiq~1search_company_filings.md
Field was absent
{
"sha256": "d7fa2f3b3a67aef362b459b0eba2362f2f3d12c242dded32a3f1402f95f3f268",
"size": 39
}added /files/evals~1mocks~1factiq~1search_datasets.md
Field was absent
{
"sha256": "98f364b4a4189012c607031b595c3e1bd7cb8e3ba95e10f59dd7aaf78883418f",
"size": 1034
}added /files/evals~1mocks~1factiq~1search_earnings_transcripts.md
Field was absent
{
"sha256": "6f0187121c6c4e5f998be00612e9d5bff30c6d5b6ad36ffccd447e21ba1650d5",
"size": 6189
}added /files/evals~1mocks~1factiq~1search_series.md
Field was absent
{
"sha256": "4a78565f723fcf708bcdc08f7df142f3568ad1652db43b87796d091716e9c41b",
"size": 1302
}added /files/evals~1quick-chart-of-a-trend~1graders~1answer-states-gap-and-source.md
Field was absent
{
"sha256": "b2dd20ccd3a717585bdfe2b5bfe101042ca3933734ab6cb273d5ac4bff90561f",
"size": 492
}added /files/evals~1quick-chart-of-a-trend~1graders~1chart-file-written.md
Field was absent
{
"sha256": "53a654575c25d75251de7e79e8d40d1837b12f186d31060f3a2a7819dfcaefcc",
"size": 53
}added /files/evals~1quick-chart-of-a-trend~1graders~1missing-month-is-not-filled-in.md
Field was absent
{
"sha256": "4012378ca9d63de3ebee5f3fdb39b78ff5095bd861f97716323d8564a3c8d1b2",
"size": 528
}added /files/evals~1quick-chart-of-a-trend~1graders~1spec-is-a-valid-chartspec.md
Field was absent
{
"sha256": "72ea853a887ba0bd91a97f49ae52cdbd66cb295eb4888c1bcb47719892bad82c",
"size": 946
}added /files/evals~1quick-chart-of-a-trend~1graders~1title-makes-a-claim.md
Field was absent
{
"sha256": "2d9c5e1e0ff470e04d170bd88140d874324a7db4086feb53adf19216d371a4d0",
"size": 656
}added /files/evals~1quick-chart-of-a-trend~1prompt.md
Field was absent
{
"sha256": "956fc00fd943f70ae85de3bd22b6b60147846dd67a3297ecbec36d64eff723d2",
"size": 690
}added /files/evals~1quote-and-source-discipline~1graders~1analyst-framing-is-not-management.md
Field was absent
{
"sha256": "db4672fe197c1bbc858969604d0fbdfece844c4a95bb4cbffb2a94da904b0553",
"size": 608
}added /files/evals~1quote-and-source-discipline~1graders~1link-fy2025q2-is-the-supplied-one.md
Field was absent
{
"sha256": "e5723ee4f90d36c669c66dfa247d5674dd4e71f6bb8b5290f4d1c7d65a4b89e4",
"size": 216
}added /files/evals~1quote-and-source-discipline~1graders~1link-fy2026q4-is-the-supplied-one.md
Field was absent
{
"sha256": "f0615b5f82e65e997603fd0dce33d331e0dc5aa86738521ea7e0720d9ffa484c",
"size": 215
}added /files/evals~1quote-and-source-discipline~1graders~1link-fy2027q1-is-the-supplied-one.md
Field was absent
{
"sha256": "da50e2f5694fdaf824130515c6cad1edd6581cc0068054c6eead1f03546fed87",
"size": 215
}added /files/evals~1quote-and-source-discipline~1graders~1missing-link-is-declared.md
Field was absent
{
"sha256": "3286a7f25db8fc1c059b14977cc35cd72cbb6bba67720b7b58137a47ad201177",
"size": 486
}added /files/evals~1quote-and-source-discipline~1graders~1no-invented-source-links.md
Field was absent
{
"sha256": "3418802ca26fd0b78017ccdab87a0a243cce30966c5e3482a87d1708a6e98ee0",
"size": 167
}added /files/evals~1quote-and-source-discipline~1graders~1quotes-are-verbatim.md
Field was absent
{
"sha256": "af6f44f2a953d8de18d8592486114447a94e8f621f0ea0a2e52d6d284d74ed14",
"size": 2001
}added /files/evals~1quote-and-source-discipline~1prompt.md
Field was absent
{
"sha256": "1287da04c18787fa65b4cb016cef62fe7d208b360f0d7d7f6750ffb68db35f78",
"size": 781
}added /files/evals~1run_ablation.py
Field was absent
{
"sha256": "550702da90fbe53889c67ef30f6cb7254e31fa1009719ec869f313b3aed9f1d3",
"size": 9041
}added /files/evals~1unrelated-coding-request~1graders~1answers-the-python-question.md
Field was absent
{
"sha256": "4db03d4fcb5e4bb6a04162e0dad4b5db3fef97d145103d64bfb041b50946f12a",
"size": 407
}added /files/evals~1unrelated-coding-request~1graders~1no-catalog-lookup.md
Field was absent
{
"sha256": "60bfc77bae34c51bdb2a2b7a3b8c72719e5bd55d81a281a71e9026595d426260",
"size": 98
}added /files/evals~1unrelated-coding-request~1graders~1no-factiq-skill-invoked.md
Field was absent
{
"sha256": "22813294a356e15059d59459cbe5da9ec0a4a18c760d9521ddc35ae886dcd7c5",
"size": 80
}added /files/evals~1unrelated-coding-request~1graders~1no-series-fetch.md
Field was absent
{
"sha256": "ede84d92b6c6e73e1e42d8968ddd3c8c0c8f9d7560bd169131987ca1db3e23f9",
"size": 92
}added /files/evals~1unrelated-coding-request~1graders~1no-sql-call.md
Field was absent
{
"sha256": "3e5d7fdb2a6fb1566d4ba420eb12550281f72f0deec9cb9e613378ceb76cd7ae",
"size": 89
}added /files/evals~1unrelated-coding-request~1prompt.md
Field was absent
{
"sha256": "40eb7a0228cca78e53786e361c687eb96238814f69911fc9d998f501b6575250",
"size": 492
}added /files/evals~1yoy-across-a-missing-month~1graders~1missing-month-is-stated.md
Field was absent
{
"sha256": "560524f7356fb5ceedf5314bfb511ae0b70c63c6b92bace819c52cc0cce26ee3",
"size": 376
}added /files/evals~1yoy-across-a-missing-month~1graders~1yoy-values-are-date-matched.md
Field was absent
{
"sha256": "3d6dfbc6957296d246e5e767d23ce83e134b92aa179d824cb6988100f3ba80cd",
"size": 860
}added /files/evals~1yoy-across-a-missing-month~1prompt.md
Field was absent
{
"sha256": "fcdbe2f5cc33e6a2d0e27d88143ea5d5fd57c59cd1ccbb889c58b9cbbe7aa380",
"size": 678
}added /files/evals~1yoy-without-a-server-hint~1graders~1missing-month-is-stated.md
Field was absent
{
"sha256": "560524f7356fb5ceedf5314bfb511ae0b70c63c6b92bace819c52cc0cce26ee3",
"size": 376
}added /files/evals~1yoy-without-a-server-hint~1graders~1yoy-values-are-date-matched.md
Field was absent
{
"sha256": "3d6dfbc6957296d246e5e767d23ce83e134b92aa179d824cb6988100f3ba80cd",
"size": 860
}added /files/evals~1yoy-without-a-server-hint~1mocks~1factiq~1fixtures~1LNS14000000.json
Field was absent
{
"sha256": "9827dc5a5e9f5390e7ebf352502d29ad95a7a0654355622ab0a53aad40c6bd6a",
"size": 7971
}added /files/evals~1yoy-without-a-server-hint~1mocks~1factiq~1get_series.md
Field was absent
{
"sha256": "8be660b04874d51a9f4476049e8623e07eca076fb71dce5dcf7fccb9817c9d5b",
"size": 41
}added /files/evals~1yoy-without-a-server-hint~1mocks~1factiq~1run_sql.md
Field was absent
{
"sha256": "8236cf759b4a8f1f91c7725c7f54d69679490766f110aa29bd846c6a7537e98a",
"size": 2146
}added /files/evals~1yoy-without-a-server-hint~1prompt.md
Field was absent
{
"sha256": "678326246a74ba8f44c43dad47b172248ff9e030df00146f766acd52ec88467b",
"size": 786
}added /files/references~1data~1satellite.md
Field was absent
{
"sha256": "2d310c84485c86f91b8a864dc69147988c07f5d9a06a96e0c42961014406b882",
"size": 13687
}added /files/references~1data~1schemas.md
Field was absent
{
"sha256": "51fd1bd6e71b5a48dd8b15cc923e16d608c2d2638edfda5c0fff1a1d56ca47b8",
"size": 22132
}added /files/references~1data~1sql-guide.md
Field was absent
{
"sha256": "4924bd8ae696ef3ee8aaa5c5dbb4ba53356cefa82653d65b3040df407e800027",
"size": 21312
}added /files/references~1output~1chart-spec.md
Field was absent
{
"sha256": "2fb1b622fa6b037e8860c3bfba20bfd97b744192f34d36df16fec82b6f4c30dc",
"size": 8704
}added /files/references~1output~1report-spec.md
Field was absent
{
"sha256": "5e16ae46b0fc2083a35dc262e4483d87e88cc9c6fb8f1412eebd7b2b0570250c",
"size": 14050
}added /files/references~1report-patterns~1README.md
Field was absent
{
"sha256": "674c9df1c81c8cb5d4beb07243ba837217da86912e5e2a59c63641a9531166b9",
"size": 11027
}added /files/references~1report-patterns~1bilateral-economic-policy.md
Field was absent
{
"sha256": "48c89a71f875aa92d7a7ddd11e3c134b108788585f48a8f13af65b2e323e4305",
"size": 9123
}added /files/references~1report-patterns~1bilateral-trade.md
Field was absent
{
"sha256": "98cc223764dd709ffb64ddcb13d3e549669e28331736140e769bae7319d76dac",
"size": 19502
}added /files/references~1report-patterns~1business-formation-statistics.md
Field was absent
{
"sha256": "324ea681d9b3ad7eceb9cc5371608ac01fd86743b3c3581236398053184cbcda",
"size": 5440
}added /files/references~1report-patterns~1earnings-intelligence.md
Field was absent
{
"sha256": "9e491f60843c1fa4d9b0e4f5ddd831974ce2f3eddbc202ad77f64549f33c0634",
"size": 17082
}added /files/references~1report-patterns~1fiscal-policy-revenue.md
Field was absent
{
"sha256": "7525d09c34a0b990e0eb5cf73bcf1e7077bd373e0be8be238706cde1b0cbc670",
"size": 7628
}added /files/references~1report-patterns~1interview-step.md
Field was absent
{
"sha256": "b5edb929dfcc6257c1b25fc407ae29878383c0dca9cf974041e437f0b70e0682",
"size": 3806
}added /files/references~1report-patterns~1media-intelligence.md
Field was absent
{
"sha256": "a9f31dc9760757af5c6462333ca176bfa724980814f3fc55e77ba107b50f0f22",
"size": 17242
}added /files/references~1report-patterns~1monetary-policy.md
Field was absent
{
"sha256": "6439f63e7c77ab5d5d424a09bc112edea12f37630615c96315e80490939ffa38",
"size": 11190
}added /files/scripts~1__pycache__~1term_chart.cpython-312.pyc
Field was absent
{
"sha256": "9b87da15116997e594cba9e058b9ff8e015cd91be7322c1c84d1d0bf6599d14b",
"size": 32120
}added /files/scripts~1comext_sql.py
Field was absent
{
"sha256": "8a8bcc07156d5f1527540dae466ca6ee6ae0c6a743dadeb3d1c8cf94fb87d187",
"size": 19633
}added /files/scripts~1data~1hs_names.json.gz
Field was absent
{
"sha256": "3f5def41a331d3ad3a4ebb70c49e442e6e19e898673c577c04fa8be1ea9e017b",
"size": 155694
}added /files/scripts~1data~1trade_partners.json
Field was absent
{
"sha256": "7445d1193623a87480dbe68107a007bcd23c73aa330cec3c30e04ba3b662bc67",
"size": 38397
}added /files/scripts~1hs_codes.py
Field was absent
{
"sha256": "38230174536c64a18adfb130b486d81a9dc7e6c69ca866f08a1fd6ecca071f98",
"size": 7191
}added /files/scripts~1series_math.py
Field was absent
{
"sha256": "5ee047d8b9d00c934b3e1bd1f25c1a25e6a545c09371f8f5a93ad46adce6cdf1",
"size": 22168
}added /files/scripts~1trade_sql.py
Field was absent
{
"sha256": "246f4a7bdf972f3d30374398d50d7701ae3aa8f00e86403175e82df6f062b6a7",
"size": 23894
}changed /files/skills~1factiq~1SKILL.md/sha256
"46d0e8dcc2169a508f3ba93b5a00cc9d44d8b8fdbf5d7109f2a6d3938c13e9ab"
"b1583be415b4c87002379f6737819536a9556cc0b55ca47b5ee1af33dee8b4ad"
changed /files/skills~1factiq~1SKILL.md/size
47741
52129
added /files/tests~1__pycache__~1test_directory_submission_readiness.cpython-311-pytest-9.1.1.pyc
Field was absent
{
"sha256": "7cd7a02f7438f3ccb26d9887b3434e9de712e1a1ba8b31e02188fe7ed259e5b4",
"size": 9731
}added /files/tests~1__pycache__~1test_earnings_docs.cpython-311-pytest-9.1.1.pyc
Field was absent
{
"sha256": "cce9b51a6d22b7085758a56649b264874da358e8d661ab19901e96dd9c749b23",
"size": 8276
}added /files/tests~1__pycache__~1test_earnings_docs.cpython-312-pytest-8.4.0.pyc
Field was absent
{
"sha256": "6ea5eab90eab2f70dde65e6870c0b4c0604a5126b884d20d3cb9541167d81df7",
"size": 6506
}added /files/tests~1__pycache__~1test_media_docs.cpython-311-pytest-9.1.1.pyc
Field was absent
{
"sha256": "a9c11af354f7918893faf1dc53bd478e8b622f44f8435072dab99d7394a28e29",
"size": 9927
}added /files/tests~1__pycache__~1test_media_docs.cpython-312-pytest-8.4.0.pyc
Field was absent
{
"sha256": "77c4092fa0c7e91219fca81739eec2094b70779623b518b2a464ef97dc1f466b",
"size": 8624
}added /files/tests~1__pycache__~1test_retired_publishing_tools.cpython-311-pytest-9.1.1.pyc
Field was absent
{
"sha256": "092c2a078d0d34ec21dd9cf5e0ca61665cba3080d44c80f2a338c72c40fd7720",
"size": 2790
}added /files/tests~1__pycache__~1test_trade_scripts.cpython-311-pytest-9.1.1.pyc
Field was absent
{
"sha256": "d341dcc6f3409f2eb1a6fef285d8ee450cdc9af181aa4b1bf44753dce27be131",
"size": 39627
}added /files/tests~1__pycache__~1test_trade_scripts.cpython-312-pytest-8.4.0.pyc
Field was absent
{
"sha256": "a7915418895584c253832c1d221e17fe97606e39b0e2e8f041cbf1c64f425a55",
"size": 37264
}added /files/tests~1test_directory_submission_readiness.py
Field was absent
{
"sha256": "996daa950b56bd3368d7e45221c75b8fa9ce7a1a7a23d91734f8ddc286f81f3a",
"size": 6918
}added /files/tests~1test_earnings_docs.py
Field was absent
{
"sha256": "6e596f81295baaefb70ae514dee2f9e6175c34d146afba1ac27a01412040304a",
"size": 4884
}added /files/tests~1test_media_docs.py
Field was absent
{
"sha256": "214149d3ddb196a85639600ce7ae75a25add42196a5923d8b95123c36dd54974",
"size": 6290
}added /files/tests~1test_retired_publishing_tools.py
Field was absent
{
"sha256": "395261b5067573c050ecda46f594530d91d67fc2ec07484540c9adeaa0a2306a",
"size": 1442
}added /files/tests~1test_sql_docs.py
Field was absent
{
"sha256": "18b2581835f82ce007d78e538e5359d2ad30fa13f37652bea06aba5da21c6872",
"size": 12090
}added /files/tests~1test_trade_scripts.py
Field was absent
{
"sha256": "d024d95711d2da25f2407626d81422357ded2ec8b3791dd9934dab1140123d04",
"size": 27782
}Full snapshot data
{
"files": {
".claude-plugin/marketplace.json": {
"sha256": "49fb6b53e79d5715aa9a9a093a0bf8d7f3dbd8b9a9328bb9ae21b336aa88cf49",
"size": 610
},
".claude-plugin/plugin.json": {
"sha256": "dec61fe1e1790fd335e220e1c54c16120e2e7632e16e044fe32f010d58d9c36e",
"size": 927
},
".codex-plugin/plugin.json": {
"sha256": "add8506ef8caab254eb8e3518555c6a398af5aea31b7e1089d38ff02d4ea2cf9",
"size": 2536
},
".gitignore": {
"sha256": "566702bcfdb6180828438f56a6f35b82c75d7221aa69a8c6aa7621adf8df5f00",
"size": 126
},
".mcp.json": {
"sha256": "bd6807e5f73d473c49f99a29cd0eb178ba1e25349cd3db388d4f980963acaec9",
"size": 112
},
"LICENSE": {
"sha256": "ffe02ec2d2f9b23b61b38602bfd44d0fa777600a1cb1e8765da0626d09bd7114",
"size": 1068
},
"README.md": {
"sha256": "ff859c70ed0a7e6e53f2f077afd79125a1f6ac0d5e93e6764a17f49096f704ab",
"size": 16746
},
"SETUP.md": {
"sha256": "4a6e0b5db6c5948e362c9442ee2d9c35dd9980bafd6c01a056a7d123be5a286e",
"size": 2958
},
"assets/factiq-logo.png": {
"sha256": "3b7bc0447b0612514780bc363f5a205710ef66de15daed4524ac4624998161e3",
"size": 17317
},
"evals/README.md": {
"sha256": "976b22bcc20d210ac3187e45154be00bfbeb68ffc17412de2d8eea9417f6a163",
"size": 8941
},
"evals/bilateral-trade-sql/graders/one-hs-level-only.md": {
"sha256": "1858daf1ab5d4774154d77458e7aa079da270af35e3476e904752180e6b82726",
"size": 471
},
"evals/bilateral-trade-sql/graders/partner-code-is-numeric.md": {
"sha256": "ebfb683108dca135318753256062de5ababbd417c3fa3eaa3a1b9c712cd92f17",
"size": 523
},
"evals/bilateral-trade-sql/graders/used-the-bundled-generator.md": {
"sha256": "8d5dfaa90973849c823636a1cf001b537fe4346f3f31e4467179557b45d90536",
"size": 121
},
"evals/bilateral-trade-sql/graders/value-series-only.md": {
"sha256": "83258957a67431b6ddaaa98e01cd4694533f814ba4ecf97b14b0ae981eef9bec",
"size": 466
},
"evals/bilateral-trade-sql/prompt.md": {
"sha256": "6e0aeeaef20feb8ad194bfac0fb77fd63816c42fc8b1fc24914a1072e88e6b29",
"size": 842
},
"evals/filings-duplicate-line/graders/figure-is-not-doubled.md": {
"sha256": "7f7444985429c85502638acdd809f0bc96b3b7a676d6f9b6ac246bfd88505ddf",
"size": 123
},
"evals/filings-duplicate-line/graders/figure-is-the-first-line.md": {
"sha256": "325edda2814c36316d071e690539068175a5d9334eaf9bd555e84c5a38d2667d",
"size": 808
},
"evals/filings-duplicate-line/graders/no-invented-filing-links.md": {
"sha256": "46043047d26759ce2ed60643464fd5a377f2d75a46937b1f17ee5f53f420f15b",
"size": 550
},
"evals/filings-duplicate-line/graders/source-link-is-the-filing.md": {
"sha256": "30cf2586d074446b24b07333cf4860bc267b42d3efd36ed9f319f9aafcb11c41",
"size": 163
},
"evals/filings-duplicate-line/prompt.md": {
"sha256": "4cd0b9906584614ca73ddec45d3681a3573bbc68ce076274ae89826e228ac055",
"size": 813
},
"evals/latest-value-direct-answer/graders/answers-in-prose.md": {
"sha256": "04588e346003462f88adf6a2fe6b85b5dd62f8c17ded2212b2bc9d068e5929a7",
"size": 669
},
"evals/latest-value-direct-answer/graders/no-chart-file-written.md": {
"sha256": "a06cd9171ce44db1511d189c1467b55dd76e0ddd3025bf9c63ffd6df1eaada46",
"size": 60
},
"evals/latest-value-direct-answer/prompt.md": {
"sha256": "3a957c231947743012ecb886cd3c5fffa6e528444826b487df1b180f59d2d40e",
"size": 577
},
"evals/mocks/factiq/_tools.json": {
"sha256": "b867d3bc2218c923d117350a8d19391578e31aaba251d806b766f711c4083373",
"size": 58563
},
"evals/mocks/factiq/describe_dataset.md": {
"sha256": "aef6ae3bad4de381194fd3533f5ac2bf291f5c94cbe2a4c840eb09ad6fa91558",
"size": 2132
},
"evals/mocks/factiq/fixtures/LNS14000000.json": {
"sha256": "3432a266cfbd4d7c32b11cec8d8f7305db7e97b4f7a91930c166b13719071b93",
"size": 8750
},
"evals/mocks/factiq/fixtures/PKG.json": {
"sha256": "236b9ba9dd79f5e160faaa32e6c5991a909c4162011ec539f11fba0ee682215f",
"size": 15247
},
"evals/mocks/factiq/get_data_catalog.md": {
"sha256": "840dc24cf2f2eb91611464c95d3414152c404df96600fae160fd0d1c07a777bb",
"size": 6858
},
"evals/mocks/factiq/get_series.md": {
"sha256": "8be660b04874d51a9f4476049e8623e07eca076fb71dce5dcf7fccb9817c9d5b",
"size": 41
},
"evals/mocks/factiq/get_style_guides.md": {
"sha256": "6363e4370e733e924f18a2c71a611509a1926a781e68ead99646b76659256f5a",
"size": 880
},
"evals/mocks/factiq/run_sql.md": {
"sha256": "77b6cee5f1133990bc93147fe8e2956f9b8b0b4a5fc14783dbcc9971d91130d5",
"size": 2181
},
"evals/mocks/factiq/search_company_filings.md": {
"sha256": "d7fa2f3b3a67aef362b459b0eba2362f2f3d12c242dded32a3f1402f95f3f268",
"size": 39
},
"evals/mocks/factiq/search_datasets.md": {
"sha256": "98f364b4a4189012c607031b595c3e1bd7cb8e3ba95e10f59dd7aaf78883418f",
"size": 1034
},
"evals/mocks/factiq/search_earnings_transcripts.md": {
"sha256": "6f0187121c6c4e5f998be00612e9d5bff30c6d5b6ad36ffccd447e21ba1650d5",
"size": 6189
},
"evals/mocks/factiq/search_series.md": {
"sha256": "4a78565f723fcf708bcdc08f7df142f3568ad1652db43b87796d091716e9c41b",
"size": 1302
},
"evals/quick-chart-of-a-trend/graders/answer-states-gap-and-source.md": {
"sha256": "b2dd20ccd3a717585bdfe2b5bfe101042ca3933734ab6cb273d5ac4bff90561f",
"size": 492
},
"evals/quick-chart-of-a-trend/graders/chart-file-written.md": {
"sha256": "53a654575c25d75251de7e79e8d40d1837b12f186d31060f3a2a7819dfcaefcc",
"size": 53
},
"evals/quick-chart-of-a-trend/graders/missing-month-is-not-filled-in.md": {
"sha256": "4012378ca9d63de3ebee5f3fdb39b78ff5095bd861f97716323d8564a3c8d1b2",
"size": 528
},
"evals/quick-chart-of-a-trend/graders/spec-is-a-valid-chartspec.md": {
"sha256": "72ea853a887ba0bd91a97f49ae52cdbd66cb295eb4888c1bcb47719892bad82c",
"size": 946
},
"evals/quick-chart-of-a-trend/graders/title-makes-a-claim.md": {
"sha256": "2d9c5e1e0ff470e04d170bd88140d874324a7db4086feb53adf19216d371a4d0",
"size": 656
},
"evals/quick-chart-of-a-trend/prompt.md": {
"sha256": "956fc00fd943f70ae85de3bd22b6b60147846dd67a3297ecbec36d64eff723d2",
"size": 690
},
"evals/quote-and-source-discipline/graders/analyst-framing-is-not-management.md": {
"sha256": "db4672fe197c1bbc858969604d0fbdfece844c4a95bb4cbffb2a94da904b0553",
"size": 608
},
"evals/quote-and-source-discipline/graders/link-fy2025q2-is-the-supplied-one.md": {
"sha256": "e5723ee4f90d36c669c66dfa247d5674dd4e71f6bb8b5290f4d1c7d65a4b89e4",
"size": 216
},
"evals/quote-and-source-discipline/graders/link-fy2026q4-is-the-supplied-one.md": {
"sha256": "f0615b5f82e65e997603fd0dce33d331e0dc5aa86738521ea7e0720d9ffa484c",
"size": 215
},
"evals/quote-and-source-discipline/graders/link-fy2027q1-is-the-supplied-one.md": {
"sha256": "da50e2f5694fdaf824130515c6cad1edd6581cc0068054c6eead1f03546fed87",
"size": 215
},
"evals/quote-and-source-discipline/graders/missing-link-is-declared.md": {
"sha256": "3286a7f25db8fc1c059b14977cc35cd72cbb6bba67720b7b58137a47ad201177",
"size": 486
},
"evals/quote-and-source-discipline/graders/no-invented-source-links.md": {
"sha256": "3418802ca26fd0b78017ccdab87a0a243cce30966c5e3482a87d1708a6e98ee0",
"size": 167
},
"evals/quote-and-source-discipline/graders/quotes-are-verbatim.md": {
"sha256": "af6f44f2a953d8de18d8592486114447a94e8f621f0ea0a2e52d6d284d74ed14",
"size": 2001
},
"evals/quote-and-source-discipline/prompt.md": {
"sha256": "1287da04c18787fa65b4cb016cef62fe7d208b360f0d7d7f6750ffb68db35f78",
"size": 781
},
"evals/run_ablation.py": {
"sha256": "550702da90fbe53889c67ef30f6cb7254e31fa1009719ec869f313b3aed9f1d3",
"size": 9041
},
"evals/unrelated-coding-request/graders/answers-the-python-question.md": {
"sha256": "4db03d4fcb5e4bb6a04162e0dad4b5db3fef97d145103d64bfb041b50946f12a",
"size": 407
},
"evals/unrelated-coding-request/graders/no-catalog-lookup.md": {
"sha256": "60bfc77bae34c51bdb2a2b7a3b8c72719e5bd55d81a281a71e9026595d426260",
"size": 98
},
"evals/unrelated-coding-request/graders/no-factiq-skill-invoked.md": {
"sha256": "22813294a356e15059d59459cbe5da9ec0a4a18c760d9521ddc35ae886dcd7c5",
"size": 80
},
"evals/unrelated-coding-request/graders/no-series-fetch.md": {
"sha256": "ede84d92b6c6e73e1e42d8968ddd3c8c0c8f9d7560bd169131987ca1db3e23f9",
"size": 92
},
"evals/unrelated-coding-request/graders/no-sql-call.md": {
"sha256": "3e5d7fdb2a6fb1566d4ba420eb12550281f72f0deec9cb9e613378ceb76cd7ae",
"size": 89
},
"evals/unrelated-coding-request/prompt.md": {
"sha256": "40eb7a0228cca78e53786e361c687eb96238814f69911fc9d998f501b6575250",
"size": 492
},
"evals/yoy-across-a-missing-month/graders/missing-month-is-stated.md": {
"sha256": "560524f7356fb5ceedf5314bfb511ae0b70c63c6b92bace819c52cc0cce26ee3",
"size": 376
},
"evals/yoy-across-a-missing-month/graders/yoy-values-are-date-matched.md": {
"sha256": "3d6dfbc6957296d246e5e767d23ce83e134b92aa179d824cb6988100f3ba80cd",
"size": 860
},
"evals/yoy-across-a-missing-month/prompt.md": {
"sha256": "fcdbe2f5cc33e6a2d0e27d88143ea5d5fd57c59cd1ccbb889c58b9cbbe7aa380",
"size": 678
},
"evals/yoy-without-a-server-hint/graders/missing-month-is-stated.md": {
"sha256": "560524f7356fb5ceedf5314bfb511ae0b70c63c6b92bace819c52cc0cce26ee3",
"size": 376
},
"evals/yoy-without-a-server-hint/graders/yoy-values-are-date-matched.md": {
"sha256": "3d6dfbc6957296d246e5e767d23ce83e134b92aa179d824cb6988100f3ba80cd",
"size": 860
},
"evals/yoy-without-a-server-hint/mocks/factiq/fixtures/LNS14000000.json": {
"sha256": "9827dc5a5e9f5390e7ebf352502d29ad95a7a0654355622ab0a53aad40c6bd6a",
"size": 7971
},
"evals/yoy-without-a-server-hint/mocks/factiq/get_series.md": {
"sha256": "8be660b04874d51a9f4476049e8623e07eca076fb71dce5dcf7fccb9817c9d5b",
"size": 41
},
"evals/yoy-without-a-server-hint/mocks/factiq/run_sql.md": {
"sha256": "8236cf759b4a8f1f91c7725c7f54d69679490766f110aa29bd846c6a7537e98a",
"size": 2146
},
"evals/yoy-without-a-server-hint/prompt.md": {
"sha256": "678326246a74ba8f44c43dad47b172248ff9e030df00146f766acd52ec88467b",
"size": 786
},
"references/data/satellite.md": {
"sha256": "2d310c84485c86f91b8a864dc69147988c07f5d9a06a96e0c42961014406b882",
"size": 13687
},
"references/data/schemas.md": {
"sha256": "51fd1bd6e71b5a48dd8b15cc923e16d608c2d2638edfda5c0fff1a1d56ca47b8",
"size": 22132
},
"references/data/sql-guide.md": {
"sha256": "4924bd8ae696ef3ee8aaa5c5dbb4ba53356cefa82653d65b3040df407e800027",
"size": 21312
},
"references/output/chart-spec.md": {
"sha256": "2fb1b622fa6b037e8860c3bfba20bfd97b744192f34d36df16fec82b6f4c30dc",
"size": 8704
},
"references/output/report-spec.md": {
"sha256": "5e16ae46b0fc2083a35dc262e4483d87e88cc9c6fb8f1412eebd7b2b0570250c",
"size": 14050
},
"references/report-patterns/README.md": {
"sha256": "674c9df1c81c8cb5d4beb07243ba837217da86912e5e2a59c63641a9531166b9",
"size": 11027
},
"references/report-patterns/bilateral-economic-policy.md": {
"sha256": "48c89a71f875aa92d7a7ddd11e3c134b108788585f48a8f13af65b2e323e4305",
"size": 9123
},
"references/report-patterns/bilateral-trade.md": {
"sha256": "98cc223764dd709ffb64ddcb13d3e549669e28331736140e769bae7319d76dac",
"size": 19502
},
"references/report-patterns/business-formation-statistics.md": {
"sha256": "324ea681d9b3ad7eceb9cc5371608ac01fd86743b3c3581236398053184cbcda",
"size": 5440
},
"references/report-patterns/earnings-intelligence.md": {
"sha256": "9e491f60843c1fa4d9b0e4f5ddd831974ce2f3eddbc202ad77f64549f33c0634",
"size": 17082
},
"references/report-patterns/fiscal-policy-revenue.md": {
"sha256": "7525d09c34a0b990e0eb5cf73bcf1e7077bd373e0be8be238706cde1b0cbc670",
"size": 7628
},
"references/report-patterns/interview-step.md": {
"sha256": "b5edb929dfcc6257c1b25fc407ae29878383c0dca9cf974041e437f0b70e0682",
"size": 3806
},
"references/report-patterns/media-intelligence.md": {
"sha256": "a9f31dc9760757af5c6462333ca176bfa724980814f3fc55e77ba107b50f0f22",
"size": 17242
},
"references/report-patterns/monetary-policy.md": {
"sha256": "6439f63e7c77ab5d5d424a09bc112edea12f37630615c96315e80490939ffa38",
"size": 11190
},
"scripts/__pycache__/term_chart.cpython-312.pyc": {
"sha256": "9b87da15116997e594cba9e058b9ff8e015cd91be7322c1c84d1d0bf6599d14b",
"size": 32120
},
"scripts/comext_sql.py": {
"sha256": "8a8bcc07156d5f1527540dae466ca6ee6ae0c6a743dadeb3d1c8cf94fb87d187",
"size": 19633
},
"scripts/data/hs_names.json.gz": {
"sha256": "3f5def41a331d3ad3a4ebb70c49e442e6e19e898673c577c04fa8be1ea9e017b",
"size": 155694
},
"scripts/data/trade_partners.json": {
"sha256": "7445d1193623a87480dbe68107a007bcd23c73aa330cec3c30e04ba3b662bc67",
"size": 38397
},
"scripts/hs_codes.py": {
"sha256": "38230174536c64a18adfb130b486d81a9dc7e6c69ca866f08a1fd6ecca071f98",
"size": 7191
},
"scripts/series_math.py": {
"sha256": "5ee047d8b9d00c934b3e1bd1f25c1a25e6a545c09371f8f5a93ad46adce6cdf1",
"size": 22168
},
"scripts/trade_sql.py": {
"sha256": "246f4a7bdf972f3d30374398d50d7701ae3aa8f00e86403175e82df6f062b6a7",
"size": 23894
},
"skills/factiq/SKILL.md": {
"sha256": "b1583be415b4c87002379f6737819536a9556cc0b55ca47b5ee1af33dee8b4ad",
"size": 52129
},
"tests/__pycache__/test_directory_submission_readiness.cpython-311-pytest-9.1.1.pyc": {
"sha256": "7cd7a02f7438f3ccb26d9887b3434e9de712e1a1ba8b31e02188fe7ed259e5b4",
"size": 9731
},
"tests/__pycache__/test_earnings_docs.cpython-311-pytest-9.1.1.pyc": {
"sha256": "cce9b51a6d22b7085758a56649b264874da358e8d661ab19901e96dd9c749b23",
"size": 8276
},
"tests/__pycache__/test_earnings_docs.cpython-312-pytest-8.4.0.pyc": {
"sha256": "6ea5eab90eab2f70dde65e6870c0b4c0604a5126b884d20d3cb9541167d81df7",
"size": 6506
},
"tests/__pycache__/test_media_docs.cpython-311-pytest-9.1.1.pyc": {
"sha256": "a9c11af354f7918893faf1dc53bd478e8b622f44f8435072dab99d7394a28e29",
"size": 9927
},
"tests/__pycache__/test_media_docs.cpython-312-pytest-8.4.0.pyc": {
"sha256": "77c4092fa0c7e91219fca81739eec2094b70779623b518b2a464ef97dc1f466b",
"size": 8624
},
"tests/__pycache__/test_retired_publishing_tools.cpython-311-pytest-9.1.1.pyc": {
"sha256": "092c2a078d0d34ec21dd9cf5e0ca61665cba3080d44c80f2a338c72c40fd7720",
"size": 2790
},
"tests/__pycache__/test_trade_scripts.cpython-311-pytest-9.1.1.pyc": {
"sha256": "d341dcc6f3409f2eb1a6fef285d8ee450cdc9af181aa4b1bf44753dce27be131",
"size": 39627
},
"tests/__pycache__/test_trade_scripts.cpython-312-pytest-8.4.0.pyc": {
"sha256": "a7915418895584c253832c1d221e17fe97606e39b0e2e8f041cbf1c64f425a55",
"size": 37264
},
"tests/test_directory_submission_readiness.py": {
"sha256": "996daa950b56bd3368d7e45221c75b8fa9ce7a1a7a23d91734f8ddc286f81f3a",
"size": 6918
},
"tests/test_earnings_docs.py": {
"sha256": "6e596f81295baaefb70ae514dee2f9e6175c34d146afba1ac27a01412040304a",
"size": 4884
},
"tests/test_media_docs.py": {
"sha256": "214149d3ddb196a85639600ce7ae75a25add42196a5923d8b95123c36dd54974",
"size": 6290
},
"tests/test_retired_publishing_tools.py": {
"sha256": "395261b5067573c050ecda46f594530d91d67fc2ec07484540c9adeaa0a2306a",
"size": 1442
},
"tests/test_sql_docs.py": {
"sha256": "18b2581835f82ce007d78e538e5359d2ad30fa13f37652bea06aba5da21c6872",
"size": 12090
},
"tests/test_trade_scripts.py": {
"sha256": "d024d95711d2da25f2407626d81422357ded2ec8b3791dd9934dab1140123d04",
"size": 27782
}
}
}SHA-256 of public snapshot: 2437a378d6bdbf34db5cb4c2c9fed0392b6d6acd0b48c7fc5d12ab4a5fd75c12