Skip to content

Instantly share code, notes, and snippets.

@pmp
pmp / workflow.md
Last active September 6, 2026 22:59
Workflow

The right design is a staged, read-first Dynamic Workflow: Fable 5.1 owns scope, architecture, orchestration, and the final verdict; Haiku inventories and normalizes evidence; Sonnet handles ordinary code tracing; Opus performs the difficult and security-sensitive investigations. Every material finding is independently verified before reaching the report.

Dynamic Workflows are a strong fit because the orchestration is encoded as JavaScript, intermediate results live outside the lead model’s context, and the runtime can enforce fan-out and verification rather than merely hoping the lead agent remembers every step. The runtime supports up to 16 concurrent agents and 1,000 total agents, though your first run should be much smaller. Anthropic’s workflow documentation

1. Proposed audit contract

Objective

Evaluate the API implementation rooted at one designated source directory and answer:

@pmp
pmp / keybase.md
Last active August 4, 2017 14:24
keybase.io

Keybase proof

I hereby claim:

  • I am pmp on github.
  • I am pmp (https://keybase.io/pmp) on keybase.
  • I have a public key ASATjLLRyqehUkK0Ka50O0i3TvqUztMWFAHhmKvZVm35XQo

To claim this, I am signing this object:

@pmp
pmp / envelope_encryption_kms_boto_pycrypto.md
Last active November 17, 2021 16:35
Envelope Encryption using AWS KMS, Python Boto, and PyCrypto.

If you use Amazon AWS for nearly anything, then you are probably familiar with KMS, the Amazon Key Management Service.

KMS is a service which allows API-level access to cryptographic primitives without the expense and complexity of a full-fledged HSM or CloudHSM implementation. There are trade-offs in that the key material does reside on servers rather than tamper-proof devices, but these risks should be acceptable to a wide range of customers based on the care Amazon has put into the product. You should perform your own diligence on whether KMS is appropriate for your environment. If the security profile is not adequate, you should consider a stronger product such as CloudHSM or managing your own HSM solutions.

The goal here is to provide some introductory code on how to perform envelope encrypt a message using the AWS KMS API.

KMS allows you to encrypt messages of up to 4kb in size directly using the encrypt()/decrypt() API. To exceed these limitations, you must use a technique called "envelope encryptio