mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 23:18:24 +00:00
Introduces the `grasp06_enable` config flag, default false, wired through all four config-sync locations (src/config.rs, .env.example, docs/reference/configuration.md, nix/module.nix), and advertises the capability in NIP-11 when the flag is on. Behaviour: - When NGIT_GRASP06_ENABLE=true: NIP-11 supported_grasps includes "GRASP-06" (after GRASP-01 and GRASP-02). No /prs/ routing or event-acceptance changes yet — those land later. - When disabled (default): unchanged. Tests turning green: - test_nip11_advertises_grasp_06_when_enabled (integration, with_grasp_06) - test_nip11_advertises_grasp_06_when_enabled (unit, src/http/nip11.rs) - test_nip11_grasp_06_disabled_by_default (unit) The discovery-gate test `test_prs_namespace_404_when_grasp06_not_advertised_no_grasp_06` remains green and now exercises the real flag and real NIP-11 wiring. `with_grasp_06` tests targeting /prs/ routing and event-acceptance remain TDD-red against later work. See: plans/grasp-06-implementation-plan.md (NIP-11 advertisement folded in)