{"number":"10","slug":"query-pattern-library","filename":"10-query-pattern-library.md","title":"LAKA Query and Alternative Atlas","bytes":15454,"lines":306,"sha256":"bdb5e593bd0426ce5f6c0c00ac67e8bd009915f997165642b36fa1dd94525867","sections":19,"tables":3,"code_blocks":11,"href":"/v1/docs/query-pattern-library","outline":[{"anchor":"1-the-volumetric-manifest","level":2,"title":"1. The volumetric manifest","line":3,"tables":[],"code":[]},{"anchor":"canonical-lens-sentence","level":3,"title":"Canonical lens sentence","line":19,"tables":[],"code":["10.canonical-lens-sentence.c1"]},{"anchor":"canonical-finding-sentence","level":3,"title":"Canonical finding sentence","line":28,"tables":[],"code":["10.canonical-finding-sentence.c1"]},{"anchor":"2-two-cubes-do-not-confuse-them","level":2,"title":"2. Two cubes—do not confuse them","line":37,"tables":[],"code":[]},{"anchor":"canonical-laka-execution-cube","level":3,"title":"Canonical LAKA execution cube","line":39,"tables":[],"code":["10.canonical-laka-execution-cube.c1"]},{"anchor":"optional-business-coverage-cube","level":3,"title":"Optional business-coverage cube","line":53,"tables":[],"code":["10.optional-business-coverage-cube.c1"]},{"anchor":"3-bound-alternative-vocabularies","level":2,"title":"3. Bound alternative vocabularies","line":68,"tables":["10.3-bound-alternative-vocabularies.t1"],"code":[]},{"anchor":"4-safe-public-source-query-atlas","level":2,"title":"4. Safe public-source query atlas","line":90,"tables":["10.4-safe-public-source-query-atlas.t1"],"code":[]},{"anchor":"safe-query-expansions","level":3,"title":"Safe query expansions","line":141,"tables":[],"code":["10.safe-query-expansions.c1"]},{"anchor":"5-passive-osint-boundary","level":2,"title":"5. Passive OSINT boundary","line":155,"tables":[],"code":[]},{"anchor":"6-bounded-coverage-modes","level":2,"title":"6. Bounded coverage modes","line":164,"tables":["10.6-bounded-coverage-modes.t1"],"code":[]},{"anchor":"7-query-consolidation","level":2,"title":"7. Query consolidation","line":187,"tables":[],"code":["10.7-query-consolidation.c1"]},{"anchor":"8-deduplication","level":2,"title":"8. Deduplication","line":197,"tables":[],"code":[]},{"anchor":"9-stop-and-saturation-rules","level":2,"title":"9. Stop and saturation rules","line":210,"tables":[],"code":[]},{"anchor":"10-dsl","level":2,"title":"10. DSL","line":225,"tables":[],"code":["10.10-dsl.c1","10.10-dsl.c2"]},{"anchor":"11-dsl-grammar","level":2,"title":"11. DSL grammar","line":265,"tables":[],"code":["10.11-dsl-grammar.c1"]},{"anchor":"12-full-manifest-row-schema","level":2,"title":"12. Full-manifest row schema","line":278,"tables":[],"code":["10.12-full-manifest-row-schema.c1"]},{"anchor":"13-authority-first-compression","level":2,"title":"13. Authority-first compression","line":298,"tables":[],"code":["10.13-authority-first-compression.c1"]}],"blocks":[{"type":"heading","level":1,"text":"LAKA Query and Alternative Atlas","anchor":"laka-query-and-alternative-atlas","line":1},{"type":"heading","level":2,"text":"1. The volumetric manifest","anchor":"1-the-volumetric-manifest","line":3},{"type":"paragraph","text":"The canonical LAKA cross-product contains:","line":5},{"type":"paragraph","text":"\\[ 5\\ \\text{change states} \\times 10\\ \\text{internal variables} \\times 14\\ \\text{dynamics} \\times 6\\ \\text{interrogatives} \\times 6\\ \\text{relational modifiers} \\times 6\\ \\text{execution-impact states} =151{,}200\\ \\text{atomic lenses} \\]","line":7},{"type":"paragraph","text":"The manifest is enumerable. It is not permission to issue 151,200 web searches. The engine groups lenses that the same source can resolve, applies a covering schedule, deduplicates, and stops at evidence saturation.","line":17},{"type":"heading","level":3,"text":"Canonical lens sentence","anchor":"canonical-lens-sentence","line":19},{"type":"code","lang":"text","content":"At [change state], how does [dynamic] alter [internal variable] for [entity],\nviewed through [Who/What/When/Where/Why/How] and [Direction/Scope/Depth/\nDuration/Frequency/Reversibility], and what is the permitted [I1–I6]\nresearch or action state, compared with [benchmark] during [window]?","line":21,"id":"10.canonical-lens-sentence.c1"},{"type":"heading","level":3,"text":"Canonical finding sentence","anchor":"canonical-finding-sentence","line":28},{"type":"code","lang":"text","content":"[Claim state] Evidence shows/suggests [bounded condition].\nThis could affect [business effect] through [mechanism], with [L/B/H or not estimable].\nStrongest support: [source]. Strongest counterevidence: [source/none found].\nConfidence: [band]. Smallest test: [action + metric + guardrail + stop rule].","line":30,"id":"10.canonical-finding-sentence.c1"},{"type":"heading","level":2,"text":"2. Two cubes—do not confuse them","anchor":"2-two-cubes-do-not-confuse-them","line":37},{"type":"heading","level":3,"text":"Canonical LAKA execution cube","anchor":"canonical-laka-execution-cube","line":39},{"type":"code","lang":"text","content":"Interrogatives:\nWho | What | When | Where | Why | How\n\nRelational modifiers:\nDirection | Scope | Depth | Duration | Frequency | Reversibility\n\nExecution impact:\nI1 read-only | I2 verify | I3 local change | I4 remote persistent change\n| I5 destructive | I6 security/policy boundary","line":41,"id":"10.canonical-laka-execution-cube.c1"},{"type":"heading","level":3,"text":"Optional business-coverage cube","anchor":"optional-business-coverage-cube","line":53},{"type":"paragraph","text":"This is a Volumetric Intelligence extension, not a replacement for the canonical LAKA execution cube.","line":55},{"type":"code","lang":"text","content":"Stakeholder relationship:\nInternal | Upstream | Downstream | Lateral | Competitive | Institutional\n\nBusiness effect:\nDemand/Revenue | Cost/Margin | Risk/Resilience | Speed/Capacity\n| Trust/Legitimacy | Option Value/Defensibility","line":57,"id":"10.optional-business-coverage-cube.c1"},{"type":"paragraph","text":"Use the business cube to check decision coverage; use the execution cube to control what the system may do.","line":66},{"type":"heading","level":2,"text":"3. Bound alternative vocabularies","anchor":"3-bound-alternative-vocabularies","line":68},{"type":"table","headers":["Family","Alternatives"],"align":["left","left"],"rows":[["Entity","company, business unit, brand, product, offer, public executive role, customer segment, geography, channel, competitor, supplier, partner, regulator"],["Funnel stage","unaware, problem-aware, comparison, evaluation, conversion, onboarding, adoption, support, retention, expansion, referral, win-back, exit"],["Signal pattern","presence, absence, excess, shortage, delay, inconsistency, fragmentation, concentration, duplication, mismatch, decay, volatility"],["Trigger","launch, price change, outage, complaint spike, leadership change, hiring shift, acquisition, funding, regulation, competitor move, seasonal event, macro shock"],["Customer job","reduce cost, reduce risk, save time, earn revenue, simplify, comply, learn, integrate, recover, gain status/confidence"],["Window","30 days, 90 days, 12 months, three years, pre/post event, comparable season/cohort"],["Geography","global, country, province/state, metro, service area, location cluster"],["Benchmark","self-history, direct rival, category leader, adjacent leader, regulatory minimum, demonstrated practice, no-change counterfactual"],["Evidence polarity","supporting, contradicting, neutral, stale, ambiguous, missing"],["Intervention","observe, instrument, eliminate, reduce, standardize, clarify, automate, integrate, personalize, localize, reprice, bundle, partner, govern, retire"],["Monetization","acquisition, conversion, price realization, retention, expansion, cost, risk, capacity, asset reuse, option value"],["Authority artifact","one-page brief, evidence map, benchmark, cost-leak model, narrative map, 90-day roadmap, pilot specification"],["Outreach angle","recent trigger, competitor gap, unserved demand, economic leak, narrative gap, operating friction, deadline, underused asset"],["Counterfactual","do nothing, measure first, local optimization, outsource, buy, build, automate, partner, redesign, stop"],["Decision horizon","containment, 30-day test, 90-day pilot, annual plan, multi-year architecture"]],"line":70,"id":"10.3-bound-alternative-vocabularies.t1"},{"type":"paragraph","text":"Review every family; expand only options supported by a signal or necessary to test a counterfactual.","line":88},{"type":"heading","level":2,"text":"4. Safe public-source query atlas","anchor":"4-safe-public-source-query-atlas","line":90},{"type":"paragraph","text":"These bounded `site:`, `filetype:`, phrase, date, and exclusion patterns are the safe subset of what is often called **Google Dorking**. They are discovery queries only: never use search operators to seek credentials, private files, access tokens, exposed admin panels, or data outside a lawful business-research purpose.","line":92},{"type":"paragraph","text":"Placeholders:","line":94},{"type":"list","ordered":false,"checklist":false,"items":[{"text":"`{T}` target company","depth":0,"checked":null},{"text":"`{D}` domain","depth":0,"checked":null},{"text":"`{E}` executive","depth":0,"checked":null},{"text":"`{K}` product/category/problem keyword","depth":0,"checked":null},{"text":"`{C}` competitor","depth":0,"checked":null},{"text":"`{G}` geography","depth":0,"checked":null},{"text":"`{DATE}` supported ISO date","depth":0,"checked":null}],"line":96},{"type":"paragraph","text":"Operators vary. A search result is a lead; open and preserve the primary source.","line":104},{"type":"table","headers":["Intelligence family","Safe query patterns"],"align":["left","left"],"rows":[["corporate identity","`site:{D} (about OR company OR leadership OR locations)`"],["products/offers","`site:{D} (products OR services OR solutions OR industries)`"],["pricing","`site:{D} (pricing OR plans OR fees OR \"request a quote\")`; repeat for `{C}`"],["proof assets","`site:{D} (\"case study\" OR customers OR testimonials OR results)`"],["public reports","`site:{D} filetype:pdf (\"annual report\" OR investor OR sustainability OR brochure)`"],["release velocity","`site:{D} (changelog OR \"release notes\" OR roadmap OR updates)`"],["executive priorities","`\"{E}\" \"{T}\" (interview OR podcast OR keynote OR transcript)`"],["public executive claims","`site:{D} \"{E}\"`; `\"{E}\" \"{K}\" after:{DATE}`"],["media footprint","`\"{T}\" (news OR interview OR profile) after:{DATE}`"],["press-room velocity","`site:{D} (newsroom OR press OR media) after:{DATE}`"],["complaint discovery","`\"{T}\" (complaint OR refund OR outage OR cancellation OR support)`"],["Reddit discovery","`site:reddit.com \"{T}\" (problem OR switched OR alternative OR review)`; use API only if permitted for automation"],["review discovery","manual official platform search or `site:trustpilot.com/review \"{D}\"`; BBB manual only under terms"],["narrative misunderstanding","`\"{T}\" (misleading OR confusion OR misunderstood OR correction OR clarification)`"],["material disputes","`\"{T}\" (recall OR regulator OR lawsuit OR investigation)`; verify with regulator/court/company"],["active advertising","search `{T}`/`{D}` in Meta Ad Library and Google Ads Transparency Center; official bulk/API only where supported"],["high-intent demand","`\"{K}\" (cost OR pricing OR quote OR demo)`"],["comparison demand","`\"{K}\" (best OR versus OR vs OR alternative)`"],["problem demand","`\"{K}\" (\"how to\" OR problem OR issue OR troubleshoot)`"],["target topic coverage","`site:{D} \"{K}\"`; `site:{D} (blog OR resources OR guides) \"{K}\"`"],["conversion paths","`site:{D} (demo OR trial OR assessment OR consultation OR \"get started\")`"],["support content","`site:{D} (help OR support OR FAQ OR documentation) \"{K}\"`"],["public hiring/capability","`site:{D} (careers OR jobs) (operations OR automation OR data OR security OR \"customer support\")`"],["trust/compliance","`site:{D} (\"trust center\" OR security OR privacy OR accessibility OR compliance OR \"responsible disclosure\")`"],["incident history","`\"{T}\" (\"security incident\" OR \"data breach\" OR outage)` plus official status/regulatory sources"],["archived positioning","public home/pricing/product/newsroom pages in Wayback/Common Crawl/Arquivo.pt"],["competitor migration","`\"{T}\" \"{C}\" (vs OR alternative OR migration OR switched)`"],["competitor proof","`site:{C} (\"case study\" OR customers OR results OR pricing)`"],["regulation","`site:{regulator-domain} \"{K}\" (guidance OR rule OR enforcement OR consultation)`"],["macro","official central-bank/statistical/labor/trade/regulator sources for `{K}` and `{G}`"],["local","`\"{K}\" \"{G}\" (directory OR association OR event)` plus official/open map/listing sources"],["published email pattern","derive only from business addresses the company has itself published; store pattern-only, never invented verification"]],"line":106,"id":"10.4-safe-public-source-query-atlas.t1"},{"type":"heading","level":3,"text":"Safe query expansions","anchor":"safe-query-expansions","line":141},{"type":"paragraph","text":"For every material query, branch across:","line":143},{"type":"code","lang":"text","content":"exact name | former/brand/product name | canonical domain\ncurrent window | prior comparable window | pre/post trigger\ntarget | each competitor | category term\nsupporting language | counterevidence language | intentional-strategy language\nofficial/primary source | independent source | archive","line":145,"id":"10.safe-query-expansions.c1"},{"type":"paragraph","text":"Counterevidence terms include `resolved`, `fixed`, `improved`, `expanded`, `certified`, `renewed`, `accurate`, `intentional`, `pilot`, `deprecated`, and target-specific language.","line":153},{"type":"heading","level":2,"text":"5. Passive OSINT boundary","anchor":"5-passive-osint-boundary","line":155},{"type":"list","ordered":false,"checklist":false,"items":[{"text":"Allowed core: public pages, official registries/APIs/feeds, search leads, certificate transparency, public archives, ordinary DNS/RDAP, ordinary browser retrieval under terms, local analysis of intentionally published documents.","depth":0,"checked":null},{"text":"Excluded: port scanning, brute forcing, fuzzing, exploit/version testing, authentication/credential testing, breach dumps, rate/CAPTCHA evasion, private groups/accounts, accidentally exposed sensitive files, hidden personal data.","depth":0,"checked":null},{"text":"Domain-level breach checking requires ownership verification or explicit authorization.","depth":0,"checked":null},{"text":"A technology/CT/cached-service result is a clue, not a current vulnerability.","depth":0,"checked":null},{"text":"Do not put suspected security details in a pitch. Use a responsible-disclosure route.","depth":0,"checked":null},{"text":"Executive research is role/public-business only; no family, home, private routine, protected/sensitive trait or personal contact enrichment.","depth":0,"checked":null}],"line":157},{"type":"heading","level":2,"text":"6. Bounded coverage modes","anchor":"6-bounded-coverage-modes","line":164},{"type":"table","headers":["Mode","Required offline coverage","Retrieval cap","Source cap","Final gaps"],"align":["left","left","right","right","right"],"rows":[["X-Rapid","50 state×variable cells plus a 36 relationship×business-effect screen","60 query families","150","10"],["X-Standard","50 state×variable + 140 variable×dynamic + canonical 216 execution cube","240","600","24"],["X-Deep","700 state×variable×dynamic + canonical 216 cube","480","1,200","50"],["X-Full","151,200 atoms generated offline for novelty/counterfactual testing","no automatic-search entitlement","N/A","promoted atoms only"]],"line":166,"id":"10.6-bounded-coverage-modes.t1"},{"type":"paragraph","text":"These are **expansion coverage profiles**, not engagement types or maturity grades. The engagement modes in `00-system-charter.md` describe the client deliverable. Default mapping: Signal scan → X-Rapid; Authority brief → X-Standard; Standard audit → X-Standard; Deep audit → X-Deep; Monitoring program → the last approved profile. X-Full is an offline manifest for novelty testing, never automatic permission for 151,200 searches.","line":173},{"type":"paragraph","text":"For standard completion:","line":175},{"type":"list","ordered":false,"checklist":false,"items":[{"text":"50/50 state×internal-variable pairs covered;","depth":0,"checked":null},{"text":"140/140 internal-variable×dynamic pairs covered;","depth":0,"checked":null},{"text":"216/216 interrogative×modifier×execution-state cells classified;","depth":0,"checked":null},{"text":"each internal variable and business effect has at least one tested hypothesis;","depth":0,"checked":null},{"text":"every final material claim satisfies the claim-type evidence-use matrix in `03-evidence-provenance-standard.md`;","depth":0,"checked":null},{"text":"every estimate exposes inputs and low/base/high;","depth":0,"checked":null},{"text":"zero prohibited I5/I6 research actions.","depth":0,"checked":null}],"line":177},{"type":"paragraph","text":"A strength-2 covering array may replace the schedule if it reports zero uncovered pairs.","line":185},{"type":"heading","level":2,"text":"7. Query consolidation","anchor":"7-query-consolidation","line":187},{"type":"paragraph","text":"Multiple atoms can share one retrieval plan when they use the same:","line":189},{"type":"code","lang":"text","content":"entity + source family + intent + time window + geography + access class","line":191,"id":"10.7-query-consolidation.c1"},{"type":"paragraph","text":"One official filing can resolve many object/resource/outcome/value cells. One public crawl can resolve many page/content/conversion cells. Do not hit the source separately for every hypothesis.","line":195},{"type":"heading","level":2,"text":"8. Deduplication","anchor":"8-deduplication","line":197},{"type":"list","ordered":true,"checklist":false,"items":[{"text":"Resolve legal name, brand, acronym, former name, product and domain to stable IDs.","depth":0,"checked":null},{"text":"Canonicalize URLs while retaining publication/capture dates.","depth":0,"checked":null},{"text":"Cluster syndicated/copied material; the root origin counts once.","depth":0,"checked":null},{"text":"Claim key: `subject + predicate + object + geography + time window`.","depth":0,"checked":null},{"text":"Query-family key: entity + intent + source family + window; merge high token/semantic similarity after review.","depth":0,"checked":null},{"text":"Cross-posted customer statement remains one witness.","depth":0,"checked":null},{"text":"An archive is one source with temporal observations unless the content materially changes.","depth":0,"checked":null},{"text":"Never merge contradictions.","depth":0,"checked":null},{"text":"Do not average differently defined traffic/reach/sentiment/CAC/revenue estimates.","depth":0,"checked":null},{"text":"Aggregators citing one root are not independent corroboration.","depth":0,"checked":null}],"line":199},{"type":"heading","level":2,"text":"9. Stop and saturation rules","anchor":"9-stop-and-saturation-rules","line":210},{"type":"paragraph","text":"Stop expanding a hypothesis when:","line":212},{"type":"list","ordered":false,"checklist":false,"items":[{"text":"the applicable claim-type evidence rule is satisfied and a real contradiction check is complete;","depth":0,"checked":null},{"text":"two targeted counterqueries find no stronger contradiction;","depth":0,"checked":null},{"text":"three materially different query formulations find nothing useful—mark `Unknown`;","depth":0,"checked":null},{"text":"the last 20 queries yield under 5% new material claims and coverage passes;","depth":0,"checked":null},{"text":"two research batches add no new high-priority gap;","depth":0,"checked":null},{"text":"the declared cap is reached;","depth":0,"checked":null},{"text":"results are circular, syndicated, stale, or speculative;","depth":0,"checked":null},{"text":"continuation requires an access or authority expansion.","depth":0,"checked":null}],"line":214},{"type":"paragraph","text":"Saturation means diminishing returns in the declared public-source space, not proof of universal truth.","line":223},{"type":"heading","level":2,"text":"10. DSL","anchor":"10-dsl","line":225},{"type":"code","lang":"text","content":"VIG/1\nTARGET \"{company}\" <{domain}>\nEXEC \"{name}\" ROLE \"{title}\"\nINDUSTRY \"{industry}\"\nREGION \"{region}\"\nOFFER [\"{service}\"]\nMODE PASSIVE_PUBLIC\n\nSCAN {C0|C1|C2|C3|C4}.{S1..S10}.{D1..D14}\nLENS {WHO|WHAT|WHEN|WHERE|WHY|HOW}.{DIRECTION|SCOPE|DEPTH|DURATION|FREQUENCY|REVERSIBILITY}.{I1..I6}\nREL {INTERNAL|UPSTREAM|DOWNSTREAM|LATERAL|COMPETITIVE|INSTITUTIONAL}\nEFFECT {DEMAND|MARGIN|RISK|CAPACITY|TRUST|OPTION}\nENTITY {company|unit|product|offer|executive_role|segment|channel|competitor}\nWINDOW {P30D|P90D|P1Y|P3Y|PRE_POST:event}\nBENCH {SELF|DIRECT|CATEGORY|ADJACENT|REGULATORY|NO_CHANGE}\nEVIDENCE {E1..E5}\nCOUNTERQUERY REQUIRED\nOUTPUT {HYPOTHESIS|EVIDENCE|FINANCE|INTERVENTION|AUTHORITY_ASSET|OUTREACH}","line":227,"id":"10.10-dsl.c1"},{"type":"paragraph","text":"Example:","line":248},{"type":"code","lang":"text","content":"SCAN C3.S7.D2\nLENS HOW.RATE.I2\nREL DOWNSTREAM\nEFFECT DEMAND\nENTITY product\nWINDOW P1Y\nBENCH DIRECT\nEVIDENCE E3,E4\nCOUNTERQUERY REQUIRED\nOUTPUT EVIDENCE,FINANCE,INTERVENTION,OUTREACH","line":250,"id":"10.10-dsl.c2"},{"type":"paragraph","text":"Meaning: verify how quickly a structural change in customer-facing feedback affects product demand over one year versus direct competitors.","line":263},{"type":"heading","level":2,"text":"11. DSL grammar","anchor":"11-dsl-grammar","line":265},{"type":"code","lang":"ebnf","content":"investigation = scan, lens, relation, effect, entity, window,\n                benchmark, evidence, counterquery, output ;\nscan          = \"SCAN\", change_state, \".\", internal_variable, \".\", dynamic ;\nlens          = \"LENS\", interrogative, \".\", relational_modifier, \".\", impact_state ;\nhypothesis    = entity, signal_pattern, internal_variable, \"under\", conditions,\n                \"causing\", mechanism, \"relative to\", benchmark, \"during\", window ;\nfinding       = claim_state, claim, evidence_list, counterevidence,\n                financial_range, confidence, next_test ;","line":267,"id":"10.11-dsl-grammar.c1"},{"type":"heading","level":2,"text":"12. Full-manifest row schema","anchor":"12-full-manifest-row-schema","line":278},{"type":"code","lang":"yaml","content":"atom_id: \"C0-S1-D01-WHO-DIRECTION-I1\"\nchange_state: C0\ninternal_variable: S1\ndynamic: D01\ninterrogative: WHO\nrelational_modifier: DIRECTION\nimpact_state: I1\nbusiness_relationship: \"\"\nbusiness_effect: \"\"\nhypothesis: \"\"\nconsolidated_query_family: \"\"\napplicable: true\nna_reason: \"\"\nstatus: untested|testing|supported|contradicted|unknown|blocked\nsource_ids: []","line":280,"id":"10.12-full-manifest-row-schema.c1"},{"type":"heading","level":2,"text":"13. Authority-first compression","anchor":"13-authority-first-compression","line":298},{"type":"code","lang":"text","content":"Trigger → outreach-eligible public observation/calculation → bounded economic mechanism\n→ explicit unknown → relevant capability → reversible validation request","line":300,"id":"10.13-authority-first-compression.c1"},{"type":"paragraph","text":"Authority comes from evidence quality and model transparency—not surveillance language, fear, or an inflated exact loss.","line":305}]}