Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

memory_brief

modules.code.router.memory_brief

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Calls (1)
SymbolFileResolved by
_repo_idsrouter.pysame file
Inside (1)
SymbolFileResolved by
routerrouter.pysame file
modules.code.router.memory_briefbackend/app/modules/code/router.py, lines 363–372Open source
@router.get("/memory/brief")def memory_brief(repository: str = Query(..., min_length=1), db: Session = Depends(get_sync_db)):    """The repository brief (≤ 2,200 characters, frozen per indexed commit)."""    out = []    for repo_id in _repo_ids(db, repository):        repo = db.get(Repository, repo_id)        brief = recall.get_brief(db, repo)        out.append({"repository": repo.name, "commit_sha": brief.commit_sha if brief else None,                    "indexed_commit": repo.last_commit_sha, "text": brief.text if brief else None})    return {"briefs": out}

What the index recorded

Signature
def memory_brief(repository: str, db: Session):
File
backend/app/modules/code/router.py
Lines
363–372
Parser
python-ast
Git blob
d914024790aaafe7234adda557677b76e4ad73d5
Call sites
4 named, 2 resolved, 2 left unlinked
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit