<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FInstruction_Namespace</id>
	<title>Help:Ephemera Agent/Instruction Namespace - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FInstruction_Namespace"/>
	<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Instruction_Namespace&amp;action=history"/>
	<updated>2026-05-19T12:44:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Instruction_Namespace&amp;diff=11&amp;oldid=prev</id>
		<title>EphemeraAdmin: Import: Help:Ephemera Agent/Instruction Namespace</title>
		<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Instruction_Namespace&amp;diff=11&amp;oldid=prev"/>
		<updated>2026-04-01T04:29:36Z</updated>

		<summary type="html">&lt;p&gt;Import: Help:Ephemera Agent/Instruction Namespace&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Ephemera Agent — Instruction Namespace}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Instructions:&amp;lt;/code&amp;gt; namespace is the control layer of the entire system. It defines how the agent behaves, what pages should look like, how they should be written, and what policies govern canon. Editing an instruction page changes agent behavior immediately — no code changes required.&lt;br /&gt;
&lt;br /&gt;
== Page Types ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
! Type !! Naming Convention !! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| Core || &amp;lt;code&amp;gt;Instructions:Core/PolicyName&amp;lt;/code&amp;gt; || Global rules applied to every task. Canon policy, continuity rules, voice standards.&lt;br /&gt;
|-&lt;br /&gt;
| Workflow || &amp;lt;code&amp;gt;Instructions:Create/TaskType&amp;lt;/code&amp;gt; || Step-by-step task execution procedures.&lt;br /&gt;
|-&lt;br /&gt;
| Workflow (subtype) || &amp;lt;code&amp;gt;Instructions:Create/Source/SubtypeName&amp;lt;/code&amp;gt; || Type-specific workflow extensions.&lt;br /&gt;
|-&lt;br /&gt;
| Schema || &amp;lt;code&amp;gt;Instructions:Schema/PageType&amp;lt;/code&amp;gt; || Required sections and structure for a page type.&lt;br /&gt;
|-&lt;br /&gt;
| Style || &amp;lt;code&amp;gt;Instructions:Style/ToneName&amp;lt;/code&amp;gt; || Tone, voice, and register guides.&lt;br /&gt;
|-&lt;br /&gt;
| Maintenance || &amp;lt;code&amp;gt;Instructions:Maintenance/TaskName&amp;lt;/code&amp;gt; || Audit and report generation procedures.&lt;br /&gt;
|-&lt;br /&gt;
| Config || &amp;lt;code&amp;gt;Instructions:Config&amp;lt;/code&amp;gt; || Runtime configuration for the context assembly pipeline.&lt;br /&gt;
|-&lt;br /&gt;
| World Bible || &amp;lt;code&amp;gt;Instructions:World Bible&amp;lt;/code&amp;gt; || The canonical universe reference. Always included first in every context package.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Page Structure ==&lt;br /&gt;
&lt;br /&gt;
Instruction pages store their content as wikitext and their machine-readable metadata as a JSON block inside &amp;lt;code&amp;gt;&amp;amp;lt;nowiki&amp;amp;gt;&amp;lt;/code&amp;gt; tags. The JSON is parsed by &amp;lt;code&amp;gt;wiki_api.php&amp;lt;/code&amp;gt; to extract the &amp;lt;code&amp;gt;requires&amp;lt;/code&amp;gt; dependency list.&lt;br /&gt;
&lt;br /&gt;
=== Example Page ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
== Instructions:Create/Source (Base Workflow) ==&lt;br /&gt;
&lt;br /&gt;
Base workflow for creating a new source page and its corresponding Talk page.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
Applies to all source-generation tasks regardless of document type.&lt;br /&gt;
&lt;br /&gt;
=== Constraints ===&lt;br /&gt;
* Source page must be in-universe only&lt;br /&gt;
* Talk page must be interpretive&lt;br /&gt;
* Do not mix voices&lt;br /&gt;
* Maintain canon continuity&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
# Determine source type&lt;br /&gt;
# Identify metadata&lt;br /&gt;
# Infer bias and reliability&lt;br /&gt;
# Write in-universe content&lt;br /&gt;
# Create source page&lt;br /&gt;
# Create Talk page&lt;br /&gt;
# Populate analysis&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;pre&amp;amp;gt;&amp;amp;lt;nowiki&amp;amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;meta&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: &amp;quot;create-source-base&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;workflow&amp;quot;,&lt;br /&gt;
    &amp;quot;applies_to&amp;quot;: &amp;quot;Sources&amp;quot;,&lt;br /&gt;
    &amp;quot;task_type&amp;quot;: &amp;quot;create&amp;quot;,&lt;br /&gt;
    &amp;quot;priority&amp;quot;: &amp;quot;high&amp;quot;,&lt;br /&gt;
    &amp;quot;status&amp;quot;: &amp;quot;active&amp;quot;,&lt;br /&gt;
    &amp;quot;canonical&amp;quot;: true,&lt;br /&gt;
    &amp;quot;requires&amp;quot;: [&lt;br /&gt;
      &amp;quot;Instructions:World Bible&amp;quot;,&lt;br /&gt;
      &amp;quot;Instructions:Schema/Source Page&amp;quot;,&lt;br /&gt;
      &amp;quot;Instructions:Core/Continuity Rules&amp;quot;&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;tags&amp;quot;: [&amp;quot;source&amp;quot;, &amp;quot;create&amp;quot;, &amp;quot;base&amp;quot;]&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;amp;lt;/nowiki&amp;amp;gt;&amp;amp;lt;/pre&amp;amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The requires Field ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;requires&amp;lt;/code&amp;gt; array in the JSON metadata is the dependency graph. When the context pipeline selects an instruction page, it also fetches all pages listed in &amp;lt;code&amp;gt;requires&amp;lt;/code&amp;gt;, and their requirements, up to &amp;lt;code&amp;gt;max_depth&amp;lt;/code&amp;gt; hops.&lt;br /&gt;
&lt;br /&gt;
Rules:&lt;br /&gt;
* List only &amp;#039;&amp;#039;&amp;#039;direct&amp;#039;&amp;#039;&amp;#039; dependencies — transitive ones are resolved automatically&lt;br /&gt;
* Use full page titles: &amp;lt;code&amp;gt;&amp;quot;Instructions:Core/Canon Policy&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Circular dependencies are safe — the BFS traversal tracks visited nodes&lt;br /&gt;
* Keep dependency chains shallow — deep chains consume token budget&lt;br /&gt;
&lt;br /&gt;
== The World Bible ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Instructions:World Bible&amp;lt;/code&amp;gt; is the most important page in the system. It is &amp;#039;&amp;#039;&amp;#039;always loaded first&amp;#039;&amp;#039;&amp;#039;, before any other instruction page, for every context assembly call. It should contain:&lt;br /&gt;
&lt;br /&gt;
* The fundamental premise of the universe (year, setting, tone)&lt;br /&gt;
* Core factions, polities, and power structures&lt;br /&gt;
* Canonical technology level and constraints&lt;br /&gt;
* Voice and register standards that apply everywhere&lt;br /&gt;
* Any facts that must never be contradicted&lt;br /&gt;
&lt;br /&gt;
Keep it concise — it consumes token budget on every call.&lt;br /&gt;
&lt;br /&gt;
== Instructions:Config ==&lt;br /&gt;
&lt;br /&gt;
See [[Help:Ephemera Agent/Configuration#Instructions:Config]] for the full reference. The config page controls context assembly parameters and can extend the task type list without PHP changes.&lt;br /&gt;
&lt;br /&gt;
== Bulk Loading the Instruction Namespace ==&lt;br /&gt;
&lt;br /&gt;
The fastest way to populate the &amp;lt;code&amp;gt;Instructions:&amp;lt;/code&amp;gt; namespace is via the [[Help:Ephemera Agent/Bulk Import|Bulk Import]] tool. Prepare your instruction pages in the instruction namespace JSON schema format and import them in one operation with no AI calls required.&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:EphemeraAgent]]&lt;/div&gt;</summary>
		<author><name>EphemeraAdmin</name></author>
	</entry>
</feed>