Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .agents/skills/conference-ingestion/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Use the production Go pipeline and the source registry in `internal/catalog/cata
## Existing sources

- Security: `usenix`, `ieee-sp`, `ndss`, `ccs` use official conference pages.
- Machine learning: `iclr`, `icml`, `neurips` use OpenReview API v2 and the exact accepted conference venue for the requested year.
- ICLR uses OpenReview API v2 and the exact accepted conference venue for the requested year.
- ICML uses the official PMLR volume index plus the same volume's RSS abstracts. NeurIPS uses the official proceedings' `conference` track, excluding other tracks and leaving unavailable abstracts unknown. These official profiles are verified for 2024 and 2025; choose the year explicitly. Unsupported years fail without switching providers.
- Software engineering: `icse`, `ase` use DBLP conference/workshop bibliography records for the requested stream/year. Preserve the actual venue; these records do not establish main-track-only coverage or provide paper abstracts.

For a requested conference/year, run the stages the user requested:
Expand All @@ -25,6 +26,8 @@ Fetching writes the local corpus. Summarization uses the configured model and re

Inspect the records in `top-conf/data/conferences/<id>_<year>.jsonl`, the category/summary output and the rendered report. Check stable identities, original links, authors, source provenance, requested year and actual scope. Source errors, authentication challenges, unavailable proceedings and incomplete pagination remain explicit failures; do not replace them with unrelated pages or claim a successful empty collection. An override URL must expose the same provider protocol. Do not trigger release/deployment workflows merely to validate collection.

PMLR overrides must also serve `assets/rss/feed.xml`; the index's canonical volume and complete link set must agree with that RSS. Official OpenReview cross-links preserve PMLR identities when available. NeurIPS proceedings use their canonical landing URLs, with no inferred equivalence to older OpenReview IDs. Summarization/reporting validate the registered conference/year independently from default source availability, so existing archives remain usable.

## Classification

Supply the available title, abstract, keywords and venue to the model. Keep its structured category and summary. Detailed topics such as Coding Agents are semantic choices based on this evidence, not substring filters. When only bibliography/title evidence exists, the summary must say so and avoid invented methods, results or experiments. A successful fixture run proves protocol handling; live acquisition and model quality require their own observations.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ FastRead 保留现有授权边界:Research 会话申请 `fast-read` 一次性
./bin/fastnews weekly-report --days 7 --pdf

./bin/fastnews fetch-conf --conference usenix --year 2026
./bin/fastnews fetch-conf --conference icml --year 2025 # PMLR 索引 + 同卷 RSS 完整摘要
./bin/fastnews fetch-conf --conference neurips --year 2025 # 官方卷中 conference 主会轨道
./bin/fastnews summarize-conf --conference usenix --year 2026
./bin/fastnews conference-report --conference usenix --year 2026 --pdf
./bin/fastnews update-range --since 2023 --until 2026
Expand All @@ -108,9 +110,9 @@ FastRead 保留现有授权边界:Research 会话申请 `fast-read` 一次性
./bin/fastnews index
```

会议支持安全四会 `usenix / ieee-sp / ndss / ccs`、机器学习 `iclr / icml / neurips` 以及软件工程 `icse / ase`。安全会议读取官方页面;机器学习会议读取 OpenReview API v2 中指定年份的正式会议 venue;ICSE/ASE 读取 DBLP 中对应年份、会议流的会议及研讨会论文记录,并保留原始 venue。DBLP 不提供摘要时,生成结果必须说明仅依据标题,不补造实验。分类参考会议领域,支持 Coding Agents 等细分方向,不通过标题关键词自动判定类别。
会议支持安全四会 `usenix / ieee-sp / ndss / ccs`、机器学习 `iclr / icml / neurips` 以及软件工程 `icse / ase`。安全会议读取官方页面;ICLR 读取 OpenReview API v2 指定年份的正式会议 venue。ICML 直接读取 PMLR 官方索引及同卷 RSS,以论文链接核对完整集合并保留原始摘要;NeurIPS 直接读取官方卷中声明为 `conference` 的主会轨道,排除其他轨道,索引不提供摘要时保持未知。ICML/NeurIPS 官方格式目前实测支持 2024、2025 年,未验证的年份明确报错,不自动切换其他来源。ICSE/ASE 读取 DBLP 中对应年份、会议流的会议及研讨会论文记录,并保留原始 venue。没有摘要时,生成结果必须说明仅依据标题,不补造实验。分类参考会议领域,支持 Coding Agents 等细分方向,不通过标题关键词自动判定类别。

