Operational tools#
The sintonia-tools repository does not run a server. custody_vault.py is an offline custody utility:
python3 -m venv .venv
. .venv/bin/activate
pip install -r custody-requirements.txt
python3 custody_vault.py --help
python3 -m unittest discover -s . -p 'test_*.py'Use only organizationally authorized custody operations. Keep private keys and exports outside Git and the served site. The custody protocol guide describes the recipient policy; the utility does not give administrators undeclared access to E2EE messages.
Convenience wrappers accept explicit independent checkout paths:
APP_SOURCE_DIR=/path/sintonia-app bash build-worker.sh
Web sign-in uses the current page origin, with no server selector. Proxy `/api/*`, `/events` (WebSocket) and authentication callbacks to the backend on that origin. Mobile and desktop require a server address, remembered after validation. No cloud address is compiled into the client.
SINTONIA_DEPLOYMENT_DIR=/path/sintonia-deploy bash start-local.shThe last command starts local infrastructure, not production. export-repositories.py --source-root ... --output ... copies an original-layout collection into new independent directories; it does not create remotes or publish repositories.
Branding#
sintonia-branding stores SVG sources and PNG exports. It has no server deployment. Version approved assets, copy them into the app/site repositories and rebuild those consumers. Existing releases do not need a sibling branding checkout. Preserve proportions and check light/dark contrast and platform icon sizes.
Engineering documentation#
sintonia-engineering-docs contains Markdown protocols, operations, roadmap and historical validation. It has no backend dependency. Validation history is not a capacity certificate and is not automatically imported into the public site.
The documentation repository versions its selected public inputs in sources/. Use its import-sources.py with explicit paths to refresh them, then regenerate Portuguese/English, check links, and deploy only dist/ or the static image to your own server. Do not serve source checkouts, tools or keys.
Vault operation procedures#
Run these only at the tools repository root on an authorized controlled machine. Generate a password-protected private key:
python3 custody_vault.py generate --private-key /secure-vault/sintonia.pemThe utility asks for a password of at least 16 characters, writes encrypted PEM with mode 0600 without overwriting an existing file, and returns only publicKey/fingerprint. Register only those public values and verify the fingerprint independently. Keep private keys/password backups outside Sintonia, Git and the served site. HSM/KMS connectors are not implemented.
Open authorized exported copies outside the application server:
python3 custody_vault.py decrypt --private-key /secure-vault/sintonia.pem --archive /secure/export.json --output /secure/opened.jsonRepeat --archive for each consecutive part and --private-key for required key versions. Passwords are requested interactively. The utility checks cursor/case continuity, marks incomplete exports as partial, authenticates ciphertext and checks device signatures where present. Output is exclusive, mode 0600 and contains readable sensitive information; independently verify device identities and restrict access/disposal.
For an authorized encrypted attachment:
python3 custody_vault.py decrypt-file --opened-archive /secure/opened.json --message-id MESSAGE_UUID --file-id FILE_UUID --encrypted-file /secure/object.bin --output /secure/opened-file.pdfReadable exports are not an independent forensic certification. Case validity/authorization are enforced for server downloads, while the organization is responsible for protecting received copies.