You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: migrate all banned Python to Deno (clean history, replaces #59) (#60)
## Summary
Clean-history replacement for #59 (closed). Eliminates the 4 remaining
non-SaltStack Python files — the ones tripping the `Check for Banned
Languages` / `antipattern-check` banned-language CI gates — by porting
each to **Deno**, an allowed runtime.
Delivered as a **single commit off `main`** so that no commit anywhere
in this PR's history introduces the example credential-like strings. (On
#59, an intermediate commit re-added pre-existing fake
`token`/`signature` example literals; `gitleaks-action` scans
per-commit, so a follow-up fix couldn't clear it. This branch carries
the inert `EXAMPLE-*` placeholders from the first and only commit.)
| Was (Python) | Now (Deno) | Notes |
|---|---|---|
| `a2ml/scripts/contractiles-a2ml-tool.py` | `…-tool.js` | JSON emit
**byte-identical** to old `json.dumps(sort_keys=True, indent=2)` —
verified against `tests/contractiles/expected/*.json`. Wrappers + a2ml
docs call `deno run`. |
| `avow-protocol/.../examples/python/stamp_example.py` |
`examples/deno/stamp_example.js` | `ctypes` → `Deno.dlopen`; fake
literals → inert `EXAMPLE-*`; zig FFI README updated. |
| `consent-aware-http/.../python/{aibdp_middleware,example_server}.py`
(+README/reqs) | `…/deno/` on `Deno.serve` | manifest moved, README
ported, nodejs cross-link fixed. |
Verified in-sandbox (Node shim; no Deno here): byte-identical emit,
correct validate exit codes, `node --check` clean on all 4 files, no
Python remains under either CI banned-language filter.
CODEOWNERS policy (#58) is **not** included here — it already merged to
`main`.
## Test plan
- [ ] `gitleaks` passes (no fake secrets in any commit)
- [ ] `Check for Banned Languages` / `antipattern-check` no longer fail
on Python (pre-existing ReScript `.res` debt is separate/out of scope)
- [ ] `cd a2ml && bash scripts/contractiles-a2ml-test.sh` (needs `deno`)
- [ ] `deno run --allow-read --allow-net
consent-aware-http/examples/reference-implementations/deno/example_server.js`
+ the curl checks
https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn
---
_Generated by [Claude
Code](https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn)_
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments