ADORSYS-GIS / ADORSYS-GIS/lightbridge-authz

[Story]: BU rollup data model over per-person budgets

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

描述

## Summary
Build the BU-rollup data model that aggregates existing per-person µ$ spend and budget data up the organization hierarchy to region/BU/company level.

## Intent / Source of truth
The enforcement data (per-person spend) already exists (ai-helm ADR-0021/0035); this story is purely the aggregation layer, and depends on the organization hierarchy epic's data model. Part of [Epic] Per-BU cost attribution and chargeback reporting.

## Scope
- [ ] Rollup aggregation query/materialized-view over per-person spend, keyed by org-tree node
- [ ] Reconciliation check: rollup total always equals the sum of underlying per-person records
- [ ] API to fetch spend at any org-tree node

## Out of scope
- Export formatting (separate story)
- Real-time alerting (separate story)

## Verification
Automated reconciliation test comparing rollup totals against raw per-person ledger sums across the org tree, run on a realistic dataset.

## Risk assessment
Depends on the organization hierarchy epic (a2) shipping its data model first; sequence this story after that epic's a2s1/a2s4.

## 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 with the organization hierarchy epic, especially a2s1/a2s4, and read ai-helm ADR-0021/0035 to understand the existing per-person enforcement data. Once that data model is available, define the rollup query or materialized view and API scope, then add the automated reconciliation test over a realistic dataset; done means org-tree totals match the raw per-person ledger sums.

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

评估

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

把新 issue 发到你的邮箱

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