Bootstrap fit: residual cases of the plugin's fixed per-entry framing estimate
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
Direção de pesquisa
Start from the server's GET /Memory/bootstrap response, where entryOverhead and sectionItemOverhead are added by PR #50, and from the plugin's fixed per-entry framing estimate (~308 chars) and its ordered-prefix render. Reproduce case 1 with a pin whose title + content is about 3,420–3,530 chars at the default 4,000 budget, then case 2 with a lastEditor or longer scopes. The fix needs a decision on whether the server counts provenance strings, so settle that with maintainers first. Done means every entry that fits the budget is injected or the omission is explained.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Deferred from Claude Code plugin: inject all of bootstrap within budget, render section entries and summaryTree topics review.
That PR adds entryOverhead and sectionItemOverhead to GET /Memory/bootstrap. The Claude Code plugin sends a fixed per-entry framing estimate, computed from its own header format for an entry with:
- a 64-char id
- a 32-char author and no
lastEditor - 64 chars of scopes
- the longest built-in section
That estimate is ~308 chars per memory; typical entries frame in ~180–220. Because it is one constant per request, three cases remain:
- Boundary window. An entry whose title + content comes within about the estimate's slack (~100 chars) of the request budget is not packed, even though it would render within the injection budget. At the default 4,000 budget this is a pin with title + content of about 3,420–3,530 chars. The authoritative offline-cache save then leaves it out too.
- Metadata beyond the estimate. The server packs these entries, but the plugin's ordered-prefix render stops at the first one that does not fit, and the rest of the response is not injected. They stay in
watchedIds. Examples:- a
lastEditor - principal ids longer than 32 chars
- more than ~64 chars of scopes (up to 16 × 128 are legal)
- escaped characters, or bodies that sanitizing lengthens
- a
- Offline cache render. The stale-cache path renders with skip-ahead rather than the ordered prefix. That is deliberate (the cache was packed for an earlier request), but it differs from the online path.
Possible fix for 1 and 2: the server also counts each entry's provenance strings (id, author, lastEditor, scopes, section), so the client's overhead covers only its fixed framing. That puts one client's header field list in the server contract, which is why the PR shipped the constant.
Review-Deferral: 3e7b1f54450ae2b7 severity=nit category=correctness
Review-Deferral: d4b1192533479e66 severity=nit category=correctness
- Linguagem predominante
- JavaScript
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 20h 29min
- PRs com merge (30d)
- 28
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
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 HarperFast/agent-memory
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
HarperFast/agent-memory#17 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
HarperFast/agent-memory#54 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
HarperFast/agent-memory#48 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
HarperFast/agent-memory#47 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
HarperFast/agent-memory#43 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de HarperFast/agent-memory
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
ACK_WAITING HELP_WANTED UPDATE_CS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
OWASP/CheatSheetSeries#3000 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
fishjar/kiss-translator#1381 ·
Mantenedores costumam responder em até 1 dia
-
Client execution contract accepts a grant the code never takesTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea: client enhancement priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
opensro-dev/opensro#3808 ·
Mantenedores costumam responder em até 1 dia