mirror of
https://github.com/block/buzz.git
synced 2026-11-27 03:31:50 +00:00
## Summary - adopt the finalized NIP-MP project model so one project can enumerate and switch between multiple NIP-34 repositories - add project and repository navigation, activity summaries, existing-repository attachment, and repository access-channel management - preserve privacy-safe activation provenance for agent-authored patches, pull requests, issues, and associated commits ## Test plan - [x] Run desktop typecheck and unit tests - [x] Run focused NIP-MP, repository access, and provenance tests - [x] Run Rust formatting and desktop lint checks - [x] Run the complete pre-push suite after merging current `main` - [ ] Manually verify project creation, repository attachment, switching, and access repair on staging - [ ] Manually verify public-channel and private-agent origin labels on newly created Git activity Related: [#4695](https://github.com/block/buzz/pull/4695) --------- Signed-off-by: Thomas Petersen <thomasp@squareup.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz> Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Provider wire fixtures
The shared arbiter for the stdin/stdout contract between the desktop
(agents_deploy.rs) and this provider (spec §Provider Protocol).
Each *.request.json is a request the desktop can emit; each matching
*.response.json is the exact response this provider produces for it. The
provider side is asserted by tests/wire_fixtures.rs; the desktop side should
assert that its emitted payloads parse as the corresponding request.
Three rules keep these useful rather than decorative:
- Requests are recorded, not invented. A fixture that no caller emits
tests a contract nobody has. "Recorded" means executed and transcribed —
deploy-full-launch.request.jsonis the output of the desktop's realbuild_launch_block→deploy_payload_jsonpath, not a shape derived by reading those functions. Deriving it is how this fixture acquired four impossible values at once: arespond_tothat was a pubkey where the desktop serializes a kebab-caseRespondToenum, allowlist and owner values failingvalidate_respond_to_allowlist's 64-hex rule (types.rs:897), an inventedBUZZ_ACP_PARALLELISMwhere the emitter writesBUZZ_ACP_AGENTS(runtime.rs:729), and alaunch.envkey from no layer ofresolve_effective_harness_descriptor. - The provider cannot police this file, so the desktop must. Every field
above is one this provider is deliberately indifferent to —
respond_tois an opaqueOption<String>, the allowlist an opaqueVec<String>,policy_envan arbitrary map — sothe_full_desktop_payload_is_acceptedpasses on invented data exactly as happily as on recorded data. The enforcement is the desktop's whole-object equality test, which builds the payload and compares it to this file. A completeness guard (the case-list directory scan inwire_fixtures.rs) stops a case from going missing; it cannot tell you a case is false. - Responses are byte-compared after key-sorted re-serialization, so a
field rename or a type change fails here rather than in a desktop that
silently reads
undefined.
deploy-* fixtures cover only responses reachable without a cluster —
refusals and malformed input. A successful deploy needs an apiserver and is
covered by the conformance suite, not by a static fixture.