Change default ports to math constants (π/e/φ)#14
Merged
Conversation
agent 3000 → 31415 (π) web 3001 → 27182 (e) math-engine 8000 → 16180 (φ) 영향: - 코드 default 5곳: PORT/MATH_ENGINE_URL Zod default, CORS allowlist, SSE hook fallback, uvicorn port, next dev/start port - 활성 config: agent/.env.example - 활성 문서 4종: README, AGENTS, web README, rag-integration spec 핸드오프 스냅샷(deliverables/openmath_handoff_*)은 의도적으로 보존. Note: AGENTS.md, README.md 등 일부 파일은 working tree에 존재하던 다른 in-progress 작업(D-11/D-12 mapping, §9 진입점 현황 재작성 등)도 함께 묶여 들어감 (사용자 승인).
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.
What
세 서비스의 기본 포트를 수학 상수로 통일.
3000→314153001→271828000→16180Why
기본 포트(
3000,3001,8000)는 다른 프로세스가 자주 점유 — Mantis, 별도 Next.js, Django/FastAPI 등. 외우기 쉽고 OpenMath 정체성에 맞는 수학 상수로 통일.Where (영향 범위)
코드 default
packages/agent/src/config/env.ts—PORT,MATH_ENGINE_URLZod defaultpackages/agent/src/server/app.ts— CORS allowlistpackages/web/hooks/use-verification-stream.ts— SSE endpoint fallbackpackages/math-engine/run.py— uvicorn portpackages/web/package.json—next dev --port/next start --port활성 config
packages/agent/.env.example활성 문서
README.md,AGENTS.md,packages/web/README.md,docs/specs/rag-integration.md의도적 보존
deliverables/openmath_handoff_2026-05-07/— 핸드오프 시점 스냅샷, 역사 박제로 유지How tested
lsp_diagnosticsclean: env.ts, app.ts, use-verification-stream.tsMigration
이미
packages/agent/.env에PORT=3000을 박아둔 환경은 자동으로 새 default가 적용되지 않습니다. 다음 중 하나:.env에서PORT라인 삭제 (코드 default31415사용)PORT=31415로 갱신packages/web/.env.local에NEXT_PUBLIC_AGENT_URL=http://localhost:3000이 박혀있다면 동일하게 갱신 또는 삭제.Note
이 PR의 일부 staged 파일 (
AGENTS.md,README.md,packages/web/README.md등)에는 working tree에 존재하던 다른 in-progress 작업도 함께 포함됩니다:사용자 명시적 승인하에 mixed로 묶음 — 분리 시 작업량 과다.
Summary by cubic
Switch default dev ports to math constants to avoid conflicts and match OpenMath’s identity.
agentnow uses 31415 (π),web27182 (e), andmath-engine16180 (φ).Refactors
PORT31415,MATH_ENGINE_URL→http://localhost:16180, Nextdev/start→ 27182,uvicorn→ 16180.http://localhost:27182; web SSE hook fallback nowhttp://localhost:31415.packages/agent/.env.example,README.md,AGENTS.md,packages/web/README.md,docs/specs/rag-integration.md(agent fully implemented, SSE streaming in web, D-11/D-12 added, decisions D-1~D-12, math-engine tests 20).deliverables/openmath_handoff_*intentionally unchanged.Migration
packages/agent/.envsetsPORT=3000, remove it or change to31415.packages/web/.env.localsetsNEXT_PUBLIC_AGENT_URL=http://localhost:3000, remove it or change tohttp://localhost:31415.Written for commit c3a8964. Summary will update on new commits.