earendil-works/pi · error · SessionError

invalid_lane

invalid_lane

Error message

Lane not found: ${lane}

What it means

Error "Lane not found: ${lane}" thrown in earendil-works/pi.

Source

Thrown at packages/session-backends/sqlite-node/src/sqlite/repo.ts:446

	async createLane(lane: string, at: string | null): Promise<void> {
		return this.enqueueWrite(() => {
			if (readLane(this.db, this.metadata.id, lane)) {
				throw new SessionError("already_exists", `Lane already exists: ${lane}`);
			}
			if (at !== null && !readEntryRow(this.db, this.metadata.id, at)) {
				throw new SessionError("not_found", `Entry not found: ${at}`);
			}
			const seq = getNextSequence(this.db, this.metadata.id);
			insertLane(this.db, this.metadata.id, seq, lane, at);
			advanceSequence(this.db, this.metadata.id, seq);
		});
	}

	async moveLane(lane: string, to: string | null): Promise<void> {
		return this.enqueueWrite(() => {
			if (!readLane(this.db, this.metadata.id, lane))
				throw new SessionError("invalid_lane", `Lane not found: ${lane}`);
			if (to !== null && !readEntryRow(this.db, this.metadata.id, to)) {
				throw new SessionError("not_found", `Entry not found: ${to}`);
			}
			const seq = getNextSequence(this.db, this.metadata.id);
			updateLane(this.db, this.metadata.id, seq, lane, to);
			advanceSequence(this.db, this.metadata.id, seq);
		});
	}

	async appendEntry<TEntry extends Entry>(entry: ProvisionedEntry<TEntry>, lane: string): Promise<TEntry> {
		return this.enqueueWrite(() => {
			const parentId = readLaneHead(this.db, this.metadata.id, lane).leafId;
			assertUnusedId(this.db, this.metadata.id, entry.id);
			const seq = getNextSequence(this.db, this.metadata.id);
			const committed = { ...entry, parentId, seq, timestamp: Date.now() } as Entry;
			insertEntryRow(this.db, this.metadata.id, {
				seq,
				id: committed.id,

View on GitHub (pinned to 4af9d21d3b)

Solutions

  1. The lane does not exist; verify the lane name.

When it happens

Trigger: Thrown at packages/session-backends/sqlite-node/src/sqlite/repo.ts:446 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24). Data as JSON: /api/errors/d6ff84f96ca65d27. Report an issue: GitHub.