采集地址可通过 `--url` 指定同协议的来源。OpenReview/DBLP 分页全部校验完成后才追加数据;来源要求登录、返回验证页、分页不完整或会议/年份不符时返回错误并保留已有文件。新闻以 ID / URL 去重,结构化会议记录和论文摘要按稳定 ID 续跑,日报保持原 `source_hash` 检查点算法。`update-range` 仍按原安全四会运行,其他会议按 `fetch-conf → summarize-conf → conference-report` 单独选择年份;手动报告工作流支持全部已接入会议。`enrich-metrics` 使用 OpenAlex 并要求标题规范化后完全匹配。
采集地址可通过 `--url` 指定同协议、同年份格式的来源,PMLR 来源同时需要可访问的 `assets/rss/feed.xml`。来源要求登录、返回验证页、分页或论文集合不完整、会议/年份不符时返回错误并保留已有文件。新闻以 ID / URL 去重,结构化会议记录和论文摘要按稳定 ID 续跑:PMLR 有官方 OpenReview 交叉链接时复用该身份,否则使用论文页面 URL;NeurIPS 使用官方论文页面 URL,不按标题猜测旧 OpenReview 记录是否等价。日报保持原 `source_hash` 检查点算法。`update-range` 仍按原安全四会运行,其他会议按 `fetch-conf → summarize-conf → conference-report` 单独选择年份;手动报告工作流支持全部已接入会议,ICML/NeurIPS 请显式选择已验证年份。`enrich-metrics` 使用 OpenAlex 并要求标题规范化后完全匹配。

HTML 报告由 Go 模板生成。PDF 使用 Chromium,通过 `FASTNEWS_CHROME` 指定可执行文件;不请求 PDF 时不需要浏览器。周报同时输出到 `output/` 及 `secnews/data/report/`。CI 的采集、摘要与报告工作流已改为 Go CLI。

Expand Down
6 changes: 3 additions & 3 deletions cmd/fastnews/conference_sources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

