Serialize only assigned audit examples, not the full parent dataset
Mantenedores costumam responder em até 1 dia
@0xzoz já está trabalhando nisso.
Desde 12/11/2026.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Domínio
- machine-learning, security
Direção de pesquisa
Start with the subset and save code at cache_model_1/services/modelowner.py lines 237–241 and the equivalent in cache_model_0/services/modelowner.py; then inspect related partition writers for the same pattern. Add regression coverage for both services using the synthetic sentinel example and verify after serialization and encryption round trips that only assigned inputs and labels are recoverable while sampling remains deterministic. Done means the saved assignment contains no unselected parent data and its size scales with the assignment.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Observed against ed175d0deceddfa2e63175ec7752c800b31c1fbf during the November 10 Fashion-MNIST local test investigation. The subsequent full round with three notebooks and a Raspberry Pi used recorded workarounds; its success does not establish that this upstream defect is fixed. Related: #276 and #40.
Problem and evidence
Both reference model-owner services create a torch.utils.data.Subset(test_data, random_indices) and save that object. A Subset holds its parent dataset; torch.save serializes that parent too. Encryption protects the resulting archive in transit but does not remove unassigned examples from it.
An independent synthetic round-trip reproduced a saved assignment with length 500 whose loaded .dataset still had all 10,000 examples. Example 9,999 was accessible despite being outside the chosen assignment. Our completed round used materialized TensorDataset objects to avoid this behavior; its success therefore does not validate the original serializer.
This is more than a large-file problem. A recipient can inspect examples beyond its assigned shard, undermining the intended restricted audit distribution/resampling boundary for non-public data. The ordinary evaluator still iterates the assigned 500 rows. This finding does not establish that evaluation scored all 10,000 examples or that the observed scores were invalid.
Proposed scope
Materialize the selected examples into a standalone dataset before hashing, encryption and upload. Apply the fix to both reference models and inspect related partition writers for the same serialization pattern. Preserve sampling seeds, selected indices, labels and existing evaluation behavior. Do not combine this with a new sampling-policy design.
Acceptance criteria
- A synthetic parent has recognizable sentinel examples outside the assigned indices.
- After save/load (and the encryption/decryption round trip), only assigned examples are recoverable; no parent dataset or unselected tensor storage remains embedded.
- Exact assigned inputs/labels and deterministic indices match the previous sampling logic.
- File size scales with the assignment, not the parent dataset.
- Both reference services have regression coverage.
Minimal synthetic reproduction
import io
import torch
from torch.utils.data import TensorDataset, Subset
parent = TensorDataset(torch.arange(10_000))
assigned = Subset(parent, list(range(500)))
buf = io.BytesIO()
torch.save(assigned, buf)
buf.seek(0)
# Only load this locally generated synthetic object.
loaded = torch.load(buf, weights_only=False)
print(len(loaded), len(loaded.dataset), loaded.dataset[9999][0].item())
# 500 10000 9999
Full-round test report
See Discussion #331 — Fashion-MNIST with three notebooks and a Raspberry Pi for the setup diagram, completed protocol roles, results and experiment adaptations.
- Linguagem predominante
- Python
- Estrelas
- 4
- Forks
- 7
- Merge médio
- 5d 15h
- PRs com merge (30d)
- 43
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de InfiniteZeroFoundation/DevNet
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
InfiniteZeroFoundation/DevNet#344 ·
Mantenedores costumam responder em até 1 dia
-
Update the 25 translated organisation READMEs to match the English versionTalvez já em andamento @mrCabez assumiu há 15 dias. Abertagood first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
InfiniteZeroFoundation/DevNet#277 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Validator income: separate protocol (i.e., network) fees from DIN issuance, stop calling both "rewards", and keep DIN for stakingTalvez já em andamento @umermjd11 assumiu hoje. Abertaenhancement
InfiniteZeroFoundation/DevNet#340 · 3 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
Make reference auditors honor `audit_scoring_policy` in the manifestTalvez já em andamento @0xzoz assumiu há 2 dias. AbertaApproved
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 54/100
InfiniteZeroFoundation/DevNet#330 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Remove plaintext audit dataset keys from model-owner CLI outputTalvez já em andamento @0xzoz assumiu há 2 dias. AbertaApproved
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
InfiniteZeroFoundation/DevNet#328 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de InfiniteZeroFoundation/DevNet
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
OCA/account-invoicing#2529 ·
Mantenedores costumam responder em até 1 dia
-
area/ci
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
ImageGen generate-batch aborts valid JSONL jobs containing a Unicode line separator in poster textAbertabug imagen skills
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Email validation accepts a trailing newlineTalvez já em andamento @marcello-pichini assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia