pad-lattice 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pad_lattice-0.1.0/CHANGELOG.md +23 -0
- pad_lattice-0.1.0/CITATION.cff +23 -0
- pad_lattice-0.1.0/LICENSE +202 -0
- pad_lattice-0.1.0/MANIFEST.in +3 -0
- pad_lattice-0.1.0/PKG-INFO +180 -0
- pad_lattice-0.1.0/README.md +146 -0
- pad_lattice-0.1.0/pyproject.toml +77 -0
- pad_lattice-0.1.0/setup.cfg +4 -0
- pad_lattice-0.1.0/src/pad_lattice/__init__.py +17 -0
- pad_lattice-0.1.0/src/pad_lattice/audio.py +1129 -0
- pad_lattice-0.1.0/src/pad_lattice/cli.py +1160 -0
- pad_lattice-0.1.0/src/pad_lattice/client.py +192 -0
- pad_lattice-0.1.0/src/pad_lattice/codex_exec.py +134 -0
- pad_lattice-0.1.0/src/pad_lattice/codex_hook_entry.py +70 -0
- pad_lattice-0.1.0/src/pad_lattice/codex_hooks.py +441 -0
- pad_lattice-0.1.0/src/pad_lattice/codex_session.py +215 -0
- pad_lattice-0.1.0/src/pad_lattice/control_plane.py +616 -0
- pad_lattice-0.1.0/src/pad_lattice/daemon_runtime.py +611 -0
- pad_lattice-0.1.0/src/pad_lattice/demo_agent.py +38 -0
- pad_lattice-0.1.0/src/pad_lattice/device_profiles/novation/launchpad/mini-mk3.json +133 -0
- pad_lattice-0.1.0/src/pad_lattice/device_profiles/novation/launchpad/pro-mk1.json +140 -0
- pad_lattice-0.1.0/src/pad_lattice/device_profiles/novation/launchpad/pro-mk3.json +135 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/__init__.py +31 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/base.py +135 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/composite.py +108 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/factory.py +169 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/midi_grid.py +457 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/profiles.py +809 -0
- pad_lattice-0.1.0/src/pad_lattice/devices/testing.py +241 -0
- pad_lattice-0.1.0/src/pad_lattice/diagnostics.py +234 -0
- pad_lattice-0.1.0/src/pad_lattice/events.py +38 -0
- pad_lattice-0.1.0/src/pad_lattice/experience_compiler.py +171 -0
- pad_lattice-0.1.0/src/pad_lattice/experience_manifest.py +655 -0
- pad_lattice-0.1.0/src/pad_lattice/experience_runtime.py +357 -0
- pad_lattice-0.1.0/src/pad_lattice/identity_store.py +117 -0
- pad_lattice-0.1.0/src/pad_lattice/protocol.py +551 -0
- pad_lattice-0.1.0/src/pad_lattice/schema_validation.py +43 -0
- pad_lattice-0.1.0/src/pad_lattice/schemas/demo-manifest-v1.json +108 -0
- pad_lattice-0.1.0/src/pad_lattice/schemas/device-profile-v1.json +319 -0
- pad_lattice-0.1.0/src/pad_lattice/schemas/performance-manifest-v1.json +104 -0
- pad_lattice-0.1.0/src/pad_lattice/schemas/socket-protocol-v1.json +308 -0
- pad_lattice-0.1.0/src/pad_lattice/schemas/web-surface-protocol-v1.json +262 -0
- pad_lattice-0.1.0/src/pad_lattice/show.py +928 -0
- pad_lattice-0.1.0/src/pad_lattice/visual_protocol.py +174 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/assets/index-DVFDf2Rz.js +9 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/assets/index-DlxxM3fU.css +1 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/config.json +1 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/constellation-v1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approval-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-approve-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-cancelled-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-error-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-question-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-reject-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-retry-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-session_selected-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-stop-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-success-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-0.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-1.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-2.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-3.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-4.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-5.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-6.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-7.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/earcon-unavailable-none.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/audio/greeting.wav +0 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/constellation-v1.json +1 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/experiences/demo-v1.json +140 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/index.html +16 -0
- pad_lattice-0.1.0/src/pad_lattice/web_dist/play/pad-lattice-logo.svg +51 -0
- pad_lattice-0.1.0/src/pad_lattice/web_protocol.py +254 -0
- pad_lattice-0.1.0/src/pad_lattice/web_surface.py +790 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/PKG-INFO +180 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/SOURCES.txt +181 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/dependency_links.txt +1 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/entry_points.txt +3 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/requires.txt +11 -0
- pad_lattice-0.1.0/src/pad_lattice.egg-info/top_level.txt +1 -0
- pad_lattice-0.1.0/tests/test_audio.py +256 -0
- pad_lattice-0.1.0/tests/test_cli.py +545 -0
- pad_lattice-0.1.0/tests/test_client.py +94 -0
- pad_lattice-0.1.0/tests/test_codex_exec.py +96 -0
- pad_lattice-0.1.0/tests/test_codex_hooks.py +512 -0
- pad_lattice-0.1.0/tests/test_codex_session.py +193 -0
- pad_lattice-0.1.0/tests/test_composite_surface.py +117 -0
- pad_lattice-0.1.0/tests/test_control_plane.py +229 -0
- pad_lattice-0.1.0/tests/test_daemon.py +904 -0
- pad_lattice-0.1.0/tests/test_demo_agent.py +114 -0
- pad_lattice-0.1.0/tests/test_device_profiles.py +330 -0
- pad_lattice-0.1.0/tests/test_diagnostics.py +141 -0
- pad_lattice-0.1.0/tests/test_experience_manifest.py +86 -0
- pad_lattice-0.1.0/tests/test_identity_store.py +53 -0
- pad_lattice-0.1.0/tests/test_midi_grid.py +401 -0
- pad_lattice-0.1.0/tests/test_profile_testing.py +106 -0
- pad_lattice-0.1.0/tests/test_protocol.py +296 -0
- pad_lattice-0.1.0/tests/test_published_schemas.py +206 -0
- pad_lattice-0.1.0/tests/test_schema_validation.py +53 -0
- pad_lattice-0.1.0/tests/test_show.py +236 -0
- pad_lattice-0.1.0/tests/test_visual_protocol.py +135 -0
- pad_lattice-0.1.0/tests/test_web_protocol.py +127 -0
- pad_lattice-0.1.0/tests/test_web_surface.py +252 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Pad-Lattice will be documented in this file. The format
|
|
4
|
+
is based on [Keep a Changelog](https://keepachangelog.com/en/2.0.0/), and
|
|
5
|
+
versions follow [PEP 440](https://peps.python.org/pep-0440/).
|
|
6
|
+
|
|
7
|
+
## Unreleased
|
|
8
|
+
|
|
9
|
+
## 0.1.0 - 2026-07-20
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Initial physical and virtual control surfaces, including authenticated local
|
|
14
|
+
browsers, trusted-LAN pairing, and synchronized MIDI/browser operation.
|
|
15
|
+
- Visual Protocol 1 with steady state glyphs, capability-gated actions,
|
|
16
|
+
identity accents, and Agent Scenes for multiple concurrent sessions.
|
|
17
|
+
- Scoped Codex CLI lifecycle integration for state feedback and targeted
|
|
18
|
+
Approve, Reject, Retry, and Stop actions.
|
|
19
|
+
- Supported Novation Launchpad Pro Mk1 hardware plus experimental Mini Mk3 and
|
|
20
|
+
Pro Mk3 profiles, backed by extensible declarative device definitions.
|
|
21
|
+
- Shared Demo and audiovisual Show experiences, optional audio feedback,
|
|
22
|
+
versioned schemas, deterministic experience assets, and complete
|
|
23
|
+
documentation.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use Pad-Lattice, please cite the software."
|
|
3
|
+
title: "Pad-Lattice: A Visual Protocol for AI Agent Control on MIDI and Virtual Pad Surfaces"
|
|
4
|
+
type: software
|
|
5
|
+
authors:
|
|
6
|
+
- family-names: Rueda
|
|
7
|
+
given-names: Manuel
|
|
8
|
+
orcid: "https://orcid.org/0000-0001-9280-058X"
|
|
9
|
+
version: 0.1.0
|
|
10
|
+
repository-code: "https://github.com/mrueda/pad-lattice"
|
|
11
|
+
url: "https://mrueda.github.io/pad-lattice/"
|
|
12
|
+
license: Apache-2.0
|
|
13
|
+
abstract: >-
|
|
14
|
+
Pad-Lattice turns physical MIDI grid controllers and virtual pads on phones,
|
|
15
|
+
tablets, and computers into synchronized control surfaces for AI agents
|
|
16
|
+
through a shared tactile visual language.
|
|
17
|
+
keywords:
|
|
18
|
+
- AI agents
|
|
19
|
+
- human-agent interaction
|
|
20
|
+
- MIDI controllers
|
|
21
|
+
- control surfaces
|
|
22
|
+
- visual protocol
|
|
23
|
+
- tangible user interfaces
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pad-lattice
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Physical and virtual pad control surfaces for AI agents.
|
|
5
|
+
Author: Manuel Rueda
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/mrueda/pad-lattice
|
|
8
|
+
Project-URL: Documentation, https://mrueda.github.io/pad-lattice/
|
|
9
|
+
Project-URL: Repository, https://github.com/mrueda/pad-lattice
|
|
10
|
+
Project-URL: Issues, https://github.com/mrueda/pad-lattice/issues
|
|
11
|
+
Keywords: ai-agents,codex,control-surface,browser,launchpad,midi,novation,visual-protocol
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: mido>=1.3
|
|
25
|
+
Requires-Dist: python-rtmidi>=1.5
|
|
26
|
+
Requires-Dist: segno<2,>=1.6
|
|
27
|
+
Requires-Dist: websockets<17,>=16
|
|
28
|
+
Provides-Extra: schema
|
|
29
|
+
Requires-Dist: jsonschema<5,>=4.23; extra == "schema"
|
|
30
|
+
Provides-Extra: release
|
|
31
|
+
Requires-Dist: build>=1.2; extra == "release"
|
|
32
|
+
Requires-Dist: twine>=5.1; extra == "release"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
<div align="center">
|
|
36
|
+
<a href="https://github.com/mrueda/pad-lattice">
|
|
37
|
+
<img src="https://raw.githubusercontent.com/mrueda/pad-lattice/main/assets/pad-lattice-logo.svg" width="220" alt="Pad-Lattice logo">
|
|
38
|
+
</a>
|
|
39
|
+
<p><em>Physical and virtual control surfaces for AI agents</em></p>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
# Pad-Lattice
|
|
43
|
+
|
|
44
|
+
[](https://github.com/mrueda/pad-lattice/actions/workflows/build-and-test.yml)
|
|
45
|
+
[](https://github.com/mrueda/pad-lattice/actions/workflows/documentation.yml)
|
|
46
|
+
[](https://github.com/mrueda/pad-lattice/blob/main/pyproject.toml)
|
|
47
|
+
[](https://github.com/mrueda/pad-lattice/blob/main/LICENSE)
|
|
48
|
+
|
|
49
|
+
**🎛️ Try the virtual pad:** <https://mrueda.github.io/pad-lattice/play/>
|
|
50
|
+
|
|
51
|
+
**📘 Documentation:** <https://mrueda.github.io/pad-lattice/>
|
|
52
|
+
|
|
53
|
+
**🚀 Quick Start:** <https://mrueda.github.io/pad-lattice/docs/usage/quickstart>
|
|
54
|
+
|
|
55
|
+
**Pad-Lattice gives people a tactile, glanceable way to monitor and control AI
|
|
56
|
+
agents.** It repurposes MIDI pad controllers as that physical interface: their
|
|
57
|
+
RGB grids can display agent state and accept deliberate actions. The same
|
|
58
|
+
visual language also runs as a Virtual Pad in the browser, so anyone can use it
|
|
59
|
+
from a phone, tablet, or computer, with or without MIDI hardware.
|
|
60
|
+
|
|
61
|
+
Pad-Lattice grew from [mrueda](https://github.com/mrueda)'s personal need to
|
|
62
|
+
interact more directly with Codex CLI. As a musician and member of the duo [The
|
|
63
|
+
New Assembly](https://www.thenewassembly.com/), he had used a Launchpad Pro
|
|
64
|
+
with Ableton Live and recognized that its mature grid interface could become a
|
|
65
|
+
visual surface for agents. Read the [origin
|
|
66
|
+
story](https://mrueda.github.io/pad-lattice/docs/about/origin-and-development).
|
|
67
|
+
|
|
68
|
+
<div align="center">
|
|
69
|
+
<img src="docs-site/static/img/human-control-workflow.svg" width="1200" alt="Codex asks for approval, physical and virtual pads light up, and one human press returns a targeted action">
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
One local daemon maintains multi-agent state and routes currently available
|
|
73
|
+
actions only to the selected agent. **Visual Protocol 1** gives physical MIDI
|
|
74
|
+
profiles and the Virtual Pad the same identity accents, state glyphs,
|
|
75
|
+
selection, actions, and overflow behavior.
|
|
76
|
+
|
|
77
|
+
The first integration is **Codex CLI**. Pad-Lattice displays lifecycle state
|
|
78
|
+
and can return targeted Approve, Reject, Retry, and Stop actions while prompts
|
|
79
|
+
and terminal output remain in Codex.
|
|
80
|
+
|
|
81
|
+
Pad-Lattice is alpha software.
|
|
82
|
+
|
|
83
|
+
## Choose a Surface
|
|
84
|
+
|
|
85
|
+
| Surface | Command | Result |
|
|
86
|
+
| --- | --- | --- |
|
|
87
|
+
| Public browser | [Open `/play/`](https://mrueda.github.io/pad-lattice/play/) | Demo, protocol sandbox, and audiovisual Show; no installation. |
|
|
88
|
+
| Local browser | `pad-lattice web` | Real Codex control on the same computer. |
|
|
89
|
+
| Phone or tablet | `pad-lattice web --lan` | Real Codex control after one-time pairing on a trusted local network. |
|
|
90
|
+
| Launchpad | `pad-lattice daemon` | Physical MIDI input and RGB state feedback. |
|
|
91
|
+
| Launchpad plus browsers | `pad-lattice daemon --web` | Synchronized physical and virtual surfaces on one control plane. |
|
|
92
|
+
|
|
93
|
+
The public demo is intentionally simulated. Real control always requires the
|
|
94
|
+
local Pad-Lattice process and Codex hooks.
|
|
95
|
+
|
|
96
|
+
## Install and Start
|
|
97
|
+
|
|
98
|
+
Install the package in an isolated environment:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
pipx install pad-lattice
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
This installs the release from PyPI without modifying the system Python.
|
|
105
|
+
|
|
106
|
+
Start the browser controller without MIDI hardware:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
pad-lattice web
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Then launch an integrated Codex session from another terminal:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
pad-lattice codex --label implementation
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
To add a physical controller and optional synchronized browsers:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
pad-lattice daemon --web --audio-feedback
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The [Quick Start](https://mrueda.github.io/pad-lattice/docs/usage/quickstart)
|
|
125
|
+
covers hook review, MIDI setup, LAN pairing, and multiple sessions.
|
|
126
|
+
|
|
127
|
+
## Supported Hardware
|
|
128
|
+
|
|
129
|
+
| Device | Profile ID | Status |
|
|
130
|
+
| --- | --- | --- |
|
|
131
|
+
| Novation Launchpad Pro Mk1 | `novation/launchpad/pro-mk1` | **Supported and physically tested** |
|
|
132
|
+
| Novation Launchpad Mini Mk3 | `novation/launchpad/mini-mk3` | **Experimental; testers wanted** |
|
|
133
|
+
| Novation Launchpad Pro Mk3 | `novation/launchpad/pro-mk3` | **Experimental; testers wanted** |
|
|
134
|
+
|
|
135
|
+
Declarative JSON profiles map Visual Protocol 1 to MIDI ports, programmer
|
|
136
|
+
mode, note layouts, palettes, actions, selectors, and status indicators. New
|
|
137
|
+
controllers do not require changes to Codex integrations.
|
|
138
|
+
|
|
139
|
+
## Documentation
|
|
140
|
+
|
|
141
|
+
| Topic | Guide |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| Install and connect Codex | [Quick Start](https://mrueda.github.io/pad-lattice/docs/usage/quickstart) |
|
|
144
|
+
| Learn the colors, glyphs, actions, and 8x8 layout | [Visual Protocol](https://mrueda.github.io/pad-lattice/docs/technical-details/visual-language) |
|
|
145
|
+
| Connect phones, tablets, and laptops | [Browser Setup](https://mrueda.github.io/pad-lattice/docs/usage/connect-browsers) |
|
|
146
|
+
| Run the guided Demo or audiovisual Show | [Visual Show](https://mrueda.github.io/pad-lattice/docs/usage/visual-show) |
|
|
147
|
+
| Add or test a MIDI controller | [Device Profiles](https://mrueda.github.io/pad-lattice/docs/technical-details/device-profiles) |
|
|
148
|
+
| Understand or extend the implementation | [Technical Guide](https://mrueda.github.io/pad-lattice/docs/technical-details/) |
|
|
149
|
+
| Review the trust boundary | [Security Model](https://mrueda.github.io/pad-lattice/docs/technical-details/security-model) |
|
|
150
|
+
|
|
151
|
+
Release history is recorded in [CHANGELOG.md](CHANGELOG.md).
|
|
152
|
+
|
|
153
|
+
## Development Approach
|
|
154
|
+
|
|
155
|
+
Pad-Lattice is an independent hobby project developed by
|
|
156
|
+
[mrueda](https://github.com/mrueda) in his free time. It is developed through
|
|
157
|
+
an architecture-led, human-in-the-loop collaboration with Codex CLI (OpenAI,
|
|
158
|
+
GPT-5.6), automated testing, and evaluation on physical and virtual surfaces.
|
|
159
|
+
The [origin and development
|
|
160
|
+
page](https://mrueda.github.io/pad-lattice/docs/about/origin-and-development)
|
|
161
|
+
documents the process.
|
|
162
|
+
|
|
163
|
+
## Citation
|
|
164
|
+
|
|
165
|
+
Machine-readable citation metadata is available in [CITATION.cff](CITATION.cff).
|
|
166
|
+
No formal publication is available yet. For now, cite:
|
|
167
|
+
|
|
168
|
+
> Pad-Lattice: A Visual Protocol for AI Agent Control on MIDI and Virtual Pad
|
|
169
|
+
> Surfaces.
|
|
170
|
+
> <https://github.com/mrueda/pad-lattice>
|
|
171
|
+
|
|
172
|
+
## Author
|
|
173
|
+
|
|
174
|
+
Created and maintained by [mrueda](https://github.com/mrueda).
|
|
175
|
+
|
|
176
|
+
## Copyright and License
|
|
177
|
+
|
|
178
|
+
Copyright (C) 2026 Manuel Rueda.
|
|
179
|
+
|
|
180
|
+
Distributed under the Apache License 2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://github.com/mrueda/pad-lattice">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/mrueda/pad-lattice/main/assets/pad-lattice-logo.svg" width="220" alt="Pad-Lattice logo">
|
|
4
|
+
</a>
|
|
5
|
+
<p><em>Physical and virtual control surfaces for AI agents</em></p>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
# Pad-Lattice
|
|
9
|
+
|
|
10
|
+
[](https://github.com/mrueda/pad-lattice/actions/workflows/build-and-test.yml)
|
|
11
|
+
[](https://github.com/mrueda/pad-lattice/actions/workflows/documentation.yml)
|
|
12
|
+
[](https://github.com/mrueda/pad-lattice/blob/main/pyproject.toml)
|
|
13
|
+
[](https://github.com/mrueda/pad-lattice/blob/main/LICENSE)
|
|
14
|
+
|
|
15
|
+
**🎛️ Try the virtual pad:** <https://mrueda.github.io/pad-lattice/play/>
|
|
16
|
+
|
|
17
|
+
**📘 Documentation:** <https://mrueda.github.io/pad-lattice/>
|
|
18
|
+
|
|
19
|
+
**🚀 Quick Start:** <https://mrueda.github.io/pad-lattice/docs/usage/quickstart>
|
|
20
|
+
|
|
21
|
+
**Pad-Lattice gives people a tactile, glanceable way to monitor and control AI
|
|
22
|
+
agents.** It repurposes MIDI pad controllers as that physical interface: their
|
|
23
|
+
RGB grids can display agent state and accept deliberate actions. The same
|
|
24
|
+
visual language also runs as a Virtual Pad in the browser, so anyone can use it
|
|
25
|
+
from a phone, tablet, or computer, with or without MIDI hardware.
|
|
26
|
+
|
|
27
|
+
Pad-Lattice grew from [mrueda](https://github.com/mrueda)'s personal need to
|
|
28
|
+
interact more directly with Codex CLI. As a musician and member of the duo [The
|
|
29
|
+
New Assembly](https://www.thenewassembly.com/), he had used a Launchpad Pro
|
|
30
|
+
with Ableton Live and recognized that its mature grid interface could become a
|
|
31
|
+
visual surface for agents. Read the [origin
|
|
32
|
+
story](https://mrueda.github.io/pad-lattice/docs/about/origin-and-development).
|
|
33
|
+
|
|
34
|
+
<div align="center">
|
|
35
|
+
<img src="docs-site/static/img/human-control-workflow.svg" width="1200" alt="Codex asks for approval, physical and virtual pads light up, and one human press returns a targeted action">
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
One local daemon maintains multi-agent state and routes currently available
|
|
39
|
+
actions only to the selected agent. **Visual Protocol 1** gives physical MIDI
|
|
40
|
+
profiles and the Virtual Pad the same identity accents, state glyphs,
|
|
41
|
+
selection, actions, and overflow behavior.
|
|
42
|
+
|
|
43
|
+
The first integration is **Codex CLI**. Pad-Lattice displays lifecycle state
|
|
44
|
+
and can return targeted Approve, Reject, Retry, and Stop actions while prompts
|
|
45
|
+
and terminal output remain in Codex.
|
|
46
|
+
|
|
47
|
+
Pad-Lattice is alpha software.
|
|
48
|
+
|
|
49
|
+
## Choose a Surface
|
|
50
|
+
|
|
51
|
+
| Surface | Command | Result |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| Public browser | [Open `/play/`](https://mrueda.github.io/pad-lattice/play/) | Demo, protocol sandbox, and audiovisual Show; no installation. |
|
|
54
|
+
| Local browser | `pad-lattice web` | Real Codex control on the same computer. |
|
|
55
|
+
| Phone or tablet | `pad-lattice web --lan` | Real Codex control after one-time pairing on a trusted local network. |
|
|
56
|
+
| Launchpad | `pad-lattice daemon` | Physical MIDI input and RGB state feedback. |
|
|
57
|
+
| Launchpad plus browsers | `pad-lattice daemon --web` | Synchronized physical and virtual surfaces on one control plane. |
|
|
58
|
+
|
|
59
|
+
The public demo is intentionally simulated. Real control always requires the
|
|
60
|
+
local Pad-Lattice process and Codex hooks.
|
|
61
|
+
|
|
62
|
+
## Install and Start
|
|
63
|
+
|
|
64
|
+
Install the package in an isolated environment:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pipx install pad-lattice
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This installs the release from PyPI without modifying the system Python.
|
|
71
|
+
|
|
72
|
+
Start the browser controller without MIDI hardware:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pad-lattice web
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Then launch an integrated Codex session from another terminal:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pad-lattice codex --label implementation
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
To add a physical controller and optional synchronized browsers:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pad-lattice daemon --web --audio-feedback
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The [Quick Start](https://mrueda.github.io/pad-lattice/docs/usage/quickstart)
|
|
91
|
+
covers hook review, MIDI setup, LAN pairing, and multiple sessions.
|
|
92
|
+
|
|
93
|
+
## Supported Hardware
|
|
94
|
+
|
|
95
|
+
| Device | Profile ID | Status |
|
|
96
|
+
| --- | --- | --- |
|
|
97
|
+
| Novation Launchpad Pro Mk1 | `novation/launchpad/pro-mk1` | **Supported and physically tested** |
|
|
98
|
+
| Novation Launchpad Mini Mk3 | `novation/launchpad/mini-mk3` | **Experimental; testers wanted** |
|
|
99
|
+
| Novation Launchpad Pro Mk3 | `novation/launchpad/pro-mk3` | **Experimental; testers wanted** |
|
|
100
|
+
|
|
101
|
+
Declarative JSON profiles map Visual Protocol 1 to MIDI ports, programmer
|
|
102
|
+
mode, note layouts, palettes, actions, selectors, and status indicators. New
|
|
103
|
+
controllers do not require changes to Codex integrations.
|
|
104
|
+
|
|
105
|
+
## Documentation
|
|
106
|
+
|
|
107
|
+
| Topic | Guide |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| Install and connect Codex | [Quick Start](https://mrueda.github.io/pad-lattice/docs/usage/quickstart) |
|
|
110
|
+
| Learn the colors, glyphs, actions, and 8x8 layout | [Visual Protocol](https://mrueda.github.io/pad-lattice/docs/technical-details/visual-language) |
|
|
111
|
+
| Connect phones, tablets, and laptops | [Browser Setup](https://mrueda.github.io/pad-lattice/docs/usage/connect-browsers) |
|
|
112
|
+
| Run the guided Demo or audiovisual Show | [Visual Show](https://mrueda.github.io/pad-lattice/docs/usage/visual-show) |
|
|
113
|
+
| Add or test a MIDI controller | [Device Profiles](https://mrueda.github.io/pad-lattice/docs/technical-details/device-profiles) |
|
|
114
|
+
| Understand or extend the implementation | [Technical Guide](https://mrueda.github.io/pad-lattice/docs/technical-details/) |
|
|
115
|
+
| Review the trust boundary | [Security Model](https://mrueda.github.io/pad-lattice/docs/technical-details/security-model) |
|
|
116
|
+
|
|
117
|
+
Release history is recorded in [CHANGELOG.md](CHANGELOG.md).
|
|
118
|
+
|
|
119
|
+
## Development Approach
|
|
120
|
+
|
|
121
|
+
Pad-Lattice is an independent hobby project developed by
|
|
122
|
+
[mrueda](https://github.com/mrueda) in his free time. It is developed through
|
|
123
|
+
an architecture-led, human-in-the-loop collaboration with Codex CLI (OpenAI,
|
|
124
|
+
GPT-5.6), automated testing, and evaluation on physical and virtual surfaces.
|
|
125
|
+
The [origin and development
|
|
126
|
+
page](https://mrueda.github.io/pad-lattice/docs/about/origin-and-development)
|
|
127
|
+
documents the process.
|
|
128
|
+
|
|
129
|
+
## Citation
|
|
130
|
+
|
|
131
|
+
Machine-readable citation metadata is available in [CITATION.cff](CITATION.cff).
|
|
132
|
+
No formal publication is available yet. For now, cite:
|
|
133
|
+
|
|
134
|
+
> Pad-Lattice: A Visual Protocol for AI Agent Control on MIDI and Virtual Pad
|
|
135
|
+
> Surfaces.
|
|
136
|
+
> <https://github.com/mrueda/pad-lattice>
|
|
137
|
+
|
|
138
|
+
## Author
|
|
139
|
+
|
|
140
|
+
Created and maintained by [mrueda](https://github.com/mrueda).
|
|
141
|
+
|
|
142
|
+
## Copyright and License
|
|
143
|
+
|
|
144
|
+
Copyright (C) 2026 Manuel Rueda.
|
|
145
|
+
|
|
146
|
+
Distributed under the Apache License 2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pad-lattice"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Physical and virtual pad control surfaces for AI agents."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Manuel Rueda" },
|
|
15
|
+
]
|
|
16
|
+
keywords = [
|
|
17
|
+
"ai-agents",
|
|
18
|
+
"codex",
|
|
19
|
+
"control-surface",
|
|
20
|
+
"browser",
|
|
21
|
+
"launchpad",
|
|
22
|
+
"midi",
|
|
23
|
+
"novation",
|
|
24
|
+
"visual-protocol",
|
|
25
|
+
]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Development Status :: 3 - Alpha",
|
|
28
|
+
"Environment :: Console",
|
|
29
|
+
"Intended Audience :: Developers",
|
|
30
|
+
"Programming Language :: Python :: 3",
|
|
31
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
34
|
+
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Topic :: Software Development",
|
|
36
|
+
]
|
|
37
|
+
dependencies = [
|
|
38
|
+
"mido>=1.3",
|
|
39
|
+
"python-rtmidi>=1.5",
|
|
40
|
+
"segno>=1.6,<2",
|
|
41
|
+
"websockets>=16,<17",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[project.optional-dependencies]
|
|
45
|
+
schema = [
|
|
46
|
+
"jsonschema>=4.23,<5",
|
|
47
|
+
]
|
|
48
|
+
release = [
|
|
49
|
+
"build>=1.2",
|
|
50
|
+
"twine>=5.1",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[project.urls]
|
|
54
|
+
Homepage = "https://github.com/mrueda/pad-lattice"
|
|
55
|
+
Documentation = "https://mrueda.github.io/pad-lattice/"
|
|
56
|
+
Repository = "https://github.com/mrueda/pad-lattice"
|
|
57
|
+
Issues = "https://github.com/mrueda/pad-lattice/issues"
|
|
58
|
+
|
|
59
|
+
[project.scripts]
|
|
60
|
+
pad-lattice = "pad_lattice.cli:main"
|
|
61
|
+
pad-lattice-hook = "pad_lattice.codex_hook_entry:main"
|
|
62
|
+
|
|
63
|
+
[tool.setuptools.packages.find]
|
|
64
|
+
where = ["src"]
|
|
65
|
+
|
|
66
|
+
[tool.setuptools.package-data]
|
|
67
|
+
pad_lattice = [
|
|
68
|
+
"device_profiles/*/*/*.json",
|
|
69
|
+
"schemas/*.json",
|
|
70
|
+
"web_dist/play/*",
|
|
71
|
+
"web_dist/play/assets/*",
|
|
72
|
+
"web_dist/play/experiences/*.json",
|
|
73
|
+
"web_dist/play/experiences/audio/*.wav",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[tool.setuptools.dynamic]
|
|
77
|
+
version = { attr = "pad_lattice.__version__" }
|