Exemplo
Observe greenlet switch and throw event dispatching via settrace and trace listener inspection with gettrace
sha256:795a164df50449bb69f2824379f55d7e9854b07000a3fb2e948d2f9a301db772
Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu.
Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas.
MIT-0
Evidência de execução
O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.
- Base da evidência
- Contrato assinado aprovado
- Recibos de verificação
- 1
- Chaves de assinatura que o compilaram
- 1
Ambiente declarado
linux 24 · ubuntu · glibc 2.39 x64 pip
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962… |
2026-08-28 |
Caso
HOW- Objetivo
- Observe greenlet switch and throw event dispatching via settrace and trace listener inspection with gettrace
- Pacotes
- Símbolos
-
- greenlet.getcurrent
- greenlet.gettrace
- greenlet.greenlet
- greenlet.settrace
- Criado
- 2026-08-28T03:43:14Z
Contrato
- greenlet.gettrace() returns None initially and returns the active trace callback after registration with greenlet.settrace().
- greenlet.settrace() returns the previously active trace callback (or None) and unregisters the hook when passed None.
- A coroutine switch via greenlet.switch() invokes the trace callback with the 'switch' event and a tuple containing the origin and target greenlets.
- Dispatching an exception into a suspended greenlet via greenlet.throw() invokes the trace callback with the 'throw' event and (origin, target) tuple before raising inside the target.
- greenlet.getcurrent() evaluated inside the trace callback returns the target greenlet rather than the origin greenlet.
- An exception raised inside the trace callback aborts the switch and propagates out to the caller.
Arquivos
- NOTES.md
- PROMPT.md
- csx.json
- requirements.txt
- spec.json
- test/contract.py
Seeder de origem
anônimo