{"number":"01","slug":"laka-core-grammar","filename":"01-laka-core-grammar.md","title":"LAKA Core Grammar","bytes":12738,"lines":277,"sha256":"cde4eccc9f7f874416876ffa7fd64ef4cd89a7790d3b2f46cce90d1bf903bc87","sections":23,"tables":6,"code_blocks":12,"href":"/v1/docs/laka-core-grammar","outline":[{"anchor":"1-the-four-layer-engine","level":2,"title":"1. The four-layer engine","line":3,"tables":[],"code":[]},{"anchor":"layer-a-change-states","level":3,"title":"Layer A — Change states","line":7,"tables":["01.layer-a-change-states.t1"],"code":[]},{"anchor":"layer-b-internal-system-variables","level":3,"title":"Layer B — Internal system variables","line":19,"tables":["01.layer-b-internal-system-variables.t1"],"code":[]},{"anchor":"layer-c-fourteen-change-variables","level":3,"title":"Layer C — Fourteen change variables","line":36,"tables":["01.layer-c-fourteen-change-variables.t1"],"code":[]},{"anchor":"layer-d-6-6-6-expansion-and-execution-lens","level":3,"title":"Layer D — 6×6×6 expansion and execution lens","line":57,"tables":[],"code":[]},{"anchor":"interrogatives","level":4,"title":"Interrogatives","line":59,"tables":[],"code":[]},{"anchor":"relational-modifiers","level":4,"title":"Relational modifiers","line":63,"tables":[],"code":[]},{"anchor":"execution-impact","level":4,"title":"Execution impact","line":67,"tables":["01.execution-impact.t1"],"code":[]},{"anchor":"2-operators","level":2,"title":"2. Operators","line":80,"tables":["01.2-operators.t1"],"code":[]},{"anchor":"3-primitive-record-grammar","level":2,"title":"3. Primitive record grammar","line":97,"tables":[],"code":["01.3-primitive-record-grammar.c1"]},{"anchor":"4-canonical-intelligence-sentences","level":2,"title":"4. Canonical intelligence sentences","line":127,"tables":[],"code":[]},{"anchor":"observation","level":3,"title":"Observation","line":129,"tables":[],"code":["01.observation.c1"]},{"anchor":"calculation","level":3,"title":"Calculation","line":135,"tables":[],"code":["01.calculation.c1"]},{"anchor":"inference","level":3,"title":"Inference","line":141,"tables":[],"code":["01.inference.c1"]},{"anchor":"hypothesis-and-test","level":3,"title":"Hypothesis and test","line":147,"tables":[],"code":["01.hypothesis-and-test.c1"]},{"anchor":"financial-scenario","level":3,"title":"Financial scenario","line":154,"tables":[],"code":["01.financial-scenario.c1"]},{"anchor":"outreach-safe-finding","level":3,"title":"Outreach-safe finding","line":160,"tables":[],"code":["01.outreach-safe-finding.c1"]},{"anchor":"5-fifty-cell-structural-matrix","level":2,"title":"5. Fifty-cell structural matrix","line":167,"tables":["01.5-fifty-cell-structural-matrix.t1"],"code":[]},{"anchor":"6-alternative-generation-grammar","level":2,"title":"6. Alternative-generation grammar","line":184,"tables":[],"code":["01.6-alternative-generation-grammar.c1","01.6-alternative-generation-grammar.c2"]},{"anchor":"7-selection-grammar","level":2,"title":"7. Selection grammar","line":213,"tables":[],"code":["01.7-selection-grammar.c1"]},{"anchor":"8-coverage-grammar","level":2,"title":"8. Coverage grammar","line":234,"tables":[],"code":["01.8-coverage-grammar.c1"]},{"anchor":"9-change-memory-grammar","level":2,"title":"9. Change-memory grammar","line":245,"tables":[],"code":["01.9-change-memory-grammar.c1"]}],"blocks":[{"type":"heading","level":1,"text":"LAKA Core Grammar","anchor":"laka-core-grammar","line":1},{"type":"heading","level":2,"text":"1. The four-layer engine","anchor":"1-the-four-layer-engine","line":3},{"type":"paragraph","text":"LAKA is implemented here as four connected layers rather than one flat grid.","line":5},{"type":"heading","level":3,"text":"Layer A — Change states","anchor":"layer-a-change-states","line":7},{"type":"table","headers":["Code","State","Meaning","Audit question"],"align":["left","left","left","left"],"rows":[["C0","Baseline","Current/default state; no meaningful change","What exists now and how does it normally behave?"],["C1","Minor Change","Local, low-depth adjustment; limited dependencies","What can improve through tuning or one-step repair?"],["C2","Major Change","Material change across several components or outcomes","What requires coordinated redesign or meaningful investment?"],["C3","Structural Change","Rules, architecture, incentives, ownership, or feedback loops change","What must be rebuilt at the system level?"],["C4","Paradigm Change","Unit of value, category, business model, or governing assumption changes","What new demand curve makes the old comparison less relevant?"]],"line":9,"id":"01.layer-a-change-states.t1"},{"type":"paragraph","text":"These are not maturity grades. A C4 idea is not automatically better than a C1 intervention. Selection depends on evidence, fit, urgency, reversibility, capacity, and time-to-useful-evidence.","line":17},{"type":"heading","level":3,"text":"Layer B — Internal system variables","anchor":"layer-b-internal-system-variables","line":19},{"type":"table","headers":["Code","Variable","Definition","Diagnostic prompt"],"align":["left","left","left","left"],"rows":[["S1","Object","What is acted upon","What entity, asset, message, process, or relationship changes?"],["S2","Conditions","Operating circumstances","Under what market, technical, temporal, geographic, or regulatory conditions?"],["S3","Actions","What the system does","What actions create, move, transform, measure, or stop value?"],["S4","Tools","Mechanisms","Which human, software, channel, model, contract, or machine performs the action?"],["S5","Resources","Required inputs","What information, people, capital, energy, permission, time, or assets are needed?"],["S6","Outcomes","Produced states","What measurable output or outcome results?"],["S7","Feedback","Learning and control","How does the result change the next decision or system state?"],["S8","Constraints","Limits","What limits performance, legality, adoption, reliability, or scale?"],["S9","Value","Beneficiary and benefit","For whom is value created, of what type, and at whose cost?"],["S10","Failure Mode","Breakdown","How does the system fail, become misleading, or create harm at this state?"]],"line":21,"id":"01.layer-b-internal-system-variables.t1"},{"type":"paragraph","text":"The standard structural matrix is `10 variables × 5 change states = 50 cells`.","line":34},{"type":"heading","level":3,"text":"Layer C — Fourteen change variables","anchor":"layer-c-fourteen-change-variables","line":36},{"type":"table","headers":["Code","Variable","Core question","Useful measures"],"align":["left","left","left","left"],"rows":[["D1","Magnitude","How much change?","absolute delta, percentage delta, severity"],["D2","Rate","How quickly?","change per day/week/quarter"],["D3","Direction","Moving toward what?","improving, degrading, diverging, converging"],["D4","Scope","How broadly?","entities, teams, regions, products, channels affected"],["D5","Depth","How fundamentally?","surface symptom through governing rule"],["D6","Duration","For how long?","transient, seasonal, persistent, permanent"],["D7","Frequency","How often?","event count per period"],["D8","Acceleration","Is the rate changing?","second difference, slope change"],["D9","Variability","How consistent or unpredictable?","range, variance, coefficient of variation"],["D10","Detectability","How visible or measurable?","signal latency, observability, false-negative risk"],["D11","Reversibility","Can it be undone?","recovery time, switching cost, data persistence"],["D12","Propagation","How does it spread?","dependency paths, affected nodes, time to spread"],["D13","Amplification","What increases or dampens it?","multipliers, network effects, feedback gain"],["D14","Accumulation","What builds over time?","backlog, technical debt, reputation memory, compounding value"]],"line":38,"id":"01.layer-c-fourteen-change-variables.t1"},{"type":"paragraph","text":"For every critical feature, opportunity, or risk: evaluate all fourteen variables; record `N/A` with a reason; and test baseline, boundary, contradiction, and failure states.","line":55},{"type":"heading","level":3,"text":"Layer D — 6×6×6 expansion and execution lens","anchor":"layer-d-6-6-6-expansion-and-execution-lens","line":57},{"type":"heading","level":4,"text":"Interrogatives","anchor":"interrogatives","line":59},{"type":"paragraph","text":"`Who | What | When | Where | Why | How`","line":61},{"type":"heading","level":4,"text":"Relational modifiers","anchor":"relational-modifiers","line":63},{"type":"paragraph","text":"`Direction | Scope | Depth | Duration | Frequency | Reversibility`","line":65},{"type":"heading","level":4,"text":"Execution impact","anchor":"execution-impact","line":67},{"type":"table","headers":["Code","State","Permission rule in this system"],"align":["left","left","left"],"rows":[["I1","Read-only","Public-source retrieval and passive observation; default allowed"],["I2","Verify","Recheck, corroborate, calculate, or reproduce without changing target state; default allowed"],["I3","Local change","Create local notes, models, reports, and exports; allowed within project scope"],["I4","Remote/persistent change","Save externally, update CRM, post, email, or mutate remote history; explicit authorization and human review required"],["I5","Destructive change","Delete, overwrite, mass-contact, disrupt, exploit, or irreversibly alter; blocked unless separately and explicitly authorized for a legitimate administrative task"],["I6","Security/policy boundary","Authentication, credentials, protected systems, sensitive data, policy exceptions; stop and route to an authorized specialist"]],"line":69,"id":"01.execution-impact.t1"},{"type":"paragraph","text":"The query engine can form `6 × 6 × 6 = 216` first-order lenses. In passive research, most valid collection actions remain I1–I2. I3 is used for the audit artifact; I4 only for specifically approved CRM/outreach actions; I5–I6 are not prospecting tools.","line":78},{"type":"heading","level":2,"text":"2. Operators","anchor":"2-operators","line":80},{"type":"table","headers":["Symbol","Meaning","Example"],"align":["left","left","left"],"rows":[["`+`","compose required parts","`Claim + Evidence + Time`"],["`×`","generate combinations","`Channel × Persona × Funnel Stage`"],["`→`","state transition","`manual intake → instrumented intake`"],["`|`","mutually exclusive alternatives","`Observed | Inferred | Unknown`"],["`?`","optional only when justified","`Executive?`"],["`{…}`","repeat zero or more","`{Evidence}`"],["`[…]`","gate or constraint","`[E3+ required]`"],["`~`","inference, never direct fact","`slow response ~ queue friction`"],["`!`","contradiction or stop","`! recipient unresolved`"],["`@`","source/provenance pointer","`@source-0042`"],["`$[L,B,H]`","low/base/high financial range","`$[25k,60k,140k]`"],["`Δ`","measured change","`ΔSOV = current − prior`"]],"line":82,"id":"01.2-operators.t1"},{"type":"heading","level":2,"text":"3. Primitive record grammar","anchor":"3-primitive-record-grammar","line":97},{"type":"code","lang":"ebnf","content":"Audit          = ScopeContract, Target, { ResearchModule }, EvidenceLedger,\n                 OpportunityPortfolio, Report, QualityReview ;\n\nTarget         = Organization, [ Executive ], Industry, Geography, TimeWindow ;\n\nResearchModule = Question, SourcePlan, { EvidenceRecord }, { Claim },\n                 LakaAnalysis, [ FinancialModel ], Limitations ;\n\nEvidenceRecord = SourceID, SourceType, CanonicalURL, Publisher,\n                 PublishedAt, RetrievedAt, Extract, ContentFingerprint,\n                 CollectionMethod, AccessClass, EvidenceState ;\n\nClaim          = ClaimID, Subject, Predicate, Object, TimeQualifier,\n                 ClaimState, { EvidenceLink }, Confidence, Contradictions,\n                 ReviewStatus ;\n\nLakaAnalysis   = ChangeState, InternalVariable, { ChangeVariable },\n                 Interrogative, RelationalModifier, ImpactState ;\n\nOpportunity    = Observation, Counterfactual, Mechanism, Beneficiary,\n                 Intervention, ValueRange, Assumptions, Risks,\n                 ReversibleTest, StopRule ;\n\nOutreach       = PublicBusinessContext, OneFinding, BusinessEffect,\n                 CredibilityBoundary, UsefulOffer, PermissionCTA ;","line":99,"id":"01.3-primitive-record-grammar.c1"},{"type":"heading","level":2,"text":"4. Canonical intelligence sentences","anchor":"4-canonical-intelligence-sentences","line":127},{"type":"heading","level":3,"text":"Observation","anchor":"observation","line":129},{"type":"code","lang":"text","content":"[O] As of {retrieval time}, {source} shows {inspectable fact} within {scope/time window}. @source","line":131,"id":"01.observation.c1"},{"type":"heading","level":3,"text":"Calculation","anchor":"calculation","line":135},{"type":"code","lang":"text","content":"[C] Using {cited inputs} and {formula}, the result is {value/range}; rounding and exclusions: {notes}. @inputs","line":137,"id":"01.calculation.c1"},{"type":"heading","level":3,"text":"Inference","anchor":"inference","line":141},{"type":"code","lang":"text","content":"[I] {Evidence set} is consistent with {explanation}, but {alternative explanations} remain plausible.","line":143,"id":"01.inference.c1"},{"type":"heading","level":3,"text":"Hypothesis and test","anchor":"hypothesis-and-test","line":147},{"type":"code","lang":"text","content":"[H] If {mechanism} is material, then {small reversible change} should move {leading metric}\nfrom {baseline} toward {threshold} within {window}; stop if {guardrail}.","line":149,"id":"01.hypothesis-and-test.c1"},{"type":"heading","level":3,"text":"Financial scenario","anchor":"financial-scenario","line":154},{"type":"code","lang":"text","content":"[C][SCENARIO] At {low/base/high inputs}, {formula} yields {range}. This is a calculated scenario, not reported revenue or guaranteed ROI.","line":156,"id":"01.financial-scenario.c1"},{"type":"heading","level":3,"text":"Outreach-safe finding","anchor":"outreach-safe-finding","line":160},{"type":"code","lang":"text","content":"I noticed {public business fact}. It may be creating {bounded business effect}; I have not seen your internal data.\nI mapped a {small next step} that would confirm or reject it within {time/evidence threshold}.","line":162,"id":"01.outreach-safe-finding.c1"},{"type":"heading","level":2,"text":"5. Fifty-cell structural matrix","anchor":"5-fifty-cell-structural-matrix","line":167},{"type":"paragraph","text":"For each row, describe the state rather than simply listing an idea.","line":169},{"type":"table","headers":["Variable","C0 Baseline","C1 Minor","C2 Major","C3 Structural","C4 Paradigm"],"align":["left","left","left","left","left","left"],"rows":[["Object","current unit","locally adjusted unit","materially redesigned unit","relationships/rules become the object","unit of value/category changes"],["Conditions","normal operating context","one bounded condition changes","several important conditions change","governing conditions are redesigned","old conditions become irrelevant or inverted"],["Actions","current workflow","tune/repair one action","coordinate new action set","change decision rights and feedback","introduce a new value-producing behavior"],["Tools","incumbent tools","configure/augment","replace/integrate a major toolset","redesign architecture/tool ownership","tool becomes a new platform or market mechanism"],["Resources","current inputs","small incremental input","meaningful new capacity","reallocate capital/people/data rights","resource model changes or new resource is created"],["Outcomes","current result","local KPI lift","material multi-KPI change","durable system performance change","new category outcome/demand curve"],["Feedback","current reporting","add a signal/alert","closed-loop experimentation","feedback changes governance/incentives","learning system continuously redefines value"],["Constraints","current limits","remove one friction","overcome a material bottleneck","change policy/architecture/incentive constraint","constraint becomes advantage or disappears"],["Value","current beneficiary/value","more of same value","new value mix or segment","value distribution changes","new beneficiary or unit of value"],["Failure Mode","current breakdown","local side effect","coordination/capacity failure","systemic lock-in or transition failure","category error, adoption discontinuity, new externality"]],"line":171,"id":"01.5-fifty-cell-structural-matrix.t1"},{"type":"heading","level":2,"text":"6. Alternative-generation grammar","anchor":"6-alternative-generation-grammar","line":184},{"type":"paragraph","text":"For each material symptom, generate at least one option from each intervention family:","line":186},{"type":"code","lang":"text","content":"Observe only\nMeasure better\nClarify/communicate\nTune/configure\nRemove friction\nAutomate\nReallocate\nRedesign process\nRedesign offer/pricing\nRedesign architecture/governance\nPartner/buy/build\nCreate new unit of value\nStop/retire\nDefer with trigger","line":188,"id":"01.6-alternative-generation-grammar.c1"},{"type":"paragraph","text":"Cross each family with:","line":205},{"type":"code","lang":"text","content":"Target stakeholder × journey stage × channel × time horizon × ownership × reversibility","line":207,"id":"01.6-alternative-generation-grammar.c2"},{"type":"paragraph","text":"Then deduplicate alternatives that share the same mechanism and outcome. Preserve discarded options and the elimination reason.","line":211},{"type":"heading","level":2,"text":"7. Selection grammar","anchor":"7-selection-grammar","line":213},{"type":"code","lang":"text","content":"Eligible(option) = lawful\n                 ∧ evidence-sufficient-for-next-step\n                 ∧ service-fit\n                 ∧ capacity-fit\n                 ∧ risk-within-tolerance\n\nPriority(option) = ExpectedValue\n                 × Confidence\n                 × StrategicFit\n                 × Reversibility\n                 × TimeToEvidenceFactor\n                 ÷ ((1 + CostFactor)\n                    × (1 + RiskFactor)\n                    × (1 + DependencyLoad))","line":215,"id":"01.7-selection-grammar.c1"},{"type":"paragraph","text":"Use ordinal factors normalized from 0 to 1, or use the weighted model in `11-scoring-prioritization.md`. The additive constants prevent division by zero. Do not pretend the expression is a precise economic equation. A C1 test can outrank a C4 transformation.","line":232},{"type":"heading","level":2,"text":"8. Coverage grammar","anchor":"8-coverage-grammar","line":234},{"type":"code","lang":"text","content":"Applicable cells = Required cells − reasoned N/A cells\nCoverage = completed applicable cells / applicable cells\nEvidence coverage = claims with evidence / material claims\nContradiction coverage = material claims actively checked for disconfirming evidence / material claims","line":236,"id":"01.8-coverage-grammar.c1"},{"type":"paragraph","text":"Do not count a blank as `N/A`. A reason is mandatory. Do not average away a failed security, privacy, evidence, or legal gate.","line":243},{"type":"heading","level":2,"text":"9. Change-memory grammar","anchor":"9-change-memory-grammar","line":245},{"type":"paragraph","text":"Every monitoring event uses:","line":247},{"type":"code","lang":"yaml","content":"entity: \"\"\nproperty: \"\"\nprior_state: \"\"\ncurrent_state: \"\"\ndelta: \"\"\nfirst_seen: \"\"\nlast_confirmed: \"\"\nsource_ids: []\nchange_variables:\n  magnitude: \"\"\n  rate: \"\"\n  direction: \"\"\n  scope: \"\"\n  depth: \"\"\n  duration: \"\"\n  frequency: \"\"\n  acceleration: \"\"\n  variability: \"\"\n  detectability: \"\"\n  reversibility: \"\"\n  propagation: \"\"\n  amplification: \"\"\n  accumulation: \"\"\nconfidence: \"\"","line":249,"id":"01.9-change-memory-grammar.c1"},{"type":"paragraph","text":"The engine stores change as a first-class record. It does not silently overwrite prior observations.","line":276}]}