Skip to content

Terminal backend, contractiles, RSR audit#41

Merged
hyperpolymath merged 3 commits into
mainfrom
chore/cicd-optimizations
Mar 20, 2026
Merged

Terminal backend, contractiles, RSR audit#41
hyperpolymath merged 3 commits into
mainfrom
chore/cicd-optimizations

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

  • Implement terminal backend: SPARK ANSI renderer, SPARK input parser, POSIX raw mode wrapper
  • Add must/dust/intend contractile files alongside existing trust/
  • RSR compliance verified (17/17 workflows, all docs)
  • Wire event loop with real terminal input; update demo app
  • Update STATE.a2ml (15%→35%) and TOPOLOGY.md (~55% overall)

Closes #38

Test plan

  • just build compiles all layers (SPARK + Zig + Rust)
  • just check-abi type-checks Idris2 ABI
  • just run launches interactive TUI demo
  • Contractile checks pass

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

hyperpolymath and others added 3 commits March 20, 2026 21:10
Implement the terminal backend with a 3-layer architecture:
- Raze.Terminal (SPARK): pure ANSI escape sequence generation —
  cursor movement, SGR colours/attributes, alt screen, mouse tracking
- Raze.Input_Parser (SPARK): pure byte-to-event parser for CSI
  sequences, arrow keys, function keys, Ctrl+key, printable chars
- Raze.Posix (Ada, non-SPARK): POSIX termios wrapper for raw mode,
  non-blocking reads, ioctl TIOCGWINSZ, and terminal output

Wire Poll_Event through Push_Event bridge so SPARK events receive
real terminal input. Update demo to use alt screen with interactive
key display.

Add must/dust/intend contractile files alongside existing trust/.
Update STATE.a2ml (15% → 35%) and TOPOLOGY.md (terminal backend
100%, overall ~55%).

Resolves #38

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hyperpolymath
hyperpolymath force-pushed the chore/cicd-optimizations branch from 58cd5fa to c859128 Compare March 20, 2026 21:11
@hyperpolymath
hyperpolymath merged commit 9a91087 into main Mar 20, 2026
13 of 16 checks passed
@hyperpolymath
hyperpolymath deleted the chore/cicd-optimizations branch March 20, 2026 21:11
@hyperpolymath
hyperpolymath restored the chore/cicd-optimizations branch March 22, 2026 08:50
@hyperpolymath
hyperpolymath deleted the chore/cicd-optimizations branch April 3, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSR compliance audit + SPARK GNATprove + terminal backend + contractiles

1 participant