Spaces:
Running
Running
Commit History
22 days ago
-
refactor(reporting): name the DEMO_RUN timestamp DEMO_RUN_TIME
The column holds the request time of the latest demo run for the opportunity, so name it for that (boone, 2026-11-04). Renamed in Snowflake the same day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ca234c2 -
feat(reporting): DEMO_RUN keeps one row per Salesforce opportunity
The business right-joins its go-to-market data to DEMO_RUN on SALESFORCE_OPPORTUNITY_ID. Every rerun of a demo added another row for the same opportunity, which double-counts the deal (92 opportunities, 322 extra rows on 2026-11-04). The write-through now looks the opportunity up first. If DEMO_RUN already has a row for it, that row is updated to the new run (run id, SE, prospect name, UPDATED_AT = the run's request time, never an older run over a newer one) instead of a second row being inserted. A new opportunity, or a run with no opportunity id, still gets its own row, stamped with UPDATED_AT. DEMO_RESULTS keeps one row per run, keyed by SOURCE_INTAKE_ID, so each rerun's times, status and links survive while several runs share one DEMO_RUN row. Needs the two columns added in Snowflake on 2026-11-04 (DEMO_RUN.UPDATED_AT, DEMO_RESULTS.SOURCE_INTAKE_ID; both filled for every existing row). The hand-run loader got the same rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com…b4f167d
23 days ago
-
chore(portal): re-vendor the TSE template at tse_demos 22312aa (PR #14)
Mani asked for PR #14 on Agent Q staging for a check. Upstream afba4e3 -> 22312aa (e8c51fc, 652c52e, 07c6df4), 9 files, all inside .claude/skills/rebrand-thoughtspot-portal/. MERGED, not copied. Our vendored copy carries in-place edits since the 10-06 re-vendor, so upstream's diff was 3-way merged file by file (base = afba4e3, ours = test tip 58f67a3, theirs = 22312aa). HAND-MERGED (our edits overlap upstream's): scripts/apply-spec.mjs - our clientIdent split (display name in prose, identifier-safe token in code) template-tse/src/config.ts - our Northwind_VIDEO_URL='' and Northwind_UPGRADE_URL=CONTENT.website template-tse/src/styles/globals.css - our --sl-on-primary fallback TAKEN WHOLESALE (we had no edits): App.tsx, flags.ts, lib/thoughtspot.ts, tabs/Analytics.tsx, tabs/Spotter.tsx, tabs/Overview.tsx (new) UNTOUCHED, as the brief requires: chatbot.ts, AskNorthwind.tsx, SignIn…d645d6c -
merge: test Space tip 2093856e2b into develop (pushed to the Space directly)
58f67a3 -
feat(tracker): a "cancelled" task status, closed like "done" without claiming the work was done
- schema.sql: the status check constraint is replaced (drop if exists, add) so the file stays re-runnable; the open-tasks partial index and the task_board stale flag exclude both closed statuses. - store.py: CLOSED = ("done", "cancelled"); update_task sets closed_at for either and clears it on reopen; list_tasks and open_task_by_source hide both unless include_done or the status is asked for by name. - Liveboard TML: every query that excluded done now excludes cancelled too; the model's Status description lists it. - Tool docstrings and the agent write-up (a CANCEL step beside CLOSE). - Tests: cancelled closes, hides, never goes stale, reopens; a cancelled automatic task no longer blocks a new one; the schema says what the code says. The fake client gains supabase-py's `not_` negation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>c1d7132
28 days ago
-
feat(migrator): DP Migrator beta — rebuild a prospect's Tableau dashboard (or a picture of it) as the demo
Ketan's "built-in legacy migrator" and Nick's ask (2026-10-28): the SE sends the prospect's website plus a .twb/.twbx or a dashboard screenshot; the demo's data speaks the dashboard's measure and dimension names and the liveboard copies its sheets (chart types, titles, arrangement; a dual axis as a combo chart) instead of the golden layout. DP Web unchanged. - demoprep_app/migration/: MirrorSpec contract, source-grammar -> ThoughtSpot chart-type mapping, deterministic Tableau .twb parser (defusedxml; paths, hosts and users stripped; blends, relationships, parameters, table calcs and LOD noted), one-vision-call picture reader, the blueprint statement that binds the vocabulary, one liveboard question per sheet in the model's column names, and the argument loader (.twbx -> its .twb only; the payload log keeps kind, size and hash, never content). - liveboards/mirror_layout.py + enhance_mcp_liveboard(layout_strategy="mirror"): retype/retitle from the source before classificat…2093856
29 days ago
-
Merge feature/brand-from-homepage into the test line (ISS-30: browser-default link colours are not brand colours)
8528a7c -
merge: hotfix/dp-web-visible-text into the test line
DP Web visible-text hotfix 2039eea (on prod since 2026-10-27) carried back so the next test -> prod release keeps it: assistant without the template FAQ, company name as given, landing copy normalised, Regular Case keeps acronyms, bundle scan. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>aeed677
30 days ago
-
fix(portal): DP Web sites read as the prospect's — name as given, neutral assistant, home copy that renders, acronyms kept
Four generator defects from the 2026-10-27 audit (276 sites, 183 boards), prod line. 1. Assistant (template-tse/src/lib/chatbot.ts): the template's Northwind sales- engagement FAQ shipped on every site renamed to the prospect ("Rhythm is C2Fo's AI engine", links to developers.c2fo.com, /pricing). Rewritten: with no LLM key, data questions go to Spotter and everything else gets one neutral line from company + use case + the real website. No *_DOCS table, no invented video or pricing paths. 2. Name (portal/builder.py, apply-spec.mjs): camel_token() ("C2FO" -> "C2Fo", "BNY Pershing" -> "BnyPershing") was written into the title, assistant name, logo label and nav on 175 sites. The spec now carries `client` = display_name(company) for everything visible and `clientIdent` = camel_token(company) for component and file names only. 3. Home page (mcp_server._landing_content): tagline/cta/string stats were passed through verbatim and rendered as nothing. Now normali…2039eea -
merge: test Space tip 877abd816c into develop (pushed to the Space directly)
3fe8cb3 -
feat(reporting): production runs reach Snowflake DEMO_RUN/DEMO_RESULTS the moment a build completes
The DemoPrep reporting liveboard reads DEMOPREP_REPORTING.REPORTING (DEMO_RUN, DEMO_RESULTS, V_DEMO_RUN), which until now was filled only by the hand-run loader dev_notes/reporting_load_runs.py.txt. Nobody ran it Oct 22-26 and five days of SE builds were missing. A production run - a real Salesforce opportunity id (15/18 alphanumerics, never a TEST-/REPLAY-/XXTEST marker) with environment prod - is now written the moment its build completes; every other run stays Supabase-only for the loader, as before. - demoprep_app/reporting/writer.py: the loader's single-run logic, importable. Same rules verbatim (SFID, TEST_MARKER, INTERNAL, owner skips, IS_TEST_RUN sticky, COALESCE on the opportunity id, err_bucket/cluster/space_of, derived model URL), LOAD_LEDGER keyed by SOURCE_INTAKE_ID so the loader updates instead of duplicating, one transaction, fully-qualified statements, never raises. - supabase_client: fetch_mcp_intake_row (the intake row with its id + created_at); mcp_result_…877abd8
-
fix(brand): the browser's default link colour is not a brand colour (ISS-30)
boone 2026-10-22, after a Walmart demo. walmart.com leaves its nav links unstyled, so the capture read them as #0000EE and the brand read took that as a series colour. Measured on Chromium 149: an unstyled link computes to #0000EE on a light page and #9E9EFF on a page that opts into a dark colour scheme; a visited link reports the unvisited colour to getComputedStyle, so visited purple never reaches a capture. Those two colours are now skipped in TEXT readings only (button text, h1, h2, nav link). A background or a brand custom property in that exact blue was set by the site and still counts. Verified on live captures: walmart.com now reads #0053E2 / #004F9A / #001E60 with the nav link dropped; industry.traveloregon.com is unchanged (its styled nav colour is still read). Tests: 4 new in tests/test_brand_capture.py, the Walmart fixture taken from the real capture; brand suites 136 pass; full suite 1911 pass, the same 3 pre-existing failures as the test tip. Not pushed. Co-Authored-B…a060847 -
feat(mcp): dpSettingsDB tools — an SE's settings read and changed in Supabase through the MCP server
boone (2026-10-22): a new AgentSpot agent, dpSettingsDB, shows and changes a Sales Engineer's DemoPrep settings in the database, with dropdown-constrained choices. AgentSpot has no database connector (60 application connectors, Snowflake the only database) and its Apps write back only to Jira, Slack and Salesforce, so the DemoPrep MCP server, already connected to Supabase and already registered in AgentSpot, is the agent's path to the settings. - demoprep_app/settings/catalog.py: the editable fields with kind, default and (for dropdowns) the exact options; keys are SETTINGS_SCHEMA storage keys, so a write is live in the App tab and in builds with nothing else in between; the dead fields (temperature, batch size, per-user snowflake, ...) are absent - demoprep_app/settings/store.py: validated, all-or-nothing read/write on user_settings (category 'defaults'); unknown keys and off-list values are refused naming the options; stale stored values are reported as problems - mcp_serv…cc072ec -
fix(pipeline): read pytest's quiet summary; a token without Checks reads as no checks
Both seen on the first deploy through the pipeline (2026-10-22, test-mcp = 3108c38): - `pytest -q` ends with a bare "3 failed, 2049 passed in 40s" line; the run recorded "pytest exit 1" because the parser wanted the ===== border. - The sync's first pass answered 403 on the pull request list (the token was created without the Pull requests permission: boone's to fix). A token with Pull requests but not Checks would still have failed the whole sync on the check-runs call; that now reads as "none" for that PR. Docs: the exact token permissions in docs/development_process.md; the sprint doc records the first deploy and what is left. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>4637f97 -
feat(liveboard): describe_liveboard / update_liveboard / undo_liveboard_change — remove or rename tiles by TML
The Portal Editor agent correctly refused to remove a KPI because the KPI lives in the liveboard, not the site. boone: "we can just edit the TML" — which every build already does. These tools do exactly that, as the board's owner, with the rules boone set on 2026-10-22: a title that matches two tiles is a conflict the agent asks about, never a guess; a row that lost a tile is re-packed; v1 is remove and rename, move comes later. - demoprep_app/liveboards/edit.py: pure functions over the TML dict. describe (tiles by tab, kind, group), find by id or exact title, remove via the existing remove_visualizations_from_liveboard_tml plus re-pack (survivors shift left and widen when the row divides the 12-wide grid; emptied rows close up; a group that lost its last tile loses its frame, which the helper left dangling), rename. Every reference is resolved before anything is applied, so a partly wrong request leaves the board as it was. - mcp_server.py: the three tools. Target from a …23c6a10 -
merge: test Space tip 0d02061 (settings document, Data Adjuster LLM fix) into the pipeline fix branch
Both were pushed straight to the test Space by other sessions after develop was reset to b918bd8, so develop lacked them and the pickup run's Space push would have been refused. The run refused to merge them itself because both sides had appended to sprint_2026_04.md; resolved here by keeping both sections and one trailer. Once this branch is in develop, the Space push is a fast-forward. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>545c9c5 -
fix(pipeline): fold in commits pushed straight to the Space; a token without repos never stops the server
Two things the first real pickup run met on 2026-10-22: - The test Space was ahead of develop by two commits another session had pushed to it directly (settings document, Data Adjuster LLM fix). The push would have been refused as a non-fast-forward. The run now merges the Space's own commits into the integration branch first (--no-ff, a conflict is reported, not forced), so nothing on the Space is lost and the push is a fast-forward. Recorded on the deployment note. - GITHUB_TOKEN landed on prod too, with no TRACKER_REPOS. The server used to raise at startup on that half config, which would have taken prod down at the next promotion. The poller is now skipped with a loud log line; the sync runs only on the Space that has TRACKER_REPOS (test). Also: the job and the CLI load the nearest .env when run from a worktree; the launchd job runs the pipeline worktree's own copy of the script, so it always runs the integration branch whatever boone's checkout is on; the third p…02321f4 -
feat(mcp): settings document on build_demo_from_brief replaces per-run Supabase settings reads
A separate TSE app owns an SE's DemoPrep settings and Agent Q hands them to the build as one JSON document (schema 1.0, the `settings` keyword argument). When present, the build takes model, data size, column naming style, object prefix, liveboard name, tag, share-with and geo scope from it and reads nothing from the SE's Supabase settings: the controller skips its startup read and the three mid-run re-reads are guarded. Explicit owner_email / ts_url still win; a blank ts_url falls back to the document's URL, then its environment label through the TS_ENV table. A bad document is refused before a slot is taken, naming the key. - demoprep_app/settings/payload.py: the one parser and apply step (the data-size presets live here now) - chat_interface: ChatDemoInterface(settings_from_supabase=...), _settings_source - run record carries settings_source and settings_schema_version - docs: settings inventory with decisions and the phase-2 Supabase scope, the example document, the brief for …0d02061 -
fix(adjuster): route Data Adjuster LLM parsing through MultiLLMResearcher
SmartDataAdjuster._call_llm() went through prompt_logger.logged_completion(), which imported litellm — a package that is not in requirements.txt — so every call raised ImportError. match_request_to_viz() swallowed it, meaning the LLM parser never ran and only the regex parser ever decided. - smart_data_adjuster.py: build the shared MultiLLMResearcher client via the app's provider mapping (injectable `researcher=`), log every call on the session PromptLogger, raise DataAdjusterParseError on malformed replies, and let transport errors propagate. The swallowed-exception path is gone. - prompt_logger.py: delete the dead litellm wrapper logged_completion (the adjuster was its only caller) and fix the stale module docstring. - tests/test_smart_data_adjuster_llm.py: 13 unit tests with the LLM stubbed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>aae5297 -
Merge remote-tracking branch 'hf-mcp-test/main' into feature/tracker
122171d -
feat(pipeline): the pickup run, the agent worker, and the process they implement
Every change on a branch off develop, a PR in, approved on arrival for Mike and Jack and by one of them for everyone else, picked up four times a day and pushed to the test Space. Everything that writes to GitHub or Hugging Face runs on boone's Mac under his own credentials; the server only reads. - scripts/pipeline_run.py: queue -> merges in its own pipeline/ worktree (detached, --no-ff, a conflict skips with a note) -> unit suite with the known-failures allowlist -> push origin -> three-minute idle gate on the Space -> push hf-mcp-test -> ping confirms the sha -> deployments row and "on test-mcp" notes. Never prod, never a red suite, never a non-fast- forward. --dry-run reports against the real tracker. - scripts/launchd/com.demoprep.pipeline.plist: 7:30 / 11:30 / 15:30 / 19:30 local time. scripts/pipeline_known_failures.txt: the pre-existing failures. - scripts/agent_worker.sh + agent_worker_prompt.md + tracker_cli.py: the agent's turn — top task, agent/t<id>-<slug> o…62f3e9a -
feat(tracker): approval policy, pipeline state, findings intake — the server half of the pickup pipeline
Checkpoint on the way to the four-times-a-day pickup run. The MCP server still only READS GitHub; everything that writes (merge, push origin, push test) will run on boone's Mac under his own credentials. - schema.sql: tracker_people gains is_agent / can_approve / auto_merge (Mike and Jack approve; the agent is a person row with no GitHub login; Jack's login jackrayner-ts); tasks gain `source`; pull_requests gain base_branch, head_sha, agent_opened, approval, approved_by/at, checks, mergeable, merge_sha, merged_by_pipeline; new pipeline_runs and deployments tables; task_board gains source, pr_approval, owner_is_agent. - github_sync.py: the approval policy (auto for an approver's own PR unless the branch starts with agent/; approved / changes_requested from an approver's latest review; a tracker approval survives a sync; a merged PR keeps its history); per-PR mergeable_state and check-run summary; t<id> accepted in any branch segment (fix/t42-..., agent/t42-...). - sto…9cc42ea
-
fix(data): a 0-1 rate declared "float" is reconciled to pct, so it keeps 4dp
The column fix (c0c880f) was only half of it. Re-running the baseline on that build showed rates STILL at scale 2 with 3-19 distinct values, because the measures were never fmt="pct" in the first place — the LLM declared them "float", and fmt drives precision at BOTH later points: _format_value: fmt in ("currency","float") -> round(value, 2) _sql_type: anything not pct -> NUMBER(16,2) So the value was already truncated before any column saw it. Teaching the column alone could never have fixed it. harden() now reconciles the declaration against the bound registry: a measure whose inferred bound is a 0-1 "rate" or "score" is set fmt="pct", and both layers follow from that one decision. The fix is recorded in `fixes` so the build says what it changed and why, rather than silently rewriting a declaration. Only mis-declared RATES move. An int stays int, a pct stays pct, and currency is untouched — cents remain the right precision for money. tests/test_rate_colu…b918bd8 -
fix(data): a 0-1 rate column holds the 4 decimals the engine gave it
Release note 10 — "No more metrics showing the same number across an attribute (Larry)" — is disproven by the baseline build on the release tip. STA_10210722_3XL_sch, no flags, production default: OEE_RATE NUMBER(16,2) 10,000 rows, THREE distinct values 0.94 -> 5112 rows, 0.95 -> 3132, 0.96 -> 1756 spread by FACILITY 0.74%, PRODUCT_LINE 0.50%, SUPPLIER 0.71%, SHIFT 0.72% Every bar on every breakout sits on ~0.945. That is Larry's complaint, and it is NOT the ISS-12 ratio-cancellation bug: the generator produced good values and the COLUMN threw them away. engine.py contradicted itself. _format_value() already keeps 4 decimals for a rate on a 0-1 scale: if fmt == "pct": return round(value, 4 if pct_max <= 1.0 else 2) _sql_type() handed every non-int measure NUMBER(16,2), so Snowflake rounded 0.9447 to 0.94 on insert. The tighter the band the worse it got — SCRAP_RATE (0.01-0.07) held 7 distinct values across 10,000 rows. _sql_type now uses the SAME r…c0c880f -
feat(deploy): index attribute values at both the table and the model layer
Every generated column has carried index_type DONT_INDEX since the first commit — at the table layer and again at the model layer, five hard-coded sites, no recorded reason (the Aug-10 import slowness was the unscoped connection scanning ~507 databases, not indexing). The effect on a demo: a prospect typing a venue, rep or tier into search gets "Invalid value token", and Spotter has no values to match a word against. Measured on CON_10201951_KZ8: flipping the tables to DEFAULT let "One Liberty Plaza" resolve on the table within a minute, while the model kept rejecting it until its own columns were flipped too. The two layers have to agree, so the answer lives in one place — index_type_for() — and every site asks it: attribute values are indexed; keys, ids and codes are join plumbing nobody types; dates go through the date parser; measure values are never indexed. Tests pin the rule through the real TML builders at both layers and fail if a hard-coded index type ever comes back. Co-Au…bd91a6a -
feat(mcp): check_homepage tool — can DemoPrep get the prospect's home page by itself?
Agent Q calls it before build_demo_from_brief. It runs the build's own home-page step (sources.capture_home_page, no screenshot): the live page with capture.py's rules, then only when blocked the Internet Archive copy with the same lookup and blank-page check. No generation step. Returns ok / source (live | wayback (YYYY-MM-DD) | none) / needs_screenshot / reason / message_for_se; needs_screenshot only when neither works, and a bad URL is ok:false with a reason. Never raises. - async tool, work in a thread: does not block the event loop, takes no build slot nor the clone runner's Chromium slots (own limit of 2) - bounded at 45 s; an overrun says so and asks for a screenshot - a usable capture is kept 30 min and a build of the same URL reuses a copy of it (recall_capture) instead of loading the site again - no fake UA, stealth, proxies or anti-bot services: a block is reported - docs/agent_q_flags.md: tools table + change log Real checks (local Chromium): firework.com live 13.7 s,…0cf1463 -
feat(portal): home page from the SE's screenshot, Internet Archive fallback
On 2026-10-21 all three real builds on test (shoppersdrugmart.ca, nationsbenefits.com, stanleyblackanddecker.com) hit an HTTP 403 bot wall and every portal opened on the template login. New input `homepage_screenshot` (https image URL or base64 data URI; png/jpeg/webp, <=10 MB) on build_demo_from_brief, build_portal and update_portal, declared as a real tool parameter and documented for Agent Q. login_clone/sources.py::capture_home_page picks the picture of the page: 1. the screenshot: sliced into 1440x900 screens, colours read from pixels (feed the generator's brand block and ISS-30), no logo 2. the live site, as before 3. only when that is blocked: the Internet Archive (public availability API, else the public CDX index), `if_` form so no toolbar; the newest copy, then one older copy of real size 4. the template login, with every reason: "site blocked (HTTP 403), no screenshot sent, no archived copy" home_page.source = screenshot | live | wayback (YYYY-M…17c9782 -
Merge fix/dead-headline-measures into release/test-fixes-2026-10-21
a1d66aa -
fix(data): headline measures come out with data; a dead headline warns and ships
Three SE builds aborted 2026-10-20/21 at the post-load gate with "Headline measure(s) X are among them". Each has its own generator root cause: 1. Shoppers Drug Mart ffb4c1200490 — NET_RX_REVENUE_CAD all zero. In the loaded schema DRUG_INGREDIENT_COST_CAD == DISPENSING_FEE_CAD on all 10,000 rows. Rule 3a of the author prompt ties a cost to its price with share_of; the LLM wrote the cost as share_of the FEE with a band of 1.8..6.5 (a drug costs several times its fee — reproduced by an in-memory replay of the real author on this brief). The engine clamps a share fraction to 1.0, so the part became a copy of its whole and NET = GROSS - N*COST = 0, silently. harden() now normalises declared share_of bands: a multiple (bottom >= 1, top <= 10) drops the share_of and samples the measure at the whole's typical magnitude x the band; a percentage (top in (10, 100]) is read as /100; a band straddling 1 is capped at 1. All recorded in metadata['hardening']. 2. Shopp…fc0fa83 -
fix(portal): capture the home page on every build with a website
The clone started only when the build itself made a portal, but Agent Q usually calls build_portal separately afterwards (Stanley Black & Decker, 10-21: with_portal=False, then build_portal -> template login). Start it whenever there is a company_url, so the later build_portal reuses it by run_id instead of blocking ~9 minutes. Test stub accepts ISS-30's on_capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>5a530bd -
Merge fix/home-page-on-direct-portal into release/test-fixes-2026-10-21
05d7907 -
fix(portal): cloned home page on direct build_portal and update_portal
Only _run_build started a login clone, so every portal from a direct build_portal call (Agent Q's usual path) and every update_portal rebuild opened on the template login. runner.resolve() now decides the home page for both tools: - reuse the run's clone (in-memory runner state, or a finished result.json + accepted files in tempdir/clone-<key>/login_clone/clone) - update_portal: reuse the live portal's clone from its source zip - otherwise clone the website now (run's company_url / mcp_intake row as fallback), waiting up to 600s; a slow clone keeps running and the next call reuses it - else keep the template login, with the reason Never fails a portal. The clone runs before a portal build slot is taken. Results carry home_page {status: reused|cloned|template, source, detail}, recorded on mcp_portal / mcp_result rows; a template fallback adds a warning. The builder reports login_clone {applied, notes}. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>29705cf -
fix(slack): one 'Started' root per Agent Q build
_run_build posts the run's Started root (with the run id), then the controller's run_deployment_streaming called begin_run_thread() and posted a second top-level Started, orphaning the first: two messages per build, and replies/reactions only on the second. The MCP root now records owner='mcp' and the controller skips its own root when that thread is open. App-tab runs are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>492ae90
-
feat(mcp): read the brand off the prospect's home page and colour the demo with it (ISS-30)
boone 2026-10-20: "take a brand palette and build that off the home page, then change the colors on our charts to match that branding." Defaults he approved: derive only when apply_brand_theme is true; what Jack's agent sends wins; a failed or neutral capture means today's palette plus a warning; category-coloured Muze tiles and the LBC/GBC/TBC slots stay as they are. brand_capture.py (new) reads a brand off the login clone's home-page capture: painted buttons first, then brand-named CSS custom properties (vendor/framework ones skipped), then header, h1, nav links, h2, footer. Neutrals never count; primary is the top rank, secondary the next colour that is distinct in RGB, hue or lightness, up to two more are extras. brand_theme.py: parse_brand_request / brand_request (off is byte for byte today's build) / complete_brand_theme (primary and secondary from the page; the page's further colours join the palette only when nothing was sent). resolve_brand_request is unchanged. A native hea…7462df9 -
fix(portal): pre-fill the SE's email in BOTH login forms; sign-in box readable in dark mode (ISS-28, ISS-29)
ISS-28 — patch_login_default_user patched one file at a time: Login.tsx, which a swapped-in clone replaced (a08026f put the clone live); then SignInDialog.tsx (982e6b5), which the template's own login never renders. Either way the box came up empty and the SE typed the email by hand. Both files are patched now. A template Login.tsx without the field still fails loudly; a clone (lc-root / opens SignInDialog) is exempt. ISS-29 — SignInDialog.css's dark rule painted the card with --sl-evergreen, which the derivation flips to the near-white INK in dark mode, under a hard-coded near-white title. Every dialog colour is now an --sl-* token, fitted to WCAG AA in both modes by brand.derive(); the dark overrides are gone; a new --sl-on-primary token (white or near-black, whichever reads on the primary and the gradient's second stop) replaces the hard-coded #fff button label in the dialog and the template login. The check: builder.login_readability() reads the two sign-in stylesheets as shipped…53ad492 -
fix(portal): the home page clone's photos reach the build
apply_cloned_login looked for the captured photos under work_dir/clone/app, but generate_login reports work_dir as its own dir with the app at work_dir/app. No photos were copied, Login.tsx still imported them, and the Firework portal died on 'Could not resolve ../assets/clone-img-2.webp' (run 2d730d54b283, 10-20). Look at work_dir/app first, and never write a page that imports an asset the build will not have: fall back to the template login instead of killing the portal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1b8ce97 -
fix(portal): run the login clone BESIDE the data build, and fix 3 HANDOFF gaps
I wired this without reading login_clone/HANDOFF.md first. It specifies the integration precisely, and I got three of its five steps wrong. Jack confirms the engine was complete in PR #2 and the wiring was scoped to us, so these are ours to get right. 1. PARALLEL, NOT SERIAL (HANDOFF #2; boone: "kick off at the same time that data starts building"). The clone takes ~8-9 min. Run inside build_portal it roughly doubles a portal build — measured 400s on traveloregon.com. Started when the data build starts it costs ZERO added wall-clock, because the data build is 15-20 min on its own. - login_clone/runner.py: start/get/status per run_id, daemon thread, and a semaphore of 2 so three concurrent builds cannot launch three Chromiums. - mcp_server: start it at the dataset phase; build_portal collects it with a 120s grace (normally already done) and passes it in. - build_portal no longer generates a clone itself; it only applies one. 2. EVERY clone-* ASSET, NOT J…982e6b5 -
feat(portal): finish Jack's login-clone — the three pieces PR #2 did not ship
PR #2 (57336b8, "prototype") merged 3,731 lines: the generator, the React components, a local CLI. Every portal built since has ignored it, and could not have done otherwise. Three separate links were missing, each failing silently: 1. playwright was never added to requirements.txt and chromium was never installed in the image, so capture_site() raises ImportError on the Space. clone_login() catches it and returns ok=False. 2. apply_cloned_login() did not exist. LOGIN_CONTRACT.md and login_clone/__init__.py both say it lives in builder.py; grep finds it only in those docstrings. There was nothing to install a result with. 3. Nothing called clone_login(). scripts/clone_login.py says the real path is build_demo_from_brief for demo_type="tse" — there is no demo_type parameter and no reference to clone_login outside the package. Any one of those produces "merged, deployed, no visible change", which is exactly what boone saw. The feature is best-effort by design, so none…a08026f -
Merge remote-tracking branch 'hf-mcp-test/main' into feature/tracker
683e05b -
Revert merge of claude/kind-elion-db9bcc (not in this test push)
Its insight_contradicts_performance tests fail on top of fix/r4-constant-formula-guard: the R4 formula repair leaves DISCOUNT_AMOUNT without its share_of, which the new autorepair path depends on. Both are other sessions' unpushed work; kind-elion goes back to its owner to rebase onto R4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>782ab10 -
test: carry the 10-14 RC, header tiles and Slack tests onto the test line
Jack's PR #1 made salesforce_opportunity_id and environment required; ISS-16 made schema_style a required keyword on _run_build (and run_ddl_creation reads it). Tool calls in the merged tests now send them. The ISS-18 pain-table test checks its own rule is present instead of being the only one (the test line's score-range rule also fires on that fixture). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>be74496 -
Merge feature/header-tiles into release/test-2026-10-20
# Conflicts: # mcp_server.py # tests/test_payload_capture_is_complete.py # tests/test_payload_reaches_the_database.py016989a -
Merge claude/kind-elion-db9bcc into release/test-2026-10-20
# Conflicts: # demoprep_app/scenario/blueprint.py # sprint_2026_04.md5de7809 -
Merge fix/r4-constant-formula-guard into release/test-2026-10-20
4c5d3f6 -
Merge fix/slack-no-warnings into release/test-2026-10-20
1785706 -
Merge feature/schema-style-simple-default into release/test-2026-10-20
# Conflicts: # mcp_server.py0e7ee79 -
test: unit tests can never post to the real Slack channel
Tests that drive _run_build hit the Slack root post added by PR #3 with the live token (re-injected from Supabase admin settings at import), flooding #demoprep_deployment with 'Acme / Retail Sales / r1'. tests/__init__.py now refuses any real HTTP call to slack.com; it loads with or without conftest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>b2f08bc -
fix(mcp): schema_style simple warns and ships, never aborts (ISS-16 follow-up)
boone, 2026-10-20: - A second fact that survives the repair rounds under 'simple' is now a WARNING (schema_style_fact_count) and the blueprint ships as it is — no BlueprintAborted. Still sent back to the LLM for repair; never trimmed. - Dimension count is prompt guidance, not a rule: the simple prompt now asks for "ONE fact table plus whatever dimension tables the story needs (typically 5-7)" (the old App path's 5-7). The 4-8 dimension-count finding and SIMPLE_MIN/MAX_DIMENSIONS are removed. Unjoined dimensions are still joined to the fact automatically. - 'complex' unchanged; omitted/empty/null still means simple. Tests and docstrings updated. Unit suite: 2 failed / 1166 passed (the same two pre-existing failures as baseline 6a8d963). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>117f8f3 -
feat(mcp): header tiles laid out and styled as boone's example board
boone reviewed the Premier Tech example (d062e894, Executive Overview tab): "that is how the logo should look and the logo should link to the TSE page. That is also how the insights tile should look." Layout now copies that tab, replacing the 2|4|6 / KPIs-two-per-row layout: - logo_tile: logo w3 at x0 beside the KPI group (x3 w9), same row height; the KPI group's own layout is untouched (four across). - insight_tile: w12 h3 directly under the KPI row; everything below moves down 3. Insight only: KPI row as built, insight underneath. - No KPI row: header tiles take new top rows. Logo tile markup now matches the example's note tile exactly: linked image, two blank paragraphs, bold heading, italic tagline, one plain sentence ("Track <measures> across <dimensions>."), the note background node. The link stays the TSE portal. The insight tile already uses the example's settings (insight_code_runner / text_long_form; no style overrides on the example). Folds in ISS-21 (Nick's "homepage…78256a0 -
Merge release/rc-2026-10-14 into release/test-2026-10-20
# Conflicts: # liveboard_creator.py # mcp_server.py # sprint_2026_04.md # supabase_client.py # tests/test_iss22_login_precheck.py # tests/test_payload_capture_is_complete.py # tests/test_payload_reaches_the_database.py # thoughtspot_deployer.py # thoughtspot_errors.pyb868f6b