clearTranscript only; files and modules remainSecrets, sessions and trust: not every value belongs in a script
Automation becomes dangerous when every useful value is treated as harmless text. Passwords, private keys, cookies and authentication state need a different lifecycle from paths, image sizes or database table names.
Classify the value before you automate it
A path, archive name or image width is ordinary configuration. A password, private key, session token or database credential can grant access. Putting both kinds of values into the same reusable script makes the script itself a secret.
Before saving a value, ask two questions: could this value authorize something, and would I be comfortable copying this file to another project or sharing it for review? If not, keep the secret out of the recipe.
Environment inspection is useful, but the environment is not a vault
Inspect only the namespace or value you need. Avoid screenshots and exports of full environment dumps, and never turn a masked terminal view into permission to publish the underlying server configuration.
envenv serverenv requestSessions and cookies are application state, not scratch text
That boundary matters because session data can carry identity, authorization and temporary application state. Inspect narrowly, modify only namespaces you own, and do not use session storage as a convenient place to hide long-lived secrets.
ses -lcoocoo -aA hash can prove sameness; it cannot hide the original
Hashing is not encryption. If the original value comes from a small guessable set, a hash does not make it confidential. Use HMAC when authenticity depends on a secret key, and encryption when the content itself must remain unreadable.
hash -s "hello terminal"hashEncryption protects content only while the key is protected too
An encrypted file beside its exposed key is not protected. Keep keys and encrypted data on different trust boundaries where possible, understand how recovery will work, and test decryption before deleting the plaintext source.
encFilesystem permissions reduce access; they do not replace cryptography
A mode such as 0600 says that the current filesystem owner should be the only ordinary reader/writer. It is useful for local key files and private exports when the hosting filesystem honors UNIX modes.
Permissions do not protect data from the hosting account owner, backups or a compromised PHP process. Use
cd lil-playgroundmd trustecho "example private note" > trust/note.txt -rmod trust/note.txt -0600stat trust/note.txthash trust/note.txtKnow the difference between cleanup, uninstall and destruction
These actions should never blur together in muscle memory. Before any destructive operation, name the layer you intend to remove and the files you expect to remain. A safe terminal user can explain the rollback before pressing Enter.
uninstall <module>One extension module; dependency rules applykill -includePersistent/session CSS and JavaScript layerkill -installInstalled extension layer; Core remainskillThe lil-terminal installation itselfKeep this as a script
Save this as trust-checkpoint.lil. It creates only example data, applies a restrictive file mode, records metadata and stores a digest. Notice what it deliberately does not automate: password entry and decryption keys stay outside the script.
#lil
@install md echo mod stat hash
cd lil-playground
md trust
echo "example private note" > trust/note.txt -r
mod trust/note.txt -0600
stat trust/note.txt
hash trust/note.txt > trust/note.sha256 -r
stat trust/note.sha256