Skip to content

Pin the operator harness instruction block with tests - #4

Merged
tylerhogarth merged 1 commit into
feat/init-syncfrom
feat/instruction-block
Sep 1, 2026
Merged

Pin the operator harness instruction block with tests#4
tylerhogarth merged 1 commit into
feat/init-syncfrom
feat/instruction-block

Conversation

@tylerhogarth

Copy link
Copy Markdown
Owner

Milestone 3 of the v0.1 plan: the instruction block content that makes an agent behave as the operator's team, guarded by tests.

Changes

  • Template (src/template.ts): onboarding now closes the loop deterministically (the agent sets communication dimensions with tod config set, runs tod sync, and marks onboarding complete in operator memory); persona composition explicitly reads the profile from ~/.tod/operator.md to decide which disciplines to supply.
  • Tests (tests/template.test.ts): content assertions for every required harness section (onboarding, memory rules, communication, virtual team, work tracking, git workflow, do-not-edit rules), a guard that tod's own implementation stack never leaks into operator-facing instructions, a check that configuration changes the rendered rules, and an 8 KB size budget enforced across all 81 communication-dimension combinations.

Why

The block is the product: everything the operator experiences flows through it. Pinning its sections and size in tests means later edits cannot silently drop a rule (say, the git workflow) or bloat the block until it crowds agent context windows.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tylerhogarth
tylerhogarth merged commit cf7e028 into main Sep 1, 2026
1 check passed
@tylerhogarth
tylerhogarth deleted the feat/instruction-block branch September 1, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant