feat: add scratch codegen executor registry#40
Closed
wesleysimplicio wants to merge 1 commit into
Closed
Conversation
Owner
Author
|
Closing as duplicate/stale. PR #39 now contains this foundation slice plus the LibCST/ts-morph executors, scratch evidence harnesses, pilot stacks, planner cache, cache telemetry, and SkillOpt inline updates. |
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.
Motivation
scratchsem depender do LLM, fornecendo um caminho de execução previsível e testável antes do fluxo de LLM e mantendo o fallback para LLM quando necessário.Description
simplicio/scratch/codegen:types.py(CodegenResult,TaskExecutor),registry.py(register_executor,registered_executors,try_execute) e__init__.pyexportando a API.simplicio/scratch/executor.pychamandotry_executeantes do caminho LLM, propagandocodegenlogs e preservando a semântica defallback_to_llme o modo de stub quandoSIMPLICIO_MODELnão está definido.tests/python/test_scratch_codegen.pycobrindo registry vazio, seleção do primeiro executor compatível, execução bem-sucedida sem modelo, falha sem fallback e comportamento de fallback.libcst/ts-morphetc.); mudanças são uma fundação de plumbing para executores mecânicos.Testing
python -m pytest tests/python -q -p no:cacheprovidere os testes Python relevantes passaram (os novos testes descratch_codegenexecutaram e passaram; no conjunto completo apareceram119 passed, 1 skipped).node scripts/lint.jse o linter concluiu sem erros (apareceram avisos de trailing whitespace e avisos de ferramentas ausentes, mas sem falhas).npx playwright test --reporter=list,html(apósnpx playwright installenpx playwright install-deps), e os cenários E2E relevantes passaram (E2E: 6 passed, 27 skipped na run desta máquina de verificação).npm testnão está disponível neste repositório porquepackage.jsonnão define um scripttest, portanto não foi executado aqui.Codex Task