Preserve explicit withdrawal and byte-exact AAMAS fixture evidence
Metadata integrity checks / metadata (push) Failing after 2m4s
Metadata integrity checks / metadata (push) Failing after 2m4s
This commit is contained in:
@@ -26,6 +26,7 @@ SECTIONS = {
|
||||
}
|
||||
PDF = re.compile(r'\.\./pdfs/([A-Z]{4}[0-9]{4})\.pdf')
|
||||
RETRACTION_TITLE = 'Unifying Model-Free Efficiency and Model-Based Representations via Latent Dynamics'
|
||||
WITHDRAWAL_TITLE = 'Cognitive Heterogeneity and Behavioral Biases in Multi-Stage Supply Chains: Evidence from LLM-Based Agent Simulations'
|
||||
|
||||
|
||||
def parse_authors(paragraph):
|
||||
@@ -98,7 +99,16 @@ def parse_contents(html, evidence):
|
||||
'decision_date_precision': 'not_supplied',
|
||||
'missing_abstract_reason': 'Publisher HTML supplies no abstract; research PDF not downloaded.',
|
||||
'publication_evidence': 'Published proceedings entry, not an original decision note.'}
|
||||
if retractions:
|
||||
withdrawn = retractions == ['Withdrawn June 8, 2026']
|
||||
if withdrawn:
|
||||
if (section, page, title, href) != ('1', 3178, WITHDRAWAL_TITLE, ''):
|
||||
raise ValueError('Unreviewed withdrawal notice')
|
||||
metadata.update({'publication_state': 'withdrawn',
|
||||
'withdrawal_date': '2026-06-08',
|
||||
'raw_publication_state': retractions[0],
|
||||
'decision_date_precision': 'day',
|
||||
'publication_evidence': 'Explicit dated publisher withdrawal notice, not an original review decision note.'})
|
||||
elif retractions:
|
||||
if (section, page, title, href, retractions) != ('R', 238, RETRACTION_TITLE, '', ['Retracted June 8, 2026']):
|
||||
raise ValueError('Unreviewed retraction or publication status markup')
|
||||
held.append({'source': 'aamas_proceedings', 'external_id': '2026/p238',
|
||||
@@ -109,11 +119,12 @@ def parse_contents(html, evidence):
|
||||
'raw_publication_state': retractions[0],
|
||||
'hold_reason': 'Explicit retraction; not an accepted/withdrawn submission assertion. Dedicated decision modeling and identity review required.'})
|
||||
continue
|
||||
match = PDF.fullmatch(href)
|
||||
if not match or match[1] in seen_pdf_ids:
|
||||
raise ValueError('Invalid or repeated publisher PDF ID')
|
||||
seen_pdf_ids.add(match[1])
|
||||
metadata.update({'publisher_document_id': match[1], 'paper_url': ROOT+'pdfs/'+match[1]+'.pdf'})
|
||||
if not withdrawn:
|
||||
match = PDF.fullmatch(href)
|
||||
if not match or match[1] in seen_pdf_ids:
|
||||
raise ValueError('Invalid or repeated publisher PDF ID')
|
||||
seen_pdf_ids.add(match[1])
|
||||
metadata.update({'publisher_document_id': match[1], 'paper_url': ROOT+'pdfs/'+match[1]+'.pdf'})
|
||||
if section == 'K':
|
||||
excluded.append({'publisher_page': page, 'title': title, 'authors': authors,
|
||||
'metadata': metadata, 'reason': 'Publisher keynote, not a research submission.'})
|
||||
@@ -127,15 +138,19 @@ def parse_contents(html, evidence):
|
||||
records.append({'source': 'aamas_proceedings', 'external_id': '2026/p'+str(page),
|
||||
'url': URL+'#'+section, 'title': title, 'abstract': None,
|
||||
'authors': authors, 'identifiers': {}, 'venue': 'AAMAS', 'venue_aliases': [],
|
||||
'year': 2026, 'track': track, 'status': 'accepted',
|
||||
'year': 2026, 'track': track, 'status': 'withdrawn' if withdrawn else 'accepted',
|
||||
'observed_at': evidence['observed_at'],
|
||||
'raw_decision': 'listed in official AAMAS 2026 published proceedings '+heading,
|
||||
'raw_decision': retractions[0] if withdrawn else 'listed in official AAMAS 2026 published proceedings '+heading,
|
||||
'metadata': metadata,
|
||||
'tags': [{'namespace': 'aamas_proceedings:publication_format', 'value': publication_format}]})
|
||||
if withdrawn:
|
||||
records[-1]['decision_date'] = '2026-06-08'
|
||||
if headers != list(SECTIONS) or dict(counts) != {k: v[3] for k, v in SECTIONS.items()}:
|
||||
raise ValueError('Publisher section inventory differs from reviewed 2026 layout')
|
||||
if (len(records), len(excluded), len(held)) != (639, 3, 1):
|
||||
raise ValueError('Unexpected accepted/keynote/retraction partition')
|
||||
if Counter(r['status'] for r in records) != {'accepted': 638, 'withdrawn': 1}:
|
||||
raise ValueError('Unexpected publisher publication-state partition')
|
||||
return records, excluded, held
|
||||
|
||||
|
||||
@@ -181,6 +196,7 @@ def collect(out, *, cache=None, snapshots=None):
|
||||
'track': track, 'count': len(group), 'file': str(out/p.name),
|
||||
'file_sha256': hashlib.sha256(p.read_bytes()).hexdigest(), 'list_url': URL,
|
||||
'status': 'partial', 'missing_abstract_count': len(group),
|
||||
'status_counts': dict(Counter(r['status'] for r in group)),
|
||||
'publication_format_counts': dict(Counter(r['metadata']['publication_format'] for r in group)),
|
||||
'note': 'Reviewed TOC partition excluding keynote/retracted entries; identity and full submission history remain unverified.'}
|
||||
p.with_suffix('.manifest.json').write_text(json.dumps(manifest, ensure_ascii=False, indent=2)+'\n')
|
||||
@@ -188,6 +204,7 @@ def collect(out, *, cache=None, snapshots=None):
|
||||
result = {'source': 'aamas_proceedings', 'year': 2026, 'finished_at': timestamp(),
|
||||
'status': 'collected_pending_identity_review', 'records': len(records), 'files': files,
|
||||
'excluded_publications': excluded, 'held_publications': held,
|
||||
'status_counts': dict(Counter(r['status'] for r in records)),
|
||||
'source_receipts': [evidence], 'database_written': False, 'pdfs_downloaded': False,
|
||||
'note': 'Retraction evidence held separately; publication is not an original decision note, and absence is not rejection.'}
|
||||
report = 'aamas-proceedings-2026.json'
|
||||
|
||||
Reference in New Issue
Block a user