flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

[Feature Proposal] Ruphex – Flagsmith Integration for Verified Feature-Flag Experiments

Open victrvondoom opened this issue 2 weeks ago • 1 comments

Description

I propose building a Flagsmith integration for Ruphex that connects feature-flag experimentation with independent implementation verification.

The goal is to enable AI coding agents to create and evaluate competing application variants while using Flagsmith to manage feature flags, experiment allocation and real-user outcomes.

Ruphex will provide the verification layer. Flagsmith will provide the feature-flag and experimentation layer.

Proposed functionality

1. Flagsmith connection

  • Connect to a Flagsmith instance using its supported API.
  • Support both Flagsmith Cloud and self-hosted deployments.
  • Discover projects, environments, feature flags and available configuration.
  • Keep credentials secure and out of source control.

2. Experiment orchestration

  • Create or configure feature flags for competing application variants.
  • Associate variants with an experiment hypothesis.
  • Configure measurable goals and conversion events.
  • Support experiment lifecycle operations through supported Flagsmith interfaces.

3. AI-agent integration

  • Allow an authorized coding agent to propose experiment configurations.
  • Require human approval before consequential operations.
  • Record the agent's actions and experiment configuration.
  • Avoid silently changing production settings.

4. Ruphex verification

  • Verify candidate implementations independently before experiment exposure.
  • Execute acceptance criteria and regression checks.
  • Attach test evidence to each candidate.
  • Distinguish technical correctness from actual user-experiment performance.

5. Results and promotion

  • Retrieve experiment results from supported sources.
  • Display variant-level outcomes and relevant metrics.
  • Keep technical verification results separate from statistical experiment results.
  • Recommend a candidate based on evidence.
  • Require human approval before promoting a winning variant.

Important design principle

Flagsmith should remain responsible for feature-flag management and experiment allocation.

Ruphex should remain responsible for candidate generation, technical verification, evidence collection and decision support.

This integration must not duplicate Flagsmith's existing experimentation functionality.

Initial scope

The first implementation should focus on:

  1. Flagsmith connection and authentication.
  2. Feature-flag discovery and management.
  3. Experiment configuration.
  4. Variant verification through Ruphex.
  5. Results retrieval and evidence presentation.
  6. Human-approved promotion.

Advanced autonomous experimentation can be considered later.

Expected outcome

A reusable, documented, self-hostable Flagsmith integration that demonstrates how AI coding agents can work with real feature-flag experiments while maintaining independent technical verification and human-controlled releases.

victrvondoom avatar Nov 18 '26 04:11 victrvondoom

ENG-645

linear-code[bot] avatar Nov 18 '26 04:11 linear-code[bot]