engram
设计原型 English ← 全部页面

上下文预览

在调用 LLM 之前,精确模拟 LLM 将看到的内容。这是相关性闸门的首要诊断页面。

任务描述

Token 预算 4,000 tokens
50032 000
包含范围
上次运行 — 2.3 秒
已评分候选
62
已收录
14
已排除
48
已用 token
3,847

打包提示词预览

3,847 / 4,000 tokens
# ENGRAM CONTEXT PACK # Task: 审查并合并 PR #448:为 acme-checkout-service 中的支付方调用添加重试逻辑 # Model: Claude Sonnet 4 · Budget: 4000 tokens · Packed: 3847 tokens # Scopes: project, user, team, pool # Generated: 2026-04-18T14:32:01Z # Assets included: 14 of 62 candidates --- ## [MEMORY:project/feedback_push_confirm] [score:0.87] [tokens:210] id: feedback_push_confirm subtype: user, enforcement: default Always ask for explicit confirmation before running `git push` or any command that writes to a remote. This preference applies to all branches. --- ## [MEMORY:project/payment_provider_retry_policy] [score:0.96] [tokens:340] id: payment_provider_retry_policy subtype: feedback, enforcement: mandatory Payment provider calls must use exponential backoff with jitter. Max retries: 3. Base delay: 200ms. Max delay: 5s. Idempotency keys required for all POST requests. --- ## [MEMORY:project/pr_review_checklist] [score:0.91] [tokens:285] id: pr_review_checklist subtype: feedback, enforcement: default Code review checklist: 1. Tests added for new code paths 2. Error handling covers timeout and 5xx responses 3. No hardcoded credentials or URLs 4. Circuit breaker configured if calling external APIs 5. Metrics instrumentation for new service calls --- ## [MEMORY:team/api_versioning_policy] [score:0.79] [tokens:198] id: api_versioning_policy subtype: feedback, enforcement: mandatory, scope: team All external API clients must pin to a specific API version. Breaking changes to the payment provider API require a separate PR. --- ## [MEMORY:project/sprint_context_2026q2] [score:0.74] [tokens:420] id: sprint_context_2026q2 subtype: project, enforcement: hint Sprint goal Q2 2026: Improve payment reliability to 99.95% success rate. Current: 99.87%. Root cause: transient network errors not retried. PR #448 is the primary deliverable for this sprint. --- ## [WORKFLOW_PTR:release-checklist] [score:0.71] [tokens:95] ... # [还有 8 条资产 — 已用 token 共 2,299,以下显示预算截止线] # BOUNDARY ↑ 已收录 / 已排除 ↓(预算已用尽)

相关性闸门 — 候选排名

62 条已评分 · 截止于第 14 位
# 资产 ID 子类型 范围 评分 Token 累计 收录原因
1 payment_provider_retry_policy feedback project 0.96 340 340 关键词匹配:"payment provider"、"retry"
2 pr_review_checklist feedback project 0.91 285 625 关键词匹配:"PR"、"review";强制级标签
3 feedback_push_confirm user project 0.87 210 835 调用次数高(34);git 操作时始终收录
4 circuit_breaker_config feedback project 0.85 188 1,023 关键词匹配:"circuit breaker";与重试相关
5 checkout_service_sla reference project 0.82 165 1,188 来自 payment_provider_retry_policy 的入向引用
6 api_versioning_policy feedback team 0.79 198 1,386 团队强制规则;涉及外部 API
7 sprint_context_2026q2 project project 0.74 420 1,806 关键词匹配:"payment reliability"、"PR #448"
8 release-checklist (ptr) workflow_ptr project 0.71 95 1,901 scope=project 时 workflow_ptr 始终收录
9 idempotency_key_spec reference pool 0.68 240 2,141 关键词匹配:"idempotency";来自 compliance-checklists 池
10 error_handling_guide feedback team 0.65 312 2,453 语义相似:错误处理模式
11 payment_provider_docs_ptr reference project 0.62 88 2,541 来自 payment_provider_retry_policy 的入向引用
12 testing_conventions feedback project 0.60 265 2,806 PR review checklist 共现率 88%
13 observability_standards feedback team 0.58 580 3,386 检查清单中提及指标;在剩余预算内
14 user_profile_sky user user 0.55 461 3,847 预算允许时始终在末尾收录用户档案
↑ 已收录(3,847 tokens)  ·  预算已用尽 — 以下 48 条候选已评分但被排除
15 staging_environment_ref reference project 0.52 320 预算已用尽
16 old_deploy_runbook project project 0.48 890 预算已用尽
17 frontend_styling_guide feedback team 0.11 210 评分低于 0.15 阈值;与任务无关
相关性闸门运行耗时 2.3 秒 · 62 条资产已评分 · 每次按键防抖 500 毫秒