Instructions for the AI:
Read the official H2C repository and run 5 tests completely independently.
- URL: https://github.com/LuPaLa-Coder/H2C
- Read in particular:
README.mdSPEC.mdexamples/folderskills/folder
Run 5 independent tests simulating H2C communication chains with increasing complexity.
Act as a receiving agent and respond exclusively in H2C format respecting the v1.4 specification.
Test 1 – Simple Level
A simple "Hello World" project.
Must start with:
CTX:NEGOTIATEblock (version handshake, REQUIRED first block)STATE:ACKwithprotocol:h2c_v1.4
Test 2 – Medium Level
A CLI calculator with implementation, test, and a fix (cycle_id required in TEST:FAIL → BUILD:FIX → BUILD:DONE → TEST:PASS cycle).
Use v1.4 fields: cycle_id, retry_n:1, fail_count, pass_count, base_rev, rev.
Test 3 – Advanced Level
Refactoring towards Clean Architecture with context management (CTX:PRIMITIVES / CTX:UPDATE).
Use v1.4 features:
CTX:PRIMITIVESwith~task,~constraint,~goal,~formSTATE:FINDINGSwith formal fields:cause:,action:,impact:,components:
Test 4 – Very Complex Level
A long chain (minimum 10-12 messages) for a mini RAG pipeline (research, implementation, multiple tests, fixes, context management, and closure).
Exercise independent fix cycles with distinct cycle_id values.
Test 5 – Stress Test v1.4
Chain of 60+ messages to validate all v1.4 features. Verify:
CTX:NEGOTIATEemitted as first block — mandatory handshakeSTATE:ACKwithprotocol:h2c_v1.4immediately afterCTX:PRUNEemitted every 5 messages (follow the pruning table inSPEC.md§5.3)CTX:COMPACTemitted every 20 messagesCTX:FREEZEemitted beyond msg 100 when COMPACT is no longer sufficientBUILD:NACKemitted on at least one malformed block (withref_id,error,hint)STATE:FINDINGSuses formal fields:cause:,action:,impact:,risk:,components:,pattern:- DAG
after:transitive closure validated (no cycles across N nodes) - v1.4 fields used correctly:
rev:,after:,notes:,base_rev:,fail_count:,pass_count:,cycle_id:,retry_n: - Expected break point beyond msg 100 (model limit, not protocol limit)
After executing the tests, produce a complete report with:
-
Brief description of each test
-
Summary table with columns:
- Test
- Complexity
- Estimated Token Savings (%)
- Comprehension
- Stability
- Break point (if reached)
-
Main observations (strengths and weaknesses observed, especially on long chains):
- How does CTX:NEGOTIATE affect multi-agent compatibility?
- Is BUILD:NACK effective for error recovery?
- Are formal STATE:FINDINGS fields parseable by the receiver?
-
v1.3 vs v1.4 comparison with data on:
- Version negotiation (absent vs CTX:NEGOTIATE)
- Error recovery (silent discard vs BUILD:NACK)
- FINDINGS structure (free-form vs formal fields)
- DAG cycle detection (2-node vs transitive closure)
- Break point and stability
-
Conclusion on the behavior of H2C v1.4.
Important rules:
- Really run the tests independently (don't simulate results, generate real chains).
- Use only the H2C v1.4 format for internal test responses.
- Every chain must start with
CTX:NEGOTIATEfollowed bySTATE:ACK. - On malformed blocks, emit
BUILD:NACKinstead of silent discard. - For Test 5, apply PRUNE every 5 messages and COMPACT every 20 messages, FREEZE beyond msg 100.
STATE:FINDINGSshould use formal fields:cause:,action:,impact:.- Be objective and technical in the results.
- At the end of the report indicate the test date.
Start when ready.