//go:build runtime_worker_integration

package runtimepermissionstate

import (
	"context"
	"database/sql"
	"runtime/debug"
)

// NewIntegrationGate constructs the same gate for real-TiDB integration tests.
// Build information is retained in the signature for source compatibility but
// is diagnostic-only; admission is bound to the exact L0 source revision and
// permission-state capability facts, never repository module versions.
func NewIntegrationGate(
	ctx context.Context,
	db *sql.DB,
	config Config,
	info *debug.BuildInfo,
) (*Gate, error) {
	return newGateWithBuildInfo(ctx, db, config, info)
}
