Lab 战役:10 轮 harness 硬化 + 南浪仔文旅 IP 资产 + 独立使用文档(round14-23) - #15
Merged
Conversation
- context.prev_summary_window(缺省 1=原行为):run_pipeline 与 recompile_episode
统一走 _window_join(近端在前、远端逐行追加;window=1 逐字节同原实现)
- context.known_fact_fields(缺省原五字段,白名单校验):_known_facts 投影可窄化
- context.inject_threads(缺省 false):p2 Thread 表按 {id,title,status,state}
投影注入 p3 fragment,p3 转发进 LLM 输入
- profiles/_schema.py 新增 ContextSettings(extra=forbid + field_validator)
- 测试:tests/test_p3_context_config.py(5 例,先红后绿)
Copilot review(PR #13): - _known_fact_fields_of 用 or 判断,显式 [] 与未配置混同 → 改为 is None 判定 - _window_join 实现是时间序(远端在前),初稿 docstring/ADR/测试注释写成 "近端在前" → 统一改为时间序表述(与 compress_history【前情】→【上一集】布局一致)
…令 v2(round8/9:escalation/枚举/PENDING/钩子纪律)
…attempt4/5 同门连死实证,相位重试只复述诊断不改结构)
…容错(APIConnectionError 杀死整轮实证)
…量当场定点扩写(系统性欠量 26% 实证)
…episode 投影,实证 46631 字符撞护栏;id 全保留 anchor_map 契约不动)
… NOLAN'全名在叙事中永不自然;NOLAN 单用降级为偶发可重试)
… 内声明)+ADR-0015/16/17 状态 accepted
added 2 commits
August 26, 2026 17:25
…onfig # Conflicts: # adr/0015-pass-contract-strings-as-asset.md # adr/0016-pipeline-strategy-profile-sections.md # adr/0017-p3-context-profile-section.md # profiles/_schema.py # profiles/short_drama_v1.yaml # profiles/short_video_v1.yaml # src/nsc/passes/p3_beatsheet.py # src/nsc/passes/p5_dialogue.py # src/nsc/passes/pipeline.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
2026-08-21→26 Lab 优化战役的全部 SW 侧成果(26 commits,41 文件,+2456/-124):
harness 硬化(round14-20d,全部先写测试,597 全绿)
新资产
实证
合并后 main 即独立可用:配置 api_base + OPENAI_API_KEY 即可 nsc run(见 README「独立使用说明」)。