Files
ngit-grasp/nix
DanConwayDev 312840a885 feat(grasp06): add NGIT_GRASP06_ENABLE feature flag and NIP-11 advertisement
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)
2026-05-15 15:48:33 +00:00
..