Repository navigation
Conversation
- core: COMPILER_CARD (the prototype's proven rules, adapted: params read inside eval, origins/domains, typed params, structural verify, page-signalled ambiguity, count items not siblings, self-test on at least 3 inputs), compilerPrompt (task and kept params outside a random-nonce fence, every page-derived step and output inside it), extractRecipeJson, checkCompiled (parse + lint + origins must be ones the trace visited; always stored as a draft), compileTrace, and a Compiler port with a fake. - @tyto/compiler: ClaudeCodeCompiler runs `claude -p` in a private work folder with ANTHROPIC_API_KEY removed, only Bash(tyto compile-tool:*) allowed, Write/Edit/Web/Task denied, and a tyto shim on PATH. - cli: `tyto compile <name>`, `tyto compile-tool draft|test|ab` (only inside a compile; ab runs in a no-login, domain-restricted session with content boundaries), and `tyto recipes approve <name> [--yes]`. Verified live: a Wikipedia status task recorded once and compiled once (94 s) answered 6/6 species correctly with no model in 0.26–0.31 s warm. Claude Code refused a chained `tyto compile-tool … && touch …` outright. The opt-in live compiler test (TYTO_LIVE_COMPILER=1) passes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #9. Spec sentences are in
docs/IMPLEMENTATION.md§4 Slice 6. This completes the product loop: learn → compile → run.What
COMPILER_CARD: the prototype's measured rules, adapted to the v1 format. Eval code readsparams; origins and domains; typed params; structural verification; ambiguity resolved by page signals; position params count the items themselves; self-test on ≥3 inputs.compilerPrompt: the task and kept params go outside a random-nonce fence; every page-derived step and output goes inside it, labelled untrusted.extractRecipeJsonandcheckCompiled: parse, lint, and require the recipe's origins to be ones the trace visited. The result is always stored as a draft.compileTraceand aCompilerport.@tyto/compiler:ClaudeCodeCompilerrunsclaude -pin~/.tyto/compile/<name>-*/:ANTHROPIC_API_KEYremoved, so it bills your Max plan;Bash(tyto compile-tool:*)allowed; Write, Edit, NotebookEdit, WebFetch, WebSearch and Task denied;--strict-mcp-config;tytoshim on PATH.tyto compile <name>.tyto compile-tool draft|test|ab, only usable inside a compile.abruns intyto-compile: Tyto's config (no logins),--allowed-domains,--content-boundaries, action policy.tyto recipes approve <name> [--yes]shows the steps and asks for confirmation.Verified
tyto compile-tool test d1 && touch …; touch …as a single permission denial. No file was created.Tests
npm run check: 17 files, 145 tests, typecheck clean, gitleaks clean.TYTO_LIVE_COMPILER=1 npm run test:live: 7 passed. The real compile against a loopback site took 84 s; the recipe answered two unseen inputs correctly.🤖 Generated with Claude Code