Enabling Forge approvals — NOT ENABLED¶
Approvals:Enabled defaults to false. This repository is an offline scaffold.
No mobile app, executor, account, effect credentials, enrollment, fleet hook or
scheduled task is deployed. Keep it disabled until every prerequisite has evidence.
Authorization boundary¶
The off-PC executor holding the effect credential must query Twilio itself through
IApprovalVerifier, using independently pinned service, entity and enrolled factor
identities. It must validate the exact action/hash/JTI, expiry, distinct people and
role policy. ExecutorApprovalVerifier is the only approval consume point.
The versioned SQLite ledger records consumption and the durable local effect outbox
in the same transaction. External-effect dispatch, idempotency and recovery need a
separately reviewed executor integration; a database transaction cannot atomically
commit an arbitrary external effect.
Only the executor identity may initialize, write, delete or restore its ledger and registry. An agent must never hold filesystem access to that state. Provision and verify the executor directory's OS ACLs before enabling. Missing/corrupt rows deny; never delete the database to recover an approval. Backups/restores must preserve consumption and monotonic-clock history.
forge-approve request, status and verify always return nonzero and label their
output advisory. verify is a dry run and never consumes. status is never actionable.
The CLI executable reads only Approvals__Enabled, loads no provider/SMTP secrets,
and has no configured executor channel: even when enabled it reports unavailable.
Its injected workflow supports offline tests only. doctor reports configuration
incomplete when enabled. No CLI output, exit code, request JSON, notification or
screenshot is authorization.
Credentials and device display¶
Credentials belong only to the off-PC executor. Its ChallengeCredential:KeySid
and ChallengeCredential:Secret must be restricted to the required challenge
create/read operations. They must not create, enroll, replace or revoke factors,
entities or services. Account-level auth tokens are rejected. Provisioning uses a
separate human-controlled credential. Twilio restricted-key scope names and actual
least-privilege support need live-doc verification plus an isolated negative
permission test before enabling. A configuration claim about scopes is not proof
that the provider enforces them. If separation cannot be proven, do not enable.
The verifier constructs one Details.Message containing kind, effect binding,
target, ticket and command SHA-256, with HumanSummary appended only as a label.
No canonical fields are split into separate UI fields. The configured
MessageCharacterLimit defaults to a conservative 256 characters and needs
live-doc verification. Oversized messages are refused, never truncated.
Before enabling, capture a real device-visible payload and phone screen proving that the full effect and command hash are shown together without truncation. Also capture verbatim producer responses containing Forge's message and hidden bindings; replace unverified derived fixtures. Provider echo/expiry semantics and display limits remain unverified until those captures exist.
Rollout prerequisites (separately authorized work)¶
- Deploy and independently review the executor channel, protected ledger/registry, clock, effect credentials and transactional dispatch/recovery protocol.
- Provision Verify entities and factors through human-controlled enrollment. Verify permissions, pricing and API limits before purchasing or enabling.
- Implement and use the mobile contract, retaining the captured full-effect display gate above.
- Populate the protected registry. Initial committed Andrew/Owner identities are placeholders, not enrolled devices. Owner, QA and UX requirements count distinct people; one person cannot satisfy two mandatory role slots. Registry additions and removals require Owner approval and human-controlled provisioning.
- Configure notifications only on the executor. SMTP credentials never enter the agent CLI. Use TLS and bounded independent channel deadlines. Pin Pavlok to a fully qualified local executable; restrict its child environment. Notifications convey information only. At-most-once reservation can lose delivery on a crash.
- On an explicitly authorized isolated target, test wrong service/entity/factor, wrong role, repeated person, action substitution, tampering, expiry, denial, outages, concurrent consume and replay. No live integration is verified here.
- Run warnings-as-errors build, tests, all four breaking mutation gates, security scans and independent review. Require CI jobs in branch protection. Seek separate enablement/fleet-integration authorization after those prerequisites pass.
Exact effects¶
Action JSON has closed enum values and camel-case names. Exact decimals are strings,
for example "12.5" with currency. Reject duplicate keys, unsupported properties,
ambiguous labels and mismatched hashes. The executor independently derives the
actual command hash, effect and target; it must not substitute commands afterward.
Email cannot approve anything. Treat all action-supplied text as quoted data.