AletheiaFact / AletheiaFact/aletheia

B2B-16 · Contribution-vs-payment gate for AI features

Open
#2,549 0 comments 0 reactions 0 assignees View on GitHub
backlog server
Dominant language
TypeScript
Stars
55
Forks
20
Avg merge
2d 6h
Merged PRs (30d)
2

Description

Part of the B2B epic (Bloco 4 · item 4.2). Copilot access is currently gated only by role (`@FactCheckerOnly()` on `copilot-chat.controller.ts:64-77`); `feature-flag.service.ts` passes no org/namespace context to Unleash.

## What
- [ ] Read `plan/tier` from `Organization` (field created in B2B-8: `free/contributor/paid`)
- [ ] Contribution counter per org
- [ ] Gate in the copilot controller: contribute → access, or pay
- [ ] Org context in Unleash flags

## Notes
- With orgs inside `main` (committee groups, B2B-5), the gate also works for non-paying collectives that contribute.
- Open decision: contribution threshold.

**Effort:** ~1.5–2 SP · **Depends on:** B2B-15, B2B-5, B2B-8

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading copilot-chat.controller.ts:64-77, feature-flag.service.ts, and the Organization plan/tier work from B2B-8, while checking the dependencies B2B-15 and B2B-5. The contribution threshold must be decided before implementation; done means the checklist is covered, including per-organization contribution counting, copilot access gating, and organization context in Unleash flags.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.