ADORSYS-GIS / ADORSYS-GIS/lightbridge-authz

[Story]: Migrate flat accounts/projects onto the organization hierarchy

未关闭
#256 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
user-story
主要语言
Rust
星标
0
派生
1
平均合并
7 小时 7 分钟
30 天内合并 PR
237

描述

## Summary
Migrate today's flat accounts/projects onto the new organization hierarchy as a default single-level tree, with zero disruption to live budget enforcement.

## Intent / Source of truth
The hierarchy is only useful if existing customers can adopt it without a breaking migration; live budget enforcement (ai-helm ADR-0021/0035) must keep working throughout. Part of [Epic] Organization hierarchy and delegated administration.

## Scope
- [ ] Migration script mapping every existing account/project to a hierarchy node
- [ ] Shadow-mode verification (hierarchy resolves identical policy to today's flat model before cutover)
- [ ] Rollback plan
- [ ] Post-migration budget-enforcement regression suite run

## Out of scope
- Customer-initiated re-organization into a deeper hierarchy (that's a follow-on, self-service action)

## Verification
Shadow-mode diff report shows zero policy-resolution deltas versus the current flat model for 100% of existing accounts; budget-enforcement regression suite green post-migration.

## Risk assessment
This is the highest-risk story in the epic — a migration bug could silently change a live customer's budget or model access. Requires shadow-mode verification before any cutover, per working-preferences (verify LIVE before "done").

## AI Usage Declaration
Drafted with AI assistance during the 2026-08-13 cross-repo backlog consolidation and enterprise-readiness research. A human owns intent, verification and consequences.

贡献指南

打开贡献指南

调研方向

Start by reading ADR-0021/0035 and locating the current flat account/project policy-resolution path and the budget-enforcement regression suite. Done means the migration, shadow-mode comparison, rollback plan, and post-migration suite satisfy the stated zero-delta verification without disrupting live enforcement.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
authorization, backend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。