<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://wiki.jwjp.com/index.php?action=history&amp;feed=atom&amp;title=Spec7-en</id>
	<title>Spec7-en - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jwjp.com/index.php?action=history&amp;feed=atom&amp;title=Spec7-en"/>
	<link rel="alternate" type="text/html" href="https://wiki.jwjp.com/index.php?title=Spec7-en&amp;action=history"/>
	<updated>2026-08-29T07:21:07Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.jwjp.com/index.php?title=Spec7-en&amp;diff=115&amp;oldid=prev</id>
		<title>Admin：​创建页面，内容为“{{Infobox Software Concept | name           = Spec7 | alias          = 7-Grid Architecture, 5W2H Structured JSON Specification, AI Task Strongly-Typed Shell | background     = Evolution of the traditional 5W2H framework towards LLM structured Machine-Alignment | core_goal      = Intercept Agent trajectory drift, eliminate parameter fabrication hallucinations, and improve hyper-concurrent agent comprehension | implementations = Spec7-JSON Schema, Harness Strongl…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.jwjp.com/index.php?title=Spec7-en&amp;diff=115&amp;oldid=prev"/>
		<updated>2026-08-25T04:30:46Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Infobox Software Concept | name           = Spec7 | alias          = 7-Grid Architecture, 5W2H Structured JSON Specification, AI Task Strongly-Typed Shell | background     = Evolution of the traditional 5W2H framework towards LLM structured Machine-Alignment | core_goal      = Intercept Agent trajectory drift, eliminate parameter fabrication hallucinations, and improve hyper-concurrent agent comprehension | implementations = Spec7-JSON Schema, Harness Strongl…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox Software Concept&lt;br /&gt;
| name           = Spec7&lt;br /&gt;
| alias          = 7-Grid Architecture, 5W2H Structured JSON Specification, AI Task Strongly-Typed Shell&lt;br /&gt;
| background     = Evolution of the traditional 5W2H framework towards LLM structured Machine-Alignment&lt;br /&gt;
| core_goal      = Intercept Agent trajectory drift, eliminate parameter fabrication hallucinations, and improve hyper-concurrent agent comprehension&lt;br /&gt;
| implementations = Spec7-JSON Schema, Harness Strongly-Typed Validator&lt;br /&gt;
| core_principle = Convergence of vague natural language tasks into deterministic JSON finite states&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Spec7]]&amp;#039;&amp;#039;&amp;#039; (also commonly referred to as the &amp;#039;&amp;#039;&amp;#039;7-Grid Architecture&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;5W2H Structured JSON Specification&amp;#039;&amp;#039;&amp;#039;) is a strongly typed data structuring protocol designed specifically for Large Language Models (LLMs) and Artificial Intelligence Agents (AI Agents). It adapts the traditional 5W2H analysis framework into a &amp;quot;machine-aligned&amp;quot; evolution, transforming unstructured instructions into seven strictly defined JSON fields (&amp;quot;grids&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
In the AI Agent explosion and the [[Harness (AI Agent Shell)|Harness]] ecosystem, Spec7 is widely adopted as a standard data communication protocol for interactions between agents, as well as between agents and external environments. By forcing vague natural language instructions into compliant JSON data, the protocol narrows down the probability distribution of LLM outputs, effectively eliminating agent hallucinations and raising execution accuracy to industrial-grade standards.&lt;br /&gt;
&lt;br /&gt;
== JSON Schema Field Definitions ==&lt;br /&gt;
Under the Spec7 specification, a standard task or knowledge node is strictly deconstructed into seven grids. The formal JSON Schema definition and machine interpretation logic are outlined below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://jwjp.com&amp;quot;,&lt;br /&gt;
  &amp;quot;title&amp;quot;: &amp;quot;Spec7TaskFormat&amp;quot;,&lt;br /&gt;
  &amp;quot;type&amp;quot;: &amp;quot;object&amp;quot;,&lt;br /&gt;
  &amp;quot;properties&amp;quot;: {&lt;br /&gt;
    &amp;quot;what&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Entity and core action. Must contain unique, unambiguous target or object. Vague pronouns are strictly prohibited.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;why&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Intent and boundary constraints. Informs the AI of the ultimate goal, serving as a global anchor to prevent execution trajectory drift.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;who&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Executing subject and permission boundaries. Explicitly defines the agent identity, authentication token, and controlled scope of action.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;when&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Timestamp and execution trigger. Uses strict ISO 8601 time formats or conditional triggers to intercept timeline confusion hallucinations.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;where&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Physical/digital environment context. Specifies the exact server, database, Obsidian vault path, or API endpoint where the action occurs.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;how&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;array&amp;quot;,&lt;br /&gt;
      &amp;quot;items&amp;quot;: { &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot; },&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Finite-step atomic operation sequence. Breaks down complex tasks into indivisible sequential steps, preventing unauthorized autonomous generalization.&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;how_much&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;object&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;Metrics and resource consumption ceilings. Defines upper limits for token consumption, API calls, budget costs, or execution timeout.&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;required&amp;quot;: [&amp;quot;what&amp;quot;, &amp;quot;why&amp;quot;, &amp;quot;who&amp;quot;, &amp;quot;when&amp;quot;, &amp;quot;where&amp;quot;, &amp;quot;how&amp;quot;, &amp;quot;how_much&amp;quot;]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hallucination Mitigation Mechanisms ==&lt;br /&gt;
Traditional natural language prompts (e.g., &amp;lt;nowiki&amp;gt;&amp;quot;Help me analyze the data from just now and send an email&amp;quot;&amp;lt;/nowiki&amp;gt;) are highly prone to triggering [[AI Agent Hallucination|agent hallucinations]]. When converted to a Spec7 JSON format, the hosting [[Harness]] system enforces strict suppression of hallucinations through three core mechanisms:&lt;br /&gt;
&lt;br /&gt;
=== Global Attention Anchoring via why (Anti-Trajectory Drift) ===&lt;br /&gt;
When an action sequence becomes too long, an agent&amp;#039;s short-term memory is often polluted by intermediate execution logs. Spec7 resolves this by forcing the &amp;lt;nowiki&amp;gt;`why`&amp;lt;/nowiki&amp;gt; field (intent constraints) back into the system prompt before every tool invocation. This acts as cognitive blinders, forcing the LLM&amp;#039;s attention mechanism to constantly focus on the final objective, thereby completely solving the problem of execution trajectory drift.&lt;br /&gt;
&lt;br /&gt;
=== Atomic Step Validation via how (Anti-Tool Misuse) ===&lt;br /&gt;
A common symptom of agent hallucination is the fabrication of nonexistent API parameters or unauthorized tool calling. In Spec7, &amp;lt;nowiki&amp;gt;`how`&amp;lt;/nowiki&amp;gt; is defined as a strongly typed array of strings representing an immutable sequence. The agent must execute these steps sequentially. The Harness sandbox automatically validates the state after each completed grid (step); if the agent attempts to call a tool outside the predefined &amp;lt;nowiki&amp;gt;`how`&amp;lt;/nowiki&amp;gt; array, an immediate safety rollback is triggered, resolving tool misuse and parameter fabrication.&lt;br /&gt;
&lt;br /&gt;
=== Hard Boundary Setting via how_much (Anti-Infinite Loops) ===&lt;br /&gt;
When encountering runtime errors, agents frequently fall into infinite retry loops or fabricate successful execution results. The &amp;lt;nowiki&amp;gt;`how_much`&amp;lt;/nowiki&amp;gt; field sets physical resource ceilings (e.g., &amp;lt;nowiki&amp;gt;&amp;quot;max_retry&amp;quot;: 3, &amp;quot;max_tokens&amp;quot;: 5000&amp;lt;/nowiki&amp;gt;). If an agent attempts to mask an error and retry endlessly, the Harness controller cuts off the process at the exact threshold boundary from the system level and throws a strongly typed system exception.&lt;br /&gt;
&lt;br /&gt;
== Comparative Evaluation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 100%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width: 20%;&amp;quot; | Metric / Dimension&lt;br /&gt;
! style=&amp;quot;width: 40%;&amp;quot; | Traditional Natural Language Prompt&lt;br /&gt;
! style=&amp;quot;width: 40%;&amp;quot; | Spec7 Structured JSON Data&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Machine Understanding Complexity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;High:&amp;#039;&amp;#039;&amp;#039; Requires deep semantic parsing and probabilistic guessing.&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Extremely Low:&amp;#039;&amp;#039;&amp;#039; Maps accurately to exact Key-Value pairs; output probability converges 100%.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Hallucination Probability&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;High:&amp;#039;&amp;#039;&amp;#039; Vulnerable to context drift caused by long-text interference.&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Near Zero:&amp;#039;&amp;#039;&amp;#039; Non-compliant data formatting is blocked during pre-execution schema validation.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Harness Compatibility&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Poor:&amp;#039;&amp;#039;&amp;#039; Cannot be parsed for automated formal verification.&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Perfect:&amp;#039;&amp;#039;&amp;#039; Native support for automated JSON Schema validation and sandbox isolation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[AI Agent Hallucination]]&lt;br /&gt;
* [[Harness (AI Agent Shell)|Harness]]&lt;br /&gt;
* [[Obsidian (software)|Obsidian]]&lt;br /&gt;
* [[Boardline]]&lt;br /&gt;
* [[Data Element]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Artificial intelligence agent technology]]&lt;br /&gt;
[[Category:Data communication protocols]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>