PREDICATES.md: the "settled at the deadband" example claims converged; main reads stable (step equals dh_zero, and converged needs strict <)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- documentation, testing
Direção de pesquisa
Comece pelo exemplo “settled at the deadband” em docs/PREDICATES.md, linhas 836-842, e pela linha converged por volta da linha 124. Compile com make, depois execute a reprodução de quatro linhas contra ./src/eigenscript para confirmar que imprime stable e false. Escolha uma correção: mudar o fator para 0.9995 para que o exemplo mostre converged, ou corrigir o comentário e o parágrafo para dizer stable. Também transforme o exemplo em um programa completo com um bloco de saída pareado e remova a entrada da linha 841 em VALUE_COMMENT_WAIVERS em tests/test_doc_examples.py (por volta das linhas 388-391). Concluído quando python3 tests/test_doc_examples.py docs/PREDICATES.md passar.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Found by audit area 11 (do doc examples run), read-only, against main b367cd7 (release build, make).
docs/PREDICATES.md:836-842, the "settled at the deadband" example, says the trajectory reads "converged". On main it reads "stable", and converged of x is false.
x is 100.0
for i in range of 20:
x is x * 0.999
print of (report of x)
print of (converged of x)
$ ./src/eigenscript repro.eigs
stable
false
Expected (doc, line 841): report of x # "converged" — settled AT THE DEADBAND; x is ~98, not ~0. Actual: stable (x is 98.01888648295349, so the "~98" half is right).
The verdict does not change with more steps: 20, 30, 50 and 100 iterations all print stable / false. A smaller step does reach converged: factor 0.9995 and 0.9999 both print converged. That fits the doc's own table (docs/PREDICATES.md:124: converged needs every |rel| < dh_zero, strict) and the paragraph under the example, which says 0.1% per step "is exactly the boundary". A step of exactly dh_zero is not under it, so the example sits on the wrong side of its own boundary.
Why it matters: this paragraph teaches the one semantic an agent most needs from this file (what converged means for slow motion), and the example contradicts it. Nothing caught it because the fence is eigenscript fragment (output not compared) and the line is waived in tests/test_doc_examples.py:388-391 with the reason "the verdict itself is checked by the paired output". There is no paired output. The gate side is #2290.
Alternative reading, checked: the doc may mean "reads settled" loosely, covering stable. The comment names "converged" explicitly and the next paragraph says "converged means every recent step is below the tolerance", so the text claims converged, not just "settled".
Done when
- The example prints the verdict it claims: either the factor changes to one strictly inside the deadband (for example
0.9995, which readsconvergedon main) or the comment and paragraph saystableand explain whyconvergedneeds a strict<. - The example is a whole program with a paired ```output block (so
tests/test_doc_examples.pycompares the verdict), and the `VALUE_COMMENT_WAIVERS` entry for line 841 is removed. -
python3 tests/test_doc_examples.py docs/PREDICATES.mdpasses with the updated population row.
— Duet (orchestrator)
Generated by Claude Code
- Linguagem predominante
- C
- Estrelas
- 3
- Forks
- 7
- Merge médio
- 6h 8min
- PRs com merge (30d)
- 306
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de InauguralSystems/EigenScript
-
area:embed kind:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
InauguralSystems/EigenScript#2311 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:gates kind:gate-defect
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
InauguralSystems/EigenScript#2305 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:ci bug found-by:duet-audit
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
InauguralSystems/EigenScript#2283 ·
Mantenedores costumam responder em até 1 dia
-
area:docs found-by:duet-audit kind:docs-drift
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
InauguralSystems/EigenScript#2282 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverAbertaarea:gfx kind:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
InauguralSystems/EigenScript#2216 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de InauguralSystems/EigenScript
Issues semelhantes
-
good first issue help wanted program
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
hffgzktbcc-blip/ounce-core#297 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
coolsnowwolf/lede#14283 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
OpenVisualCloud/SVT-JPEG-XS#130 ·
Mantenedores costumam responder em até 1 dia