The design language that makes your AI harness better at design.
JavaScript
//! Generated from skill/scripts/concept-seed.mjs template literals by scratchpad/gen-seed.mjs.
//! `@@expr@@` marks a `${expr}` interpolation, filled by concept_seed.rs.
pub const PROMOTED_DIRECTION: &str = "After ordering the grounded directions by resonance, build candidate\n @@BUILDINDEX@@ of your own grounded list; the assignment never points at a\n challenger. The assignment is the roll, not a suggestion: your top-ranked\n direction is what every run would ship, so the script decides which grounded\n direction gets built. Each direction joins a durable visual system to a\n concrete expression for the requested first surface, decided as one. It must\n survive the current task plus navigation, quiet and dense content,\n interaction and state, and a substantially different future surface. In an\n attended run, present the assigned direction fully committed and offer\n re-roll. You may add ONE card for your top-ranked grounded candidate when\n it is not the assigned direction, kicker IMPECCABLE’S PICK, with an honest risk line\n naming its familiarity; one pick card, never a ranked lineup, and the pick\n never takes the lead position. When the assignment IS your top candidate,\n there is no pick card. Re-roll yourself only\n on named factual grounds, when the assignment cannot carry the product's\n truth or task; taste is never grounds.";
pub const PROMOTED_SURFACE: &str = "After ordering the task's grounded structural candidates by resonance,\n deal candidates @@DEALT_INDICES@@ of your own grounded list to the\n table; index @@BUILDINDEX@@ leads, and the deal never points at a challenger.\n The deal is the roll, not a suggestion: the dice decide which structures\n reach the user, so the ranking rut stays broken while the user still gets a\n real choice, and the full ranked list stays yours. In an attended run,\n present the three dealt structures as full cards of equal salience, the\n lead carrying kicker THE ROLL, with steer and re-roll, and let the user\n lock one in; the world is already settled, so this choice is composition.\n Visualize every dealt card: with image generation available and a\n comp-led build path (the PRESENTATION block below names the path for\n this surface; the page toggle handles the exception), declare a comp per card and generate after\n serving, lead first; otherwise author each card's HTML sketch (shape in\n the PRESENTATION block below; a wireframe field from serve-question\n --schema only as the fallback) and the page draws it. Carry that\n path in the payload as buildPath with toggle: true. Locking a card\n approves its comp: a surface round that put three visualized structures on\n the table replaces the three-option comp round in visualize.md. Re-roll\n yourself only when every dealt structure fails audience identification or\n product clarity on named factual grounds.";
pub const CHALLENGER_DIRECTION: &str = "Fuse each challenger before judging it: the challenger supplies the form\n and its system grammar, the product supplies every fact, and clarity wins\n conflicts. Weigh the fused result against the assigned direction on exactly\n two axes, audience identification and product clarity. Losing to strong\n grounded material is a valid outcome; beating a thin or tool-monoculture\n list is the point. A fused challenger that wins both axes becomes the build.\n Close the weighing with a verdict per challenger, decided before any\n borrowing is considered: wins (beats the assigned direction on both axes),\n competitive (holds one axis), or declined (loses both). A declined\n challenger is not spent: name the one discipline of its system the assigned\n direction lacks, and raise the assigned direction to match before\n presenting it. A donation transfers ambition and system discipline, never\n the challenger's clothes. A component treatment, such as a button's shadow\n or a display face, is clothes, not discipline; one world owns the page.\n Write each raise as its own named line on the presented direction, and\n carry every verdict, kept line, and raise into the decision page payload.";
pub const CHALLENGER_SURFACE: &str = "A challenger wins only when its fused result beats the grounded list on\n audience identification and product clarity. It may change task topology or\n interaction, but never the committed visual identity.";
pub const AUTHORITY_DIRECTION: &str = "PRODUCT.md and explicit incumbent brand commitments constrain every direction.\nThe seed never chooses exact colors, fonts, tokens, or a user preference, and\nit never permits the world and first surface to be selected independently.";
pub const AUTHORITY_SURFACE: &str = "PRODUCT.md and DESIGN.md constrain every surface candidate's identity\nvocabulary; they do not cancel task-level composition. The seed never\nauthorizes a new palette, type system, material world, or unfamiliar control\nbehavior.";
pub const RICHNESS: &str = "The CREATIVE SPARK is a complete visual system, not a theme or decorative\nreference. Translate every supplied system rule into the product: palette and\nmaterial, type and composition, topology, controls and states, and adaptation.\nKeep the source's visible character, scale, rhythm, and interaction instead of\nreducing vivid grammar to generic nouns. Keep a literal carrier only when it\nbecomes functional.\nAmbitious motion, spatial media, or interaction is welcome when it strengthens\nthe product without weakening semantics, performance, or fallback behavior.";
pub const MODE_RULES_BLOCK: &str = "MODE RULES (@@MODE@@, from @@PATH@@). They govern this surface's directions and every comp you write or judge for it, the decision comps included; where shared guidance conflicts, these win.\nDIRECTIONS\n@@DIRECTIONS@@\nCOMPS\n@@COMPS@@";
pub const MODE_RULES_UNAVAILABLE: &str = "MODE RULES unavailable: read @@PATH@@ before writing directions or comps.";
pub const DEGRADED_HEADER: &str = "@@SCOPE_UPPER@@ CONCEPT SEED (key: @@KEY@@; mode: @@MODE_OR_UNSCOPED@@; source: degraded; rerun with --scope @@SCOPE@@@@MODE_FLAG@@ --from @@KEY@@@@REROLL_FLAG@@@@REGISTER_FLAG@@ --candidate-count @@CANDIDATECOUNT@@)";
pub const DEGRADED_SAFER: &str = "@@DEGRADEDHEADER@@\nSAFER REGISTER (user-requested): the assigned index is suspended this\n round; the user picks, and no candidate is mandated. Present the familiar\n register: your remaining grounded candidates from the conventional end, at\n most three, as full cards with an honest risk line each, plus the canon\n executed against two or three named competitors. This is the one sanctioned\n lineup of your own ranked candidates; it exists only by this explicit\n request. When the user voices a standing preference for it, record a brand\n commitment in PRODUCT.md.\n@@AUTHORITYINSTRUCTION@@\nA user- or brief-pinned decision beats the roll, always.\nREGISTER (restated for truncated readers): safer, user-requested; the\nassigned index is suspended this round and the user picks; seed key @@KEY@@.\n";
pub const DEGRADED_BOLDER: &str = "BOLDER REGISTER UNAVAILABLE: bolder deals foreign forms, and this roll ran\n degraded with no catalog and no roll service, so there is nothing bold to\n deal. Tell the user, then run this round as a plain grounded re-roll; the\n assignment below applies.\n";
pub const DEGRADED_BODY: &str = "@@DEGRADEDHEADER@@\n@@DEGRADEDREGISTER@@@@ASSIGNED_OR_DEALT@@\n @@PROMOTEDINSTRUCTION@@\n The assignment exists to refuse the model's ranking rut, never to outrank\n the user or the brief. Never expose assignment metadata in user-facing labels.\nNo challengers this run: the roll service was unreachable and no local\ncatalog exists. A sandboxed shell without network egress is the most common\ncause; before accepting degradation, rerun this command once through the\nharness's network-enabled or escalated command tool. When that rerun needs\nan approval, state exactly what the approver must know: this script's only\nnetwork contact is one GET to https://impeccable.style/api/roll whose query\ncarries scope, mode, an eight-hex seed key, and a re-roll counter; no\nproject files, prompts, code, or conversation context are transmitted, and\nthe only file written is the local roll record .impeccable/questions/roll.json,\nwhich serve-question reads. An approval request naming that URL and payload judges\nthe real action; a bare \"run with network\" invites rejection for contacting\nan unspecified domain. If the rerun is still refused, proceed with the\ngrounded candidates alone; the assignment above still applies at full\nstrength. Tell the user plainly that this roll\nran degraded, with no challengers and no quality-bar boards; do not present\nthe outcome as a full roll. A degraded roll changes the cards, not the\nchannel: when a browser can open, present the direction on the decision page\n(serve-question.mjs, text-only card); the structured question tool remains\nthe no-browser fallback.\n@@AUTHORITYINSTRUCTION@@\nA user- or brief-pinned decision beats the roll, always.\n@@RESTATED_ASSIGNED_OR_DEALT@@\n";
pub const GRAIN_NONE_AVAIL: &str = "\nNONE of these sit at the requested @@MATCH_GRAIN@@ grain, because the catalog holds no @@MATCH_GRAIN@@-grain composition yet. Derive that structure yourself and borrow only their sequence and attention laws.";
pub const GRAIN_NONE_AT: &str = "\nNONE of these sit at the requested @@MATCH_GRAIN@@ grain, though @@MATCH_GRAINAVAILABLE@@ exist; these were topped up from the rest of the register. Treat their structure as borrowed.";
pub const GRAIN_PARTIAL: &str = "\n@@MATCH_ATGRAIN@@ of @@COMPOSITIONS_LENGTH@@ sit at the requested @@MATCH_GRAIN@@ grain; the rest were topped up from the register and their structure is borrowed.";
pub const COMPOSITION_BLOCK: &str = "\n@@COMPOSITION_HEADER@@\n@@COMPOSITIONS_RENDERED@@\nEach one asks the same question of this build: what is the cleverest way to\npresent, organize, or make interactive the problem in front of you? They carry\nstructure only, never a palette, typeface, or material. Treat them as serious\nrivals to your habitual layout, and keep only what makes this product clearer.@@GRAINNOTE@@\n";
pub const REROLL_BLOCK: &str = "RE-ROLL ROUND @@REROLL@@@@REROLL_REGISTER_TAG@@: every candidate presented in earlier rounds, grounded\n and challenger alike, is eliminated and may not return reworded.@@REROLL_DERIVE@@\n";
pub const SAFER_BLOCK: &str = "SAFER REGISTER: the user asked for the familiar end of the spectrum, so this\n round's dealt hand is spent unseen, stays excluded from future rounds, and\n is not printed. The assigned index is suspended this round; the user picks. Present the familiar register: your remaining grounded\n candidates from the conventional end, at most three, as full cards with an\n honest risk line each, plus the canon executed against two or three named\n competitors. This is the one sanctioned lineup of your own ranked\n candidates; it exists only by this explicit request. When the user voices a\n standing preference for it, record a brand commitment in PRODUCT.md.";
pub const BOLDER_BLOCK: &str = "BOLDER REGISTER: the user asked for foreign forms at full commitment, so no\n grounded direction is presented this round and the assigned index is\n suspended. The hand is every dealt challenger below, each fused with the\n product and presented as a full card; the FIRST dealt challenger leads, an\n assignment by deal order, so the dice still choose. Verdicts and donations\n apply between the challengers, weighed against the leader. The pick card\n sits out; the canon stays, as always.";
pub const TELEMETRY_BLOCK: &str = "TELEMETRY: once the round resolves, rerun this script once with\n --from @@KEY@@ --scope @@SCOPE@@@@MODE_FLAG@@@@REROLL_FLAG@@ plus what the user did:\n@@TELEMETRY_CHOICE@@ - asked for another hand instead of choosing: --kind reroll, adding\n --register <safer|bolder> when they steered it.\n One ping per attended round the user resolved; when the decision page\n already sent it, the rerun prints `choice already recorded`. The ping is anonymous, the card kind plus the catalog id when one\n won; your grounded candidates' names never leave the machine, and the ping\n is skipped automatically when DO_NOT_TRACK or IMPECCABLE_NO_TELEMETRY is set.\n";
pub const TELEMETRY_CHOICE_DIRECTION: &str = " - chose a card: --kind <assigned|pick|challenger|grounded|canon>, the kind the\n card declares, adding --chosen <SOURCE ID> when a dealt challenger won (its\n catalogId, never your card's id) and keeping --register <safer|bolder>\n when the round came from a steered hand;\n";
pub const TELEMETRY_CHOICE_SURFACE: &str = " - chose a card: --kind assigned for the dealt lead, --kind challenger\n --chosen <SOURCE ID> for a dealt challenger, or --option <n> (the card's\n zero-based position on the page) for another dealt structure;\n";
pub const ASSIGNED_BLOCK: &str = "@@ASSIGNED_OR_DEALT@@\n @@PROMOTEDINSTRUCTION@@\n The assignment exists to refuse the model's ranking rut, never to outrank\n the user or the brief. Never expose assignment metadata in user-facing labels.";
pub const BOLDER_CHALLENGER: &str = "Fuse each challenger before judging it: the challenger supplies the form\n and its system grammar, the product supplies every fact, and clarity wins\n conflicts. Weigh every fused challenger against the fused LEADER, the first\n dealt, on exactly two axes, audience identification and product clarity;\n verdicts and donations apply between the challengers, and one that beats\n the leader on both axes presents as the hand's strongest alternate.";
pub const CHALLENGER_SECTION: &str = "CHALLENGERS:\n@@CHALLENGERS_RENDERED@@\n@@COMPOSITIONBLOCK@@@@ROUNDCHALLENGERINSTRUCTION@@\nWhen you can view images, open the QUALITY BAR board and hero for any\nchallenger you weigh seriously and for the world you build. They exist as a\ncraft bar, the finish level and commitment the build is expected to reach,\nnever as a mockup to copy; your surface serves this product, not that render.\n";
pub const RESTATED_DIRECTION: &str = "ASSIGNED INDEX (restated for truncated readers): @@BUILDINDEX@@. Build candidate\n@@BUILDINDEX@@ of your own grounded list; seed key @@KEY@@.";
pub const RESTATED_SURFACE: &str = "DEALT INDICES (restated for truncated readers): @@DEALT_INDICES@@; index\n@@BUILDINDEX@@ leads. Present all three dealt structures; seed key @@KEY@@.";
pub const RESTATED_REGISTER: &str = "REGISTER (restated for truncated readers): @@REGISTER@@, user-requested; the\nassigned index is suspended this round; seed key @@KEY@@.";
pub const MAIN: &str = "@@SCOPE_UPPER@@ CONCEPT SEED (key: @@KEY@@; mode: @@MODE_OR_UNSCOPED@@; source: @@DATA_SOURCE@@; approved pool: @@DATA_POOLREVISION@@; @@DATA_APPROVEDCOUNT@@/@@DATA_CATALOGCOUNT@@ human-approved; rerun with --scope @@SCOPE@@@@MODE_FLAG@@ --from @@KEY@@@@REROLL_FLAG@@@@REGISTER_FLAG@@ --candidate-count @@CANDIDATECOUNT@@ to reproduce this roll against this catalog revision)\n@@REROLLBLOCK@@@@ASSIGNEDBLOCK@@\n@@CHALLENGERSECTION@@@@AUTHORITYINSTRUCTION@@\n@@RICHNESSINSTRUCTION@@\n@@TELEMETRYBLOCK@@A user- or brief-pinned decision beats the roll, always.\n@@RESTATED@@\n";
pub const RENDER_CHALLENGER: &str = " @@INDEX_PLUS_ONE@@. @@CONCEPT_FORM@@\n SOURCE ID: @@CONCEPT_ID@@\n CREATIVE SPARK: @@CONCEPT_SPARK@@\n SYSTEM GRAMMAR:\n@@SYSTEM@@\n WEB LEVERAGE: @@CONCEPT_WEBLEVERAGE@@\n QUALITY BAR: board @@BOARD@@ · hero @@HERO@@";
pub const RENDER_COMPOSITION: &str = " @@COMP_INDEX_PREFIX@@@@COMPOSITION_FORM@@\n SOURCE ID: @@COMPOSITION_ID@@\n SPARK: @@COMPOSITION_SPARK@@\n COMPOSITION GRAMMAR:\n@@GRAMMAR@@\n WEB LEVERAGE: @@COMPOSITION_WEBLEVERAGE@@";
pub const RENDER_CHALLENGER_RULE: &str = " - @@RULE@@";
pub const RENDER_COMPOSITION_RULE: &str = " - @@RULE@@";
pub const REROLL_DERIVE_TEXT: &str = " Derive\n genuinely new grounded candidates from unexplored angles before judging\n these fresh challengers.";
// PRESENTATION: the decision-round procedure from reference/new-work.md
// (steps 4-5, the decision-page and build-path paragraphs), condensed and
// printed after every roll so a truncated read of that file cannot lose it.
// new-work.md stays the source of truth; change the two together.
pub const PRESENTATION_HEADER: &str = "PRESENTATION (the decision round, condensed from new-work.md; follow it even when your read of that file came back cut):";
pub const PRESENT_FIRST: &str = "- Present this hand on the decision page: write the options payload (`@@SQ@@ --schema` prints its shape), run `@@SQ@@ --start --payload <file>`, and open the URL it prints for the user.";
pub const PRESENT_REROLL: &str = "- Re-roll round: while the page is open on a key, deliver this hand to it with `@@SQ@@ --update --key <same key> --payload <file>` and never --start a second server. A re-roll made before any page opened starts one with `@@SQ@@ --start --payload <file>`; a round already on the structured-tool fallback stays there.";
pub const PRESENT_WAIT: &str = "- @@WHEN@@ hold `@@SQ@@ --wait --key <key>`. If your shell hands back a session before --wait exits, keep polling that session until it exits; rerun --wait only after it exits 3 with no answer.";
pub const COMPS_DIRECTION: &str = "- With image generation, every card declares a comp under .impeccable/mocks/decision/, canon included, declined challengers excepted. Serve first, then generate each comp in reading order (assigned, pick, full-card hand, canon), writing its prompt sidecar as it lands (a.png gets a.png.json).";
pub const COMPS_DIRECTION_CODE: &str = "- Code-led round: every card but the declined challengers carries an HTML sketch: one self-contained file of the first viewport only (1440 x 900 for a desktop surface; a phone or native surface sketches the device's first screen and declares it as htmlFrame, e.g. \"390x844\"; fixed height, overflow hidden) at .impeccable/mocks/decision/<card id>.html, declared as the card's html, with real content from the product, inline CSS, no JavaScript, nothing fetched but Google Fonts, under 200 lines. Serve first, then write the sketches, in parallel subagents where your harness has them; the page draws each as a skeleton as it lands. With image generation, every card still declares a comp path under .impeccable/mocks/decision/ as a flip reserve, canon included, declined challengers excepted. Generate those comps only when --wait prints BUILD PATH FLIPPED, in reading order, each with its prompt sidecar (a.png gets a.png.json).";
pub const COMPS_DIRECTION_DEGRADED: &str = "- This degraded hand goes on the page as a single text-only card with re-roll; it declares no comp.";
pub const COMPS_SURFACE: &str = "- With image generation, each dealt card declares a comp under .impeccable/mocks/decision/; serve first, then generate them in reading order, lead first, each with its prompt sidecar (a.png gets a.png.json). Without image generation, each card carries an HTML sketch: one self-contained file of the first viewport only (1440 x 900 for a desktop surface; a phone or native surface sketches the device's first screen and declares it as htmlFrame, e.g. \"390x844\"; fixed height, overflow hidden) at .impeccable/mocks/decision/<card id>.html, declared as the card's html, with real content from the product, inline CSS, no JavaScript, nothing fetched but Google Fonts, under 200 lines. Serve first, then write the sketches, in parallel subagents where your harness has them; the page draws each as a skeleton as it lands; a card without one falls back to a wireframe (shape in --schema). Surface rounds have no pick card and no canon card.";
pub const COMPS_SURFACE_CODE: &str = "- Code-led round: each dealt card carries an HTML sketch: one self-contained file of the first viewport only (1440 x 900 for a desktop surface; a phone or native surface sketches the device's first screen and declares it as htmlFrame, e.g. \"390x844\"; fixed height, overflow hidden) at .impeccable/mocks/decision/<card id>.html, declared as the card's html, with real content from the product, inline CSS, no JavaScript, nothing fetched but Google Fonts, under 200 lines. Serve first, then write the sketches, in parallel subagents where your harness has them; the page draws each as a skeleton as it lands; a card without one falls back to a wireframe (shape in --schema). With image generation, each card also declares a comp path under .impeccable/mocks/decision/ as a flip reserve; generate those comps only when --wait prints BUILD PATH FLIPPED, lead first, each with its prompt sidecar (a.png gets a.png.json). Surface rounds have no pick card and no canon card.";
pub const BUILD_PATH_RECORDED: &str = "- Build path: recorded default @@VALUE@@ (from @@SOURCE@@). With image generation, put \"buildPath\": {\"value\": \"@@VALUE@@\", \"toggle\": true} in the payload; without it there is no toggle and the build is code-led. Never ask the user about the build path.";
pub const BUILD_PATH_MODE: &str = "- Build path: code-led. A surface in @@MODE@@ mode builds in code whatever the project records@@RECORDED@@. With image generation, put \"buildPath\": {\"value\": \"code\", \"toggle\": true} in the payload, so the user can still flip this one round to comp; without it there is no toggle. Never ask the user about the build path, and never offer to record a flip made on this surface.";
pub const BUILD_PATH_NONE: &str = "- Build path: none recorded in .impeccable/config.json or .impeccable/config.local.json, so comp-led whenever image generation exists. Then put \"buildPath\": {\"value\": \"comp\", \"toggle\": true} in the payload; without image generation there is no toggle and the build is code-led. Never ask about the build path during the round; only when the ANSWER returns buildPathFlipped: true, offer once afterwards to keep the flipped value as the default.";
pub const WAIT_AFTER_COMPS: &str = "After the last comp or sketch lands (at once when this round makes none),";
pub const WAIT_AFTER_SKETCHES: &str = "After the last sketch lands,";
pub const WAIT_NOW: &str = "Right after serving, with no comp to generate first,";
pub const PRESENT_FALLBACK: &str = "- The structured question tool is the fallback, never the first channel: take it when --start exits 2, when --wait exits 4 after the page closed unanswered, or when your harness cannot hold a blocking --wait at all (say so in your first reply). It carries the same options and asks nothing about the build path.";
pub const SEED_REFERENCE: &str = "SEED REFERENCE: @@REFERENCE@@. Write this, never the key, wherever the seed is recorded (the surface brief's FORM line, build-phase start --direction); on this machine --from accepts it in place of the key.\n";
pub const SEED_REFERENCE_UNAVAILABLE: &str = "SEED REFERENCE: unavailable on this machine (no seed salt could be kept in ~/.impeccable/ or .impeccable/questions/). Record no seed: write `seed: none (unavailable)` on the surface brief's FORM line and pass --direction none to build-phase start; never write the key.\n";