[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACYXTXWFFQDY764YSTHBD1":3,"skill-same:01M7ACYXTXWFFQDY764YSTHBD1":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7ACYXTXWFFQDY764YSTHBD1","understand-working_memory",null,"sancovp\u002Fdark-factory-live","sancovp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F147458096?v=4","01M74F2EFE4Q0KF1Y5AY27HVNB","Isaac Wostrel-Rubin","01M7AC3EB8VZXS1SKHQW1EZ4N1",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fkbworld\u002Fstate\u002Flibraries\u002F_staging_llm_memory_and_context_engineering\u002Funderstand-working_memory\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# understand-working_memory\n\n**CALL NUMBER:** `llm_memory_and_context_engineering.working_memory : deep_context_window(13)`\n**DEFINITION:** The transient token budget allocated for active reasoning within a single model call; scratch space for chain_of_thought and intermediate results\n\nInvoke this skill to understand `working_memory` down to its primitives. The RELATIVE ROOT below is the least-fixed-point closure of everything it bundles from — the full import cone, grouped by the lib each prim comes from. Projected from a prover-typed KB (MAP\u002FSWI-Prolog consistency gate): every reference below resolves.\n\n## THE RELATIVE ROOT (the import cone, by lib)\n\n### from `deep_context_window`\n- **context_boundary** (d3): The hard edge position within context where context_overflow triggers if exceeded; exactly context_length minus one for the output region.\n- **context_resize_event** (d3): The runtime mechanism or policy invoked when context_length must accommodate inputs exceeding current capacity; involves reallocation or overflow handling.\n- **context_scaling_factor** (d3): The multiplier relating raw context_length to effective_context; models with improved attention patterns achieve factors closer to one.\n- **input_token_budget** (d3): The portion of context_length reserved and available for prompt tokens, retrieved context, and system instructions before generation begins.\n- **max_model_tokens** (d3): The absolute token ceiling of the model architecture; synonymous with context_length when no additional constraints apply.\n- **maximum_position** (d3): The highest valid integer position index representable by the position_embedding scheme within context_length; equal to max_model_tokens minus one for zero-indexed sequences.\n- **output_token_limit** (d3): The portion of context_length reserved for generated tokens; equals context_length minus input_token_budget minus overhead tokens.\n- **overflow_threshold** (d3): The position or token count at which the model behavior shifts from normal processing to truncation or error; often slightly below context_boundary.\n- **token_boundary_marker** (d3): The positional delimiter marking the transition from input context to output generation; tokens before this marker are provided context, tokens after are to be generated.\n- **context_capacity_ratio** (d4): The ratio of tokens actively processed to total available context_length; quantifies context_utilization as used_capacity divided by max_model_tokens.\n- **token_headroom** (d4): The arithmetic difference between current position or token count and context_boundary; the remaining room before overflow_threshold is reached.\n- **position_index** (d4): Ordinal integer from zero to context_window_boundary representing each token's location in the sequence; each index must be encodable by the position_embedding scheme in use\n- **sequence_position** (d4): The ordinal index of a token within the full context sequence; constrained to be less than or equal to maximum_position.\n\n### from `llm_memory_and_context_engineering`\n- **attention_mechanism** (d1): The core operation allowing each token to attend to all others; scaled dot-product attention is the standard. Memory and context are both outputs of attention computation.\n- **chain_of_thought** (d1): Producing intermediate reasoning steps before final answer; when demonstrated in context, subsequent reasoning follows the pattern. A form of contextual procedural memory.\n- **context_window** (d1): The finite token sequence an LLM can process in a single forward pass; defines the maximum input + output capacity bounded by architecture or inference config\n- **memory_efficiency** (d1): Ratio of useful information retained per unit of memory storage or context_token budget\n- **memory_hierarchy** (d1): The layered structure of LLM memory: immediate context (working), retrieved context (RAG), fine-tuned weights (parametric), external stores (vector DB). Each layer has different latency\u002Fcapacity tradeoffs.\n- **memory_window** (d1): The subset of episodic_memory available for retrieval at any time; analogous to context_window but for long_term_storage\n- **scratchpad** (d1): Explicit intermediate reasoning space written by the model itself; a form of ephemeral working_memory externalized to tokens\n- **sliding_window** (d1): Fixed-size contiguous subset of recent tokens kept in working_memory as new tokens arrive and old ones are evicted\n- **attention_saturation** (d2): Condition where attention weights become uniform across long context; signals reduced context_utilization and effective_context shrinkage\n- **attention_sinks** (d2): Special tokens that accumulate disproportionate attention mass, enabling efficient long-context modeling without explicit positional encoding\n- **attention_weighting** (d2): Distribution of attention scores across context tokens; reveals what the model considers relevant to current generation\n- **cross_attention** (d2): Attention mechanism where queries attend to a separate context (e.g., retrieved documents); enables retrieval_augmented_generation\n- **hard_attention** (d2): Attention focusing on single positions; non-differentiable but efficient; approximated by soft attention in practice\n- **kv_cache** (d2): The key-value tensors cached during transformer self-attention to avoid recomputing activations for previously-seen tokens\n- **self_attention** (d2): The mechanism by which transformer models relate each token position to all other positions; the quadratic bottleneck in context_length scaling\n- **soft_attention** (d2): Attention producing weighted averages over all positions; differentiable but computationally expensive at scale\n- **sparse_attention** (d2): Attention patterns that compute fewer than n² pairwise interactions, reducing memory_efficient_attention cost at the cost of expressiveness\n- **causal_tracing** (d2): Technique identifying which context tokens causally influence model outputs; used to understand effective_context and attention patterns\n- **context_length** (d2): Total number of tokens (input + output) an LLM supports; the hard ceiling on how much text can be loaded into context_window at once\n- **context_overflow** (d2): The failure state where total input exceeds context_window, causing silent truncation or errors depending on the client library\n- **context_utilization** (d2): How effectively the model uses all available context tokens; metrics include attention entropy, retrieval accuracy at various positions, task performance variation with position.\n- **effective_context** (d2): Portion of context_window the model actually leverages for any given generation; often less than the full window due to attention patterns\n- **flash_attention** (d2): A memory-efficient attention algorithm using tiling and recomputation to avoid materializing the full n×n attention matrix in HBM\n- **position_embedding** (d2): Encoding that injects positional information into token representations since attention is permutation-invariant. Choices: sinusoidal, RoPE, ALiBi. Affects how context scales.\n- **ring_attention** (d2): Distributed sliding_window_attention across multiple devices with communication-avoiding algorithms for very long sequences\n\n## CONSUMERS (what needs this)\n`chain_of_thought`, `context_window`, `kv_cache`, `sliding_window`\n\n---\n*Projected from the `llm memory and context engineering` KB (438 concepts \u002F 213 relations) — consistency-typed by MAP; the facet list after the colon IS the cross-lib dependency web.*",{},"main","dfed66814f223a9f42bec375a3c59d74eefdcad5","kbworld\u002Fstate\u002Flibraries\u002F_staging_llm_memory_and_context_engineering\u002Funderstand-working_memory","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live","https:\u002F\u002Fgithub.com\u002Fsancovp","https:\u002F\u002Fisaacwr.carrd.co\u002F","AKA Olivus Victory-Promise\r\n\r\nAI Agents, Tools, and Infrastructure","2026-10-09 02:22:46",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add sancovp\u002Fdark-factory-live --skill understand-working_memory",{"tool":36,"command":37},"bunx","bunx skills add sancovp\u002Fdark-factory-live --skill understand-working_memory",{"tool":39,"command":40},"pnpm","pnpm dlx skills add sancovp\u002Fdark-factory-live --skill understand-working_memory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fkbworld\u002Fstate\u002Flibraries\u002F_staging_llm_memory_and_context_engineering\u002Funderstand-working_memory\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7AGYB2CPCQYJP631CH18A1A","quests","The quest board — accept quests, craft skills to fulfill them, earn gold rewards.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Fthings\u002Fquests\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7AGXYVW23T3X4APFAV3H4ZY","metrics","Check your profitability and trading performance — gold earned, spent, net profit, trade history.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Fthings\u002Fmetrics\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7AGXWC0C1W7PZK5YXQW0NQM","things","Flat search across the game — find quests, knowledge domains, agents, trade listings, memories.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Fthings\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7AGXT9SX50REN4K7ZGE08JT","test-skill","Test a crafted skill by running it through a fresh Claude instance. Use before posting to trade or submitting for quests.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Ftest_skill\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7AGXRA67MFHJJNDEVX6PFKR","remember","Your zettelkasten — persistent memory that survives across seasons. Record observations, strategies, and craft insights.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Fremember\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7AGXNND02SYFXB1JV9YRPAN","skill-types","The type system — Template, Lens, Prosthesis, Towering, Combiner, Persona, Recipe. Learn to type skills, chain them, and write Recipes.","https:\u002F\u002Fgithub.com\u002Fsancovp\u002Fdark-factory-live\u002Fblob\u002Fmain\u002Fworld\u002Fagents\u002Fagent_002\u002F.claude\u002Fskills\u002Fplaces\u002Fskill_types\u002FSKILL.md",[],[]]