You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
F4 integrates the production implementations. It must not replace the broker,
PDP, sandbox, state, sink, or coordinator with permissive stubs.
Why this issue exists
Current codefly agent ci conformance is service-oriented: it generates a
service and runs workspace gates. A provider is a typed leaf protocol and needs
a new harness.
The design's strongest invariants are negative:
an untrusted provider cannot read workspace/secrets;
it cannot dial outside the broker;
it cannot lie about principal/action/resource;
it cannot spend a credential on an unplanned request;
secret-bearing read/write responses do not reach the provider;
partial/crash outcomes remain recoverable.
A well-behaved sample provider cannot prove those claims. A hostile fixture is
mandatory.
Repository ownership
Primary: codefly-dev/cli
The normative fixture server and providers may initially live in:
CLI conformance testdata, or
Core provider conformance test packages.
A separate provider-conformance repository is optional and must not block
this issue.
Use approved Codefly build/test commands. The provider agent must be built,
packaged, installed, and loaded through the same paths production uses.
Deliverables
1. Normative reference fixture server
Implement a loopback server with deterministic resources and fault injection:
Every hostile attack fails without remote/local/config/sink side effects.
Poison credentials/secrets are absent from provider process inputs,
environment, output, state, plan, logs, diagnostics, receipts, and
cassettes.
Crash/lost-response cases terminate honestly and reconcile without duplicate
mutation.
Permission revocation stops later requests/actions.
Linux and macOS suites pass.
codefly agent ci emits stable machine-readable evidence and nonzero exit
on any failed invariant.
F1-F3 are not considered complete until this gate is green.
Explicit non-goals
Stripe/Sentry/Resend API qualification.
Hand-written fake vendor clients as acceptance evidence.
Live vendor calls in default CI.
Production remote state/sink.
Windows support.
Creating a separate conformance repository unless independently useful.
Review coverage
F4 supplies the falsification mechanism for the complete F1-F3 security and
lifecycle invariant set, including the previously missing hostile-provider,
read-path-secret, crash, pagination, and macOS enforcement evidence.
Outcome
Create the proof mechanism for the provider foundation:
codefly agent ci;F4 is the P1 exit gate. Vendor work cannot start merely because F1-F3 compile.
Dependencies
F4 integrates the production implementations. It must not replace the broker,
PDP, sandbox, state, sink, or coordinator with permissive stubs.
Why this issue exists
Current
codefly agent ciconformance is service-oriented: it generates aservice and runs workspace gates. A provider is a typed leaf protocol and needs
a new harness.
The design's strongest invariants are negative:
A well-behaved sample provider cannot prove those claims. A hostile fixture is
mandatory.
Repository ownership
Primary:
codefly-dev/cliThe normative fixture server and providers may initially live in:
A separate
provider-conformancerepository is optional and must not blockthis issue.
Use approved Codefly build/test commands. The provider agent must be built,
packaged, installed, and loaded through the same paths production uses.
Deliverables
1. Normative reference fixture server
Implement a loopback server with deterministic resources and fault injection:
The fixture is a normative Codefly protocol test artifact, not a fake vendor
used as vendor acceptance evidence.
Expose safe inspection endpoints to assert:
2. Neutral provider
Implement the complete provider-neutral lifecycle:
It must use no vendor-specific Core/CLI branch.
3. Hostile provider suite
Build explicit attack modes:
~/.codefly/other-provider state reads;The test passes only when the attack fails at the intended enforcement point
and no side effect occurs.
4.
codefly agent ciprovider modeRetain reusable source/build/package/audit/drift stages, then add provider
conformance:
JSON report must name every gate, artifact digest, platform, and safe
correlation ID.
5. Golden artifacts
Commit reviewed deterministic:
No artifact contains raw secrets, credentials, DSNs, emails, domains, or
unsafe bodies. Seed poison values and hard-fail if they appear.
6. Platform matrix
Run provider hostile/conformance on:
Prove per platform:
Provider execution is not supported on a platform until this matrix passes.
7. Fault and recovery matrix
Inject and verify:
Expected terminal state and recovery must be deterministic:
Required tests
Pure/golden
Broker replay
Full conformance
Acceptance criteria
Validate -> Observe -> Plan -> Apply one idempotent resource ->
capture/project public+secret -> signed receipts -> no-diff rerun -> drift
update -> replace -> import -> disconnect/retain -> exact destroy.
environment, output, state, plan, logs, diagnostics, receipts, and
cassettes.
mutation.
codefly agent ciemits stable machine-readable evidence and nonzero exiton any failed invariant.
Explicit non-goals
Review coverage
F4 supplies the falsification mechanism for the complete F1-F3 security and
lifecycle invariant set, including the previously missing hostile-provider,
read-path-secret, crash, pagination, and macOS enforcement evidence.