func TestConferenceSourcesThroughCLIClassificationCatalogAndReport(t *testing.T) {
for _, conf := range []string{"iclr", "icml", "neurips", "icse", "ase"} {
for _, conf := range []string{"iclr", "icse", "ase"} {
t.Run(conf, func(t *testing.T) {
var mode atomic.Int32
var modelCalls atomic.Int32
Expand All @@ -33,7 +33,7 @@ func TestConferenceSourcesThroughCLIClassificationCatalogAndReport(t *testing.T)
if !strings.Contains(string(body), "Study") {
t.Error("model did not receive source paper evidence")
}
if conf == "iclr" || conf == "icml" || conf == "neurips" {
if conf == "iclr" {
if !strings.Contains(string(body), "Official abstract") || !strings.Contains(string(body), "Declared keyword") {
t.Error("available abstract or keywords were lost before classification")
}
Expand All @@ -58,7 +58,7 @@ func TestConferenceSourcesThroughCLIClassificationCatalogAndReport(t *testing.T)
w.WriteHeader(503)
return
}
if conf == "iclr" || conf == "icml" || conf == "neurips" {
if conf == "iclr" {
venue := r.URL.Query().Get("content.venueid")
if mode.Load() == 2 {
venue = "Different.cc/2026/Conference"
Expand Down
180 changes: 180 additions & 0 deletions cmd/fastnews/proceedings_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
package main

import (
"context"
"fmt"
"io"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"strings"
"sync/atomic"
"testing"

"github.com/FastR-D/FastNews/internal/catalog"
"github.com/FastR-D/FastNews/internal/config"
"github.com/FastR-D/FastNews/internal/httpapi"
"github.com/FastR-D/FastNews/internal/store"
)

func TestOfficialProceedingsThroughCollectionClassificationAndReport(t *testing.T) {
for _, conf := range []string{"icml", "neurips"} {
t.Run(conf, func(t *testing.T) {
fixture := "icml-2025-index.html"
if conf == "neurips" {
fixture = "neurips-2025-index.html"
}
index, err := os.ReadFile(filepath.Join("testdata", fixture))
if err != nil {
t.Fatal(err)
}
feed, err := os.ReadFile(filepath.Join("testdata", "icml-2025-feed.xml"))
if err != nil {
t.Fatal(err)
}
var mode atomic.Int32
var models atomic.Int32
original := http.DefaultTransport
http.DefaultTransport = newsTransport(func(r *http.Request) (*http.Response, error) {
if r.URL.Hostname() == "127.0.0.1" {
return original.RoundTrip(r)
}
if r.URL.Hostname() != "proceedings.mlr.press" && r.URL.Hostname() != "papers.nips.cc" {
return nil, fmt.Errorf("unexpected source %s", r.URL)
}
body := string(index)
if strings.HasSuffix(r.URL.Path, "feed.xml") {
body = string(feed)
if mode.Load() == 1 {
return &http.Response{StatusCode: 503, Body: io.NopCloser(strings.NewReader("unavailable")), Header: http.Header{}, Request: r}, nil
}
if mode.Load() == 2 {
body = strings.ReplaceAll(body, "aamand25a.html", "missing25a.html")
}
} else {
switch mode.Load() {
case 1:
if conf == "neurips" {
body = strings.Replace(body, "3 papers", "4 papers", 1)
}
case 2:
if conf == "neurips" {
body = strings.ReplaceAll(body, "/2025/hash/", "/2024/hash/")
}
case 3:
body = `<html><body>Verification required</body></html>`
case 4:
body = strings.ReplaceAll(body, `class="authors"`, `class="missing"`)
body = strings.ReplaceAll(body, `class="paper-authors"`, `class="missing"`)
case 5:
body = strings.ReplaceAll(body, "v267/", "v235/")
body = strings.ReplaceAll(body, `data-track="conference"`, `data-track="creative_ai_track"`)
}
}
return &http.Response{StatusCode: 200, Body: io.NopCloser(strings.NewReader(body)), Header: http.Header{}, Request: r}, nil
})
t.Cleanup(func() { http.DefaultTransport = original })
model := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
models.Add(1)
body, _ := io.ReadAll(r.Body)
if conf == "icml" && !strings.Contains(string(body), "description") {
t.Error("source evidence missing")
}
fmt.Fprint(w, `{"choices":[{"finish_reason":"stop","message":{"content":"{\"category\":\"Recorded test category\",\"summary_zh\":\"隔离模型协议验收,非真实模型质量评估。\"}"}}]}`)
}))
defer model.Close()
c := config.Config{Root: t.TempDir(), LLMKey: "fixture", LLMURL: model.URL}
args := []string{"--conference", conf, "--year", "2025"}
for range 2 {
if err := job(context.Background(), c, "fetch-conf", args); err != nil {
t.Fatal(err)
}
}
file := filepath.Join(c.Root, "top-conf/data/conferences", conf+"_2025.jsonl")
rows, err := catalog.Rows(file)
if err != nil || len(rows) != 2 {
t.Fatalf("scope/deduplication: %d records, %v", len(rows), err)
}
for _, row := range rows {
if catalog.Str(row, "author") == "" {
t.Fatal("author metadata lost")
}
if conf == "icml" && catalog.Str(row, "description") == "" {
t.Fatal("RSS abstract lost")
}
if conf == "neurips" && (catalog.Str(row, "track") != "conference" || catalog.Str(row, "description") != "") {
t.Fatal("track scope or unknown abstract changed", row)
}
}
if conf == "icml" && rows[0]["_id"] != "https://openreview.net/forum?id=jYmGi1175R" {
t.Fatal("publisher-linked identity changed", rows[0]["_id"])
}
for range 2 {
if err := job(context.Background(), c, "summarize-conf", args); err != nil {
t.Fatal(err)
}
}
if models.Load() != 2 {
t.Fatal("summary checkpoint was not reused", models.Load())
}
if err := job(context.Background(), c, "conference-report", args); err != nil {
t.Fatal(err)
}
data, err := os.ReadFile(filepath.Join(c.Root, "top-conf/data/report", strings.ToUpper(conf)+"_2025_Report.html"))
if err != nil || !strings.Contains(string(data), catalog.Str(rows[0], "title")) {
t.Fatal("report artifact missing", err)
}
db, err := store.Open(filepath.Join(c.Root, "accounts"))
if err != nil {
t.Fatal(err)
}
defer db.Close()
app, err := httpapi.New(c, db)
if err != nil {
t.Fatal(err)
}
recorder := httptest.NewRecorder()
app.Handler().ServeHTTP(recorder, httptest.NewRequest("GET", "/api/papers?conference="+conf+"&year=2025", nil))
if recorder.Code != 200 || !strings.Contains(recorder.Body.String(), catalog.Str(rows[0], "title")) {
t.Fatal("catalog failed", recorder.Code, recorder.Body.String())
}
before, err := os.ReadFile(file)
if err != nil {
t.Fatal(err)
}
for _, failure := range []int32{1, 2, 3, 4, 5} {
mode.Store(failure)
if err := job(context.Background(), c, "fetch-conf", args); err == nil {
t.Fatal("invalid proceedings accepted", failure)
}
after, err := os.ReadFile(file)
if err != nil || string(after) != string(before) {
t.Fatal("failed source changed corpus", failure, err)
}
}
})
}
}

func TestUnverifiedProceedingsYearFailsBeforeNetworkOrCorpusWrites(t *testing.T) {
var requests atomic.Int32
original := http.DefaultTransport
http.DefaultTransport = newsTransport(func(r *http.Request) (*http.Response, error) {
requests.Add(1)
return nil, fmt.Errorf("unexpected network request")
})
t.Cleanup(func() { http.DefaultTransport = original })
for _, conf := range []string{"icml", "neurips"} {
c := config.Config{Root: t.TempDir()}
if err := job(context.Background(), c, "fetch-conf", []string{"--conference", conf, "--year", "2026"}); err == nil {
t.Fatal("unverified year accepted", conf)
}
if _, err := os.Stat(filepath.Join(c.Root, "top-conf")); !os.IsNotExist(err) {
t.Fatal("unsupported year created corpus", conf, err)
}
}
if requests.Load() != 0 {
t.Fatal("unsupported source was fetched", requests.Load())
}
}
4 changes: 4 additions & 0 deletions cmd/fastnews/testdata/icml-2025-feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?><rss version="2.0"><channel><title>Proceedings of Machine Learning Research</title>
<item><title>Lightweight Protocols for Distributed Private Quantile Estimation</title><link>https://proceedings.mlr.press/v267/aamand25a.html</link><description>Distributed data analysis is a powerful approach for large-scale data processing.</description><pubDate>Mon, 06 Oct 2025 00:00:00 +0000</pubDate></item>
<item><title>Aggregation of Dependent Expert Distributions in Multimodal Variational Autoencoders</title><link>https://proceedings.mlr.press/v267/a-mancisidor25a.html</link><description>Multimodal learning with variational autoencoders (VAEs) requires estimating joint distributions to evaluate the evidence lower bound (ELBO).</description><pubDate>Mon, 06 Oct 2025 00:00:00 +0000</pubDate></item>
</channel></rss>
9 changes: 9 additions & 0 deletions cmd/fastnews/testdata/icml-2025-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!doctype html><html><head><meta property="og:url" content="https://proceedings.mlr.press/v267/"></head><body>
<h2>Volume 267: International Conference on Machine Learning, 13-19 July 2025</h2>
<div class="paper"><p class="title">Aggregation of Dependent Expert Distributions in Multimodal Variational Autoencoders</p>
<p class="details"><span class="authors">Rogelio A. Mancisidor,&nbsp;Robert Jenssen,&nbsp;Shujian Yu,&nbsp;Michael Kampffmeyer</span></p>
<p class="links">[<a href="https://proceedings.mlr.press/v267/a-mancisidor25a.html">abs</a>][<a href="https://openreview.net/forum?id=jYmGi1175R">OpenReview</a>]</p></div>
<div class="paper"><p class="title">Lightweight Protocols for Distributed Private Quantile Estimation</p>
<p class="details"><span class="authors">Anders Aamand,&nbsp;Fabrizio Boninsegna,&nbsp;Abigail Gentle,&nbsp;Jacob Imola,&nbsp;Rasmus Pagh</span></p>
<p class="links">[<a href="https://proceedings.mlr.press/v267/aamand25a.html">abs</a>][<a href="https://openreview.net/forum?id=zL6ljQvPzZ">OpenReview</a>]</p></div>
</body></html>
7 changes: 7 additions & 0 deletions cmd/fastnews/testdata/neurips-2025-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html><html><body><h1>Advances in Neural Information Processing Systems 38 Main Conference</h1>
<div class="paper-list-header"><span class="paper-count">3 papers</span></div>
<ul class="paper-list">
<li class="conference" data-track="conference"><div class="paper-content"><a title="paper title" href="/paper_files/paper/2025/hash/0010031a1b4910aa67edbda26a705518-Abstract-Conference.html">NeuralPLexer3: Accurate Biomolecular Complex Structure Prediction with Flow Models</a><span class="paper-authors">Jarren Zhuoran Qiao, Feizhi Ding, Thomas Dresselhaus</span></div></li>
<li class="conference" data-track="conference"><div class="paper-content"><a title="paper title" href="/paper_files/paper/2025/hash/0010665e949927b74faf6e3ada6d7f72-Abstract-Conference.html">The Primacy of Magnitude in Low-Rank Adaptation</a><span class="paper-authors">Zicheng Zhang, Haoran Li, Yifeng Zhang</span></div></li>
<li class="datasets_and_benchmarks_track" data-track="datasets_and_benchmarks_track"><div class="paper-content"><a title="paper title" href="/paper_files/paper/2025/hash/0013efa1327c079e73154d4061c3a396-Abstract-Datasets_and_Benchmarks_Track.html">EngiBench: A Framework for Data-Driven Engineering Design Research</a><span class="paper-authors">Florian Felten, Gabriel Apaza</span></div></li>
</ul></body></html>
4 changes: 2 additions & 2 deletions internal/catalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ var Conferences = map[string]Conference{
"ndss": {"NDSS", "security", "html", ""},
"ccs": {"ACM CCS", "security", "html", ""},
"iclr": {"ICLR", "ml", "openreview", "ICLR.cc"},
"icml": {"ICML", "ml", "openreview", "ICML.cc"},
"neurips": {"NeurIPS", "ml", "openreview", "NeurIPS.cc"},
"icml": {"ICML", "ml", "pmlr", ""},
"neurips": {"NeurIPS", "ml", "neurips-proceedings", ""},
"icse": {"ICSE", "software", "dblp", "icse"},
"ase": {"ASE", "software", "dblp", "kbse"},
}
Expand Down
28 changes: 23 additions & 5 deletions internal/jobs/conference.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,28 @@ import (
"golang.org/x/net/html"
)

func ConferenceURLs(conf string, year int) ([]string, error) {
func conferenceInfo(conf string, year int) (catalog.Conference, error) {
metadata, ok := catalog.Conferences[conf]
if !ok {
return nil, fmt.Errorf("unknown conference %q", conf)
return metadata, fmt.Errorf("unknown conference %q", conf)
}
if year < 2000 || year > 2100 {
return metadata, fmt.Errorf("invalid conference year")
}
return metadata, nil
}

func ConferenceURLs(conf string, year int) ([]string, error) {
metadata, err := conferenceInfo(conf, year)
if err != nil {
return nil, err
}
if metadata.Provider == "pmlr" || metadata.Provider == "neurips-proceedings" {
source, err := proceedingsURL(conf, year)
if err != nil {
return nil, err
}
return []string{source}, nil
}
if metadata.Provider == "openreview" {
query := url.Values{"content.venueid": {fmt.Sprintf("%s/%d/Conference", metadata.RemoteID, year)}}
Expand Down Expand Up @@ -167,8 +185,8 @@ func (p *Pipeline) FetchConference(ctx context.Context, conf string, year int, o
if err != nil {
return err
}
if year < 2000 || year > 2100 {
return fmt.Errorf("invalid conference year")
if provider := catalog.Conferences[conf].Provider; provider == "pmlr" || provider == "neurips-proceedings" {
return p.fetchProceedings(ctx, conf, year, catalog.First(override, urls[0]))
}
if catalog.Conferences[conf].Provider != "html" {
return p.fetchStructuredConference(ctx, conf, year, catalog.First(override, urls[0]))
Expand Down Expand Up @@ -239,7 +257,7 @@ func (p *Pipeline) FetchConference(ctx context.Context, conf string, year int, o
return appendRows(file, found)
}
func (p *Pipeline) SummarizeConference(ctx context.Context, conf string, year int) error {
if _, e := ConferenceURLs(conf, year); e != nil {
if _, e := conferenceInfo(conf, year); e != nil {
return e
}
base := fmt.Sprintf("%s_%d", conf, year)
Expand Down
Loading
Loading